/*
Theme Name: Payne Fight Camp
Theme URI: https://example.com/
Author: Custom build
Author URI: https://example.com/
Description: A hand-built, page-builder-free WordPress theme for a combat-sports personal brand. Ships a two-step funnel: a content landing page and an age-gated members gateway. No Elementor, no jQuery, no block bloat.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: payne
Tags: custom-theme, one-page, responsive, dark
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Base — pulled from the gym photography: black floor, blue neon, red gloves */
  --ink:        #08090b;
  --ink-raise:  #0e1116;
  --ink-sink:   #050608;
  --rule:       rgba(255, 255, 255, .11);
  --rule-soft:  rgba(255, 255, 255, .06);

  --paper:      #f2f4f7;
  --mute:       #878d98;
  --mute-dim:   #5c626c;

  --red:        #d91e18;   /* action: gloves. Used only on things you can press. */
  --red-hot:    #ff3b32;
  --blue:       #2e7bff;   /* ambient: gym neon. Used only on structure. */
  --blue-deep:  #0a2a6b;

  /* Type */
  --display: "Big Shoulders Display", "Haettenschweiler", "Arial Narrow", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Scale */
  --step--1: clamp(.78rem, .75rem + .15vw, .84rem);
  --step-0:  clamp(.95rem, .91rem + .2vw, 1.03rem);
  --step-1:  clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3:  clamp(2.4rem, 1.8rem + 3vw, 4.4rem);
  --step-4:  clamp(3.4rem, 2.1rem + 6.4vw, 8.5rem);

  /* Layout */
  --gut: clamp(1.15rem, 4vw, 3.5rem);
  --max: 1320px;
  --header-h: 68px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

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

::selection { background: var(--red); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--paper);
  color: var(--ink);
  padding: .75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: .5rem; top: .5rem; }

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

/* ==========================================================================
   3. Primitives
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Display type is set as fight-poster signage: condensed, tight, uppercase.
   Body copy stays sentence case. */
.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
  font-stretch: condensed;
}

.tag {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--step--1);
  letter-spacing: .14em;
  color: var(--mute);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: #c9ced7;
  max-width: 44ch;
}

p { max-width: 66ch; }

/* Section rhythm — one place, so nothing cancels out */
.band { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.band--sink  { background: var(--ink-sink); }

.band__head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--rule);
}
.band__head h2 { font-size: var(--step-2); }
.band__head .tag { margin-left: auto; white-space: nowrap; }

@media (max-width: 640px) {
  .band__head {
    display: block;
  }
  .band__head .tag { display: block; margin: .6rem 0 0; }
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem);
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border: 1px solid transparent;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn { max-width: 100%; }

/* Grid children default to min-width:auto, so a nowrap button can widen a
   whole track. Cap them, and let long labels wrap on the narrowest phones. */
.access > *,
.gate-top__grid > *,
.split > *,
.goods > *,
.access__side > * { min-width: 0; }

@media (max-width: 430px) {
  .btn { white-space: normal; text-align: center; }
}

.btn--solid {
  background: var(--red);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.btn--solid:hover { background: var(--red-hot); }

.btn--ghost {
  border-color: var(--rule);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--paper); background: rgba(255,255,255,.04); }

.btn--wide { width: 100%; padding-block: 1.3rem; }
.btn--sm { padding: .62rem 1.05rem; font-size: .92rem; letter-spacing: .08em; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(8, 9, 11, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}

.site-header__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: .7rem;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.32rem;
  letter-spacing: .015em;
  line-height: 1;
}
.brand__mark {
  width: 4px;
  height: 22px;
  background: var(--red);
  flex: none;
}
.brand__name { letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand__sub {
  font-family: var(--body);
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--mute-dim);
  text-transform: uppercase;
  border-left: 1px solid var(--rule);
  padding-left: .7rem;
  margin-left: .2rem;
}

