/* ==========================================================================
   Backcourt Basketball Manager — site styles
   Palette mirrors the in-game UI: deep navy court-at-night + amber floodlight.
   ========================================================================== */

:root {
  --ink:        #05090F;
  --bg:         #070C16;
  --bg-2:       #0B1220;
  --panel:      #101A2B;
  --panel-2:    #16223A;
  --line:       #1E2B44;
  --line-soft:  #172440;

  --text:       #E8EEF9;
  --text-dim:   #9BAAC4;
  --text-mute:  #6C7C99;

  --amber:      #F5A623;
  --amber-lit:  #FFC85C;
  --amber-deep: #C67F0A;
  --green:      #35D07F;
  --red:        #F0546B;
  --blue:       #4A9BF5;

  --radius:     14px;
  --radius-lg:  22px;
  --maxw:       1180px;
  --gutter:     clamp(18px, 5vw, 40px);

  --shadow:     0 18px 50px -22px rgb(0 0 0 / .85);
  --glow:       0 0 0 1px rgb(245 166 35 / .28), 0 14px 40px -14px rgb(245 166 35 / .35);

  --f-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body:    "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-lit); }
::selection { background: var(--amber); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--amber); color: var(--ink); padding: 12px 20px;
  font-weight: 700; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 68px); }
.section--alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 22%, var(--bg-2) 78%, var(--bg) 100%); }

.eyebrow {
  font-family: var(--f-display);
  font-size: .95rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.section-head { max-width: 62ch; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 0; }

.lede { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--text-dim); line-height: 1.6; }

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(140deg, var(--amber-lit), var(--amber) 55%, var(--amber-deep));
  color: var(--ink); box-shadow: 0 12px 34px -12px rgb(245 166 35 / .7);
}
.btn--primary:hover { color: var(--ink); box-shadow: 0 16px 42px -10px rgb(245 166 35 / .85); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgb(255 255 255 / .02); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber-lit); background: rgb(245 166 35 / .07); }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* store badges */
/* One column on small phones, a tidy 2x2 everywhere else — auto-fit left a
   3 + 1 orphan at hero width. */
.stores {
  display: grid; gap: 10px;
  grid-template-columns: 1fr;
  max-width: 490px;
}
@media (min-width: 430px) { .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cta .stores { margin-inline: auto; }
.foot .stores { max-width: 420px; }
.stores--tight .store { padding: 9px 16px 9px 13px; }
.stores--tight .store svg { width: 22px; height: 22px; }
.stores--tight .store strong { font-size: 1.05rem; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgb(255 255 255 / .03);
  color: var(--text); transition: border-color .16s, background .16s, transform .16s;
}
.store:hover { border-color: var(--amber); background: rgb(245 166 35 / .08); color: var(--text); transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store span { display: block; min-width: 0; white-space: nowrap; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); line-height: 1.4; }
.store strong { display: block; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-display); font-size: 1.16rem; font-weight: 600; letter-spacing: .02em; line-height: 1.15; color: var(--text); }

/* --------------------------------------------------------------- nav -- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgb(7 12 22 / .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__in { display: flex; align-items: center; gap: 18px; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: 11px; margin-right: auto; color: var(--text); }
.nav__brand:hover { color: var(--text); }
.nav__brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav__brand b {
  font-family: var(--f-display); font-size: 1.32rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; line-height: 1;
}
.nav__brand i {
  display: block; font-style: normal; font-size: .6rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-mute); line-height: 1.5;
}
.nav__links { display: flex; align-items: center; gap: 4px; }
/* :not(.btn) — otherwise this rule out-specifies .btn--primary and paints the
   CTA's label in dim grey on amber. */
.nav__links a:not(.btn) {
  font-family: var(--f-display); font-size: 1.06rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); padding: 9px 14px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.nav__links a:not(.btn):hover { color: var(--text); background: rgb(255 255 255 / .05); }
.nav__links a[aria-current="page"]:not(.btn) { color: var(--amber); }
.nav__links .btn--primary, .nav__links .btn--primary:hover { color: var(--ink); }
.nav__toggle { display: none; }

