/* The Jet Ski Store Blog — one stylesheet. No framework, no webfont request. */

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #ebebed;
  --fg: #1d1d1f;
  --fg-2: #4f4f56;
  --fg-3: #6e6e73;
  --hair: rgba(0, 0, 0, 0.09);
  --hair-2: rgba(0, 0, 0, 0.16);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(0, 0, 0, 0.08);
  --link: #0066cc;
  --link-hover: #004f9e;
  --deep: #06131f;
  --deep-2: #0a2536;
  --deep-fg: #f5f5f7;
  --deep-fg-2: #9fb2c0;
  --accent: #e4572e;
  --accent-cta: #c8461f;
  --accent-cta-hover: #a83a17;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.35);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --pill: 999px;

  --pad: clamp(20px, 5vw, 44px);
  --max: 1180px;
  --max-wide: 1440px;

  --ease: cubic-bezier(0.22, 0.68, 0.08, 1);
  --dur: 240ms;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #161617;
    --bg-3: #242426;
    --fg: #f5f5f7;
    --fg-2: #a1a1a6;
    --fg-3: #86868b;
    --hair: rgba(255, 255, 255, 0.13);
    --hair-2: rgba(255, 255, 255, 0.24);
    --glass: rgba(10, 10, 11, 0.7);
    --glass-line: rgba(255, 255, 255, 0.12);
    --link: #2997ff;
    --link-hover: #6bb8ff;
    --deep: #0a141d;
    --deep-2: #10293a;
    --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--fg);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

p {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

button {
  font: inherit;
  letter-spacing: inherit;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--fg);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 590;
}

.skip:focus-visible {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--glass-line);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--bg);
    border-bottom-color: var(--hair);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: var(--hair);
  }
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  max-width: var(--max-wide);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-height: 44px;
}

.brand:hover {
  color: var(--fg);
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand-name {
  display: inline;
}

.brand-sub {
  color: var(--fg-2);
  font-weight: 400;
}

.nav {
  display: none;
  gap: 4px;
  margin-left: 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--pill);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav a:hover {
  color: var(--fg);
  background: var(--hair);
  text-decoration: none;
}

.bar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-cta {
  display: none;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: var(--pill);
  background: var(--fg);
  color: var(--bg);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -0.005em;
}

.bar-cta:hover {
  color: var(--bg);
  text-decoration: none;
  background: var(--fg);
  opacity: 0.85;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.menu-btn:hover {
  background: var(--hair);
}

.menu-btn .bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.menu-btn .bars i {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.menu-btn[aria-expanded="true"] .bars i:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .bars i:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.progress {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 300ms ease;
}

.progress[data-active="true"] {
  opacity: 0.85;
}

/* Mobile sheet */
.sheet {
  display: none;
  border-top: 1px solid var(--hair);
  background: var(--bg);
  padding: 8px var(--pad) 22px;
}

.sheet[data-open="true"] {
  display: block;
  animation: sheet-in 220ms var(--ease) both;
}

.sheet a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--hair);
  color: var(--fg);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sheet a:last-child {
  border-bottom: 0;
}

.sheet a:hover {
  text-decoration: none;
  color: var(--fg-2);
}

.sheet .chev {
  color: var(--fg-3);
  font-size: 16px;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .sheet {
    display: none !important;
  }
}

@media (min-width: 1000px) {
  .bar {
    min-height: 60px;
  }

  .bar-cta {
    display: inline-flex;
  }
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--pill);
  background: var(--fg);
  color: var(--bg);
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 160ms var(--ease), opacity 160ms ease;
}

.btn:hover {
  color: var(--bg);
  text-decoration: none;
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.985);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--hair-2);
}

