:root{
  --bg0:#071a12;
  --bg1:#0b2a1a;
  --paper:#fff7ea;
  --ink:#122016;

  --red:#c81d25;
  --green:#2a9d5b;
  --gold:#e9c46a;

  --text:#f2f7f4;
  --muted:rgba(242,247,244,.75);

  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(233,196,106,.22), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(200,29,37,.20), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  min-height:100vh;
}

.wrap{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}

#snow{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:1;
  opacity:.8;
}

/* ===== Header ===== */
.site-header{
  position:relative;
  z-index:2;
  padding:28px 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 60%);
}

.header-inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:start;
}
@media (max-width: 900px){
  .header-inner{ grid-template-columns: 1fr; }
}

.lights{
  position:absolute;
  left:0; right:0; top:0;
  height:18px;
  background:
    radial-gradient(circle at 10px 10px, rgba(233,196,106,.95) 0 5px, transparent 6px),
    radial-gradient(circle at 40px 10px, rgba(42,157,91,.95) 0 5px, transparent 6px),
    radial-gradient(circle at 70px 10px, rgba(200,29,37,.95) 0 5px, transparent 6px);
  background-size: 90px 18px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
  opacity:.9;
}

.brand .badge{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-weight:600;
  letter-spacing:.2px;
}

h1{
  margin:14px 0 8px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.05;
}

.subhead{
  margin:0 0 14px;
  color: var(--muted);
  max-width: 56ch;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 14px 0 6px;
}

.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor:pointer;
  font-weight:600;
  box-shadow: 0 10px 24px rgba(0,0,0,.20);
  text-decoration:none;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn.primary{
  border-color: rgba(233,196,106,.38);
  background: linear-gradient(180deg, rgba(233,196,106,.35), rgba(233,196,106,.12));
}

.hero{
  margin:0;
  padding:12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.hero img{
  width:100%;
  height:auto;
  display:block;
  border-radius: calc(var(--radius) - 8px);
}
.hero figcaption{
  margin:10px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.nav{
  display:flex;
  gap:14px;
  padding: 12px 0 0;
  overflow:auto;
}
.nav a{
  color: var(--muted);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* ===== Cards / Paper ===== */
.card{
  margin: 18px 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  z-index:2;
}

.card-title{ padding: 18px 18px 0; }
.card-title h2{ margin:0; font-size: 22px; }

.muted{ color: var(--muted); }
.small{ font-size: 13px; }

.paper{
  margin: 16px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  border: 1px solid rgba(0,0,0,.08);
}

/* Dropcap (the cool red T) */
.dropcap::first-letter{
  float:left;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 44px;
  line-height: 1;
  padding-right: 10px;
  padding-top: 2px;
  color: var(--red);
}

.note{
  margin-top: 12px;
  padding: 12px;
  border-left: 4px solid var(--green);
  background: rgba(42,157,91,.12);
  border-radius: 12px;
}

/* ===== Letter scroll box + polish ===== */
.letter-paper{
  padding: 0;
  position: relative;
}

/* Scroll hint pill (optional element: <div class="scroll-hint">Scroll ↓</div>) */
.scroll-hint{
  position:absolute;
  top:14px;
  right:18px;
  font-size:12px;
  color: rgba(18,32,22,.55);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(0,0,0,.08);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Extra top padding so the hint never overlaps the poem.
   Extra bottom padding so the fade doesn't look like a "gap". */
.letter-scroll{
  padding: 52px 18px 78px;
  max-height: 520px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  line-height: 1.75;
}

.stanza{
  margin: 0 0 18px;
  line-height: inherit;
}

.stanza.signature{
  margin-top: 18px;
  font-weight: 700;
}

/* Bottom fade so it looks scrollable (smaller height to avoid "too much blank") */
.letter-paper::after{
  content:"";
  position:absolute;
  left:16px; right:16px; bottom:16px;
  height:44px;
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(255,247,234,0), rgba(255,247,234,1));
  border-radius: 0 0 14px 14px;
}

/* ===== Interstate section layout ===== */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px 16px;
}
@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; }
}

/* Container for the map area */
.mapbox{
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(700px 260px at 50% 40%, rgba(233,196,106,.18), transparent 60%),
    rgba(255,255,255,.05);
  padding: 18px;
}

/* Leaflet map itself (must have a height) */
#i94map{
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
}
@media (max-width: 720px){
  #i94map{ height: 320px; }
}

/* ===== Gallery ===== */
.gallery{
  padding: 16px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.thumb{
  margin:0;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
  cursor:pointer;
  display:grid;
}

.thumb img{
  width:100%;
  height:auto;
  display:block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumb figcaption{
  padding: 10px 12px 12px;
  font-size: 13px;
  color: rgba(255,255,255,.80);
  line-height: 1.25;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ===== Lightbox ===== */
.lightbox[hidden]{ display:none !important; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display:grid;
  place-items:center;
}

.lb-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.74);
  border:0;
  padding:0;
}

.lb-panel{
  position:relative;
  width: min(1100px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(15, 25, 20, .94);
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
  overflow:hidden;
  display:grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
}

.lb-figure{
  margin:0;
  padding: 14px 14px 10px;
  display:grid;
  gap: 10px;
  justify-items:center;
}

#lbImage{
  width: 100%;
  height: auto;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  display:block;
}

#lbCaption{
  color: rgba(255,255,255,.85);
  font-size: 14px;
  text-align:center;
  padding: 0 10px 10px;
}

.lb-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #fff;
  cursor:pointer;
}

.lb-nav{
  height: 100%;
  border:0;
  background: transparent;
  color: rgba(255,255,255,.85);
  font-size: 46px;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.lb-nav:hover{ background: rgba(255,255,255,.06); }

@media (max-width: 720px){
  .lb-panel{ grid-template-columns: 46px 1fr 46px; }
  .lb-nav{ font-size: 40px; }
}

.footer{
  padding: 30px 0 50px;
  color: var(--muted);
  text-align:center;
}

.pdf-link{
  color: rgba(242,247,244,.95);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pdf-link:hover{
  color: var(--gold);
}