@media (max-width: 900px) {
  .nav__in { height: 60px; }
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 10px;
    color: var(--text); cursor: pointer;
  }
  .nav__toggle svg { width: 22px; height: 22px; }
  .nav__toggle .x { display: none; }
  .nav__toggle[aria-expanded="true"] .m { display: none; }
  .nav__toggle[aria-expanded="true"] .x { display: block; }
  .nav__links {
    position: fixed; inset: 60px 0 auto; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 14px var(--gutter) 26px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 60px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav__links[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 12px; font-size: 1.2rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav__links .btn { margin-top: 14px; justify-content: center; }
}

/* -------------------------------------------------------------- hero -- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 92px) clamp(56px, 9vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 130%;
  background:
    radial-gradient(60% 55% at 78% 8%, rgb(245 166 35 / .20), transparent 62%),
    radial-gradient(48% 45% at 12% 92%, rgb(74 155 245 / .13), transparent 66%);
  pointer-events: none;
}
/* faint half-court motif behind the hero */
.hero__court {
  position: absolute; right: -8%; top: 50%; translate: 0 -50%;
  width: min(760px, 74vw); aspect-ratio: 1; opacity: .16; pointer-events: none;
  color: var(--amber);
}
.hero__in { position: relative; display: grid; gap: clamp(38px, 6vw, 60px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 940px) { .hero__in { grid-template-columns: 1.08fr .92fr; } }

.badge-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: .9rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--amber);
  border: 1px solid rgb(245 166 35 / .32); background: rgb(245 166 35 / .08);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  max-width: 100%;
}
/* The full platform list is too long for a phone: a pill that wraps to two
   lines turns the 999px radius into a lozenge with the dot stranded on top.
   Swap in a shorter label instead of letting it wrap. */
.badge-line__wide { display: none; }
.badge-line__narrow { display: inline; }
@media (min-width: 600px) {
  .badge-line__wide { display: inline; }
  .badge-line__narrow { display: none; }
}
.badge-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(53 208 127 / .18); }

