/* ---------------------------------------------------------
   ORIGIN ROASTERS — specialty coffee
   --------------------------------------------------------- */
:root {
  --cream: #f3ebdf;
  --cream-2: #ebe0d0;
  --ink: #2a1d17;
  --ink-2: #46352b;
  --muted: #7d6a5d;
  --rust: #b4552f;
  --olive: #5c5f46;
  --line: rgba(42, 29, 23, 0.18);
  --line-soft: rgba(42, 29, 23, 0.09);
  --font-display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
.hero-media img, .card img, .split-media img, .band img, .post img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--cream); padding: 12px 18px; z-index: 300; }
.skip-link:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.05; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); line-height: 1.75; }
.muted { color: var(--muted); }
.serif-italic { font-style: italic; color: var(--rust); }
.dek { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 2px; border: 1px solid var(--ink);
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  background: transparent; color: var(--ink);
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--rust); border-color: var(--rust); }
.btn-accent { background: var(--rust); border-color: var(--rust); color: #fff; }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); }
.btn-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 10px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
  transition: gap .2s ease, border-color .2s ease;
}
.link-arrow:hover { gap: 14px; border-color: var(--rust); color: var(--rust); }

/* ---------- header ---------- */
.announce { background: var(--ink); color: #e6dccd; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 36px; flex-wrap: wrap; text-align: center; }
.announce .dot { width: 3px; height: 3px; background: rgba(230,220,205,.4); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(243,235,223,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block: 18px 14px; }
.brand { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.02em; line-height: 1; color: var(--ink); display: inline-flex; align-items: baseline; gap: 8px; }
.brand b { font-weight: 400; }
.brand em { font-style: normal; color: var(--rust); }
.brand small { font-family: var(--font-body); font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.nav { display: flex; align-items: center; gap: 28px; padding-bottom: 6px; }
.nav a { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--rust); border-bottom-color: var(--rust); }
.header-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 2px; }
.nav-toggle { display: none; width: 38px; height: 34px; border: 1px solid var(--line); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 14px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 14px; height: 1.5px; background: var(--ink); }
.nav-toggle span::before { top: -4px; } .nav-toggle span::after { top: 4px; }
.header-rule { border-top: 3px double var(--ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 5vw, 66px) 0 clamp(30px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 4vw, 56px); align-items: start; }
.hero h1 { margin: 16px 0 22px; }
.hero h1 em { font-style: italic; color: var(--rust); }
.hero .dek { max-width: 34ch; }
.hero-meta { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-meta div strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.hero-meta div span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-media { position: relative; }
.hero-media .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.hero-media figcaption { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }

/* ---------- sections ---------- */
.section { padding: clamp(50px, 6vw, 88px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; padding-bottom: 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.section-head h2 { margin-top: 8px; }
.section-head p { max-width: 44ch; color: var(--muted); margin: 8px 0 0; }

/* ---------- origins cards ---------- */
.origins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.origin { display: block; }
.origin .thumb { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--cream-2); position: relative; }
.origin .thumb img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.origin:hover .thumb img { transform: scale(1.04); }
.origin .no { position: absolute; top: 12px; left: 12px; background: var(--cream); font-size: 10px; letter-spacing: 0.14em; padding: 4px 8px; }
.origin .body { padding-top: 18px; }
.origin h3 { margin-bottom: 6px; }
.origin .notes { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rust); margin-bottom: 8px; }
.origin p { font-size: 14px; color: var(--muted); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 68px); align-items: center; }
.split-media { aspect-ratio: 4 / 3.6; overflow: hidden; }
.split-copy h2 { margin: 12px 0 16px; }
.stats { display: flex; gap: 36px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stats div strong { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.stats div span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- brew steps ---------- */
.brew { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.brew-step { padding: 26px 24px 0 0; border-right: 1px solid var(--line-soft); }
.brew-step:last-child { border-right: 0; }
.brew-step .n { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--rust); display: block; margin-bottom: 12px; }
.brew-step h3 { font-size: 20px; margin-bottom: 6px; }
.brew-step p { font-size: 13.5px; color: var(--muted); }

/* ---------- band ---------- */
.band { position: relative; height: clamp(320px, 48vh, 500px); overflow: hidden; }
.band img { position: absolute; inset: 0; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42,29,23,.82), rgba(42,29,23,.15)); }
.band .wrap { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-bottom: 40px; }
.band blockquote { margin: 0; max-width: 30ch; color: #fdf8f1; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.15; }
.band cite { display: block; margin-top: 16px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(253,248,241,.72); font-style: normal; }

/* ---------- journal ---------- */
.journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post .thumb { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 14px; }
.post .date { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); }
.post h3 { font-size: 22px; margin: 8px 0; }
.post p { font-size: 14px; color: var(--muted); }

/* ---------- newsletter ---------- */
.newsletter { background: var(--cream-2); padding: clamp(44px, 6vw, 76px) 0; }
.newsletter .wrap { display: grid; grid-template-columns: 1fr 0.9fr; gap: 40px; align-items: center; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-row input { flex: 1 1 220px; }
.form-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cdbfae; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 34px; }
.footer-brand .brand { color: var(--cream); font-size: 26px; }
.footer-brand p { font-size: 13px; color: #a3927f; margin-top: 14px; max-width: 32ch; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-body); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #8a7868; margin-bottom: 14px; font-weight: 500; }
.footer-col a { display: block; font-size: 13px; line-height: 2.05; color: #cdbfae; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 11.5px; color: #8a7868; }
.pay-line { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.pay-line span { font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.pay-line b { color: #cdbfae; font-weight: 400; }

/* ---------- content pages ---------- */
.page-hero { padding: clamp(40px, 5vw, 68px) 0 clamp(26px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 14px 0 16px; max-width: 20ch; }
.page-hero .lead { max-width: 60ch; }
.breadcrumb { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.meta-pill { display: inline-block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line); padding: 5px 12px; margin-top: 16px; color: var(--muted); }

.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); padding-block: clamp(36px, 5vw, 56px) clamp(56px, 7vw, 88px); align-items: start; }
.toc { position: sticky; top: 120px; border-top: 3px double var(--ink); padding-top: 14px; }
.toc h4 { font-family: var(--font-body); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.toc a { display: block; font-size: 12.5px; padding: 5px 0; color: var(--muted); }
.toc a:hover { color: var(--rust); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); margin: 40px 0 12px; scroll-margin-top: 120px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--rust); border-bottom: 1px solid rgba(180,85,47,.35); }
.prose strong { color: var(--ink); font-weight: 500; }
.callout { background: var(--cream-2); border-left: 3px solid var(--rust); padding: 20px 24px; margin: 26px 0; font-size: 14.5px; color: var(--ink-2); }
.callout p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 60px); padding-block: clamp(40px, 5vw, 60px) clamp(56px, 7vw, 88px); align-items: start; }
.contact-cards { display: grid; gap: 0; border-top: 3px double var(--ink); }
.contact-card { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-card h3 { font-family: var(--font-body); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; font-weight: 500; color: var(--muted); }
.contact-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.contact-card a { color: var(--rust); border-bottom: 1px solid rgba(180,85,47,.3); }
.form-card { border: 1px solid var(--line); padding: clamp(24px, 4vw, 38px); background: #fbf6ee; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0;
  background: var(--cream); font: inherit; font-size: 14px; color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 2px rgba(180,85,47,.16); }
.form-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.form-note a { text-decoration: underline; }

details.acc { border-bottom: 1px solid var(--line); }
details.acc summary { cursor: pointer; padding: 18px 0; font-family: var(--font-display); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; color: var(--rust); font-size: 18px; }
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 0 18px; font-size: 14.5px; color: var(--ink-2); max-width: 66ch; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--line); padding: 5px 11px; color: var(--ink-2); }
.note-box { background: var(--cream-2); border-left: 3px solid var(--rust); padding: 22px 26px; font-size: 13.5px; color: var(--ink-2); margin-top: 30px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); background: var(--ink); color: var(--cream); padding: 13px 22px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 300; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 32px 18px; border-bottom: 1px solid var(--line);
  }
  .site-header.menu-open .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .frame { aspect-ratio: 16 / 10; }
  .origins { grid-template-columns: 1fr 1fr; }
  .split, .newsletter .wrap, .contact-grid, .legal-layout { grid-template-columns: 1fr; }
  .brew { grid-template-columns: 1fr 1fr; }
  .brew-step { border-right: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; }
  .journal { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc a { display: inline-block; margin-right: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .origins { grid-template-columns: 1fr; }
  .brew { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .announce .wrap { gap: 8px; font-size: 9.5px; }
  .announce .dot { display: none; }
  .header-actions .btn { display: none; }
  .brand { font-size: 24px; }
}
