:root {
  --paper: #f3f7f5;
  --mineral: #d5e6df;
  --steam: #c9d8e4;
  --sap: #c6f531;
  --resin: #10241c;
  --resin-mid: #1c4a34;
  --ink: #10241c;
  --font: "General Sans", "Avenir Next", "Segoe UI", sans-serif;
  --margin: clamp(16px, 2vw, 28px);
  --step-small: clamp(0.875rem, 0.84rem + 0.12vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(64px, 6.4vw, 100px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.45;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  margin: 0;
}

p { margin: 0 0 1rem; }

button, input, select, textarea { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: var(--margin);
  top: -4rem;
  background: var(--sap);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  z-index: 80;
}

.skip:focus { top: 0.6rem; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.disclaimer {
  background: var(--resin);
  color: var(--paper);
  font-size: var(--step-small);
  line-height: 1.45;
  padding: 0.75rem var(--margin);
}

.disclaimer a { color: var(--sap); }

.site-header {
  position: relative;
  z-index: 2;
  background: var(--paper);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
  padding: 0.6rem var(--margin);
}

.logo { order: 1; }
.nav-panel { order: 2; }
.cart-link { order: 3; }
.burger { order: 4; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  font-size: var(--step-body);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cart-link span { margin-left: 0.35rem; }

.logo-mark { width: 22px; height: 22px; flex: none; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-panel a {
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step-body);
}

.nav-panel a[aria-current="page"] { background: var(--sap); }

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.7rem 1.1rem;
  background: var(--sap);
  color: var(--ink);
  text-decoration: none;
  border: 0;
  border-radius: 0;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover { background: var(--resin); color: var(--paper); }

.btn-ink {
  background: var(--resin);
  color: var(--paper);
}

.btn-ink:hover { background: var(--sap); color: var(--ink); }

.header-bar .cart-link {
  margin-left: 0.4rem;
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  padding: 0.35rem 0.15rem;
}

.header-bar .cart-link:hover { background: transparent; color: var(--resin-mid); }

.header-bar .cart-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  margin-left: 0.4rem;
  background: var(--sap);
  color: var(--ink);
}

.nav-panel a { padding: 0.35rem 0.15rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 2.2rem var(--margin) 3rem;
  background: var(--paper);
}

.hero-copy { max-width: 34rem; }

.hero-photo {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
}

.hero h1 { font-size: var(--step-head); max-width: 14ch; letter-spacing: -0.03em; }

.hero .lede {
  font-size: 1.1875rem;
  max-width: 34ch;
  margin-top: 1.25rem;
}

.showcase {
  background: var(--mineral);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem var(--margin);
}

.showcase img {
  width: min(100%, 640px);
  aspect-ratio: 1;
  object-fit: cover;
  justify-self: center;
}

.showcase-copy { display: flex; flex-direction: column; min-height: 70%; justify-content: space-between; gap: 2rem; }

.showcase h2 { font-size: var(--step-head); max-width: 12ch; }

.showcase p { max-width: 38ch; font-size: var(--step-body); }

.pair { display: grid; grid-template-columns: 1fr 1fr; }

.pair a {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  text-decoration: none;
  font-weight: 700;
  background: var(--resin);
  color: var(--paper);
}

.pair a:last-child { background: var(--paper); color: var(--ink); }

.pair a:hover { background: var(--sap); color: var(--ink); }

.method { background: var(--paper); padding: 4.5rem var(--margin) 0; }

.method-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: end;
}

.method-intro h2 { font-size: var(--step-head); max-width: 10ch; }

.method-intro p { max-width: 42ch; margin: 0; }

.stage-row {
  display: flex;
  height: 520px;
  position: relative;
}

.stage-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.stage {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: flex-grow 450ms ease;
}

.stage-cup { background: #071611; color: var(--paper); }
.stage-wait { background: var(--resin-mid); color: var(--paper); }
.stage-vapor { background: var(--sap); color: var(--ink); }

#st-cup:checked ~ .stage-cup,
#st-wait:checked ~ .stage-wait,
#st-vapor:checked ~ .stage-vapor { flex-grow: 4.2; }

.stage > label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.4rem;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--step-body);
}

.stage > label span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.stage-open {
  display: none;
  height: 100%;
  padding: 1.6rem;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-content: space-between;
}

#st-cup:checked ~ .stage-cup > label,
#st-wait:checked ~ .stage-wait > label,
#st-vapor:checked ~ .stage-vapor > label { display: none; }

#st-cup:checked ~ .stage-cup .stage-open,
#st-wait:checked ~ .stage-wait .stage-open,
#st-vapor:checked ~ .stage-vapor .stage-open {
  display: grid;
}