.hero h1 { margin-bottom: .34em; }
.hero h1 .lit {
  background: linear-gradient(96deg, var(--amber-lit), var(--amber) 48%, var(--amber-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { max-width: 54ch; margin-bottom: 28px; }
.hero .stores { margin-top: 26px; }
.hero__note { margin-top: 18px; font-size: .92rem; color: var(--text-mute); }

/* phone mock */
.phone {
  position: relative; margin-inline: auto; width: min(310px, 78vw);
  border-radius: 38px; padding: 9px;
  background: linear-gradient(160deg, #26334C, #0C1524 60%);
  box-shadow: 0 40px 90px -34px rgb(0 0 0 / .95), 0 0 0 1px rgb(255 255 255 / .06);
}
.phone::after {
  content: ""; position: absolute; top: 19px; left: 50%; translate: -50% 0;
  width: 92px; height: 22px; border-radius: 999px; background: #05090F; z-index: 2;
}
.phone img { border-radius: 30px; width: 100%; }
.phone--tilt { rotate: -2.2deg; }
.hero .phone { rotate: -2.5deg; }
@media (min-width: 940px) { .hero .phone { width: min(330px, 34vw); } }

/* --------------------------------------------------------- stat strip -- */
.stats {
  display: grid; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-2); padding: 22px 20px; text-align: center; }
.stat b {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1; color: var(--amber); letter-spacing: .01em;
}
.stat span { display: block; margin-top: 8px; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }

/* -------------------------------------------------------------- cards -- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: linear-gradient(168deg, var(--panel), var(--bg-2) 78%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: rgb(245 166 35 / .4); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-dim); font-size: 1rem; }
.card__ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgb(245 166 35 / .12); border: 1px solid rgb(245 166 35 / .26);
  color: var(--amber); margin-bottom: 18px;
}
.card__ico svg { width: 24px; height: 24px; }

/* ----------------------------------------------------- feature blocks -- */
.feature { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip .feature__media { order: -1; }
}
.feature + .feature { margin-top: clamp(56px, 8vw, 96px); }
.feature__num {
  font-family: var(--f-display); font-size: .92rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px;
}
.feature p { color: var(--text-dim); }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-dim); font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 15px; height: 9px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  rotate: -45deg;
}
.ticks--amber li::before { border-color: var(--amber); }

/* ------------------------------------------------------------ gallery -- */
.shots {
  display: grid; gap: 18px; grid-auto-flow: column; grid-auto-columns: min(258px, 66vw);
  overflow-x: auto; padding-bottom: 18px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.shots > figure { scroll-snap-align: start; margin: 0; }
.shots img { border-radius: 18px; border: 1px solid var(--line); width: 100%; }
.shots figcaption { margin-top: 12px; font-size: .88rem; color: var(--text-mute); text-align: center; }

/* ----------------------------------------------------------- timeline -- */
.rel { position: relative; padding-left: 30px; }
.rel::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--amber), var(--line) 60%, transparent); }
.rel__item { position: relative; padding-bottom: clamp(36px, 5vw, 56px); }
.rel__item::before {
  content: ""; position: absolute; left: -30px; top: 9px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--amber);
}
.rel__item--old::before { border-color: var(--line); }
.rel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.rel__ver {
  font-family: var(--f-display); font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 700;
  color: var(--text); line-height: 1;
}
.rel__date { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.rel__title { font-family: var(--f-display); font-size: 1.4rem; color: var(--amber); margin-bottom: 4px; }
.rel__sum { color: var(--text-dim); margin-bottom: 20px; }

.chg { margin-bottom: 18px; }
.chg__label {
  display: inline-block; font-family: var(--f-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; padding: 4px 11px; border-radius: 6px; margin-bottom: 10px;
}
.chg--new      .chg__label { background: rgb(53 208 127 / .14); color: var(--green);  border: 1px solid rgb(53 208 127 / .3); }
.chg--improved .chg__label { background: rgb(74 155 245 / .14); color: var(--blue);   border: 1px solid rgb(74 155 245 / .3); }
.chg--balance  .chg__label { background: rgb(245 166 35 / .14); color: var(--amber);  border: 1px solid rgb(245 166 35 / .3); }
.chg--fixed    .chg__label { background: rgb(240 84 107 / .14); color: var(--red);    border: 1px solid rgb(240 84 107 / .3); }
.chg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.chg li { position: relative; padding-left: 20px; color: var(--text-dim); font-size: 1rem; }
.chg li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 7px; height: 2px; background: var(--text-mute); }
.chg li b { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------- FAQ -- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .18s;
}
.faq details[open] { border-color: rgb(245 166 35 / .38); }
.faq summary {
  cursor: pointer; list-style: none; padding: 19px 54px 19px 22px; position: relative;
  font-family: var(--f-display); font-size: 1.24rem; font-weight: 600; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--amber-lit); }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  translate: 0 -70%; rotate: 45deg; transition: rotate .2s ease, translate .2s ease;
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.faq__body { padding: 0 22px 20px; color: var(--text-dim); }
.faq__body > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- blog -- */
.posts { display: grid; gap: clamp(18px, 2.6vw, 26px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .posts { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(168deg, var(--panel), var(--bg-2) 80%);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.post-card:hover { border-color: rgb(245 166 35 / .45); transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--ink); border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card__media img, .post-card__media svg { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.42rem; margin-bottom: .4em; color: var(--text); }
.post-card:hover h3 { color: var(--amber-lit); }
.post-card p { color: var(--text-dim); font-size: .98rem; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 13px; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.tag {
  font-family: var(--f-display); font-weight: 600; letter-spacing: .14em;
  padding: 3px 10px; border-radius: 5px;
  background: rgb(245 166 35 / .13); color: var(--amber); border: 1px solid rgb(245 166 35 / .26);
}
.post-card__more { margin-top: 16px; font-family: var(--f-display); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); font-size: 1rem; }

/* featured post */
.feat {
  display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden;
  border: 1px solid rgb(245 166 35 / .3); border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--panel-2), var(--bg-2) 70%);
  margin-bottom: clamp(30px, 4vw, 48px);
}
@media (min-width: 860px) { .feat { grid-template-columns: 1.05fr .95fr; } }
.feat__media { background: var(--ink); aspect-ratio: 16 / 9; }
.feat__media img, .feat__media svg { width: 100%; height: 100%; object-fit: cover; }
/* Keep the hero art at its native 16:9 instead of stretching to the text column,
   which would crop the wordmark off the left edge. */
@media (min-width: 860px) { .feat__media { align-self: center; } }
.feat__body { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.feat__body h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .35em; }
.feat__body p { color: var(--text-dim); }

/* ------------------------------------------------------------ article -- */
.article { max-width: 76ch; margin-inline: auto; }
.article__head { max-width: 76ch; margin-inline: auto; margin-bottom: clamp(26px, 4vw, 40px); }
.article__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.article__hero { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 44px); }
.article__hero img, .article__hero svg { width: 100%; display: block; }

