/* =========================================================================
   ADAverse — refreshed design system
   Brand book: Orange #F05126 · Dark Grey #1D252C · Light Grey #3D4349 · White
   Display type: Montserrat (stand-in for Lovelo) · Body: Inter (stand-in for
   Clear Sans) — both Google-hosted so the site stays dependency free.
   ========================================================================= */

:root {
  /* Brand */
  --orange: #F05126;
  --orange-lit: #F65C33;
  --orange-deep: #C43C16;
  /* Brand orange is a mid-tone: at small sizes it fails WCAG AA against BOTH
     white (3.55) and ink (4.37). So small orange text has to pick a tint by
     surface -- deep on light, bright on dark. Large display type and solid
     button fills can still use --orange itself. */
  --orange-on-light: #C43C16;
  /* 5.24 on white  */
  --orange-on-dark: #FF8A5C;
  /* 6.68 on ink    */
  --accent-band-from: #C43C16;
  /* white text: 5.24 */
  --accent-band-to: #A5300F;
  /* white text: 6.93 */
  --ink: #1D252C;
  --slate: #3D4349;
  --white: #FFFFFF;

  /* Neutrals derived from the brand greys */
  --paper: #FFFFFF;
  --paper-alt: #F6F7F8;
  --line: #E3E6E8;
  --muted: #6B7278;

  /* Type */
  --font-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --shell: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band-y: clamp(4rem, 9vw, 7.5rem);
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(29, 37, 44, .06), 0 4px 14px rgba(29, 37, 44, .06);
  --shadow-md: 0 10px 30px rgba(29, 37, 44, .10);
  --shadow-lg: 0 24px 60px rgba(29, 37, 44, .16);

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .35vw + .95rem, 1.0625rem);
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange-deep);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

/* ---------- Utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

:where(a, button, input):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-on-light);
  margin: 0 0 .85rem;
}

/* Eyebrows are 12.5px — well under the "large text" threshold — so they must
   hit 4.5:1 on whatever surface they land on. */
.hero .eyebrow,
.band--dark .eyebrow {
  color: var(--orange-on-dark);
}

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.grad {
  background: linear-gradient(100deg, var(--orange-lit) 0%, var(--orange) 55%, #FF8A5C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  padding: 1rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--primary {
  --btn-bg: var(--orange);
}

.btn--primary:hover {
  --btn-bg: var(--orange-deep);
}

/* Hero CTA hierarchy is carried by weight, not by inventing new brand colours:
   solid orange (primary) -> solid white (secondary) -> outline (tertiary). */
.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
}

.btn--light:hover {
  --btn-bg: #EDEFF1;
}

.btn--dark {
  --btn-bg: var(--ink);
}

.btn--dark:hover {
  --btn-bg: #0F161B;
}

/* The light-surface counterpart to --ghost: same "outline" rank in the
   hierarchy, but readable on white. Ink on white is 13.4:1. */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(29, 37, 44, .25);
}

.btn--outline:hover {
  --btn-bg: var(--paper-alt);
  border-color: rgba(29, 37, 44, .5);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  border-color: rgba(255, 255, 255, .35);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .6);
}

.btn--sm {
  padding: .7rem 1.2rem;
  font-size: .85rem;
}

.btn__icon {
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 1.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Safe to be translucent: the header logo is a transparent PNG, so nothing
     shows as a white rectangle when the header passes over a coloured band. */
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: block;
  flex: none;
  line-height: 0;
}

.brand img {
  width: 116px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-block: .4rem;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transition: right .22s var(--ease);
}

.site-nav a:hover::after {
  right: 0;
}

.site-header__cta {
  flex: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(240, 81, 38, .22), transparent 62%),
    linear-gradient(165deg, #232D35 0%, var(--ink) 48%, #141B21 100%);
  color: rgba(255, 255, 255, .82);
  /* Kept deliberately tight so every hero CTA sits above the fold. The extra
     bottom padding reserves room for the pillar cards that overlap upwards. */
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(5.5rem, 9vw, 7rem);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.9vw, 3.05rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
  max-width: 20ch;
}

.hero__lede {
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.hero__orbit {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -14%;
  width: min(760px, 78vw);
  aspect-ratio: 1;
  translate: 0 -50%;
  color: rgba(240, 81, 38, .5);
  opacity: .85;
  animation: orbit 70s linear infinite;
  pointer-events: none;
}

.hero__orbit svg {
  width: 100%;
  height: 100%;
}

@keyframes orbit {
  to {
    rotate: 360deg;
  }
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: clamp(-5rem, -6vw, -3rem);
  position: relative;
  z-index: 2;
}

.pillar {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.85rem 1.85rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(240, 81, 38, .35);
}

.pillar__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .1em;
  color: var(--orange);
  margin-bottom: 1rem;
}

