/* best-near-me.com: "Who Said So". The visual system is in DESIGN.md. */

:root {
  --ink: #1c1b33;
  --muted: #5b6074;
  --line: #e7e9f0;
  --page: #f7f8fb;
  --card: #ffffff;
  --chip: #f0f1f5;

  --night: #1e2756;
  --night-2: #2a2150;
  --on-night: #ffffff;
  --on-night-soft: rgba(255, 255, 255, .8);

  --orange: #e8743b;        /* fills, icons, large type on night */
  --orange-hi: #f08a4b;     /* the orange line of a night headline */
  --orange-ink: #c04e17;    /* orange text on light grounds, buttons (4.8:1 with white) */
  --orange-press: #a9420f;
  --amber: #f6b53f;
  --violet: #6a4fd6;
  --violet-ink: #5a3fc8;
  --sky: #3d97d6;
  --leaf: #3fa560;
  --sun: #e9b72e;
  --rose: #e0577a;

  --t-orange: #fde9df;
  --t-violet: #ece7fd;
  --t-sky: #e2f0fb;
  --t-leaf: #e2f4e8;
  --t-sun: #fcf2d4;
  --t-rose: #fce4eb;

  --cream: #fdf8ec;
  --cream-line: #f1e5c4;
  --cream-ink: #8f5410;

  --green-1: #2f8a4a;
  --green-2: #1f6436;

  --r-card: 24px;
  --r-tile: 16px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(28, 27, 51, .04), 0 12px 32px -12px rgba(28, 27, 51, .12);
  --shadow-lift: 0 2px 4px rgba(28, 27, 51, .05), 0 22px 44px -16px rgba(28, 27, 51, .2);
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  --display: "Outfit", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eceef6;
    --muted: #a7acc1;
    --line: #2b3050;
    --page: #10132a;
    --card: #181c37;
    --chip: #222747;
    --night: #161d45;
    --night-2: #1f1940;
    --orange-ink: #ff9a62;
    --violet-ink: #b4a3ff;
    --t-orange: #3a2620;
    --t-violet: #2a2550;
    --t-sky: #1b2c45;
    --t-leaf: #1a3326;
    --t-sun: #352d18;
    --t-rose: #3a2030;
    --cream: #1d1f37;
    --cream-line: #2f3150;
    --cream-ink: #f3c27a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 44px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
/* Sprite icons: stroke settings must live here, the sprite's root attributes don't reach <use> clones. */
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---- Top bar ---- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 28px; height: 35px; flex: none; }
.logo b { font: 800 1.6rem/1 var(--display); letter-spacing: -.03em; background: linear-gradient(90deg, #d4561c, #ec8a2c); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo b { background-image: linear-gradient(90deg, #ff8f4f, #ffbf55); } }
.nav ul { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 1.0625rem; padding: 10px 0; transition: color .2s; }
.nav ul a:hover { color: var(--ink); }
.nav ul .accent a { color: var(--violet-ink); font-weight: 600; }
@media (max-width: 760px) { .nav ul li:not(.accent) { display: none; } .logo b { font-size: 1.4rem; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 14px 26px;
  border: 0; border-radius: var(--r-pill); background: var(--orange-ink); color: #fff;
  font: 600 1.0625rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(192, 78, 23, .6); transition: transform .25s var(--ease), background .2s, box-shadow .25s;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { background: #c04e17; } }
.btn:hover { transform: translateY(-2px); background: var(--orange-press); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.white { background: #fff; color: #1c1b33; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }
.btn.white:hover { background: #fff; }

/* ---- Night hero ---- */
.hero {
  position: relative; overflow: hidden; color: var(--on-night);
  background:
    radial-gradient(55% 70% at 88% 78%, rgba(232, 116, 59, .30), transparent 62%),
    radial-gradient(40% 50% at 10% 0%, rgba(106, 79, 214, .25), transparent 70%),
    linear-gradient(140deg, #263372 0%, var(--night) 42%, var(--night-2) 100%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px; align-items: center; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; margin-bottom: 30px;
  border-radius: var(--r-pill); border: 1px solid rgba(246, 181, 63, .4); background: rgba(255, 255, 255, .04);
  color: var(--amber); font-weight: 600; font-size: 1rem; line-height: 1.3;
}
.badge .ico { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: .94; letter-spacing: -.045em; color: #fff; }
.hero h1 span { display: block; }
.hero h1 .hl { color: var(--orange-hi); }
.hero .lede { margin: 32px 0 0; max-width: 34em; color: var(--on-night-soft); font-size: clamp(1.125rem, 1.7vw, 1.3rem); line-height: 1.7; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Floating "who said so" cards on radar rings */
.said { position: relative; height: 470px; }
.said .rings { position: absolute; left: 50%; top: 52%; width: 640px; height: 640px; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 78px, rgba(255, 255, 255, .06) 79px 80px); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); }
.said ul { list-style: none; margin: 0; padding: 0; }
.vc {
  position: absolute; display: flex; align-items: center; gap: 16px; width: 300px; padding: 18px 22px;
  border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .55);
  animation: drift 7s ease-in-out infinite alternate;
}
.vc b { display: block; font: 700 1.2rem/1.2 var(--display); letter-spacing: -.01em; color: #fff; }
.vc small { display: block; margin-top: 4px; font-size: .9375rem; color: rgba(255, 255, 255, .72); }
.vc small em { font-style: normal; color: var(--amber); }
.tile { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; flex: none; color: #fff; }
.tile .ico { width: 26px; height: 26px; }
.g-orange { background: linear-gradient(140deg, #f39552, #e0622a); }
.g-sun { background: linear-gradient(140deg, #f7d158, #e9a92a); }
.g-violet { background: linear-gradient(140deg, #9a82f5, #6a4fd6); }
.g-sky { background: linear-gradient(140deg, #6bbcf0, #3189cf); }
.g-leaf { background: linear-gradient(140deg, #6fd18a, #36a05a); }
.vc:nth-child(1) { right: 0; top: 4%; animation-delay: -1s; }
.vc:nth-child(2) { left: 0; top: 28%; animation-delay: -3s; }
.vc:nth-child(3) { right: 6%; top: 50%; animation-delay: -5s; }
.vc:nth-child(4) { left: 6%; top: 74%; animation-delay: -2s; }
@keyframes drift { from { transform: translateY(-6px); } to { transform: translateY(8px); } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .said { height: auto; }
  .said ul { display: grid; gap: 12px; }
  .said .rings { width: 520px; height: 520px; }
  .vc { position: relative; inset: auto !important; width: auto; max-width: 360px; animation: none; }
  .vc:nth-child(even) { margin-left: 28px; }
  .vc:nth-child(n+4) { display: none; }
}

/* ---- The rule bar (cream) ---- */
.rulebar { background: var(--cream); border-bottom: 1px solid var(--cream-line); }
.rulebar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.rulebar p { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: var(--cream-ink); font-size: 1.0625rem; }
.rulebar p .ico { color: var(--ink); margin-top: 3px; }
.rulebar p b { color: var(--ink); font-weight: 600; }
.rulebar a { display: inline-flex; align-items: center; gap: 6px; color: var(--sky); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rulebar a { color: #7cc0f0; } }
.rulebar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rulebar a .ico { width: 18px; height: 18px; }

/* ---- Source rail ---- */
.rail { background: var(--card); border-bottom: 1px solid var(--line); }
.rail ul { display: flex; gap: clamp(12px, 3vw, 44px); justify-content: space-between; list-style: none; margin: 0 auto; padding: 26px var(--gutter) 24px; max-width: 1200px; overflow-x: auto; scrollbar-width: none; }
.rail ul::-webkit-scrollbar { display: none; }
.rail a { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 92px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9875rem; text-align: center; line-height: 1.25; }
.rail .dot { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--chip); color: var(--ink); transition: transform .25s var(--ease), background .2s; }
.rail .dot .ico { width: 26px; height: 26px; }
.rail a:hover .dot { transform: translateY(-3px); background: var(--t-orange); }
.rail .on .dot { background: linear-gradient(140deg, #f39552, #e0622a); color: #fff; box-shadow: 0 10px 22px -10px rgba(224, 98, 42, .7); }
.rail .on { color: var(--orange-ink); font-weight: 600; }
@media (max-width: 900px) { .rail ul { justify-content: flex-start; -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); } }

/* ---- Sections ---- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.tight { padding-top: clamp(40px, 6vw, 64px); }
#latest { padding-bottom: 0; }
.head { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.6fr) minmax(0, 1.2fr); gap: 24px 40px; align-items: center; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--orange-ink); font-weight: 700; font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; }
.eyebrow .ico { width: 20px; height: 20px; }
.head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.04em; text-align: center; }
.head .sub { margin: 0; color: var(--muted); font-size: 1.125rem; line-height: 1.65; text-align: center; }
@media (max-width: 900px) {
  .head { grid-template-columns: 1fr; text-align: left; }
  .head h2, .head .sub { text-align: left; }
}

/* ---- Lead banner (the latest roundup) ---- */
.banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center;
  padding: clamp(32px, 5vw, 60px); border-radius: 28px; color: #fff;
  background: radial-gradient(70% 90% at 0% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(130deg, var(--green-1), var(--green-2));
  box-shadow: var(--shadow-lift);
}
.banner.violet { background: radial-gradient(70% 90% at 0% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(130deg, #6a4fd6, #4630a6); grid-template-columns: 1fr; }
.pill { display: inline-block; margin: 0 0 20px; padding: 9px 16px; border-radius: 10px; background: rgba(0, 0, 0, .16); color: #fff; font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.banner h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.035em; color: #fff; max-width: 18ch; }
.banner h2 a { text-decoration: none; }
.banner h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.banner .dek { margin: 18px 0 0; font-size: clamp(1.125rem, 1.8vw, 1.35rem); font-weight: 600; line-height: 1.45; max-width: 36em; }
.banner .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; color: rgba(255, 255, 255, .88); font-size: 1rem; }
.banner .meta span { display: inline-flex; align-items: center; gap: 7px; }
.banner .meta .ico { width: 18px; height: 18px; }
.banner .btn { margin-top: 30px; }
.banner .pic { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .12); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .5); }
.banner .pic img { width: 100%; height: 100%; object-fit: cover; }
.banner .stories { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.banner .stories li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); font-weight: 600; line-height: 1.3; }
.banner .stories li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--green-2); font: 800 .95rem/1 var(--display); flex: none; }
@media (max-width: 900px) { .banner { grid-template-columns: 1fr; } }

/* ---- Roundup cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.cards a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cards .thumb { aspect-ratio: 16 / 10; background: var(--t-orange); display: grid; place-items: center; color: var(--orange); }
.cards .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cards .thumb .ico { width: 40px; height: 40px; }
.cards .txt { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.cards h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.cards p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.cards time { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.cards li:nth-child(3n+2) .thumb { background: var(--t-sky); color: var(--sky); }
.cards li:nth-child(3n) .thumb { background: var(--t-violet); color: var(--violet); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---- Two cards: what you get / what you won't find ---- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 1060px; margin: 0 auto; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.box.hot { border-color: color-mix(in srgb, var(--orange) 35%, var(--line)); }
.box .tile { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 34px; }
.box .tile .ico { width: 32px; height: 32px; }
.box h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: 26px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 14px; }
.list .mk { grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--leaf); color: #fff; }
.list .mk .ico { width: 15px; height: 15px; stroke-width: 3; }
.list .mk.no { background: var(--chip); color: var(--muted); }
.list b { font-weight: 700; }
.list span:last-child { color: var(--muted); }
@media (max-width: 800px) { .pair { grid-template-columns: 1fr; } }

/* ---- Kinds of "best" ---- */
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.kind { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 34px 34px 36px; scroll-margin-top: 100px; transition: box-shadow .3s, border-color .3s; }
.kind:target { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 30%, transparent), var(--shadow); }
.kind .sq { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-tile); margin-bottom: 30px; border: 1px solid transparent; }
.kind .sq .ico { width: 30px; height: 30px; }
.kind h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 12px; }
.kind p { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; }
.kind .ask { margin-top: 14px; color: var(--ink); font-size: 1rem; }
.kind .ask b { color: var(--orange-ink); }
.t-orange { background: var(--t-orange); color: var(--orange); border-color: color-mix(in srgb, var(--orange) 25%, transparent) !important; }
.t-sky { background: var(--t-sky); color: var(--sky); border-color: color-mix(in srgb, var(--sky) 25%, transparent) !important; }
.t-violet { background: var(--t-violet); color: var(--violet); border-color: color-mix(in srgb, var(--violet) 25%, transparent) !important; }
.t-leaf { background: var(--t-leaf); color: var(--leaf); border-color: color-mix(in srgb, var(--leaf) 25%, transparent) !important; }
.t-sun { background: var(--t-sun); color: #c4900f; border-color: color-mix(in srgb, var(--sun) 30%, transparent) !important; }
.t-rose { background: var(--t-rose); color: var(--rose); border-color: color-mix(in srgb, var(--rose) 25%, transparent) !important; }
@media (max-width: 900px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kinds { grid-template-columns: 1fr; } .kind { padding: 28px; } }

/* ---- Sign-up ---- */
.signup-band { padding: 0 0 clamp(64px, 9vw, 112px); }
.signup-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center;
  padding: clamp(32px, 5vw, 60px); border-radius: 28px; color: #fff;
  background: radial-gradient(60% 90% at 100% 100%, rgba(232, 116, 59, .35), transparent 65%), linear-gradient(140deg, #263372, var(--night) 50%, var(--night-2));
}
.signup-card h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -.035em; color: #fff; }
.signup-card p { margin: 14px 0 0; color: var(--on-night-soft); font-size: 1.125rem; }
.signup label { display: block; margin-bottom: 10px; font-weight: 600; color: #fff; }
.signup .row { display: flex; gap: 10px; padding: 6px; border-radius: var(--r-pill); background: #fff; }
.signup input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 18px; font: 400 1.0625rem var(--body); color: #1c1b33; border-radius: var(--r-pill); }
.signup input[type=email]::placeholder { color: #6b7086; }
.signup input[type=email]:focus { outline: none; }
.signup .row:focus-within { box-shadow: 0 0 0 3px var(--amber); }
.signup .btn { min-height: 48px; padding: 12px 22px; box-shadow: none; background: #c04e17; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 800px) { .signup-card { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .signup .row { flex-direction: column; border-radius: 22px; } .signup .btn { justify-content: center; } }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); background: var(--card); padding: 48px 0 56px; color: var(--muted); font-size: 1rem; }
.foot .wrap { display: grid; gap: 10px; }
.foot .logo { margin-bottom: 10px; }
.foot p { margin: 0; }
.foot a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--orange) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.foot a:hover { color: var(--orange-ink); }

/* ---- About ---- */
.hero.small .wrap { grid-template-columns: 1fr; padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(56px, 8vw, 100px); }
.hero.small h1 { font-size: clamp(2.8rem, 6.6vw, 5.2rem); max-width: 12ch; }
.hero.small .lede { max-width: 40em; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.why .kind h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 12px; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.pull { max-width: 900px; margin: 0 auto; text-align: center; }
.pull blockquote { margin: 0; font: 800 clamp(2rem, 4.4vw, 3.4rem)/1.08 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.pull blockquote span { color: var(--orange-ink); }
.pull .btn { margin-top: 36px; }

/* ---- Article ---- */
.hero.art .wrap { grid-template-columns: 1fr; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(120px, 14vw, 180px); }
.hero.art h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1; letter-spacing: -.04em; max-width: 20ch; }
.hero.art .lede { max-width: 40em; margin-top: 24px; }
.hero.art .meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.hero.art .meta li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: var(--on-night-soft); font-size: .9375rem; }
.hero.art .meta a { color: inherit; text-underline-offset: 3px; }
.hero.art .meta .ico { width: 17px; height: 17px; color: var(--amber); }
.figure { max-width: 1200px; margin: calc(-1 * clamp(88px, 11vw, 140px)) auto 0; padding: 0 var(--gutter); position: relative; }
.figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lift); background: var(--t-orange); }
.figure figcaption { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.figure.none { height: 1px; }
.read { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(32px, 5vw, 72px); align-items: start; max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px); }
.toc { position: sticky; top: 100px; order: 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 24px; }
.toc p { margin: 0 0 14px; font: 700 .875rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 8px; margin: 0 -8px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: .98rem; line-height: 1.35; transition: background .2s, color .2s; }
.toc a span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--chip); color: var(--ink); font: 700 .875rem/1 var(--display); }
.toc a:hover { background: var(--page); color: var(--ink); }
.toc a.now { color: var(--ink); font-weight: 600; }
.toc a.now span { background: linear-gradient(140deg, #f39552, #e0622a); color: #fff; }
@media (max-width: 960px) { .read { grid-template-columns: 1fr; } .toc { position: static; order: 0; } }

.body { max-width: 70ch; font-size: 1.125rem; line-height: 1.75; counter-reset: pick; }
.body > p:first-child, .body > .intro > p:first-child { font-size: 1.25rem; line-height: 1.65; color: var(--ink); }
.body h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.03em; line-height: 1.12; margin: 2em 0 .6em; scroll-margin-top: 100px; }
.body h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; margin: 1.6em 0 .5em; }
.body a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.body a:hover { color: var(--orange-ink); text-decoration-thickness: 3px; }
.body blockquote { margin: 1.4em 0; padding: 18px 24px; border-radius: 18px; background: var(--cream); border: 1px solid var(--cream-line); font-size: 1.15rem; }
.body ul, .body ol { padding-left: 1.3em; }
.body li { margin: .35em 0; }
.body img { border-radius: 18px; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
/* app.js wraps each "## " section into a pick card */
.body .pick { position: relative; margin: 28px 0; padding: clamp(24px, 3.5vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.body .pick h2 { margin-top: 0; display: flex; gap: 16px; align-items: flex-start; }
.body .pick h2::before { counter-increment: pick; content: counter(pick); display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-top: -4px; border-radius: 13px; background: linear-gradient(140deg, #f39552, #e0622a); color: #fff; font: 800 1.2rem/1 var(--display); letter-spacing: 0; }
.body .qa { margin: 40px 0 0; padding: clamp(24px, 3.5vw, 36px); border-radius: var(--r-card); background: var(--cream); border: 1px solid var(--cream-line); }
.body .qa h2 { margin-top: 0; }
.body .qa h3 { font-size: 1.15rem; margin-top: 1.3em; }
.byline { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.byline + .byline { margin-top: 6px; padding-top: 0; border: 0; }
.byline a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.panel { margin-top: 32px; padding: 28px clamp(22px, 3vw, 32px); border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.panel h2 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 16px; }
.panel h2 .tile { width: 40px; height: 40px; border-radius: 12px; }
.panel h2 .tile .ico { width: 20px; height: 20px; }
.panel ol, .panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.panel li { padding: 10px 0; border-top: 1px solid var(--line); }
.panel li:first-child { border-top: 0; }
.panel a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--orange) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.panel a:hover { color: var(--orange-ink); }
.panel small { color: var(--muted); font-size: .9375rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .nav, .rail, .signup-band, .toc, .said { display: none !important; }
  .hero { background: none !important; color: #000; }
  .hero h1, .hero .lede { color: #000 !important; }
}