.btn--ghost:hover {
  color: var(--fg);
  opacity: 1;
  background: var(--hair);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 46px;
  color: var(--link);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.text-link:hover {
  color: var(--link-hover);
  text-decoration: none;
}

.text-link .chev {
  transition: transform 160ms var(--ease);
}

.text-link:hover .chev {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- hero */
.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
}

.hero-inner {
  max-width: 1000px;
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.008em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(46px, 8.4vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.042em;
  margin-inline: auto;
  max-width: 16ch;
}

.hero h1 .line {
  display: block;
}

.hero-lede {
  max-width: 27em;
  margin: clamp(22px, 3vw, 30px) auto 0;
  color: var(--fg-2);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.44;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin-top: clamp(26px, 3vw, 34px);
}

.hero-facts {
  margin-top: 26px;
  color: var(--fg-3);
  font-size: 13px;
  letter-spacing: 0;
}

/* ---------------------------------------------------------------- plates */
.plate {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  border-radius: var(--r-lg);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-plate {
  max-width: var(--max-wide);
  margin: clamp(38px, 5.5vw, 68px) auto 0;
  padding-inline: var(--pad);
}

.hero-plate .plate {
  aspect-ratio: 16 / 8.4;
  border-radius: clamp(20px, 2.4vw, 32px);
}

.hero-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  max-width: var(--max);
  margin: 16px auto 0;
  color: var(--fg-2);
  font-size: 13px;
  letter-spacing: 0;
}

.hero-caption .cap-strong {
  color: var(--fg);
  font-weight: 500;
}

@media (max-width: 560px) {
  .hero-caption > span:last-child {
    display: none;
  }
}

/* ---------------------------------------------------------------- sections */
.section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.section--tight {
  padding-top: clamp(20px, 3vw, 32px);
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-head h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  letter-spacing: -0.036em;
  line-height: 1.02;
}

.section-head p {
  max-width: 34em;
  color: var(--fg-2);
  font-size: 17px;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.section-head--row {
  align-items: end;
}

@media (min-width: 860px) {
  .section-head--row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------------------------------------------------------------- controls */
.toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(26px, 3.4vw, 40px);
}

@media (min-width: 760px) {
  .toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
  }
}

.search {
  position: relative;
  display: block;
  width: 100%;
  max-width: 400px;
}

.search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--fg-3);
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 46px;
  padding: 0 18px 0 44px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder {
  color: var(--fg-3);
}

.search input:hover {
  background: var(--bg-3);
}

.search input:focus {
  outline: none;
  background: var(--bg);
  border-color: var(--link);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 18%, transparent);
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.segmented {
  display: flex;
  gap: 2px;
  padding: 3px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--pill);
  background: var(--bg-2);
  width: fit-content;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--fg-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.008em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.chip:hover {
  color: var(--fg);
}

.chip[aria-pressed="true"] {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

@media (prefers-color-scheme: dark) {
  .chip[aria-pressed="true"] {
    background: var(--bg-3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  }
}

/* On narrow screens the filter row runs to the screen edge so the cut-off chip
   reads as "more to the right" instead of a clipped control. */
@media (max-width: 759px) {
  .segmented {
    width: 100%;
    margin-right: calc(var(--pad) * -1);
    padding-right: calc(var(--pad) + 3px);
    scroll-padding-inline: var(--pad);
  }
}

.result-count {
  margin: 0 0 18px;
  color: var(--fg-3);
  font-size: 13px;
  letter-spacing: 0;
}

/* ---------------------------------------------------------------- library */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  color: var(--fg);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease),
    background 200ms ease;
}

.card:hover {
  color: var(--fg);
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: var(--bg-3);
}

.card:active {
  transform: translateY(-1px);
}

.card-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--deep);
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms var(--ease);
}

.card:hover .card-art img {
  transform: scale(1.035);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 26px;
}

.card-kicker {
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.card h3 {
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.14;
  letter-spacing: -0.026em;
  text-wrap: pretty;
}

.card p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--fg-3);
  font-size: 13px;
  letter-spacing: 0;
}

.card-foot .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* Empty state */
.empty {
  display: none;
  padding: 56px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  text-align: center;
}

.empty[data-show="true"] {
  display: block;
}

.empty h3 {
  font-size: 22px;
  letter-spacing: -0.024em;
}

.empty p {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 16px;
}

.empty button {
  margin-top: 18px;
}

