/* Richmond Coffee Co · pre-launch site
   Palette and type from the Richmond Coffee Co moodboard. */

@font-face { font-family: "Bricolage"; src: url(/fonts/bricolage-grotesque-var.woff2) format("woff2-variations"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/dm-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/dm-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --pine: #1E3B2F;
  --pine-deep: #172E24;
  --roast: #1F1612;
  --steam: #E9ECE6;
  --paper: #F4F5F1;
  --mist: #A9BDB4;
  --crema: #C89B5A;
  --cherry: #B03E2B;
  --rust: #9C4A1A;
  --plum: #7A2E3A;
  --ink-soft: #4A5A52;

  --display: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--steam); color: var(--roast); font-family: var(--body); font-size: 18px; line-height: 1.55; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--crema); color: var(--roast); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--crema); color: var(--roast); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin: 0; }
h2, h3, .four-foot, .card-notes, .card-line, .cta p.lede { text-wrap: balance; }
p { text-wrap: pretty; }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.032em; line-height: 0.95; margin: 0; font-variation-settings: "opsz" 96; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.028em; line-height: 1; margin: 0; font-variation-settings: "opsz" 72; }
.rule-brass { height: 1px; background: linear-gradient(90deg, transparent, rgba(200,155,90,.65) 12%, rgba(200,155,90,.65) 88%, transparent); border: 0; margin: 0; }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 3; color: var(--steam); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; line-height: 1; }
.header-note { color: var(--crema); }
@media (max-width: 560px) { .header-note { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--pine); color: var(--steam); padding: clamp(120px, 12vw, 160px) 0 clamp(72px, 9vw, 110px); isolation: isolate; }
.hero-rings { position: absolute; z-index: -1; right: -18vw; top: 50%; width: max(1100px, 95vw); aspect-ratio: 1; transform: translateY(-46%); opacity: .9; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.hero .eyebrow { color: var(--crema); margin-bottom: 26px; display: flex; align-items: center; gap: 14px; }
.hero .eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--crema); }
.hero h1 { font-size: clamp(52px, 7.6vw, 104px); max-width: 12.5ch; }
.hero h1 em { font-style: normal; color: var(--crema); }
.hero-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 38ch; color: #DCE2DC; margin: 26px 0 0; }
.hero-stamp { justify-self: end; align-self: start; width: clamp(120px, 15vw, 190px); color: var(--crema); margin-top: 6px; }
.hero-form-wrap { margin-top: clamp(32px, 3.4vw, 44px); max-width: 620px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stamp { display: none; }
}

