/* Les Papallones · direction B (editorial coffee culture). See docs/superpowers/specs/…-design.md §5. */

/* ---------- fonts (self-hosted, Greek + Latin subsets) ---------- */
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/noto-serif-display-greek-wght-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Noto Serif Display"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/noto-serif-display-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/noto-serif-display-greek-wght-italic.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Noto Serif Display"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/noto-serif-display-latin-wght-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-weight: 400; font-display: swap; src: url(/assets/fonts/commissioner-greek-400-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-weight: 400; font-display: swap; src: url(/assets/fonts/commissioner-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-weight: 500; font-display: swap; src: url(/assets/fonts/commissioner-greek-500-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-weight: 500; font-display: swap; src: url(/assets/fonts/commissioner-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Commissioner"; font-weight: 600; font-display: swap; src: url(/assets/fonts/commissioner-greek-600-normal.woff2) format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Commissioner"; font-weight: 600; font-display: swap; src: url(/assets/fonts/commissioner-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --paper: #f4efe6;
  --paper-2: #ece5d8;   /* a step darker, for quiet bands */
  --ink: #14283a;
  --navy: #1c4560;
  --text-2: #3b4750;
  --meta: #5f5d57;      /* darker than the mockup's #6c6a63 so it passes AA on --paper-2 too */
  --accent: #9a4624;
  --rule: #d9d1c3;

  --serif: "Noto Serif Display", "Georgia", serif;
  --sans: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --space: clamp(3rem, 7vw, 5.5rem);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; overflow-wrap: break-word; hyphens: auto; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.meta { color: var(--meta); font-size: .875rem; }
.nowrap { white-space: nowrap; }
.plain { list-style: none; margin: 0; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; background: var(--ink); color: var(--paper); padding: .6rem 1rem; }
.skip:focus { top: 1rem; color: var(--paper); }

.display { font-family: var(--serif); font-weight: 300; letter-spacing: -.01em; line-height: 1.04; }
.display i, .display em { color: var(--navy); }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--text-2); max-width: 38ch; }
.link-arrow { font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: 5rem; }
.wordmark { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark-mark { width: 2rem; height: 2rem; color: var(--navy); }
.wordmark-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; letter-spacing: .005em; white-space: nowrap; }
.tagline { font-size: .8rem; color: var(--meta); padding-left: 1.25rem; border-left: 1px solid var(--rule); white-space: nowrap; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { font-size: .9rem; color: var(--text-2); text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.lang-switch { margin: 0; display: flex; gap: .4rem; font-size: .85rem; color: var(--meta); }
.lang-current { color: var(--ink); font-weight: 600; }
.main-nav .lang-switch a { font-size: inherit; color: var(--text-2); }
.menu-toggle { display: none; }

@media (max-width: 56rem) {
  .tagline { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
    background: none; border: 1px solid var(--rule); border-radius: 999px; padding: .45rem .9rem;
    font: 500 .875rem var(--sans); color: var(--ink); cursor: pointer;
  }
  .menu-icon, .menu-icon::before { display: block; width: 1rem; height: 1px; background: currentColor; position: relative; }
  .menu-icon::before { content: ""; position: absolute; top: 5px; }
  .menu-icon { transform: translateY(-3px); }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem;
    position: absolute; left: 0; right: 0; top: 5rem; z-index: 5;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 1.5rem var(--gutter) 2rem;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 1rem; }
  .main-nav.is-open ul a { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); }
  .main-nav.is-open .lang-switch { font-size: 1rem; gap: .6rem; padding-top: .5rem; border-top: 1px solid var(--rule); width: 100%; }
  .site-header { position: relative; }
}

/* ---------- page ---------- */
.page-head { padding-block: var(--space) calc(var(--space) * .6); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); max-width: 18ch; }
.page-head .lead { margin-top: 1.25rem; }
.prose { padding-bottom: var(--space); }
.prose > * { max-width: 40rem; }
.prose h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.5rem 0 1rem; line-height: 1.15; }
.prose p { color: var(--text-2); }

/* numbered sections (01/02/03), as in the reference */
.numbered { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); border-top: 1px solid var(--rule); }
.numbered > * { padding: 1.5rem 2rem 2rem 0; }
.numbered .n { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--navy); }
.numbered h2, .numbered h3 { font-family: var(--serif); font-size: 1.35rem; margin: .6rem 0 .4rem; }
.numbered p { font-size: .95rem; color: var(--text-2); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding-top: 3rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
.footer-wordmark { display: flex; align-items: center; gap: .75rem; }
.footer-mark { width: 2.25rem; height: 2.25rem; flex-shrink: 0; color: var(--navy); }
.footer-name { font-family: var(--serif); font-size: 1.4rem; margin: 0; }
.footer-h { font: 600 .8rem/1.4 var(--sans); color: var(--meta); margin-bottom: .6rem; }
.site-footer p, .site-footer li { margin: 0 0 .35rem; color: var(--text-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-block: 1.25rem; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color .15s ease; }
}
.footer-nav { margin-top: 1rem; }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 4.6rem); margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .9rem 2rem; margin: 0; }
.hero-media { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; background: var(--paper-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.placeholder-mark { width: 38%; color: var(--rule); }
@media (max-width: 48rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); }
}