.pillar h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .65rem;
}

.pillar p {
  font-size: .98rem;
  margin-bottom: 1.5rem;
}

.pillar__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--orange-deep);
}

.pillar__link::after {
  content: '→';
  display: inline-block;
  margin-left: .4em;
  transition: translate .2s var(--ease);
}

.pillar:hover .pillar__link::after {
  translate: 5px 0;
}

/* ---------- Bands ---------- */
.band {
  padding-block: var(--band-y);
}

.band--dark {
  background:
    radial-gradient(700px 400px at 12% 0%, rgba(240, 81, 38, .18), transparent 60%),
    var(--ink);
  color: rgba(255, 255, 255, .78);
}

.band--dark h2,
.band--dark h3 {
  color: var(--white);
}

/* Deepened from the raw brand orange so white body text clears 4.5:1 across the
   whole gradient. Solid brand orange survives on buttons and large display type,
   where the contrast requirement is lower. */
.band--accent {
  background: linear-gradient(135deg, var(--accent-band-from) 0%, var(--accent-band-to) 100%);
  color: var(--white);
}

.band--accent h2,
.band--accent .eyebrow {
  color: var(--white);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split--reverse .split__copy {
  order: 2;
}

.split__copy p {
  max-width: 54ch;
}

/* Community visual */
.card-stack {
  display: grid;
  gap: 1rem;
}

.card-stack__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.3rem;
  font-size: .98rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .8rem;
}

.card-stack__card:nth-child(1) {
  margin-right: 2.5rem;
}

.card-stack__card:nth-child(2) {
  margin-left: 2.5rem;
}

.card-stack__card:nth-child(3) {
  margin-right: 1.25rem;
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

/* Podcast */
.podcast-figure {
  display: block;
}

.podcast-art {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-inline: auto;
}

/* ---------- Episode list ---------- */
.episodes {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.episode {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.episode__link {
  display: block;
  padding: .95rem .25rem;
  text-decoration: none;
  color: inherit;
  transition: background-color .18s var(--ease), padding-left .18s var(--ease);
}

.episode__link:hover {
  background: rgba(255, 255, 255, .05);
  padding-left: .7rem;
}

.episode__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-bottom: .3rem;
}

.episode__num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange-on-dark);
}

.episode__meta > *:not(:last-child)::after {
  content: '·';
  margin-left: .55rem;
  color: rgba(255, 255, 255, .35);
}

.episode__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--white);
}

.episodes__note {
  margin: .9rem 0 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .62);
}

.podcast-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  margin-top: 1.75rem;
}

/* All three are official platform badges. Their brand guidelines forbid
   modifying, distorting or animating the artwork, so: match on HEIGHT only
   (never stretch to a fixed width), and use opacity rather than a transform
   for hover feedback. YouTube's minimum is 20px high — these are well over. */
.store-link {
  display: inline-block;
  line-height: 0;
  transition: opacity .18s var(--ease);
}

.store-link:hover {
  opacity: .82;
}

.store-link img {
  height: 56px;
  width: auto;
  max-width: 100%;
}

/* ---------- Insider signup ---------- */
.signup {
  max-width: 720px;
  text-align: center;
}

.signup .eyebrow {
  color: var(--white);
}

.signup__lede {
  font-size: 1.08rem;
  margin-bottom: 2rem;
}

#subscribe-form,
#content-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0 auto;
  max-width: 560px;
}

#subscribe-form input[type="email"],
#content-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 1rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

#content-form input[type="email"] {
  border-color: var(--line);
}

#subscribe-form input::placeholder,
#content-form input::placeholder {
  color: var(--muted);
}

#subscribe-form button,
#content-form button {
  flex: 0 0 auto;
}

#message,
#content-message {
  margin: 1.25rem 0 0;
  font-weight: 600;
  min-height: 1.5rem;
}

#message {
  color: var(--white);
}

#content-message {
  color: var(--orange-deep);
}

.signup__fineprint {
  margin: 1rem 0 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .92);
}

/* Route into the issue archive. Pure white rather than a tint: the accent band
   only clears 4.5:1 for white, and this is small text. */
.signup__archive {
  margin: .9rem 0 0;
  font-size: .9rem;
}

