/* TheGiftStack — the DictDown grammar in navy and orange: a cool lavender-grey ground, deep navy
   slabs, white 22px cards, condensed shouting headlines with a muted second clause, orange gradient
   pills with navy text, and an orange halftone band. See DESIGN.md. Light only, like DictDown. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #EEF0F7;
  --bg-2: #E3E6F0;
  --card: #FFFFFF;
  --card-sink: #F5F6FB;
  --ink: #0B1230;
  --ink-2: #333A57;
  --mute: #5F6688;           /* muted second clause on the ground, 4.9:1 */
  --line: #D7DBEA;
  --slab: #0A1033;
  --slab-2: #121A45;
  --slab-3: #1C2558;
  --slab-ink: #FFFFFF;
  --slab-ink-2: #C5CBEA;
  --slab-mute: #8E97C4;      /* muted second clause on navy, 6.5:1 */

  --orange: #FF7A2E;
  --orange-text: #B4470C;    /* orange used as text on light grounds, 4.8:1 */
  --orange-on-slab: #FF9A52; /* orange used as text on navy, 8.8:1 */
  --orange-soft: #FFE3CC;
  --cta: linear-gradient(90deg, #FFB37A 0%, #FF7A2E 52%, #F25A1B 100%);
  --cta-hover: linear-gradient(90deg, #FFC294 0%, #FF8A45 52%, #F86A2C 100%);
  --dark-pill: linear-gradient(90deg, #2A3470 0%, #0B1230 70%);

  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --r-card: 22px;
  --r-inner: 14px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(11, 18, 48, .05), 0 8px 24px rgba(11, 18, 48, .06);
  --shadow-lift: 0 2px 4px rgba(11, 18, 48, .08), 0 22px 48px rgba(11, 18, 48, .18);
  --shadow-pill: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(11, 18, 48, .22);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --wrap: 1188px;
  --gutter: clamp(16px, 4vw, 40px);
  --tap: 40px;
  color-scheme: light;
}
@media (pointer: coarse) { :root { --tap: 44px; } }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-color: #B8BED6 var(--bg); }
body {
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--orange-soft); color: var(--ink); }
.slab ::selection { background: var(--orange); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
ul, ol { list-style: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 20; border-radius: 8px; }
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.icon { width: 18px; height: 18px; flex: none; }
.pick__n, .filter__count, .choice__n, .band__n { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- the shout: condensed caps with a muted second clause ---------- */
h1, h2, h3 { font-weight: 800; color: var(--ink); text-wrap: balance; }
.shout, h1, h2 {
  font-family: var(--font-display); font-stretch: 75%; font-variation-settings: "opsz" 96;
  text-transform: uppercase; letter-spacing: -.012em; line-height: .95;
}
.shout .dim, h1 .dim, h2 .dim { color: var(--mute); }
.slab .shout .dim, .slab .dim { color: var(--slab-mute); }
.shout--hero { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: .92; margin-bottom: .2em; }
.shout--xl, h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: .92; margin-bottom: .25em; }
.shout--lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: .55em; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: .45em; }
h3 { font-family: var(--font-body); font-size: 1.25rem; line-height: 1.3; font-weight: 750; letter-spacing: -.01em; }
.label { font-family: var(--font-display); font-stretch: 75%; text-transform: uppercase; font-size: 1.15rem; font-weight: 800; letter-spacing: .005em; line-height: 1; color: var(--ink); margin: 0 0 12px; }

/* ---------- floating pill nav ---------- */
.nav-float { position: sticky; top: 14px; z-index: 10; display: flex; justify-content: center; padding: 14px var(--gutter) 0; pointer-events: none; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; gap: 6px; min-height: 54px; padding: 5px 5px 5px 18px; border-radius: var(--r-pill); background: var(--slab); box-shadow: 0 10px 30px rgba(11, 18, 48, .28); max-width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; color: var(--slab-ink); text-decoration: none; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .005em; white-space: nowrap; }
.brand b { color: var(--orange-on-slab); font-weight: 800; }
.brand__mark { width: 22px; height: 22px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.nav-pill__items { display: flex; gap: 4px; }
.nav-item { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: var(--r-pill); background: var(--slab-3); color: var(--slab-ink); text-decoration: none; font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .01em; transition: background-color .16s var(--ease); }
.nav-item:hover { background: #2B3570; }
@media (max-width: 720px) { .nav-pill__items { display: none; } }

/* ---------- buttons: pills, orange gradient with navy text ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r-pill); font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(11, 18, 48, .25); }
.btn--primary { background: var(--cta); color: var(--ink); box-shadow: var(--shadow-pill); }
.btn--primary:hover { background: var(--cta-hover); box-shadow: var(--shadow-pill), 0 6px 16px rgba(242, 90, 27, .32); }
.btn--dark { background: var(--dark-pill); color: var(--slab-ink); box-shadow: var(--shadow-pill); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 1.05rem; }

/* ---------- crumbs, page head ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; font-size: .95rem; color: var(--mute); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #B8BED6; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); }
main.wrap { padding-top: clamp(14px, 2vw, 22px); padding-bottom: clamp(80px, 10vw, 120px); }
.guide__head { margin-bottom: 8px; max-width: 54rem; }
.guide__head .lede { font-size: 1.05rem; margin-bottom: .6em; }
.byline { font-weight: 600; color: var(--mute); margin: 0 0 .7em; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 40em; }

/* ---------- home ---------- */
.hero { padding: clamp(18px, 3vw, 32px) 0 0; max-width: 60rem; }
.hero .lede { margin: 10px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.strip { background: var(--slab); }
.strip__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px; min-height: 76px; padding-top: 14px; padding-bottom: 14px; }
.strip__label { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; color: var(--slab-mute); }
.strip a { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; color: var(--slab-ink); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.strip a:hover { color: var(--orange-on-slab); }
/* The signature band: an orange-to-amber ground with a navy halftone dot field, CSS only. */
.halftone {
  height: clamp(90px, 12vw, 150px);
  background:
    radial-gradient(circle, rgba(10, 16, 51, .35) 1.4px, transparent 1.6px) 0 0 / 10px 10px,
    radial-gradient(120% 140% at 50% 120%, #E2541B 0%, #FF7A2E 35%, #FFB06B 65%, #FFE3C2 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, .55) 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0, 0, 0, .55) 100%);
}
.home-block { padding-top: clamp(40px, 6vw, 72px); }
.hero + .home-block { padding-top: clamp(24px, 3vw, 36px); }
.strip { margin-top: clamp(56px, 8vw, 96px); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.people a { display: grid; gap: 4px; height: 100%; padding: 20px 22px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.people a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.people__name { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.45rem; line-height: 1; }
.people__who { font-size: .95rem; color: var(--mute); }

/* ---------- interest groups ---------- */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.group-block { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 22px 22px 16px; }
.group-block__h { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; margin: 0 0 12px; }
.group-block__h a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.group-block__h a:hover span { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.icon-tile { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; background: linear-gradient(160deg, #FF9A52 0%, #F25A1B 100%); color: var(--ink); }
.icon-tile .icon { width: 19px; height: 19px; stroke-width: 2.1; }
.group-block__all { display: inline-flex; align-items: center; min-height: var(--tap); margin-top: 6px; font-weight: 700; font-size: .95rem; color: var(--orange-text); text-decoration: none; }
.group-block__all:hover { text-decoration: underline; }

.link-list { columns: 2 150px; column-gap: 24px; }
.link-list li { break-inside: avoid; }
.link-list a { display: inline-flex; align-items: center; min-height: max(32px, calc(var(--tap) - 6px)); font-weight: 600; color: var(--ink); text-decoration: none; }
.link-list a:hover { color: var(--orange-text); text-decoration: underline; text-decoration-color: var(--orange); }
.link-list--wide { columns: 4 170px; }

/* ---------- guide layout ---------- */
.guide__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.guide__side { position: sticky; top: 96px; display: grid; gap: 14px; }
@media (max-width: 980px) {
  .guide__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .guide__side { position: static; }
}
.narrow, .choose, .toc { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px 22px 14px; margin: 0 0 28px; }
.narrow__h, .choose__h, .toc__h { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; margin: 0 0 10px; }

/* Segmented filter: a pill track, the selected option fills navy (DictDown's segmented control). */
.filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0 16px; }
.filter__label { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; color: var(--ink); }
.filter__seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-pill); background: var(--bg-2); }
.filter__opt { min-height: max(36px, calc(var(--tap) - 4px)); padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .01em; transition: background-color .16s var(--ease); }
.filter__opt:hover { background: rgba(11, 18, 48, .06); }
.filter__opt[aria-pressed="true"] { background: var(--slab); color: var(--slab-ink); }
.filter__count { margin-left: auto; font-size: .95rem; font-weight: 600; color: var(--mute); }
@media (max-width: 480px) { .filter__opt { padding: 0 10px; font-size: .95rem; } .filter__count { margin-left: 0; } }

/* ---------- picks: rows inside a white card per budget ---------- */
.band, .group { margin: 0 0 22px; }
.band[hidden], .group[hidden] { display: none; }
.band__h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.band:first-child .band__h { margin-top: 8px; }
.band__label { color: var(--ink); }
.band__n { font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--mute); }
.group .list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.group .list-head h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.more { font-weight: 700; font-size: .98rem; color: var(--orange-text); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.more:hover { text-decoration: underline; }

.picks { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 4px 24px; }
.pick { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 6px 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pick:last-child { border-bottom: 0; }
.pick[hidden] { display: none; }
.pick__n { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 2.6rem; line-height: .85; color: var(--orange-text); text-align: right; }
.pick__name { margin: 0 0 6px; }
.pick__why { color: var(--ink-2); max-width: 62ch; margin: 0 0 10px; text-wrap: pretty; }
.pick__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; font-size: .92rem; color: var(--mute); }
.pick__brand { font-weight: 700; color: var(--ink); }
.pick__band { font-weight: 700; color: var(--orange-text); }
.dot { color: #B8BED6; }
.pick__from { margin: 8px 0 0; font-size: .92rem; color: var(--mute); }
.pick__go { margin-top: 2px; min-height: 46px; padding: 0 20px; font-size: 1.08rem; }
@media (max-width: 640px) {
  .picks { padding: 2px 16px; }
  .pick { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0 20px; }
  .pick__n { font-size: 2rem; }
  .pick__name { font-size: 1.15rem; }
  .pick__go { grid-column: 2; justify-self: start; margin-top: 10px; }
}

/* ---------- interest chooser on group pages ---------- */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 6px; }
@media (min-width: 720px) { .choices { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; line-height: 1.25; border-radius: var(--r-inner); background: var(--card-sink); color: var(--ink); text-decoration: none; font-weight: 700; transition: background-color .16s var(--ease); }
.choice:hover { background: var(--bg-2); }
.choice[aria-current="true"] { background: var(--slab); color: var(--slab-ink); }
.choice__n { font-weight: 600; font-size: .9rem; color: var(--mute); }
.choice[aria-current="true"] .choice__n { color: var(--slab-mute); }

/* ---------- sidebar ---------- */
.tips, .side-list { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px 22px; }
.tips ul { display: grid; gap: 10px; font-size: .98rem; color: var(--ink-2); }
.tips li { padding-left: 18px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.offers { display: grid; gap: 14px; }
.offer { display: block; padding: 20px 22px; border-radius: var(--r-card); background: var(--slab); color: var(--slab-ink-2); text-decoration: none; box-shadow: var(--shadow-card); transition: transform .16s var(--ease); }
.offer:hover { transform: translateY(-2px); }
.offer__label { display: block; margin-bottom: 6px; color: var(--slab-ink); font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.offer__note { display: block; font-size: .95rem; }
main > .offers { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: clamp(56px, 8vw, 96px); }
.side-links a { display: flex; align-items: center; min-height: max(32px, calc(var(--tap) - 6px)); font-weight: 600; text-decoration: none; }
.side-links a:hover { color: var(--orange-text); text-decoration: underline; }

/* ---------- prose pages ---------- */
.prose { max-width: 860px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: clamp(26px, 4.5vw, 56px); }
.prose p { max-width: 66ch; color: var(--ink-2); }
.prose h2 { margin-top: 1.4em; }

/* ---------- footer: a navy slab ending in a cropped billboard wordmark ---------- */
.slab { background: var(--slab); color: var(--slab-ink-2); }
.footer { padding-top: clamp(56px, 8vw, 96px); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; margin-bottom: 36px; }
.footer__shout { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: .95; color: var(--slab-ink); max-width: 16em; margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer__nav a { min-height: var(--tap); display: inline-flex; align-items: center; color: var(--slab-ink); font-weight: 600; text-decoration: none; }
.footer__nav a:hover { color: var(--orange-on-slab); }
.footer__disclosure { color: var(--slab-ink-2); font-size: .95rem; }
.footer__fine { color: var(--slab-mute); font-size: .9rem; max-width: 80ch; }
.footer__wordmark { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: clamp(5rem, 19vw, 22.8rem); line-height: .78; letter-spacing: -.02em; color: #1A2252; white-space: nowrap; text-align: center; margin: 24px 0 -0.14em; user-select: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .people a:hover, .offer:hover { transform: none; }
}
@media (pointer: coarse) {
  .crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); }
}

/* On phones the guide intro clamps to three lines so the picks start on the first screen; the full
   text stays in the page, and "Read more" opens it. */
.more-toggle { display: none; border: 0; background: none; padding: 0; min-height: var(--tap); font: 700 .95rem/1 var(--font-body); color: var(--orange-text); cursor: pointer; }
@media (max-width: 640px) {
  .lede--clamp:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0; }
  .more-toggle:not([hidden]) { display: inline-flex; align-items: center; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .people a { padding: 14px 14px; }
  .people__name { font-size: 1.2rem; }
  .people__who { font-size: .85rem; }
}
