:root {
  --bg: #101814;
  --bg-2: #16211b;
  --panel: #1a2620;
  --line: rgba(239, 230, 212, 0.12);
  --cream: #efe6d4;
  --muted: #9ba69c;
  --brass: #c9a46a;
  --brass-deep: #a8854e;
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --body: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(201, 164, 106, 0.13), transparent 60%),
    radial-gradient(900px 700px at -20% 30%, rgba(52, 84, 66, 0.35), transparent 60%),
    var(--bg);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px 48px;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 8px; }
.dial-wrap {
  width: 168px; height: 168px; margin-left: auto; margin-right: -6px;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.5));
  animation: rise 900ms var(--ease) both;
}
.dial { width: 100%; height: 100%; display: block; }
.dial-brand { font-family: var(--display); font-size: 9.5px; letter-spacing: 2.4px; fill: var(--cream); }
.dial-sub { font-family: var(--mono); font-size: 7px; letter-spacing: 3px; fill: var(--brass); }
.dial-date { font-family: var(--mono); font-size: 9px; font-weight: 500; fill: #1a1a17; }
#hHand, #mHand, #sHand { transform-origin: 100px 100px; }

.hero-copy { margin-top: -54px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted);
  margin: 0 0 10px; text-transform: uppercase;
  animation: rise 700ms 120ms var(--ease) both;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(201,164,106,.6); animation: pulse 2s infinite; }
h1 {
  font-family: var(--display); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(44px, 13vw, 66px); line-height: 0.95; letter-spacing: -0.02em;
  margin: 0; max-width: 8.5ch;
  animation: rise 800ms 180ms var(--ease) both;
}
h1 em { font-style: italic; color: var(--brass); }
.lede { color: var(--muted); margin: 16px 0 20px; max-width: 34ch; animation: rise 800ms 260ms var(--ease) both; }
.handle {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(239,230,212,0.04); font-weight: 500;
  transition: background 200ms, border-color 200ms, transform 200ms var(--ease);
  animation: rise 800ms 320ms var(--ease) both;
}
.handle:hover { background: rgba(201,164,106,0.12); border-color: rgba(201,164,106,0.5); }
.handle:active { transform: scale(0.97); }