/* ---------- Waitlist form ---------- */
.waitlist { display: grid; gap: 14px; }
.field-row { display: flex; gap: 0; background: rgba(233,236,230,.06); border: 1px solid rgba(200,155,90,.7); border-radius: 999px; padding: 6px; transition: border-color .2s, background .2s; }
.field-row:focus-within { border-color: var(--crema); background: rgba(233,236,230,.10); }
.field-row input[type=email] { flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--steam); font: 500 17px/1 var(--body); padding: 14px 18px; }
.field-row input[type=email]::placeholder { color: rgba(233,236,230,.72); }
.btn { appearance: none; border: 0; cursor: pointer; border-radius: 999px; background: var(--crema); color: var(--roast); font: 600 16px/1 var(--body); letter-spacing: .01em; padding: 0 26px; min-height: 50px; white-space: nowrap; transition: background .2s, transform .2s; }
.btn:hover { background: #D6AC6E; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .field-row input:focus-visible, .consent input:focus-visible, a:focus-visible { outline: 2px solid var(--crema); outline-offset: 3px; }
.sunday a:focus-visible, .four a:focus-visible, .prose a:focus-visible { outline-color: var(--pine); }
.btn[disabled] { opacity: .65; cursor: progress; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #C9D2CC; padding: 0 8px; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--crema); }
.consent a { color: var(--steam); text-underline-offset: 3px; }
.form-msg { min-height: 1.5em; font-size: 15px; padding: 0 8px; margin: 0; }
.form-msg.ok { color: var(--steam); }
.form-msg.err { color: #F2B8A8; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.waitlist.done .field-row, .waitlist.done .consent, .waitlist.done .turnstile-slot { display: none; }
.waitlist.done .form-msg { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: var(--steam); padding: 6px 0 0; }
@media (max-width: 520px) {
  .field-row { flex-direction: column; border-radius: 18px; gap: 6px; }
  .btn { width: 100%; }
}

/* ---------- Sunday section (Richmond) ---------- */
.sunday { background: var(--paper); padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow: hidden; }
.sunday-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.sunday .eyebrow { color: var(--pine); margin-bottom: 22px; }
.sunday .h2 { color: var(--pine); }
.sunday-copy p { margin: 22px 0 0; max-width: 46ch; color: #2E2621; }
.sunday-copy p.sign { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.river { width: 100%; color: var(--pine); }
.river-caption { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .sunday-grid { grid-template-columns: 1fr; } .river-fig { order: -1; } }

/* ---------- The four ---------- */
.four { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .eyebrow { color: var(--pine); margin-bottom: 18px; }
.section-head p.aside { max-width: 36ch; margin: 0; color: var(--ink-soft); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.card { position: relative; background: #fff; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; min-height: 330px; box-shadow: 0 1px 0 rgba(31,22,18,.06), 0 14px 30px -24px rgba(31,22,18,.3); }
.card-top { background: var(--accent); color: var(--steam); padding: 24px 24px 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.card-top svg.rings { position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; opacity: .35; }
.card-top .eyebrow { color: rgba(233,236,230,.85); font-size: 11px; position: relative; }
.card-name { font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: .95; margin: 0; position: relative; font-variation-settings: "opsz" 72; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-origin { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pine); margin: 0; }
.card-notes { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.card-line { margin: auto 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.tag { position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(233,236,230,.7); color: var(--steam); padding: 4px 8px; border-radius: 99px; }
.four-foot { margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ---------- How it works ---------- */
.how { background: var(--roast); color: var(--steam); padding: clamp(80px, 11vw, 130px) 0; }
.how .eyebrow { color: var(--crema); margin-bottom: 18px; }
.steps { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: s; }
.steps li { border-top: 1px solid rgba(200,155,90,.55); padding-top: 22px; counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; color: var(--crema); margin-bottom: 18px; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 10px; }
.steps p { margin: 0; color: #CFC7C1; font-size: 17px; max-width: 32ch; }
.how-close { margin: clamp(40px, 5vw, 60px) 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.01em; color: var(--crema); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--pine); color: var(--steam); padding: clamp(90px, 12vw, 150px) 0; text-align: center; isolation: isolate; }
.cta-rings { position: absolute; z-index: -1; left: 50%; top: 50%; width: max(1200px, 110vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.cta .eyebrow { color: var(--crema); margin-bottom: 22px; }
.cta h2 { font-size: clamp(44px, 7vw, 92px); max-width: 14ch; margin: 0 auto; }
.cta .stripe { width: 70px; height: 6px; background: var(--cherry); margin: 30px auto 0; }
.cta p.lede { margin: 26px auto 0; max-width: 40ch; color: #DCE2DC; }
.cta .hero-form-wrap { margin: 40px auto 0; text-align: left; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-deep); color: #BFCBC4; padding: 56px 0 44px; font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { display: flex; gap: 16px; align-items: center; color: var(--steam); }
.foot-brand .brand-name { font-size: 24px; }
.foot-brand .tagline { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--crema); margin-top: 6px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--steam); text-underline-offset: 4px; }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(169,189,180,.2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #9FB0A7; }
.legal p { margin: 0; }

/* ---------- Prose pages (privacy, thanks) ---------- */
.page-top { background: var(--pine); color: var(--steam); padding: 130px 0 70px; position: relative; overflow: hidden; isolation: isolate; }
.page-top .hero-rings { opacity: .6; }
.page-top .eyebrow { color: var(--crema); margin-bottom: 18px; }
.page-top h1 { font-size: clamp(44px, 7vw, 80px); }
.prose { padding: 64px 0 100px; }
.prose .wrap { max-width: 780px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.015em; color: var(--pine); margin: 44px 0 10px; }
.prose p, .prose li { color: #2E2621; }
.prose a { color: var(--pine); text-underline-offset: 3px; }
.prose .meta { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