.site-nav { margin-left: auto; flex: none; display: flex; align-items: center; gap: 1.75rem; }
.btn__short { display: none; }
.site-nav a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--mute);
  transition: color .18s var(--ease);
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--paper); }
.site-nav .btn { color: #fff; }

@media (max-width: 760px) {
  .brand__name { letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand__sub { display: none; }
  .site-nav { gap: 0; }
  .site-nav .menu { display: none; }
}

/* The wordmark plus a CTA is tight on a phone; scale the button, not the brand. */
@media (max-width: 620px) {
  .brand { font-size: .96rem; }
  .brand__mark { height: 16px; width: 3px; }
  .btn--sm { font-size: .78rem; padding: .55rem .85rem; letter-spacing: .05em; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
}
@media (max-width: 380px) {
  .brand { font-size: .86rem; }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: grid;
  align-items: end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 36% 36%;
  filter: contrast(1.06) saturate(1.05);
}
/* Two-stop scrim: keeps type legible without flattening the neon */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(8,9,11,.86) 34%, rgba(8,9,11,.18) 72%),
    linear-gradient(to right, rgba(8,9,11,.92) 0%, rgba(8,9,11,.35) 52%, transparent 78%);
}

/* Faint neon wash echoing the gym lighting */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -20% -30% -20%;
  height: 60%;
  background: radial-gradient(ellipse at 30% 100%, rgba(46,123,255,.22), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.hero__rule {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.hero__rule::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 180px;
  background: linear-gradient(to right, var(--rule), transparent);
}

.hero h1 {
  font-size: var(--step-4);
  max-width: 14ch;
  margin-bottom: 1.5rem;
}
.hero h1 .line { display: block; }
/* The one piece of load motion on the page */
.hero h1 .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise .9s var(--ease) forwards;
}
.hero h1 .line { overflow: hidden; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .2s; }

@keyframes rise { to { transform: translateY(0); } }

.hero__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1.5rem, 4vw, 3rem);
  opacity: 0;
  animation: fadeUp .8s var(--ease) .45s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

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

.hero__note {
  font-size: .78rem;
  color: var(--mute-dim);
  letter-spacing: .02em;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp .8s var(--ease) .6s forwards;
}

@media (max-width: 720px) {
  .hero__media img { object-position: 30% 26%; }
  /* Narrow screens get a bottom-up scrim only — the side gradient buries the
     subject when the frame is this tight. */
  .hero__media::after {
    background: linear-gradient(to top, var(--ink) 6%, rgba(8,9,11,.9) 40%, rgba(8,9,11,.3) 78%);
  }
  .brand { font-size: 1.12rem; }
  .brand__mark { height: 18px; }
  .hero h1 { max-width: none; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* ==========================================================================
   6. Ticker
   ========================================================================== */
.ticker {
  border-block: 1px solid var(--rule);
  background: var(--ink-raise);
  overflow: hidden;
  padding-block: .85rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker span {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: .1em;
  color: var(--mute);
  padding-inline: 1.4rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.ticker span::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--red);
  transform: rotate(45deg);
  flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   7. Tale of the tape — an actual boxing device, used for camp terms
   ========================================================================== */
.tape { border-top: 1px solid var(--rule); }
.tape__row {
  display: grid;
  grid-template-columns: minmax(0, 6rem) minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
  border-bottom: 1px solid var(--rule-soft);
}
.tape__k {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  text-transform: uppercase;
  color: var(--blue);
  line-height: .9;
}
.tape__t {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: .05em;
}
.tape__d { color: #9aa1ab; font-size: var(--step-0); line-height: 1.6; max-width: 52ch; }

@media (max-width: 720px) {
  .tape__row { grid-template-columns: 5rem 1fr; }
  .tape__d { grid-column: 1 / -1; }
}

/* ==========================================================================
   8. Split feature
   ========================================================================== */
.split {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split--flip .split__media { order: -1; }
}

.split__media {
  position: relative;
  overflow: hidden;
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: contrast(1.05);
}
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--rule);
  background: linear-gradient(to top, rgba(8,9,11,.5), transparent 55%);
}

.split__copy h2 { font-size: var(--step-3); margin-bottom: 1.25rem; }
.split__copy p + p { margin-top: 1rem; }
.split__copy p { color: var(--mute); }

.quote {
  margin-top: 2rem;
  padding-left: 1.4rem;
  border-left: 3px solid var(--red);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  line-height: 1.05;
  color: var(--paper);
  max-width: 22ch;
}

/* ==========================================================================
   9. CTA band
   ========================================================================== */
.cta {
  position: relative;
  border-top: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at 15% 120%, rgba(217,30,24,.16), transparent 58%),
    radial-gradient(ellipse at 85% -20%, rgba(46,123,255,.14), transparent 55%),
    var(--ink-sink);
  text-align: left;
}
.cta h2 { font-size: var(--step-3); max-width: 16ch; margin-bottom: 1.25rem; }
.cta p { color: var(--mute); margin-bottom: 2rem; }
.cta__note { font-size: .76rem; color: var(--mute-dim); margin-top: 1.25rem; }

/* ==========================================================================
   10. Gateway page
   ========================================================================== */
.gate-top {
  padding-top: calc(var(--header-h) + clamp(2.25rem, 7vw, 5rem));
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
  background:
    radial-gradient(ellipse at 88% -10%, rgba(46,123,255,.18), transparent 58%),
    radial-gradient(ellipse at 5% 110%, rgba(217,30,24,.12), transparent 55%),
    var(--ink);
}

.gate-top__grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .gate-top__grid { grid-template-columns: 1.05fr .95fr; } }

.gate-top__intro h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 5.2rem);
  margin-block: .8rem 1rem;
  max-width: 12ch;
}

/* The card is the first thing on the page on small screens — the membership
   button must be reachable without scrolling. */