.stage-open h3 { font-size: var(--step-lead); }

.stage-open p { max-width: 36ch; margin: 0; }

.stage-open img {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  align-self: stretch;
}

.catalog {
  background: var(--paper);
  padding: 5rem var(--margin) 4rem;
}

.menu-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.6rem;
}

.menu-head h2 { font-size: var(--step-head); }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4rem;
  row-gap: 2.25rem;
}

.menu-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  grid-template-areas:
    "pic name price"
    "pic sum sum"
    "pic add add";
  column-gap: 1.15rem;
  row-gap: 0.35rem;
  align-items: start;
}

.menu-item img {
  grid-area: pic;
  width: 112px;
  height: 112px;
  object-fit: cover;
}

.menu-item h3 { grid-area: name; font-size: var(--step-body); line-height: 1.15; }
.menu-item strong { grid-area: price; font-size: var(--step-body); }

.menu-item h3 a { text-decoration: none; }

.menu-item .sum { grid-area: sum; max-width: 38ch; margin: 0; }

.menu-item .add {
  grid-area: add;
  justify-self: start;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
}

.about {
  background: var(--resin);
  color: var(--paper);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  padding: 4rem var(--margin);
  align-items: center;
}

.about h2 { font-size: var(--step-head); max-width: 12ch; position: relative; z-index: 1; }

.about h2,
.about-side { position: relative; z-index: 1; }

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2rem; padding-top: 0.4rem; }

.about-side h3 { font-size: var(--step-lead); margin-bottom: 0.45rem; }

.about-side p { max-width: 36ch; }

.quote-spread {
  background: var(--steam);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem var(--margin);
  gap: 0.45em;
}

.spread-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 700;
  font-size: var(--step-head);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.spread-phone { display: none; }

.quote-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step-body);
  font-weight: 500;
  margin-top: 2rem;
}

.faq-block {
  background: var(--paper);
  padding: 5rem var(--margin);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 2rem;
  align-items: start;
}

.faq-layout h2 { font-size: var(--step-head); }

.tiles { display: grid; gap: 8px; }

.tile { background: var(--mineral); }

.tile[open] { background: var(--sap); }

.tile summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 1rem 1.4rem;
  cursor: pointer;
  font-weight: 500;
  font-size: var(--step-body);
  line-height: 1.3;
  list-style: none;
}

.tile summary::-webkit-details-marker { display: none; }

.plus {
  width: 16px;
  height: 16px;
  position: relative;
  flex: none;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: currentColor;
  left: 0;
  top: 6.5px;
  width: 16px;
  height: 3px;
}

.plus::after {
  left: 6.5px;
  top: 0;
  width: 3px;
  height: 16px;
}

.tile[open] .plus::after { transform: rotate(90deg); }

.tile p {
  max-width: 52ch;
  padding: 0 1.4rem 1.2rem;
  margin: 0;
}

.contact-band {
  background: var(--sap);
  color: var(--ink);
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: drift 48s linear infinite;
}

.marquee img { height: 150px; width: auto; object-fit: cover; }

.marquee img.sq { width: 150px; }
.marquee img.wide { width: 225px; }
.marquee img.tall { width: 112px; }

