/* ==========================================================================
   THE SILO — stylesheet
   Design system matched to the approved concept: warm paper ground, DM Serif
   Display for editorial headlines (roman + italic sage-green accent), Fira
   Sans for everything else, numbered section markers, archive/plate-style
   photo captions. Zero border-radius throughout — square, architectural.
   ========================================================================== */

:root{
  --paper: oklch(95.5% .018 92);
  --card: oklch(97.5% .012 91);
  --ink: oklch(24.5% .015 145);
  --ink-soft: oklch(47% .018 145);
  --accent: oklch(49% .052 135);
  --timber: oklch(81.5% .022 87);
  --concrete: oklch(89% .02 88);
  --border: oklch(68% .018 88 / .48);
  --open: oklch(55% .09 143);

  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Fira Sans", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1440px;
  --gutter: 20px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

/* Large editorial scale, matched to the approved design: h2 runs from 48px
   up to 96px across breakpoints, not a token-scale heading. */
h1, h2, h3{
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0;
}
h2{
  font-size: 3rem;
  line-height: 0.95;
}
@media (min-width: 640px){ h2{ font-size: 4.5rem; } }
@media (min-width: 1024px){ h2{ font-size: 6rem; } }

em{ color: var(--accent); font-style: italic; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 640px){ .container{ --gutter: 32px; } }
@media (min-width: 1024px){ .container{ --gutter: 48px; } }

/* ---------- Section furniture ---------- */
.section{ padding: 96px 0; }
.section.tight{ padding: 64px 0; }
@media (min-width: 1024px){
  .section{ padding: 160px 0; }
  .section.tight{ padding: 100px 0; }
}
.section-num{
  display:flex;
  align-items:center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.section-num::after{
  content:"";
  display:block;
  width: 64px;
  height: 1px;
  background: var(--border);
}
.section-num .section-label{ color: var(--accent); font-weight: 600; }

.eyebrow{
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 28px;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 32px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg{ width: 15px; height:15px; }
.btn-solid{ background: var(--ink); color: var(--paper); }
.btn-solid:hover{ background: var(--accent); border-color: var(--accent); }
.btn-outline{ background: transparent; color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--paper); }

/* ---------- Header / nav ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
/* Every anchor-linked section needs this, or jumping to it (nav links,
   the beyond-the-cafe "more below" link, back-to-top) lands with the
   sticky header covering the section's own heading. */
[data-nav-section]{ scroll-margin-top: 90px; }
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.nav-logo{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
  line-height: 1;
  display:flex;
  align-items:baseline;
  gap: 12px;
}
.nav-logo small{
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  line-height: 1.4;
}
.nav-links{
  display:flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a{
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active{
  border-color: var(--accent);
  color: var(--accent);
}
.nav-right{ display:flex; align-items:center; gap: 18px; }
.nav-toggle{
  display:none;
  background:none;
  border: 1px solid var(--ink);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor:pointer;
}

@media (max-width: 900px){
  /* Anchored to .site-header's own sticky positioning (its containing
     block), so this always sits exactly below the real header height
     instead of a guessed pixel offset. Hidden via opacity/visibility, not
     a percentage transform — a transform sized off the panel's OWN height
     doesn't reliably clear a tall multi-item list off-screen. */
  .nav-links{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.open{ opacity:1; visibility:visible; transform: translateY(0); }
  .nav-links li{ border-top: 1px solid var(--border); }
  .nav-links a{ display:block; padding: 18px var(--gutter); border-bottom:none; }
  .nav-toggle{ display:block; }
}

@media (max-width: 480px){
  /* At phone width the full "Silo. / Cafe · Bungay / River Waveney" lockup
     next to Menu + Directions doesn't fit on one row without wrapping
     awkwardly — drop the subtitle and shrink the wordmark instead of
     letting it wrap to four lines. */
  .nav{ flex-wrap: nowrap; }
  .nav-logo{ font-size: 1.4rem; gap: 0; }
  .nav-logo small{ display: none; }
}

/* ---------- Hero ---------- */
.hero{
  padding: 48px 0 40px;
  min-height: calc(100svh - 73px);
  display:flex;
  align-items:center;
}
@media (min-width: 1024px){
  .hero{ padding: 80px 0; }
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items:start;
  width: 100%;
}
@media (min-width: 1024px){
  .hero-grid{ grid-template-columns: 7fr 5fr; gap: 48px; }
}
.hero-status{
  display:inline-flex;
  width: fit-content;
  align-items:center;
  gap: 8px;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 40px;
}
.dot{
  width:8px; height:8px; border-radius:50%; background: var(--open); flex-shrink:0;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: .35; }
}
@media (prefers-reduced-motion: reduce){ .dot{ animation: none; } }

.hero h1{
  /* min raised only at wider widths below — the source design's flat
     clamp(4.2rem,9vw,9rem) overflows a phone-width single word
     ("architecture") since 4.2rem is a floor, not a fluid start point */
  font-size: clamp(2.6rem, 11vw, 9rem);
  line-height: 0.82;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero-lede{
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.625;
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 0 34px;
}
@media (min-width: 640px){ .hero-lede{ font-size: 1.125rem; } }
.hero-ctas{ display:flex; gap: 14px; flex-wrap:wrap; }

.hero-photo{ position:relative; }
.hero-photo img{ width:100%; height:auto; aspect-ratio: 4/5; object-fit:cover; }
.plate{
  position:absolute; left:0; right:0; bottom:0;
  display:flex; justify-content:space-between;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent 70%);
  color:#fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ---------- Marquee strip ---------- */
.marquee{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--card);
}
.marquee-track{
  display:flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  white-space: nowrap;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; overflow-x: auto; }
}

/* ---------- Two-col editorial block (Story) ---------- */
.split{
  display:grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items:center;
}
@media (min-width: 1024px){ .split{ grid-template-columns: 5fr 7fr; } }
.split.reverse .split-media{ order: 2; }
.split h2{ margin-bottom: 22px; text-wrap: balance; }
.split p{ color: var(--ink-soft); font-size: 1.125rem; line-height: 1.625; max-width: 32rem; margin-top: 32px; }
.split-media{ position:relative; }
.split-media img{ width:100%; height:auto; aspect-ratio: 4/3; object-fit:cover; }
.caption-card{
  position:absolute;
  left: -28px; bottom: -28px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 22px 26px;
  max-width: 280px;
}
.caption-card h3{ font-size: 1.2rem; margin-bottom: 8px; }
.caption-card p{ margin:0; font-size: 0.88rem; color: var(--ink-soft); }

@media (max-width: 900px){
  .split.reverse .split-media{ order: 0; }
  .caption-card{ left: 16px; bottom: -20px; max-width: calc(100% - 32px); }
}

/* ---------- Film section ---------- */
.film-frame{
  position:relative;
  border: 1px solid var(--border);
  aspect-ratio: 16/8;
  overflow:hidden;
  margin: 40px 0 10px;
}
.film-frame img{ width:100%; height:100%; object-fit:cover; }
.film-frame .plate{ background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%); }
.film-frame .plate-top{
  position:absolute; top:0; left:0; right:0;
  display:flex; justify-content:space-between;
  padding: 12px 16px;
  color:#fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 70%);
}
.film-meta{
  display:flex; justify-content:space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 64px;
}

.contact-sheet-label{ margin-bottom: 24px; }
.contact-sheet-label .eyebrow{ margin-bottom: 6px; }
.contact-sheet-label h3{ font-family: var(--font-serif); font-size: 1.8rem; }
.contact-sheet-label h3 em{ font-style:italic; }

.contact-sheet{
  display:grid;
  grid-template-columns: repeat(6, minmax(160px,1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.frame-card{ border: 1px solid var(--border); background: var(--card); }
.frame-card .thumb{ aspect-ratio: 3/4; overflow:hidden; position:relative; }
.frame-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.frame-card .thumb .num{
  position:absolute; top:8px; left:8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  background: rgba(0,0,0,.6);
  color:#fff;
  padding: 2px 6px;
}
.frame-card .cap{ padding: 10px 12px; }
.frame-card .cap b{ display:block; font-size: 0.82rem; font-weight:600; margin-bottom: 3px; }
.frame-card .cap span{ display:block; font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-soft); letter-spacing: 0.03em; }

@media (max-width: 900px){
  .contact-sheet{ grid-template-columns: repeat(6, 150px); }
}

/* ---------- Roastery + kitchen ---------- */
.roast-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.roast-card{ background: var(--paper); padding: 44px 40px; }
.roast-card .roast-tag{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.roast-card .roast-index{
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--accent);
  line-height:1;
  margin-bottom: 14px;
}
.roast-card h3{ font-size: 1.7rem; margin-bottom: 14px; }
.roast-card p{ color: var(--ink-soft); margin:0; }

.quote{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 780px){
  .roast-grid{ grid-template-columns: 1fr; }
}

.lights-on{
  text-align:center;
  padding: 90px var(--gutter);
  background: var(--ink);
  color: var(--paper);
}
.lights-on h2{
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- After hours (tapas) ---------- */
.tapas{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
}
.tapas-photo{ position:relative; min-height: 480px; }
.tapas-photo img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.tapas-photo .overlay-text{
  position:absolute; left:28px; bottom:28px; right:28px;
  color:#fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.tapas-info{
  padding: 64px 56px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background: var(--card);
}
.tapas-info .eyebrow{ margin-bottom: 8px; }
.tapas-info .hours{ font-weight:600; font-size:0.85rem; color: var(--ink-soft); margin-bottom:20px; }
.tapas-info h2{ margin-bottom:18px; }
.tapas-info p{ color: var(--ink-soft); margin: 0 0 16px; max-width: 46ch; }
.tapas-info .note{ font-size: 0.9rem; margin-bottom: 26px; font-style: italic; color: var(--ink); }

.price-list{
  list-style:none;
  margin: 0 0 26px;
  padding: 0;
  max-width: 26rem;
  border-top: 1px solid var(--border);
}
.price-list li{
  display:flex;
  align-items:baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.price-list li .label{ white-space:nowrap; }
.price-list li .price{ font-weight: 600; white-space:nowrap; }
/* No visible rule — just a real space, so selecting or copying a price
   row as plain text still reads "label ... price" instead of the two
   numbers running together. */
.price-list li .leader{
  flex: 1;
  overflow: hidden;
  color: transparent;
}

.btn-row{ display:flex; gap: 12px; flex-wrap:wrap; }

.price-cols{
  display:grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items:start;
}
@media (min-width: 780px){ .price-cols{ grid-template-columns: 1fr 1fr; } }
.price-note{ color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

.finder-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
@media (min-width: 780px){ .finder-grid{ grid-template-columns: repeat(3, 1fr); } }
.finder-card{
  background: var(--paper);
  padding: 32px;
  display:flex;
  flex-direction:column;
  gap: 6px;
  transition: background .15s ease;
}
.finder-card:hover{ background: var(--card); }
.finder-card h3{ font-family: var(--font-sans); font-weight:600; font-size: 1.05rem; }
.finder-card p{ margin:0; color: var(--ink-soft); font-size: 0.9rem; }
.finder-arrow{ margin-top: 14px; color: var(--accent); font-weight: 700; }

.inline-link{
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}

@media (max-width: 900px){
  .tapas{ grid-template-columns: 1fr; }
  .tapas-photo{ min-height: 340px; }
  .tapas-info{ padding: 48px var(--gutter); }
}

/* ---------- Visitor essentials ---------- */
.essentials-head{ max-width: 640px; margin-bottom: 48px; }
.essentials-head h2{ margin-bottom: 16px; }
.essentials-head p{ color: var(--ink-soft); font-size: 1.125rem; }
.essentials-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}
.essential{
  padding: 34px 36px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display:flex;
  gap: 18px;
}
.essential:nth-child(2n){ border-right:none; }
.essential:nth-child(n+3){ border-bottom:none; }
.essential svg{ width: 30px; height:30px; flex-shrink:0; color: var(--accent); }
.essential h3{ font-family: var(--font-sans); font-weight:600; font-size: 1.05rem; margin-bottom: 6px; }
.essential p{ margin:0; color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 640px){
  .essentials-grid{ grid-template-columns: 1fr; }
  .essential{ border-right:none !important; }
  .essential:nth-child(n+1){ border-bottom: 1px solid var(--border); }
  .essential:last-child{ border-bottom:none; }
}

/* ---------- Beyond the cafe ---------- */
.beyond{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items:center;
}
.beyond h2{
  text-transform: uppercase;
  margin-bottom: 34px;
}
.beyond-item{ padding: 20px 0; border-top: 1px solid var(--border); }
.beyond-item:last-of-type{ border-bottom: 1px solid var(--border); }
.beyond-item h3{ font-family: var(--font-sans); font-weight:600; font-size: 1.1rem; margin-bottom: 6px; }
.beyond-item p{ margin:0; color: var(--ink-soft); font-size: 0.94rem; }
.beyond-media img{ width:100%; aspect-ratio: 4/5; object-fit:cover; }
.beyond .btn{ margin-top: 28px; }

@media (max-width: 900px){
  .beyond{ grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- FAQ ---------- */
.faq-head{ margin-bottom: 40px; }
.faq-head h2{
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem,3.4vw,2.3rem);
  text-transform: uppercase;
}
.faq-item{ border-top: 1px solid var(--border); }
.faq-item:last-child{ border-bottom: 1px solid var(--border); }
.faq-q{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  padding: 24px 4px;
  background:none;
  border:none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor:pointer;
  text-align:left;
}
.faq-q .plus{
  flex-shrink:0;
  width: 22px; height:22px;
  position:relative;
}
.faq-q .plus::before, .faq-q .plus::after{
  content:"";
  position:absolute;
  background: var(--ink);
  transition: transform .2s ease;
}
.faq-q .plus::before{ left:0; top:50%; width:100%; height:1.5px; transform: translateY(-50%); }
.faq-q .plus::after{ top:0; left:50%; width:1.5px; height:100%; transform: translateX(-50%); }
.faq-item.open .plus::after{ transform: translateX(-50%) rotate(90deg); opacity:0; }
.faq-a{
  max-height:0;
  overflow:hidden;
  transition: max-height .25s ease;
}
.faq-a p{ margin: 0 0 24px; color: var(--ink-soft); max-width: 60ch; padding-right: 40px; }
.faq-cta{ margin-top: 40px; }

/* ---------- Contact / visit ---------- */
.visit{ background: var(--card); border-top: 1px solid var(--border); }
.visit-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.visit h2{
  text-transform: uppercase;
  margin-bottom: 28px;
}
.visit-block{ margin-bottom: 28px; }
.visit-block .eyebrow{ margin-bottom: 4px; }
.visit-block p{ margin:0; font-size: 1.02rem; }
.visit-ctas{ display:flex; gap:14px; flex-wrap:wrap; margin-top: 8px; }
.visit-media{ position:relative; }
.visit-media img{ width:100%; height:100%; object-fit:cover; min-height: 340px; }

@media (max-width: 900px){
  .visit-grid{ grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: var(--paper); padding: 64px 0 28px; }
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  flex-wrap:wrap;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-logo{ font-family: var(--font-serif); font-size: 2rem; }
.footer-tag{ color: rgba(250,249,246,.7); max-width: 34ch; }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 12px;
  font-size: 0.86rem;
  color: rgba(250,249,246,.65);
}
.footer-bottom a:hover{ color: var(--paper); }
.back-top{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,.3);
  padding: 8px 16px;
}
.back-top:hover{ border-color: var(--paper); }