.gate-top__card {
  border: 1px solid var(--rule);
  background:
    linear-gradient(158deg, rgba(217,30,24,.14), transparent 48%),
    var(--ink-raise);
  padding: clamp(1.4rem, 3.4vw, 2.25rem);
}
@media (max-width: 899px) { .gate-top__card { order: -1; } }

.gate-top__card h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: .92;
  margin-block: .55rem .6rem;
}
.gate-top__card p { color: var(--mute); font-size: var(--step--1); margin-bottom: 1.4rem; }

.access {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .access { grid-template-columns: 1.15fr .85fr; gap: 3rem; } }

.access__main {
  border: 1px solid var(--rule);
  background:
    linear-gradient(160deg, rgba(217,30,24,.10), transparent 46%),
    var(--ink-raise);
  padding: clamp(1.6rem, 4vw, 2.75rem);
}
.access__main h2 { font-size: var(--step-2); margin-bottom: 1.5rem; }
.access__warn {
  color: var(--mute);
  font-size: var(--step--1);
  margin-bottom: 1.9rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--red);
}

.perks { display: grid; gap: .8rem; margin-bottom: 2rem; }
.perks li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: .85rem;
  align-items: start;
  font-size: var(--step--1);
  color: #c4cad3;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--rule-soft);
}
.perks li::before {
  content: "";
  width: 7px; height: 7px;
  margin-top: .52em;
  background: var(--red);
  transform: rotate(45deg);
}

.access__side { display: grid; gap: 1px; background: var(--rule-soft); border: 1px solid var(--rule-soft); }
.link-row {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem clamp(1rem, 2.5vw, 1.5rem);
  transition: background-color .2s var(--ease), padding-left .2s var(--ease);
}
.link-row:hover { background: var(--ink-raise); padding-left: calc(clamp(1rem, 2.5vw, 1.5rem) + 6px); }
.link-row__label {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.link-row__sub { font-size: .74rem; color: var(--mute-dim); letter-spacing: .06em; text-transform: uppercase; }
.link-row__arrow { color: var(--mute-dim); font-size: 1.1rem; transition: color .2s var(--ease), transform .2s var(--ease); }
.link-row:hover .link-row__arrow { color: var(--red); transform: translateX(3px); }

.fineprint {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .76rem;
  color: var(--mute-dim);
  max-width: 62ch;
}

/* ==========================================================================
   11. Disqualifier list
   ========================================================================== */
.warn { counter-reset: warn; display: grid; gap: 0; max-width: 62ch; }
.warn li {
  counter-increment: warn;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding-block: clamp(1rem, 2.2vw, 1.4rem);
  border-bottom: 1px solid var(--rule-soft);
  font-size: var(--step-1);
  line-height: 1.4;
  color: #d6dae1;
}
.warn li:first-child { border-top: 1px solid var(--rule); }
.warn li::before {
  content: counter(warn, decimal-leading-zero);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
}
.warn__tail {
  margin-top: 1.75rem;
  color: var(--mute);
  font-size: var(--step--1);
  max-width: 58ch;
}

/* ==========================================================================
   12. Shop
   ========================================================================== */
.shop-top {
  padding-top: calc(var(--header-h) + clamp(3rem, 9vw, 6rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(46,123,255,.14), transparent 58%),
    var(--ink);
}
.shop-top h1 { font-size: var(--step-3); margin-block: .85rem 1.1rem; max-width: 16ch; }
.shop-top .btn { margin-top: 1.75rem; }

.goods {
  display: grid;
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 780px) { .goods { grid-template-columns: repeat(3, 1fr); } }

.good { background: var(--ink); padding: clamp(1rem, 2.4vw, 1.6rem); }
.good__thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 9px),
    var(--ink-raise);
  box-shadow: inset 0 0 0 1px var(--rule-soft);
}
.good__stamp {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .16em;
  color: var(--mute-dim);
  border: 1px solid var(--rule);
  padding: .4rem .7rem;
}
.good h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: .35rem;
}
.good__spec { color: var(--mute); font-size: .8rem; }
.good__drop {
  margin-top: .6rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue);
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--ink-sink);
  padding-block: clamp(2rem, 4vw, 2.75rem);
}
.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer small, .site-footer a { font-size: .78rem; color: var(--mute-dim); }
.site-footer a:hover { color: var(--paper); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ==========================================================================
   14. Reveal + motion prefs
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .hero__body, .hero__note { opacity: 1; }
}

/* ==========================================================================
   15. Editor fallbacks (404 / index)
   ========================================================================== */
.plain { padding-top: calc(var(--header-h) + 5rem); padding-bottom: 5rem; }
.plain h1 { font-size: var(--step-3); margin-bottom: 1rem; }
.plain p { color: var(--mute); margin-bottom: 2rem; }
.plain .entry a { color: var(--blue); text-decoration: underline; }
.plain .entry > * + * { margin-top: 1rem; }