.numbered { margin-bottom: var(--space); }
.numbered h2 a { text-decoration: none; }
.numbered h2 a:hover { text-decoration: underline; }

/* ---------- home: champion band ---------- */
.champion { background: var(--navy); color: var(--paper); padding-block: var(--space); }
.champion-inner { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.champion-kicker { grid-row: span 2; font-family: var(--serif); font-weight: 300; font-size: clamp(3.5rem, 10vw, 7.5rem); line-height: .9; margin: 0; color: #d9c6a5; }
.champion-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.25rem; }
.champion .display i { color: #e8dcc6; }
.champion .lead { color: #e2e6ea; max-width: 46ch; margin: 0; }
@media (max-width: 40rem) { .champion-inner { grid-template-columns: 1fr; } .champion-kicker { grid-row: auto; margin-bottom: 1rem; } }

/* ---------- hours ---------- */
.hours { border-collapse: collapse; width: 100%; max-width: 24rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.hours td { text-align: right; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--ink); }
.hours tr.is-today th::after { content: " ·"; color: var(--accent); }

/* ---------- home: visit band ---------- */
.visit-band { background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: var(--space); }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem 4rem; }
.section-title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.25rem; }
.address { font-size: 1.125rem; }

/* ---------- visit page ---------- */
.visit-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem 4rem; align-items: start; }
.prose > .visit-layout { max-width: none; }
.visit-layout h2:first-child { margin-top: 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--rule); margin-bottom: 1.5rem; display: block; }
.contact-list li { margin-bottom: .4rem; color: var(--text-2); }
@media (max-width: 48rem) { .visit-layout { grid-template-columns: 1fr; } }
.hours + .meta { margin-top: .9rem; }

/* ---------- home: customer quotes ---------- */
.voices { padding-block: var(--space); }
.voices-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.voices-head .section-title { margin: 0; }
.voices-head .meta { margin: 0; }
.voices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); border-top: 1px solid var(--rule); }
.voice { margin: 0; padding: 1.5rem 2rem 1rem 0; }
.voice blockquote { margin: 0 0 .9rem; font-family: var(--serif); font-weight: 300; font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.voice blockquote p { margin: 0; }
.voice figcaption { font-size: .875rem; color: var(--meta); }

/* ---------- visit: good to know ---------- */
.faq { margin: 0; }
.faq dt { font-weight: 600; color: var(--ink); margin-top: .9rem; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: .15rem 0 0; color: var(--text-2); }

/* ---------- story pages: numbered chapters ---------- */
.prose > .chapters { max-width: 54rem; }
.chapter { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; border-top: 1px solid var(--rule); padding-block: 2rem 1.5rem; }
.chapter .n { font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--navy); }
.chapter h2 { margin: 0 0 .8rem; }
.chapter p { max-width: 38rem; }
.see-also { margin-top: 1rem; }
@media (max-width: 40rem) { .chapter { grid-template-columns: 1fr; gap: .25rem; } }

/* ---------- lead photos ---------- */
.hero-media { aspect-ratio: 4 / 3; }
.hero-media img { object-position: 50% 60%; }
.page-head.has-media { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.page-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 48rem) {
  .page-head.has-media { grid-template-columns: 1fr; }
  .page-media { margin-inline: calc(var(--gutter) * -1); aspect-ratio: 16 / 10; }
}
.not-found h1 { max-width: 20ch; }
.not-found .lead { max-width: 52ch; }

/* ---------- small phones (WCAG 1.4.10 reflow at 320px): the header shrinks instead of overflowing ---------- */
.header-row { gap: clamp(.5rem, 3vw, 1.25rem); }
.wordmark { min-width: 0; }
.wordmark-name { font-size: clamp(1.2rem, 5vw, 1.55rem); }
.menu-toggle { flex-shrink: 0; }
@media (max-width: 22rem) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-toggle { padding: .6rem .7rem; }
}