.signup__archive a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  text-underline-offset: .25em;
}

/* ---------- Gated content view ---------- */
.gate {
  display: grid;
  place-items: center;
  padding-block: clamp(3.5rem, 10vw, 7rem);
}

.gate__inner {
  max-width: 640px;
  text-align: center;
}

.gate__lede {
  margin-bottom: .35rem;
}

.gate__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 2rem;
}

.gate__name:empty {
  margin-bottom: 1rem;
}

/* =========================================================================
   The ADAverse Insider — archive index (/insider/) and issues (/insider/NNN/)

   These pages share this stylesheet, the site header and the site footer, so
   an archived issue reads as part of the site rather than a pasted email.
   The email itself is dark-themed with its own tokens; do not copy those in.

   Contrast: small orange text on these white surfaces uses --orange-on-light
   / --orange-deep (5.24 on white), never raw --orange.
   ========================================================================= */

/* ---------- Sub-page hero ---------- */
/* A shorter version of .hero for pages that are not the front page: no orbit
   animation, no reserved space for overlapping pillar cards. */
.page-hero {
  background:
    radial-gradient(760px 420px at 82% 12%, rgba(240, 81, 38, .20), transparent 62%),
    linear-gradient(165deg, #232D35 0%, var(--ink) 48%, #141B21 100%);
  color: rgba(255, 255, 255, .82);
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}

.page-hero__inner {
  max-width: 820px;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  font-weight: 800;
  max-width: 22ch;
  margin-bottom: 1rem;
}

.page-hero .eyebrow {
  color: var(--orange-on-dark);
}

.page-hero__lede {
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  max-width: 58ch;
  margin-bottom: 0;
}

/* On an issue, the hero column has to be the same width as .issue-body below
   it, or the two centred boxes give the title and the body different left
   edges. Keep these two values in step. */
.page-hero--issue .page-hero__inner {
  max-width: 760px;
}

/* Dotted meta line: date, author, duration. Shared by the issue hero and the
   featured-episode card, both of which sit on dark. */
.issue-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}

.issue-meta > *:not(:last-child)::after {
  content: '·';
  margin-left: .55rem;
  color: rgba(255, 255, 255, .35);
}

.issue-back {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--orange-on-dark);
  text-decoration: none;
  margin-bottom: 1.1rem;
}

.issue-back::before {
  content: '←';
  display: inline-block;
  margin-right: .45em;
  transition: translate .2s var(--ease);
}

.issue-back:hover::before {
  translate: -4px 0;
}

.issue-back:hover {
  text-decoration: underline;
}

/* ---------- Archive index ---------- */
/* Kept to one column at the same width as .page-hero__inner so the cards line
   up with the heading above them. A list of issues reads better as a single
   column than as a grid, however many issues there eventually are. */
.archive {
  max-width: 820px;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.issue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.issue-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.issue-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(240, 81, 38, .35);
}

.issue-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-on-light);
}

.issue-card__meta time {
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}

.issue-card h3 {
  font-size: clamp(1.3rem, 2vw, 1.55rem);
  font-weight: 700;
  margin-bottom: .65rem;
}

.issue-card p {
  font-size: .98rem;
  margin-bottom: 1.25rem;
  max-width: 62ch;
}

.issue-card__topics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.4rem;
  padding: 0;
}

.issue-card__topics li {
  font-size: .82rem;
  color: var(--slate);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .8rem;
}

.issue-card__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--orange-deep);
}

.issue-card__link::after {
  content: '→';
  display: inline-block;
  margin-left: .4em;
  transition: translate .2s var(--ease);
}

.issue-card:hover .issue-card__link::after {
  translate: 5px 0;
}

.archive__note {
  margin: 1.75rem 0 0;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- A single issue ---------- */
.issue-body {
  max-width: 760px;
  padding-block: clamp(2.75rem, 6vw, 4rem);
}

.issue-body > p {
  max-width: 66ch;
}

/* Section labels inside an issue reuse .eyebrow, with air above them so the
   issue reads as distinct blocks rather than one long column. */
.issue-body .eyebrow {
  margin-top: clamp(2.5rem, 5vw, 3.25rem);
  margin-bottom: 1.15rem;
  font-size: .8rem;
}

.issue-topics {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.issue-topic {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
}

.issue-topic__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--orange-on-light);
  margin-bottom: .55rem;
}

.issue-topic h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .6rem;
}

.issue-topic p {
  font-size: .98rem;
  margin-bottom: 1rem;
}

