:root {
  --paper: #FCFCFB; --ink: #1E2429; --soft: #58636A; --line: #DCE2E6; --mist: #EEF2F4;
  --glaze: #2A4E8C; --on-glaze: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #14181B; --ink: #E9EDEF; --soft: #9CA8AF; --line: #2B343A; --mist: #1C2227; --glaze: #8FB0E8; --on-glaze: #10161C; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); overflow-wrap: anywhere;
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; }
h1, h2, h3, .brand, .tea strong { font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, serif; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .6rem; max-width: 24ch; }
h2 { font-size: 1.35rem; line-height: 1.25; margin: 2.2rem 0 .5rem; }
p { max-width: 62ch; }
a { color: var(--glaze); text-underline-offset: 3px; }
a:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--glaze); outline-offset: 2px; border-radius: 4px; }
svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 5; }

.top { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 12px 24px; align-items: center;
  padding: 14px 5%; border-bottom: 1px solid var(--line); }
.top > * { min-width: 0; }
.brand { font-size: 1.3rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.find { display: flex; gap: 8px; max-width: 520px; width: 100%; justify-self: end; }
.find input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.find button, .btn { font: inherit; font-weight: 600; padding: 10px 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--glaze); color: var(--on-glaze); text-decoration: none; display: inline-block; }
.btn[aria-disabled="true"] { opacity: .5; cursor: default; }
nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--glaze); }
main { max-width: 980px; margin: 28px auto 56px; padding: 0 5%; }
.lede { font-size: 1.15rem; color: var(--soft); }
footer { border-top: 1px solid var(--line); padding: 22px 5%; color: var(--soft); font-size: .92rem; }
footer p { margin: .2rem 0; max-width: none; }

.teas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2px 28px; }
.tea { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 8px;
  color: var(--ink); text-decoration: none; border-radius: 10px; }
.tea:hover { background: var(--mist); }
.tea strong { font-size: 1.05rem; }
.tea .origin { display: block; color: var(--soft); font-size: .9rem; }
.price { font-variant-numeric: tabular-nums; font-weight: 600; }
.cup { display: block; flex: none; }
img.cup { border-radius: 12px; object-fit: cover; }
.pdp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0; }
.note { background: var(--mist); border-radius: 12px; padding: 16px 20px; margin: 22px 0; max-width: 62ch; }
.note p { margin: .3rem 0; }
.row { padding: 12px 0; border-top: 1px solid var(--line); }
.soft { color: var(--soft); }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-top: 1px solid var(--line); }
.posts time { color: var(--soft); white-space: nowrap; font-size: .92rem; }

.builder { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.picks ul { list-style: none; margin: 0; padding: 0; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 12px; border-radius: 10px; }
.line.picked { background: var(--mist); }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who .name { display: block; font-weight: 600; }
.who .each { display: block; color: var(--soft); font-size: .88rem; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; flex: none; }
.qty button { width: 36px; height: 36px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.2rem; cursor: pointer; border-radius: 8px; }
.qty button:hover { background: var(--mist); }
.qty input { width: 2.6rem; height: 36px; border: 0; background: none; color: var(--ink); font: inherit; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.summary { position: sticky; top: 16px; background: var(--mist); border-radius: 12px; padding: 18px 20px; }
.summary h2 { margin-top: 0; }
.summary ul { list-style: none; margin: 0 0 12px; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.summary .total { display: flex; justify-content: space-between; font-size: 1.1rem; margin: 12px 0 4px; }
.summary .soft, .summary small { color: var(--soft); font-size: .9rem; }
.summary .btn { width: 100%; text-align: center; margin: 12px 0; }
.summary textarea { width: 100%; margin-top: 8px; font: inherit; font-size: .9rem; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }

@media (max-width: 760px) {
  .top, .pdp, .teas, .builder { grid-template-columns: minmax(0, 1fr); }
  .find { max-width: none; justify-self: stretch; }
  .summary { position: static; }
}
@media (prefers-reduced-motion: no-preference) {
  .tea, .line { transition: background .15s; }
}
