@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f3f5f4;
  --ink: #14171a;
  --quiet: #5b6468;
  --steel: #e4e8e7;
  --water: #1d5fd6;
  --water-wash: #dce7fb;
  --brew: #b4560f;
  --brew-wash: #fbe6d2;
  --on-water: #ffffff;
  --wrap: 68rem;
  --gutter: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111417;
    --ink: #f3f5f4;
    --quiet: #9aa4a9;
    --steel: #1c2126;
    --water: #9dbeff;
    --water-wash: #1b2b47;
    --brew: #f2a45c;
    --brew-wash: #3d2713;
    --on-water: #111417;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.62 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

a { color: var(--water); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .num {
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 70%;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 9vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin-top: 4.5rem; }
h3 { font-size: 1.55rem; font-weight: 700; margin-top: 2.25rem; }
p { margin: 1rem 0 0; max-width: 40rem; }
ul, ol { max-width: 40rem; padding-left: 1.25rem; }
li { margin-top: 0.4rem; }

.water { color: var(--water); }
.brew { color: var(--brew); }
.num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* header */
.top { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none;
  font: 760 1.6rem/1 "Archivo", system-ui, sans-serif; font-stretch: 70%; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.55rem; }
.top nav { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.top nav a { color: var(--quiet); }
.top nav a[aria-current="page"] { color: var(--ink); }

/* button */
.btn {
  display: inline-block; background: var(--water); color: var(--on-water); text-decoration: none;
  font-weight: 650; padding: 0.85rem 1.5rem; border-radius: 1.75rem; min-height: 3rem;
}
.btn:hover { filter: brightness(1.08); }
.note { color: var(--quiet); font-size: 0.95rem; }

/* hero */
.hero { display: grid; gap: 2.5rem; padding: 2rem 0 1rem; align-items: center; }
.hero p.lede { font-size: 1.25rem; line-height: 1.5; max-width: 34rem; }
.hero .cta { margin-top: 1.75rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.hero figure { margin: 0; justify-self: start; }
.shot { display: block; width: 100%; height: auto; border-radius: 1.75rem; border: 1px solid var(--steel); background: var(--steel); }
.hero .shot { max-width: 19rem; }

/* the one idea: a brew plan drawn to scale, like the progress bar in the app */
.plan { display: flex; gap: 0.3rem; margin-top: 2.5rem; height: 1.1rem; }
.plan span { border-radius: 0.55rem; background: var(--quiet); opacity: 0.55; min-width: 0.7rem; }
.plan span.p { background: var(--water); opacity: 1; }
.plan span.d { background: var(--brew); opacity: 1; }
.plan-cap { color: var(--quiet); font-size: 0.9rem; margin-top: 0.6rem; max-width: none; }
@media (prefers-reduced-motion: no-preference) {
  .plan { animation: pour 2.6s cubic-bezier(0.3, 0.1, 0.2, 1) 0.2s both; }
  @keyframes pour { from { clip-path: inset(0 100% 0 0 round 0.55rem); } to { clip-path: inset(0 0 0 0 round 0.55rem); } }
}

/* facts list */
.facts { display: grid; margin: 1.5rem 0 0; gap: 0; border-top: 1px solid var(--steel); }
.facts div { display: grid; gap: 0.15rem; padding: 0.85rem 0; border-bottom: 1px solid var(--steel); }
.facts dt { color: var(--quiet); font-size: 0.95rem; }
.facts dd { margin: 0; }

/* tables */
.scroll { overflow-x: auto; margin-top: 1.5rem; border-radius: 1.25rem; }
table { border-collapse: collapse; width: 100%; min-width: 38rem; font-size: 1rem; }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--steel); vertical-align: top; }
th { font-weight: 600; color: var(--quiet); font-size: 0.92rem; white-space: nowrap; }
td.r, th.r { text-align: right; }
td.r { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody th { color: var(--ink); font-size: 1rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--quiet); font-size: 0.92rem; margin-top: 0.5rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--steel); padding: 0.9rem 0; max-width: 44rem; }
.faq details:first-of-type { border-top: 1px solid var(--steel); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.1rem; }
.faq p { margin-top: 0.6rem; }

.compare td:first-child, .compare th:first-child { width: 34%; }

footer { margin-top: 5rem; padding: 2rem 0 3rem; border-top: 1px solid var(--steel); color: var(--quiet); font-size: 0.95rem; }
footer p { max-width: none; margin: 0.4rem 0 0; }
footer a { color: var(--quiet); }

.band { background: var(--water-wash); border-radius: 1.75rem; padding: 1.5rem; margin-top: 3rem; }
.band h2 { margin-top: 0; font-size: 2rem; }
.band .btn { margin-top: 1.25rem; }

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
  .hero { grid-template-columns: 1.25fr 1fr; gap: 4rem; padding-top: 3.5rem; }
  .hero figure { justify-self: end; }
  .facts div { grid-template-columns: 11rem 1fr; gap: 1.5rem; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .band { padding: 2.25rem; }
}

/* plan bar segments: flex-grow = seconds */
.plan .s10 { flex-grow: 10; }
.plan .s20 { flex-grow: 20; }
.plan .s35 { flex-grow: 35; }
table.narrow { min-width: 24rem; }