.prose { font-size: 1.08rem; color: #D3DDEE; }
.prose h2 { font-size: clamp(1.7rem, 3.2vw, 2.15rem); margin-top: 1.9em; margin-bottom: .5em; color: var(--text); }
.prose h3 { font-size: clamp(1.28rem, 2.4vw, 1.5rem); margin-top: 1.7em; margin-bottom: .45em; color: var(--amber-lit); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; display: grid; gap: 9px; }
.prose li { padding-left: 4px; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(245 166 35 / .45); }
.prose figure { margin: 2em 0; }
.prose figure img, .prose figure svg { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; }
.prose figcaption { margin-top: 11px; font-size: .89rem; color: var(--text-mute); text-align: center; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--amber);
  font-size: 1.16rem; color: var(--text); font-style: italic;
}
.prose code { font-family: var(--f-mono); font-size: .9em; background: var(--panel); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; color: var(--amber-lit); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.callout {
  margin: 1.9em 0; padding: 22px 24px; border-radius: var(--radius);
  background: rgb(245 166 35 / .07); border: 1px solid rgb(245 166 35 / .28);
}
.callout p:last-child { margin-bottom: 0; }
.callout b { color: var(--amber-lit); }
.callout--green { background: rgb(53 208 127 / .07); border-color: rgb(53 208 127 / .28); }
.callout--green b { color: var(--green); }

/* data table inside prose */
.prose .tbl { overflow-x: auto; margin: 1.8em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 460px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.prose th { font-family: var(--f-display); font-size: .84rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); background: var(--panel); }
.prose tr:last-child td { border-bottom: 0; }
.prose td { color: var(--text-dim); }

/* table of contents */
.toc {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 2.2em;
}
.toc b { display: block; font-family: var(--f-display); font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 7px; }
.toc a { color: var(--text-dim); text-decoration: none; }
.toc a:hover { color: var(--amber-lit); }

/* breadcrumbs */
.crumbs { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 20px; }
.crumbs a { color: var(--text-mute); }
.crumbs a:hover { color: var(--amber); }
.crumbs span { margin-inline: 8px; opacity: .5; }

/* author + share */
.byline { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-block: 1px solid var(--line); margin: 2.6em 0; }
.byline img { width: 46px; height: 46px; border-radius: 10px; flex: none; }
.byline b { display: block; font-family: var(--f-display); font-size: 1.12rem; letter-spacing: .04em; }
.byline span { font-size: .9rem; color: var(--text-mute); }

.post-nav { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 2.6em; }
@media (min-width: 640px) { .post-nav { grid-template-columns: repeat(2, 1fr); } }
.post-nav a {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  color: var(--text); transition: border-color .18s, background .18s;
}
.post-nav a:hover { border-color: var(--amber); background: rgb(245 166 35 / .06); color: var(--text); }
.post-nav span { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 6px; }
.post-nav b { font-family: var(--f-display); font-size: 1.16rem; font-weight: 600; line-height: 1.2; }

/* --------------------------------------------------------------- CTA -- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid rgb(245 166 35 / .3); border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 68px) clamp(22px, 5vw, 56px);
  background: linear-gradient(150deg, var(--panel-2), var(--bg-2) 72%);
}
.cta::before {
  content: ""; position: absolute; inset: auto -20% -60% ; height: 120%;
  background: radial-gradient(50% 60% at 50% 100%, rgb(245 166 35 / .2), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { margin-bottom: .4em; }
.cta p { color: var(--text-dim); max-width: 56ch; margin-inline: auto; }
.cta .stores, .cta .btn-row { justify-content: center; margin-top: 26px; }

/* ------------------------------------------------------------ footer -- */
.foot { border-top: 1px solid var(--line); background: var(--ink); padding-block: clamp(40px, 6vw, 64px) 30px; margin-top: clamp(40px, 6vw, 80px); }
.foot__grid { display: grid; gap: 34px; grid-template-columns: 1fr; margin-bottom: 38px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot__brand p { color: var(--text-mute); font-size: .95rem; max-width: 38ch; margin-top: 14px; }
.foot h4 { font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--text-dim); font-size: .97rem; }
.foot ul a:hover { color: var(--amber); }
.foot__base {
  border-top: 1px solid var(--line-soft); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--text-mute);
}
.foot__base p { margin: 0; }

/* -------------------------------------------------------------- misc -- */
.center { text-align: center; }
.mt-lg { margin-top: clamp(30px, 5vw, 52px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