.contact-band h2 {
  font-size: var(--step-head);
  margin: 3rem var(--margin) 1.4rem;
}

.mail-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 var(--margin);
}

.mail-bar input,
.mail-bar button {
  min-height: 96px;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  text-align: center;
  padding: 0.6rem 1rem;
}

.mail-bar button { background: var(--resin); color: var(--paper); font-weight: 700; cursor: pointer; }

.mail-bar input:focus { background: var(--white, #fff); }

.fine {
  font-size: var(--step-small);
  margin: 0.8rem var(--margin) 0;
  max-width: 62ch;
}

.site-footer {
  background: var(--resin);
  color: var(--paper);
  padding: 2.5rem var(--margin) 2rem;
  display: flex;
  flex-direction: column;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-notes { max-width: 46ch; font-size: var(--step-small); }

.footer-notes a { color: var(--sap); }

.footer-top .text-link { color: var(--paper); font-weight: 500; }

.footer-mail {
  margin-top: auto;
  padding-top: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-size: var(--step-head);
  max-width: 100%;
  text-decoration: none;
  color: var(--paper);
  display: block;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
  font-size: var(--step-small);
}

.footer-meta a { color: var(--paper); }

.page {
  background: var(--paper);
  padding: 3.5rem var(--margin) 4rem;
}

.page-steam { background: var(--steam); }
.page-mineral { background: var(--mineral); }
.page-resin { background: var(--resin); color: var(--paper); }

.page h1 { font-size: var(--step-head); max-width: 16ch; margin-bottom: 1rem; }

.lede { font-size: var(--step-lead); max-width: 36ch; line-height: 1.25; }

.prose { max-width: 920px; }
.prose p,
.prose li,
.prose h2 { max-width: 68ch; }

.prose h2 { font-size: var(--step-head); margin: 2.2rem 0 0.8rem; }

.prose li { margin: 0 0 0.45rem; }

.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }

.spec { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; }

.spec th, .spec td { text-align: left; padding: 0.7rem 0.4rem; vertical-align: top; }

.spec th { font-weight: 700; width: 34%; }

.note {
  background: var(--mineral);
  padding: 1rem 1.1rem;
  max-width: 68ch;
}

.page-resin .note { background: var(--resin-mid); color: var(--paper); }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.product img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.price-lg { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.03em; line-height: 0.9; margin: 0.6rem 0; }

.crumbs { margin-bottom: 1rem; }

.crumbs a { text-decoration: none; }

.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }

.text-link { font-weight: 700; }

.subhead { margin-top: 3rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 1rem 0 1.2rem;
}

.form-grid label,
.stack-form label { display: grid; gap: 0.35rem; font-weight: 500; }

.wide-field { grid-column: 1 / -1; }

input, select, textarea {
  background: var(--mineral);
  border: 0;
  border-radius: 0;
  min-height: 52px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

textarea { min-height: 120px; resize: vertical; }

.page-steam input,
.page-steam select,
.page-steam textarea,
.page-mineral input,
.page-mineral select,
.page-mineral textarea { background: var(--paper); }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.order-card { background: var(--mineral); padding: 1.2rem; }

.sum-lines, .sum-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.sum-lines { list-style: none; padding: 0; margin: 0 0 1rem; flex-direction: column; }

.sum-lines li, .sum-row { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 0.45rem; }

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.cart-line img { width: 96px; height: 96px; object-fit: cover; }

.qty { display: flex; align-items: center; gap: 0.6rem; margin: 0.4rem 0; }

.qty button {
  width: 36px;
  height: 36px;
  background: var(--sap);
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.field-error { color: var(--ink); background: var(--sap); padding: 0.6rem 0.7rem; }

.cookie-modal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
}

.cookie-modal[hidden] { display: none; }

body:has(.cookie-modal:not([hidden])) { padding-bottom: 7.5rem; }

.cookie-window {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--resin);
  color: var(--paper);
  padding: 1rem var(--margin);
  box-shadow: 0 -12px 32px rgb(7 22 17 / 28%);
}

.cookie-window p { margin: 0; max-width: 70ch; font-size: var(--step-small); }

.cookie-window a { color: var(--sap); }

.cookie-actions { display: flex; gap: 0.5rem; }

.cookie-window .btn { background: var(--sap); color: var(--ink); }

.cookie-window .btn-ghost {
  background: transparent;
  color: var(--paper);
}

.thanks-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--resin);
  display: grid;
  place-items: center;
  padding: var(--margin);
}