/* ---------------------------------------------------------------- topics */
.topics {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.topics li {
  border-bottom: 1px solid var(--hair);
}

.topic {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 22px 2px;
  color: var(--fg);
}

.topic:hover {
  color: var(--fg);
  text-decoration: none;
}

.topic .topic-name {
  flex: none;
  width: 9.5em;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 560;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.topic .topic-desc {
  flex: 1 1 auto;
  color: var(--fg-2);
  font-size: 15px;
  letter-spacing: -0.008em;
}

.topic .chev {
  flex: none;
  color: var(--fg-3);
  font-size: 15px;
  transition: transform 200ms var(--ease), color 200ms ease;
}

.topic:hover .chev {
  transform: translateX(4px);
  color: var(--fg);
}

@media (min-width: 900px) {
  .topics {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
}

/* ---------------------------------------------------------------- newsletter */
.band {
  background: var(--deep);
  color: var(--deep-fg);
  padding: clamp(64px, 9vw, 112px) 0;
}

.band-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.band h2 {
  color: var(--deep-fg);
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.band p {
  max-width: 32em;
  margin: 18px auto 0;
  color: var(--deep-fg-2);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.band form {
  display: flex;
  gap: 6px;
  max-width: 470px;
  margin: clamp(24px, 3vw, 32px) auto 0;
  padding: 5px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

@media (max-width: 480px) {
  .band form {
    flex-direction: column;
    border-radius: var(--r);
    background: transparent;
    box-shadow: none;
    gap: 10px;
  }
}

.band input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.band input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.band input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}

@media (max-width: 480px) {
  .band input {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  }
}

.band button {
  flex: none;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--pill);
  background: var(--accent-cta);
  color: #fff;
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms var(--ease);
}

.band button:hover {
  background: var(--accent-cta-hover);
}

.band button:active {
  transform: scale(0.985);
}

.band button:focus-visible {
  outline-color: #fff;
}

.band-note {
  margin-top: 16px !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  max-width: 40em;
}

.band-note[data-state="ok"] {
  color: #8fe3c6 !important;
}

.band-note[data-state="error"] {
  color: #ffb3a0 !important;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--bg-2);
  padding: clamp(48px, 6vw, 72px) 0 34px;
  color: var(--fg-2);
  font-size: 13px;
  letter-spacing: 0;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.footer-brand:hover {
  color: var(--fg);
  text-decoration: none;
}

.footer-about {
  max-width: 30em;
  margin-top: 12px;
  line-height: 1.5;
}

.footer-col h2 {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.006em;
}

.footer-col ul {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--fg-2);
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  color: var(--fg-3);
}

.footer-legal nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.footer-legal a {
  color: var(--fg-2);
}

/* ---------------------------------------------------------------- article */
.article {
  padding: clamp(40px, 6vw, 76px) 0 clamp(64px, 9vw, 110px);
}

.article-inner {
  max-width: 692px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.back:hover {
  color: var(--fg);
  text-decoration: none;
}

.back .chev {
  transition: transform 160ms var(--ease);
}

.back:hover .chev {
  transform: translateX(-3px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: clamp(22px, 3vw, 30px);
  color: var(--fg-3);
  font-size: 13px;
  letter-spacing: 0;
}

.article-meta .tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--pill);
  background: var(--bg-2);
  color: var(--fg-2);
  font-weight: 500;
}

.article h1 {
  margin-top: 14px;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.article .standfirst {
  margin-top: 18px;
  color: var(--fg-2);
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.42;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

.article-plate {
  max-width: 980px;
  margin: clamp(30px, 4.4vw, 48px) auto;
  padding-inline: var(--pad);
}

.article-plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--deep);
}

.article .body > * + p:not(.fine),
.article .body > * + ul,
.article .body > * + ol {
  margin-top: 20px;
}

.article h2 {
  font-size: clamp(24px, 2.8vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-top: clamp(38px, 4.6vw, 54px);
}

.article p,
.article li {
  color: var(--fg);
  font-size: clamp(18px, 1.9vw, 19px);
  line-height: 1.62;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.article ul,
.article ol {
  margin: 0;
  padding-left: 1.15em;
}

.article li {
  margin-top: 10px;
  padding-left: 0.15em;
}

.article li::marker {
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.article li strong {
  font-weight: 600;
}

.article blockquote {
  margin: clamp(30px, 4vw, 42px) 0;
  padding: 2px 0 2px 24px;
  border-left: 3px solid var(--accent);
  color: var(--fg);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.022em;
  font-weight: 460;
  text-wrap: pretty;
}

.article table {
  width: 100%;
  margin: clamp(24px, 3vw, 32px) 0;
  border-collapse: collapse;
  font-size: 16px;
  letter-spacing: -0.008em;
  display: block;
  overflow-x: auto;
  scrollbar-width: thin;
}

.article th,
.article td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  vertical-align: top;
}

.article th {
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  border-bottom-color: var(--hair-2);
  white-space: nowrap;
}

.article td {
  color: var(--fg);
}

.article tr:last-child td {
  border-bottom: 0;
}

.article .fine {
  margin-top: clamp(30px, 4vw, 40px);
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.006em;
}

.article .body a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
}

.article .body a:hover {
  text-decoration-color: currentColor;
}

/* Article end */
.article-end {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 26px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}

.article-end p {
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.45;
  max-width: 26em;
}

/* ---------------------------------------------------------------- 404 */
.notfound {
  min-height: 58vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(60px, 10vw, 120px) 0;
}

.notfound h1 {
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -0.042em;
  line-height: 1;
}

.notfound p {
  max-width: 30em;
  margin: 18px auto 0;
  color: var(--fg-2);
  font-size: 18px;
  letter-spacing: -0.012em;
}

.notfound .hero-actions {
  margin-top: 28px;
}

/* ---------------------------------------------------------------- motion */
/* One orchestrated moment: the hero artwork settles into place. Nothing fades
   from invisible, so copy is readable even if rendering stalls. */
@media (prefers-reduced-motion: no-preference) {
  .hero-plate .plate img {
    animation: settle 1800ms var(--ease) both;
  }

  @keyframes settle {
    from {
      transform: scale(1.045);
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- print */
@media print {
  .site-header,
  .site-footer,
  .band,
  .article-end {
    display: none;
  }

  body {
    font-size: 11pt;
  }
}
