:root {
  color-scheme: light;
  --paper: #eef3f8;
  --ink: #182d47;
  --muted: #53657a;
  --line: #cdd7e2;
  --highlight: #f6dc83;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #3266aa; outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 2; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1200px; margin: auto; }
.masthead { padding: 28px 32px; font-size: 13px; }
.masthead a, .footer a { font-weight: 700; }
.masthead span { color: var(--muted); }
.hero { padding: 38px 24px 0; text-align: center; }
h1 { font-size: clamp(62px, 10.4vw, 132px); letter-spacing: -.075em; line-height: 1.08; margin: 0; font-weight: 750; }
h1 span { color: var(--ink); background: var(--highlight); padding-right: .09em; }
.tagline { font-size: clamp(19px, 2.6vw, 25px); letter-spacing: -.025em; margin: 18px 0 15px; }
.story { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0; }
.tweet { max-width: 780px; margin: 34px auto 0; }
.tweet a { display: block; border-radius: 14px; overflow: hidden; background: black; box-shadow: 0 14px 35px -20px #182d4770; }
.tweet img { display: block; width: 100%; height: auto; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 16px; }
.favorites { max-width: 1064px; margin: 70px auto 0; padding: 0 32px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
h2 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.04em; margin: 0; }
.controls { display: flex; align-items: center; gap: 8px; }
[hidden] { display: none !important; }
.controls button { border: 1px solid var(--line); background: transparent; height: 42px; transition: background .15s; }
.controls button:hover { background: white; }
.arrow { width: 42px; border-radius: 50%; font-size: 21px; }
.products { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 5px 0 9px; }
.products::-webkit-scrollbar { display: none; }
.product { min-width: 0; scroll-snap-align: start; }
.product a { display: block; border-radius: 12px; }
.product a:focus-visible { outline-offset: -3px; }
.product-image { display: flex; align-items: center; justify-content: center; background: white; height: 218px; border-radius: 12px; overflow: hidden; }
.product-image img { width: 81%; height: 81%; object-fit: contain; transition: transform .25s; }
.product a:hover .product-image img { transform: scale(1.04); }
.product-info { padding: 17px 3px 10px; }
.product-reason { margin: 9px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.product a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.025em; font-weight: 600; margin: 0; }
.shelf-footer { display: flex; justify-content: flex-end; gap: 20px; margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.position { white-space: nowrap; font-variant-numeric: tabular-nums; }
.footer { margin-top: 74px; padding: 25px 32px; font-size: 12px; color: var(--muted); }
.footer p { margin: 0; }
@media (max-width: 700px) {
  .masthead { padding: 22px 20px; }
  .masthead span { display: none; }
  .hero { padding: 27px 16px 0; }
  h1 { font-size: clamp(54px, 12.5vw, 88px); }
  .tagline { margin-top: 17px; }
  .story { font-size: 13px; }
  .tweet { margin-top: 28px; }
  .tweet a { border-radius: 9px; }
  .favorites { margin-top: 49px; padding: 0 20px; }
  h2 { font-size: 27px; }
  .section-heading { align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 16px; }
  .controls { margin-left: auto; }
  .products { grid-auto-columns: 82%; gap: 16px; }
  .product-image { height: 224px; }
  .shelf-footer { font-size: 10px; }
  .footer { padding: 24px 20px; margin-top: 44px; align-items: start; font-size: 11px; }
  .footer p { max-width: 155px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
