/* CO-OP 1950 Tea Toronto — tokens and rules come from DESIGN.md */
:root {
  --paper: #FBFAF7;
  --paper-2: #F1EEE8;
  --ink: #26201C;
  --etch: #6B2A1E;
  --red: #D0000F;
  --on-color: #FBFAF7;
  --line: #DDD6CC;
  --tea-yellow: #D9A51C;
  --tea-green: #4E7F35;
  --tea-dark: #24356A;
  --tea-puer: #2B3550;
  --display: "Young Serif", Georgia, serif;
  --body: "Libre Franklin", "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --cn-display: "ZCOOL QingKe HuangYou", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --cn: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
body:lang(zh) { font-family: var(--cn); line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; }
body:lang(zh) h1, body:lang(zh) h2, body:lang(zh) h3 { font-family: var(--cn); font-weight: 700; line-height: 1.3; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--tea-yellow); outline-offset: 2px; }

.in {
  max-width: 1200px; margin-inline: auto;
  padding-left: max(16px, 4vw, env(safe-area-inset-left, 0px));
  padding-right: max(16px, 4vw, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Header */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-block: 18px; }
.brand { margin-right: auto; display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand .seal { width: 44px; }
.brand .wordmark { width: 112px; }
.brand .en { font-family: var(--display); font-size: 17px; color: var(--etch); margin-left: 4px; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 16px; font-weight: 500; }
.nav ul a:hover { color: var(--red); }
.lang { font-size: 15px; color: var(--etch); }
.lang [aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
.site-head { border-bottom: 1px solid var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 48px 56px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 68px); letter-spacing: -.01em; }
body:lang(zh) .hero h1 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: 0; }
.hero p { margin-top: 20px; max-width: 26em; color: var(--etch); font-size: 19px; }
.hero img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 70%; border-radius: 2px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 4px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--red); border-color: var(--red); color: var(--on-color); }
.btn.primary:hover { background: #A8000C; border-color: #A8000C; }
.btn.small { padding: 6px 12px; font-size: 14px; }

/* Five teas: real tin photo beside the list */
.teas-wrap { grid-template-columns: .95fr 1.05fr; column-gap: 56px; align-items: start; }
.teas-intro { display: grid; gap: 24px; }
.teas-intro img { width: 100%; border-radius: 2px; }
.teas-wrap .fine { grid-column: 2; }

/* Sections */
.block { padding-block: 72px; }
.block > .in { display: grid; gap: 32px; }
.alt { background: var(--paper-2); }
.block h2 { font-size: clamp(30px, 3.2vw, 40px); }
.block h2 .zh { font-family: var(--cn); font-size: .5em; color: var(--etch); margin-left: 10px; }
.sub { color: var(--etch); margin-top: 10px; max-width: 38em; }

.tasting { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tasting figure { display: grid; gap: 12px; }
.tasting img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.tasting b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; }
body:lang(zh) .tasting b { font-family: var(--cn); font-weight: 700; font-size: 19px; }
.tasting span { color: var(--etch); font-size: 16px; }

.teas { list-style: none; margin: 0; padding: 0; display: grid; }
.teas li { display: grid; grid-template-columns: 8px 4.2em 1fr auto; gap: 8px 20px; align-items: baseline; padding-block: 18px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.teas li:last-child { border-bottom: 1px solid var(--line); }
.teas .chip { align-self: stretch; border-radius: 1px; }
.teas .zh { font-family: var(--cn-display); font-size: 24px; line-height: 1; }
.teas h3 span { font-family: var(--body); font-size: 15px; font-weight: 400; color: var(--etch); margin-left: 6px; }
.teas p a { color: var(--red); }
body:lang(zh) .teas h3:lang(en) { font-family: var(--display); font-weight: 400; font-size: 22px; }
.teas h3 { font-size: 22px; }
body:lang(zh) .teas h3 { font-size: 19px; }
.teas p { color: var(--etch); font-size: 16px; margin-top: 4px; }
.teas .price { font-size: 15px; color: var(--etch); white-space: nowrap; }

.brew { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.brew > div { display: grid; gap: 16px; align-content: start; }
.brew h3 { font-family: var(--body); font-weight: 600; font-size: 20px; }
body:lang(zh) .brew h3 { font-family: var(--cn); }
.brew h3 small { font-weight: 400; color: var(--etch); font-size: 16px; margin-left: 6px; }
.brew dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.brew dt { font-size: 14px; color: var(--etch); }
.brew dd { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fine { font-size: 15px; color: var(--etch); max-width: 46em; }

.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.story img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.story .txt { display: grid; gap: 16px; max-width: 32em; }

.store { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.store dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; align-items: baseline; }
.store dt { color: var(--etch); }
.store dd { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.ph { color: var(--etch); border-bottom: 1px dashed var(--etch); }
.map-links { display: grid; gap: 12px; justify-items: start; }
.store dd a { color: var(--ink); text-underline-offset: 3px; }
.copied { font-size: 14px; color: var(--tea-green); }

.site-foot { border-top: 1px solid var(--line); }
.site-foot .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-block: 28px; font-size: 14px; color: var(--etch); }

/* Phone */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero, .story, .store, .brew, .teas-wrap { grid-template-columns: 1fr; }
  .teas-wrap .fine { grid-column: auto; }
  .hero { padding-block: 36px 48px; gap: 32px; }
  .tasting { grid-template-columns: 1fr; }
  .teas li { grid-template-columns: 10px 1fr; }
  .teas .chip { grid-row: 1 / span 3; }
  .teas .zh, .teas .price { grid-column: 2; }
  .block { padding-block: 56px; }
}
