/* ---------- Self-hosted Archivo ----------
   Served from our own origin rather than fonts.gstatic.com: loading fonts
   from Google sends every visitor's IP to Google before they have done
   anything on the page. Subset to Latin and served as WOFF2 — 74KB for all
   five faces, against 558KB of TTF. Regenerate with tools/make-fonts.py. */
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo Black';
  src: url('/fonts/archivo-black-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Listing pages: /roasters, /roasters/:slug, /cafes, /cafes/:slug.
   Deliberately a separate sheet from styles.css so the landing page cannot be
   affected. Same tokens, same type: navy, cream, Archivo. Mobile-first. */

:root {
  --navy: #002857;
  --navy-deep: #00203f;
  --navy-hover: #013a78;
  --cream: #EFDAB2;
  --cream-hover: #f6e6c6;
  --paper: #FAF5EA;             /* body ground: warm, lighter than cream so long text reads */
  --card: #FFFFFF;
  --ink: #1A1A1A;
  --ink-muted: #6B6B6B;
  --rule: rgba(0, 40, 87, 0.14);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.listing {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-hover); }

h1, h2, h3 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
}

.wrap { max-width: 880px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- top bar ---------- */
.top {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 24px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}
.logo__o { display: inline-block; font-size: 0.6em; transform: translateY(-0.52em); }
.top__nav { display: flex; gap: 18px; }
.top__nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.top__nav a:hover { color: var(--cream); }

/* ---------- hero (navy band) ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  padding: 28px 0 40px;
}
.hero--index { padding-bottom: 34px; }
.hero--plain { background: transparent; color: var(--ink); padding: 60px 0; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
}
.hero--plain .eyebrow { color: var(--navy); }
.hero h1 {
  font-size: clamp(30px, 8vw, 52px);
  line-height: 1.02;
  color: var(--cream);
  text-wrap: balance;
}
.hero--plain h1 { color: var(--navy); font-size: clamp(26px, 6vw, 40px); }
.hero__address { margin: 12px 0 0; font-size: 16px; color: rgba(255,255,255,0.86); }
.hero__links { margin: 12px 0 0; font-size: 15px; }
.hero__links a { color: var(--cream); }
.sep { margin: 0 10px; opacity: 0.5; }
.lede {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
}
.hero--plain .lede { color: var(--ink-muted); }

/* ---------- sections ---------- */
.section { padding: 32px 20px 8px; }
.section__title {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px;
}
.muted { color: var(--ink-muted); }

/* ---------- labelled fields ---------- */
.fields {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.f { min-width: 0; }
.f--wide { grid-column: 1 / -1; }
.f dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 4px;
}
.f dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.f__unstated, dd.f__unstated { font-weight: 400; font-style: italic; color: var(--ink-muted); }
.hours { white-space: pre-line; font-weight: 500; }
.verified { font-weight: 500; }
.fields--cafe {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px;
}

/* ---------- beans ---------- */
.beans { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bean {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 18px 16px;
}
.bean__name { font-size: 20px; color: var(--navy); margin-bottom: 12px; }
.bean__blend {
  margin: -4px 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.bean__notes { margin-top: 14px; }
.bean__desc { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: rgba(0, 40, 87, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- link lists ---------- */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.index { list-style: none; margin: 0; padding: 0; }
.index li { border-top: 1px solid var(--rule); }
.index li:last-child { border-bottom: 1px solid var(--rule); }
.index a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--ink);
}
.index a:hover { background: var(--cream-hover); }
.index__name { font-weight: 600; font-size: 16px; color: var(--navy); }
.index__meta { font-size: 13px; color: var(--ink-muted); }

/* ---------- notice (the takedown route) ---------- */
.notice {
  margin: 32px 0 8px;
  padding: 16px 18px;
  border-left: 3px solid var(--cream);
  background: var(--cream-hover);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.notice p { margin: 0; }

/* ---------- footer (waitlist link, not pushy) ---------- */
.foot {
  margin-top: 48px;
  background: var(--navy);
  color: rgba(255,255,255,0.86);
  padding: 34px 0 30px;
}
.foot__waitlist { margin: 0; font-size: 16px; line-height: 1.55; max-width: 52ch; }
.foot__waitlist a { color: var(--cream); font-weight: 700; text-decoration: none; }
.foot__waitlist a:hover { text-decoration: underline; }
.foot__small { margin: 18px 0 0; font-size: 12px; color: rgba(255,255,255,0.55); }
.foot__small a { color: inherit; }

/* Registered-company block. Quiet, but present on every page: the legal
   entity, its company number and its registered office. */
.foot__legal {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(239,218,178,0.16);
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  max-width: 62ch;
}
.foot__legal p { margin: 0 0 5px; }
.foot__legal strong { font-weight: 600; color: rgba(255,255,255,0.72); }
.foot__legal a { color: rgba(239,218,178,0.78); }
.foot__legal a:hover { color: var(--cream); }
.foot__legal p.foot__nav { margin-top: 11px; }

.btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 8px;
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .top { padding: 22px 32px; }
  .hero { padding: 40px 0 52px; }
  .section { padding-top: 40px; }
  .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fields--cafe { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 26px; }
  .bean { padding: 22px 22px 20px; }
  .index a { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; }
}