.thanks-modal[hidden] { display: none; }

.thanks-window {
  background: var(--paper);
  color: var(--ink);
  padding: 2rem;
  max-width: 36rem;
  width: min(100%, 36rem);
  position: relative;
}

.thanks-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--sap);
  cursor: pointer;
  font-size: 1.4rem;
}

.ingredient-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
}

.ingredient-list h3 { font-size: var(--step-lead); margin-bottom: 0.35rem; }

.voices { display: grid; gap: 2.2rem; margin-top: 2rem; }

.voices p { font-size: var(--step-lead); line-height: 1.25; max-width: 28ch; }

@media (prefers-reduced-motion: no-preference) {
  .showcase img {
    animation: shutter 1.1s ease both;
  }
}

@keyframes shutter {
  from { clip-path: inset(0 100% 0 0); transform: scale(1.12); }
  to { clip-path: inset(0); transform: scale(1); }
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .burger { display: flex; }

  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.4rem var(--margin) 1rem;
    gap: 0.8rem;
  }

  .nav-toggle:checked ~ .nav-panel { display: flex; }

  .header-bar { flex-wrap: wrap; }

  .cart-link { margin-left: auto; }

  .hero { grid-template-columns: 1fr; padding-top: 1.25rem; }

  .hero-photo { order: -1; height: 240px; }

  .cookie-window { flex-direction: column; align-items: stretch; padding: 0.75rem var(--margin); }

  .hero-copy { max-width: none; }

  .showcase, .method-intro, .about, .faq-layout, .product, .checkout-layout, .menu-grid, .ingredient-list, .form-grid {
    grid-template-columns: 1fr;
  }

  .showcase { min-height: 0; }

  .pair { grid-template-columns: 1fr; }

  .stage-row { flex-direction: column; height: auto; }

  .stage { flex: none !important; min-height: 64px; }

  .stage > label {
    position: relative;
    inset: auto;
    min-height: 64px;
    align-items: center;
  }

  .stage > label span { writing-mode: horizontal-tb; transform: none; }

  #st-cup:checked ~ .stage-cup .stage-open,
  #st-wait:checked ~ .stage-wait .stage-open,
  #st-vapor:checked ~ .stage-vapor .stage-open {
    display: block;
    height: auto;
  }

  .stage-open img { display: none; }

  .about { padding: 2rem var(--margin); }

  .spread-desk { display: none; }

  .spread-phone { display: flex; flex-direction: column; gap: 0.35em; }

  .quote-meta { flex-direction: column; }

  .faq-layout h2 { position: static; }

  .mail-bar { grid-template-columns: 1fr; }

  .mail-bar input, .mail-bar button { min-height: 60px; }

  .marquee img { height: 110px; }

  .footer-meta, .footer-top, .quote-meta { flex-direction: column; }

  .menu-item { grid-template-columns: 84px 1fr auto; }

  .menu-item img { width: 84px; height: 84px; }

  .cart-line { grid-template-columns: 72px 1fr; }

  .line-total { grid-column: 2; }

  .cookie-window { flex-direction: column; align-items: stretch; }

  body:has(.cookie-modal:not([hidden])) { padding-bottom: 13rem; }

  .cookie-actions { width: 100%; }

  .cookie-actions .btn { flex: 1; }
}