/* ---------- Lookup ---------- */
.lookup {
  margin-top: 36px; padding: 18px 18px 14px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(239,230,212,0.06), rgba(239,230,212,0.02));
  border: 1px solid var(--line);
  animation: rise 800ms 380ms var(--ease) both;
}
.lookup label { display: block; font-family: var(--display); font-style: italic; font-size: 20px; margin-bottom: 10px; }
.lookup-row {
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(239,230,212,0.25); transition: border-color 200ms;
}
.lookup-row:focus-within { border-color: var(--brass); }
.hash { font-family: var(--mono); font-size: 22px; color: var(--brass); }
.lookup input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  font-family: var(--mono); font-size: 22px; padding: 6px 0 8px; letter-spacing: 0.08em;
}
.lookup input::placeholder { color: rgba(239,230,212,0.3); font-size: 16px; letter-spacing: 0.02em; }
.clear { background: none; border: 0; padding: 8px; color: var(--muted); cursor: pointer; border-radius: 50%; }
.clear:hover { color: var(--cream); }
.lookup-msg { margin: 10px 0 0; font-size: 13px; color: var(--muted); min-height: 1.5em; }
.lookup-msg.found { color: var(--brass); }
.lookup-msg.missing { color: #e0a58a; }

/* ---------- Featured ---------- */
.featured {
  position: relative; margin-top: 28px; border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, #e9dfc8 0%, #d8ccb0 100%); color: #1c1b17;
  animation: rise 900ms 440ms var(--ease) both;
}
.featured:empty { display: none; }
.featured .tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: #1c1b17; color: var(--cream); padding: 6px 10px; border-radius: 999px;
}
.featured .post-no { position: absolute; top: 16px; right: 18px; z-index: 2; font-family: var(--mono); font-size: 13px; color: rgba(28,27,23,0.6); }
.featured .art { height: 260px; display: grid; place-items: center; padding-top: 18px; }
.featured .art svg { height: 100%; width: auto; transform: rotate(-8deg); filter: drop-shadow(0 30px 30px rgba(60,40,20,0.35)); transition: transform 600ms var(--ease); }
.featured:hover .art svg { transform: rotate(-2deg) scale(1.03); }
.featured .body { padding: 6px 22px 22px; }
.featured .brand { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #6c5a3c; }
.featured h2 { font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.02; margin: 4px 0 10px; letter-spacing: -0.01em; }
.featured p { margin: 0 0 18px; color: #3d3a31; }
.featured .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.featured .price { font-family: var(--mono); font-size: 14px; color: #3d3a31; }

.shop {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: 15px; padding: 13px 18px; border-radius: 999px;
  background: #1c1b17; color: var(--cream);
  transition: transform 200ms var(--ease), background 200ms;
}
.shop:hover { background: #2c2a23; }
.shop:active { transform: scale(0.96); }
.shop svg { transition: transform 250ms var(--ease); }
.shop:hover svg { transform: translate(2px, -2px); }

/* ---------- Filters ---------- */
.filters {
  display: flex; gap: 8px; margin: 36px -20px 14px; padding: 0 20px 4px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; cursor: pointer;
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 8px 14px; font-size: 14px; color: var(--muted);
  transition: color 200ms, background 200ms, border-color 200ms, transform 150ms;
}
.chip:hover { color: var(--cream); border-color: rgba(239,230,212,0.3); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--cream); color: #1c1b17; border-color: var(--cream); }
.chip .count { font-family: var(--mono); font-size: 11px; margin-left: 6px; opacity: 0.6; }

/* ---------- Pick list ---------- */
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pick {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center;
  padding: 12px 14px 12px 12px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color 250ms, transform 250ms var(--ease), background 250ms;
  opacity: 0; animation: rise 600ms var(--ease) forwards;
}
.pick:hover { border-color: rgba(201,164,106,0.4); }
.pick.highlight { border-color: var(--brass); background: linear-gradient(135deg, rgba(201,164,106,0.16), var(--panel) 60%); }
.pick .thumb {
  width: 92px; height: 92px; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2a3a31, #121a16);
  overflow: hidden;
}
.pick .thumb svg { height: 84%; width: auto; transition: transform 400ms var(--ease); }
.pick:hover .thumb svg { transform: rotate(-6deg) scale(1.06); }
.pick .meta { min-width: 0; }
.pick .top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pick .num { color: var(--brass); }
.pick h3 { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.12; margin: 3px 0 4px; }
.pick p { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick .bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pick .price { font-family: var(--mono); font-size: 12.5px; color: var(--cream); opacity: 0.85; }
.pick .shop { padding: 8px 13px; font-size: 13.5px; background: var(--brass); color: #1c1b17; }
.pick .shop:hover { background: #d7b47c; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty svg { color: var(--brass); opacity: 0.7; }
.empty-title { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--cream); margin: 12px 0 6px; }
.empty-body { margin: 0; font-size: 14px; }

/* ---------- Footer ---------- */
.foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-links { display: flex; gap: 20px; margin-bottom: 18px; }
.foot-links a { font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(201,164,106,0.5); padding-bottom: 2px; }
.foot-links a:hover { color: var(--brass); }
.disclosure { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.disclosure strong { color: var(--cream); font-weight: 500; }
.copyright { font-family: var(--mono); font-size: 11px; color: rgba(155,166,156,0.6); margin: 0; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,164,106,.55); }
  70% { box-shadow: 0 0 0 8px rgba(201,164,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,164,106,0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 900px) {
  .shell { max-width: 1040px; padding-top: 56px; display: grid; grid-template-columns: 400px 1fr; column-gap: 56px; align-items: start; }
  .hero, .lookup, .featured { grid-column: 1; }
  .hero { grid-row: 1; }
  .lookup { grid-row: 3; }
  .featured { grid-row: 3; }
  .catalog { grid-column: 2; grid-row: 1 / span 4; }
  .filters { margin: 8px 0 16px; padding: 0; flex-wrap: wrap; }
  .foot { grid-column: 1 / -1; }
  .dial-wrap { width: 200px; height: 200px; }
  .hero-copy { margin-top: -64px; }
}

/* Real product photos (picks with an img) */
.featured .art img { height: 100%; max-width: 86%; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(60,40,20,0.30)); }
.pick .thumb:has(img) { background: #f4efe4; }
.pick .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- FIVE series nav ---------- */
.five-nav { margin-top: 28px; animation: rise 800ms 410ms var(--ease) both; }
.five-nav-title { font-family: var(--display); font-weight: 500; font-size: 26px; margin: 0 0 2px; }
.five-nav-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.five-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-decoration: none; padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(239,230,212,0.06), rgba(239,230,212,0.02));
  font-weight: 500; transition: border-color 200ms, background 200ms, transform 150ms;
}
.five-btn:hover { border-color: rgba(201,164,106,0.5); background: rgba(201,164,106,0.10); }
.five-btn:active { transform: scale(0.98); }
.five-btn .five-date { font-family: var(--mono); font-size: 12px; color: var(--brass); white-space: nowrap; }
.five-btn-all { border-color: rgba(201,164,106,0.45); }
@media (min-width: 900px) {
  .five-nav { grid-column: 1; grid-row: 2; }
  .featured { grid-row: 4; }
}

/* FIVE-episode lookup hit */
.pick .thumb.five-thumb { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #221d15, #171410); color: var(--brass); font-family: var(--display); font-size: 21px; letter-spacing: 0.14em; }

/* ---------- Compact pass (Nov 2): lookup + Today's pick on one screen ---------- */
@media (max-width: 899px) {
  .shell { padding-top: max(14px, env(safe-area-inset-top)); }
  .hero { display: flex; align-items: flex-start; gap: 10px; padding-top: 0; }
  .dial-wrap { width: 86px; height: 86px; margin: 2px -2px 0 0; order: 2; flex: none; }
  .hero-copy { order: 1; min-width: 0; }
  h1 { font-size: 38px; }
  .lede { margin: 8px 0 12px; font-size: 15px; }
  .handle { padding: 8px 13px 8px 11px; font-size: 14.5px; margin-bottom: 6px; }
  .five-nav { margin-top: 14px; }
  .five-nav-title { font-size: 22px; }
  .five-nav-sub { margin-bottom: 10px; font-size: 13px; }
  .five-btn { padding: 10px 14px; margin-bottom: 8px; font-size: 15px; }
  .lookup { margin-top: 14px; padding: 14px 16px 10px; }
  .lookup label { font-size: 18px; margin-bottom: 6px; }
  .lookup input { font-size: 19px; padding: 4px 0 6px; }
  .lookup-msg { margin-top: 6px; min-height: 1.2em; font-size: 12.5px; }
  .featured { margin-top: 14px; }
  .featured .art { height: 190px; padding-top: 10px; }
  .featured h2 { font-size: 28px; }
  .featured .body { padding: 4px 18px 18px; }
  .featured p { margin-bottom: 12px; }
  .catalog { margin-top: 26px; }
}

/* ---------- Compact pass 2 (Nov 2): tighter still on phones ---------- */
@media (max-width: 899px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .dial-wrap { width: 64px; height: 64px; }
  h1 { font-size: 32px; }
  .lede { display: none; }
  .hero .eyebrow { font-size: 12px; margin: 0 0 4px; }
  .handle { padding: 7px 11px 7px 10px; font-size: 13.5px; margin-bottom: 0; }
  .five-nav { margin-top: 12px; }
  .five-nav-title { font-size: 20px; display: inline; }
  .five-nav-sub { display: inline; margin: 0 0 0 8px; font-size: 12.5px; }
  .five-btn { padding: 9px 12px; margin-bottom: 7px; font-size: 14.5px; }
  .lookup { margin-top: 12px; padding: 12px 14px 8px; }
  .lookup label { font-size: 17px; }
  .featured { margin-top: 12px; }
  .featured .art { height: 168px; }
  .featured h2 { font-size: 26px; }
}

/* ---------- Desktop tightening (Nov 2): Today's pick moves to the top-right ---------- */
@media (min-width: 900px) {
  .shell { padding-top: 24px; column-gap: 44px; }
  .dial-wrap { width: 118px; height: 118px; }
  h1 { font-size: 54px; }
  .lede { margin: 12px 0 14px; }
  .five-nav { margin-top: 18px; }
  .five-btn { padding: 11px 14px; margin-bottom: 8px; }
  .lookup { margin-top: 18px; }
  .featured { grid-column: 2; grid-row: 1; margin-top: 0; }
  .featured .art { height: 215px; }
  .catalog { grid-column: 2; grid-row: 2 / span 3; margin-top: 22px; }
}

/* Featured photo containment fix (Nov 2) */
.featured .art { overflow: hidden; }
.featured .art img { height: auto; width: auto; max-height: 100%; max-width: 84%; object-fit: contain; }