/* Standalone "read more" links. Distinguished from body text by weight,
   colour and the arrow rather than by an underline alone. */
.issue-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--orange-deep);
  text-decoration: none;
}

.issue-link::after {
  content: '→';
  display: inline-block;
  margin-left: .4em;
  transition: translate .2s var(--ease);
}

.issue-link:hover::after {
  translate: 5px 0;
}

.issue-link:hover {
  text-decoration: underline;
}

.issue-featured {
  background:
    radial-gradient(520px 300px at 88% 0%, rgba(240, 81, 38, .22), transparent 62%),
    var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem 1.8rem;
  color: rgba(255, 255, 255, .8);
}

.issue-featured h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

.issue-featured .issue-meta {
  margin-bottom: .95rem;
}

.issue-featured p {
  font-size: 1rem;
  margin-bottom: 1.15rem;
  max-width: 58ch;
}

.issue-featured .issue-link {
  color: var(--orange-on-dark);
}

.issue-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 0;
  padding: 0;
}

.issue-chip {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-size: .86rem;
  color: var(--slate);
  text-decoration: none;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.issue-chip:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.issue-signoff {
  margin: clamp(2.5rem, 5vw, 3.25rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--ink);
}

@media (max-width: 720px) {

  .issue-card,
  .issue-topic,
  .issue-featured {
    padding: 1.4rem 1.3rem;
  }

  .issue-body .actions .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.site-footer__brand {
  max-width: 34ch;
}

/* Transparent PNG in the dark colourway (orange ADA, white VERSE). */
.site-footer__brand img {
  width: 130px;
  margin: -.75rem 0 .5rem -.5rem;
}

.site-footer__brand p {
  margin: 0;
}

.site-footer__nav {
  display: grid;
  gap: .7rem;
}

.site-footer__nav a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__nav a:hover {
  color: var(--orange-lit);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: .65rem;
}

/* Official Tecala wordmark (white version, for dark backgrounds). */
.tecala-link {
  display: block;
  line-height: 0;
  opacity: .92;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.tecala-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.tecala-link img {
  height: 24px;
  width: auto;
}

/* ---------- View switching ---------- */
/* Default: the marketing site is visible, the gated view and loader are not.
   An inline <head> script adds .is-resolving to <html> when the URL carries a
   contentId, so the correct view is chosen before first paint. */
#downloadContent,
#loadingIndicator {
  display: none;
}

.is-resolving #mainContent {
  display: none;
}

.is-resolving #loadingIndicator {
  display: block;
}

.is-resolving .site-footer {
  display: none;
}

.show-download #downloadContent {
  display: block;
}

.show-download #loadingIndicator,
.show-download #mainContent {
  display: none;
}

/* ---------- Spinners ---------- */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: spin .6s linear infinite;
  vertical-align: middle;
}

.main-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(240, 81, 38, .25);
  border-radius: 50%;
  border-top-color: var(--orange);
  animation: spin .6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#loadingIndicator {
  position: fixed;
  inset: 0;
  place-items: center;
  z-index: 9999;
  background: var(--paper);
}

.is-resolving #loadingIndicator {
  display: grid;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity .7s var(--ease), translate .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@media print {

  .reveal,
  .reveal:not(.is-visible) {
    opacity: 1;
    translate: none;
  }

  .site-header,
  .hero__orbit {
    position: static;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__copy {
    order: 0;
  }

  .split__visual {
    order: 1;
  }

  .card-stack__card {
    margin-inline: 0 !important;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .site-header__cta {
    margin-left: auto;
  }

  .brand img {
    width: 96px;
  }

  .pillars {
    margin-top: 0;
    padding-top: var(--band-y);
  }

  .hero__orbit {
    right: -35%;
    opacity: .5;
  }

  /* Tightened so all three hero CTAs clear the fold on small phones.
     Measured against 375x667 (iPhone SE) — re-check if type sizes change. */
  .hero {
    padding-top: 1.9rem;
    padding-bottom: 3rem;
  }

  .hero h1 {
    margin-bottom: .8rem;
  }

  .hero__lede {
    margin-bottom: 1.3rem;
  }

  .hero__actions {
    gap: .55rem;
  }

  .hero__actions .btn {
    width: 100%;
    padding-block: .85rem;
  }

  #subscribe-form button,
  #content-form button {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .store-link img {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__orbit {
    animation: none;
  }

  .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .spinner,
  .main-spinner {
    animation-duration: .8s !important;
  }
}
