/* Everyday Picks Journal — the paint-chip fan deck.
   Each aisle owns one chip colour (--chip) and the ink that reads on it (--chip-ink). */

:root {
  --bg: #F4F5F3;
  --paper: #FFFFFF;
  --ink: #14161B;
  --ink-2: #2B2F38;
  --muted: #565C67;
  --line: #DFE1DC;
  --line-2: #C9CCC5;
  --tea: #F27B2B;
  --tea-ink: #1E0D02;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --chip: #14161B;
  --chip-ink: #FFFFFF;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--chip, var(--ink)); color: var(--chip-ink, #fff); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
html { scrollbar-color: var(--line-2) var(--bg); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Promo bar (The Loaded Teashop) ---------- */
.promo {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  min-height: 44px; padding: 8px var(--gut);
  background: var(--ink); color: #F1F2EE; text-decoration: none; font-size: .9rem;
}
.promo__swatch { width: 14px; height: 14px; border-radius: 2px; background: var(--tea); flex: none; }
.promo__text strong { font-weight: 650; }
.promo__go { color: #FFB27A; font-weight: 600; white-space: nowrap; transition: transform .25s var(--ease); }
.promo:hover .promo__go { transform: translateX(3px); }

/* ---------- Masthead ---------- */
.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast__row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__fan { display: inline-flex; gap: 3px; height: 30px; }
.logo__fan i { width: 9px; border-radius: 2px; background: #E3A21A; }
.logo__fan i:nth-child(2) { background: #2B59D1; height: 80%; align-self: flex-end; }
.logo__fan i:nth-child(3) { background: var(--tea); height: 60%; align-self: flex-end; }
.logo__word { font: 750 1.35rem/1 var(--display); letter-spacing: -.02em; }
.logo__word em { font-style: normal; font-weight: 400; color: var(--muted); }
.logo--light { color: #fff; }
.logo--light .logo__word em { color: #A9AEB7; }
.mast__links { margin-left: auto; display: flex; gap: 4px; }
.mast__links a {
  text-decoration: none; font-weight: 550; font-size: .95rem; padding: 12px 14px; border-radius: var(--r);
  background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 2px; background-position: 14px calc(100% - 8px); background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
}
.mast__links a:hover { background-size: calc(100% - 28px) 2px; }
.menu-btn { display: none; }

/* The fan deck: one chip per aisle. A chip pulls up out of the deck on hover. */
.deck { background: var(--paper); }
.deck__row { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; padding-top: 0; padding-bottom: 0; }
.chip {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 64px; padding: 10px 12px; margin-top: 10px;
  background: var(--chip); color: var(--chip-ink); text-decoration: none;
  border-radius: var(--r) var(--r) 0 0;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), margin .35s var(--ease);
}
.chip__name { font-weight: 650; font-size: .88rem; line-height: 1.15; }
.chip__code { font-size: .72rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.chip:hover { transform: translateY(-6px); box-shadow: 0 10px 18px -10px rgba(20, 22, 27, .45); }
.chip.is-on { transform: translateY(-10px); box-shadow: 0 12px 20px -12px rgba(20, 22, 27, .5); }
.chip.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: currentColor; opacity: .7; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 650 .98rem/1 var(--display); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px -10px rgba(20, 22, 27, .55); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn--ink, .btn--solid { background: var(--ink); color: #fff; }
.btn--line-ink { border-color: currentColor; color: inherit; }
.btn--line { border-color: var(--tea-ink); color: var(--tea-ink); }
.btn--chip { background: var(--chip); color: var(--chip-ink); }

/* ---------- Intro and featured (pinned) ---------- */
.intro { padding: clamp(32px, 4vw, 52px) 0 clamp(24px, 3vw, 36px); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.intro__h { margin: 0; font: 760 clamp(2.1rem, 4vw, 3.4rem)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.intro__p { margin: 0 0 .4em; font: 400 1.12rem/1.55 var(--serif); color: var(--ink-2); max-width: 38ch; }

.feat { padding-bottom: clamp(48px, 7vw, 96px); }
.feat__card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--chip); color: var(--chip-ink); border-radius: calc(var(--r) * 2); overflow: hidden;
  min-height: min(520px, 58vh);
  animation: enter .9s var(--ease) both;
}
.feat__img { display: block; overflow: hidden; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feat__card:hover .feat__img img { transform: scale(1.03); }
.feat__body { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 56px); }
.feat__pin { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .85rem; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pin { width: 12px; height: 12px; border-radius: 50%; background: var(--chip-ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.feat__h { margin: 0; font: 760 clamp(1.9rem, 3.3vw, 3rem)/1.04 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.feat__h a { text-decoration: none; }
.feat__ex { margin: 0; font: 400 1.12rem/1.55 var(--serif); max-width: 46ch; }
.feat__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Section heads and grid ---------- */
.latest { padding: clamp(40px, 6vw, 80px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.latest--related { background: var(--bg); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-h { margin: 0; font: 740 clamp(1.7rem, 3vw, 2.5rem)/1.05 var(--display); letter-spacing: -.03em; }
.sec-sub { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; transition: transform .3s var(--ease); }
.card__link:hover { transform: translateY(-2px); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card__link:hover .card__img img { transform: scale(1.03); }
.card__chip {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 7px 12px; background: var(--chip); color: var(--chip-ink);
  font-size: .78rem; font-weight: 650; letter-spacing: .01em; font-variant-numeric: tabular-nums;
  border-radius: 0 0 var(--r) var(--r);
}
.card__title { margin: 16px 0 8px; font: 700 1.3rem/1.18 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.card__title { background-image: linear-gradient(var(--chip), var(--chip)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease); display: inline; }
.card__link:hover .card__title { background-size: 100% 3px; }
.card__ex { margin: 10px 0 12px; font: 400 1rem/1.5 var(--serif); color: var(--ink-2); }
.card__meta { margin: auto 0 0; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.img-missing { width: 100%; height: 100%; background: var(--chip); opacity: .35; }

/* ---------- Pager ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
.pager__nums { display: flex; gap: 6px; }
.pager__n, .pager__step { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color .2s, transform .2s var(--ease); }
.pager__n:hover, .pager__step:hover { background: var(--bg); transform: translateY(-2px); }
.pager__n.is-on { background: var(--ink); color: #fff; }

/* ---------- Aisles fan (home) ---------- */
.aisles { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.fan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fan__chip { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.fan__chip:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -16px rgba(20, 22, 27, .45); }
.fan__swatch { display: block; height: 92px; background: var(--chip); transition: height .4s var(--ease); }
.fan__chip:hover .fan__swatch { height: 104px; }
.fan__label { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.fan__name { font-weight: 720; font-size: 1.15rem; letter-spacing: -.01em; }
.fan__meta { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Tea band (featured partner) ---------- */
.tea { background: var(--tea); color: var(--tea-ink); padding: clamp(48px, 7vw, 88px) 0; }
.tea__card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.tea__chip { display: flex; flex-direction: column; background: #FFFFFF; border-radius: var(--r); overflow: hidden; box-shadow: 0 24px 40px -28px rgba(30, 13, 2, .6); }
.tea__chip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tea__label { display: flex; justify-content: space-between; padding: 14px; font-size: .82rem; font-weight: 650; }
.tea__h { margin: 0 0 12px; font: 760 clamp(1.8rem, 3.4vw, 2.8rem)/1.05 var(--display); letter-spacing: -.03em; }
.tea__body p { margin: 0 0 22px; font: 400 1.12rem/1.55 var(--serif); max-width: 56ch; }
.tea__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Aisle (category) head ---------- */
.aisle-head { background: var(--chip); color: var(--chip-ink); padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.aisle-head__grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.aisle-head__code { margin: 0 0 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.aisle-head__h { margin: 0; font: 770 clamp(2.4rem, 6vw, 5rem)/1 var(--display); letter-spacing: -.04em; }
.aisle-head__count { margin: 0; font-weight: 600; }

/* ---------- Post ---------- */
.post-head { background: var(--chip); color: var(--chip-ink); padding-top: clamp(32px, 5vw, 64px); }
.post-head__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-bottom: clamp(32px, 4vw, 56px); }
.crumbs { margin: 0 0 18px; font-size: .9rem; font-weight: 550; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.post-head__h { margin: 0; font: 770 clamp(2.1rem, 4.4vw, 3.7rem)/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; animation: enter .8s var(--ease) both; }
.post-head__ex { margin: 20px 0 0; font: 400 1.15rem/1.55 var(--serif); max-width: 52ch; }
.post-head__meta { margin: 18px 0 0; font-size: .92rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.post-head__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .55); }
.post-head__img img { width: 100%; height: 100%; object-fit: cover; }
.post-head__chip { display: flex; justify-content: space-between; margin: 0; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--chip-ink) 30%, transparent); font-size: .85rem; font-weight: 650; font-variant-numeric: tabular-nums; }

.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 80px); padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.prose-col { max-width: 70ch; }
.disclose { margin: 0 0 24px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-size: .9rem; color: var(--muted); }
.disclose a { color: var(--ink); text-underline-offset: 3px; }

.pick { margin: 0 0 36px; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 18px 30px -26px rgba(20, 22, 27, .5); }
.pick__chip { display: flex; justify-content: space-between; padding: 10px 18px; background: var(--chip); color: var(--chip-ink); font-size: .85rem; font-weight: 700; letter-spacing: .02em; }
.pick__body { padding: 20px 22px 24px; }
.pick__name { margin: 0 0 6px; font: 730 1.35rem/1.2 var(--display); letter-spacing: -.02em; }
.pick__why { margin: 0 0 16px; font: 400 1.05rem/1.55 var(--serif); color: var(--ink-2); }
.pick__body .btn:last-child { margin-top: 2px; }

.prose { font: 400 1.14rem/1.72 var(--serif); color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: 0 0 1.15em; }
.prose h2 { margin: 2em 0 .55em; font: 740 1.7rem/1.15 var(--display); letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.prose h3 { margin: 1.6em 0 .45em; font: 700 1.25rem/1.25 var(--display); color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--ink); text-decoration-color: var(--chip); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-thickness .2s; }
.prose a:hover { text-decoration-thickness: 4px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--chip); font-weight: 700; }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 1px solid var(--line-2); font-style: italic; }
.prose code { font-size: .9em; background: var(--bg); padding: 1px 5px; border-radius: 3px; }
.prose a.aff {
  display: inline-flex; align-items: center; min-height: 32px; padding: 3px 12px; margin-left: 4px;
  border-radius: 999px; background: var(--chip); color: var(--chip-ink);
  font: 650 .82rem/1 var(--display); text-decoration: none; vertical-align: 2px;
  transition: transform .2s var(--ease);
}
.prose a.aff:hover { transform: translateY(-2px); }
.prose table { width: 100%; border-collapse: collapse; font: 400 .98rem/1.45 var(--display); background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); display: block; overflow-x: auto; }
.prose thead th { background: var(--chip); color: var(--chip-ink); text-align: left; font-weight: 700; }
.prose th, .prose td { padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td { font-variant-numeric: tabular-nums; }
.credit { margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.credit a { color: inherit; }

.side__sticky { position: sticky; top: 24px; }
.side__h { margin: 0 0 12px; font: 720 1.05rem/1.2 var(--display); }
.side__list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid var(--chip); }
.side__list li { border-bottom: 1px solid var(--line); }
.side__list a { display: block; padding: 12px 0; text-decoration: none; font-weight: 550; line-height: 1.3; transition: transform .25s var(--ease), color .2s; }
.side__list a:hover { transform: translateX(3px); }
.side__tea { display: flex; gap: 14px; padding: 16px; background: var(--paper); border-radius: var(--r); text-decoration: none; font-size: .92rem; line-height: 1.4; box-shadow: 0 1px 0 var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.side__tea:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -18px rgba(20, 22, 27, .5); }
.side__tea strong { display: block; margin-bottom: 2px; }
.side__tea-chip { flex: none; width: 36px; border-radius: 3px; background: var(--tea); }

/* ---------- Plain pages ---------- */
.plain { padding: clamp(48px, 7vw, 96px) 0; background: var(--paper); }
.plain__h { margin: 0 0 28px; font: 770 clamp(2.3rem, 5vw, 4rem)/1.02 var(--display); letter-spacing: -.035em; max-width: 20ch; }
.plain__prose { max-width: 68ch; }
.plain__lead { font: 400 1.2rem/1.55 var(--serif); margin: 0 0 28px; max-width: 48ch; }
.plain--404 { min-height: 50vh; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #C9CDD4; padding: clamp(48px, 6vw, 80px) 0 24px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); }
.foot__brand p { margin: 16px 0 0; max-width: 32ch; }
.foot__h { margin: 0 0 12px; font: 700 .95rem/1 var(--display); color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; text-decoration: none; transition: color .2s; }
.foot li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dot { width: 12px; height: 12px; border-radius: 2px; background: var(--chip); }
.foot__note { margin: 0; font-size: .9rem; line-height: 1.55; }
.foot__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2C3038; font-size: .85rem; color: #9097A2; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .deck__row { gap: 4px; }
  .chip { padding: 8px; }
  .chip__name { font-size: .78rem; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .prose-col { margin: 0 auto; }
}
@media (max-width: 900px) {
  .intro__grid, .feat__card, .post-head__grid { grid-template-columns: minmax(0, 1fr); }
  .feat__img { aspect-ratio: 16 / 10; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .tea__card { grid-template-columns: minmax(0, 1fr); }
  .tea__chip { display: none; }
  .mast__links { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 18px;
    border: 2px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font: 650 .95rem/1 var(--display); cursor: pointer;
  }
  .menu-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
  .deck { display: none; }
  .deck.is-open { display: block; border-top: 1px solid var(--line); }
  .deck.is-open .deck__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 12px; padding-bottom: 16px; }
  .deck.is-open .chip { margin: 0; border-radius: var(--r); min-height: 60px; }
  .deck.is-open .chip:hover, .deck.is-open .chip.is-on { transform: none; }
}
@media (max-width: 640px) {
  .grid, .fan { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .promo { font-size: .82rem; gap: 6px 10px; }
  .logo__word { font-size: 1.12rem; }
  .deck.is-open .deck__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat__actions .btn, .tea__actions .btn { flex: 1 1 100%; }
  .prose { font-size: 1.08rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
