/* ==========================================================================
   Surfing Junkie — Design System
   --------------------------------------------------------------------------
   1. Design Tokens          6. Cards
   2. Reset & Base           7. Content / Prose
   3. Layout & Sections      8. Page components (FAQ, Glossary, Forms, Ads)
   4. Header & Navigation    9. Footer
   5. Heroes & Buttons      10. Responsive & Motion
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  /* Brand */
  --color-primary: #0EA5E9;
  --color-primary-dark: #0284C7;
  --color-primary-darker: #0369A1;
  --color-primary-deep: #0C4A6E;
  --color-primary-light: #38BDF8;
  --color-primary-lighter: #BAE6FD;
  --color-primary-lightest: #E0F2FE;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-400: #94A3B8;
  --color-gray-500: #64748B;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1E293B;
  --color-gray-900: #0F172A;

  --color-danger: #DC2626;

  /* Semantic surfaces & text */
  --surface: var(--color-white);
  --surface-muted: var(--color-gray-50);
  --border: var(--color-gray-200);
  --border-subtle: var(--color-gray-100);
  --text: var(--color-gray-700);
  --text-strong: var(--color-gray-900);
  --text-muted: var(--color-gray-500);
  --text-on-dark: rgba(255, 255, 255, 0.78);
  --text-on-dark-muted: rgba(255, 255, 255, 0.62);

  /* Typography.
     Titles are fluid so desktop and mobile each get an optimal size without
     fighting over a shared breakpoint value. */
  --font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: clamp(1.5rem, 1.15rem + 1.5vw, 2rem);
  --font-size-4xl: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);
  --font-size-5xl: clamp(2.25rem, 1.45rem + 3.4vw, 3.5rem);

  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  --line-height: 1.85;
  --line-height-tight: 1.25;
  --line-height-snug: 1.5;

  /* Spacing — numeric scale (source of truth) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 768px;
  --container-gutter: var(--space-6);
  --header-height: 64px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Elevation — layered, low-opacity shadows read as "premium" */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -8px rgba(15, 23, 42, 0.13), 0 8px 12px -6px rgba(15, 23, 42, 0.06);

  --focus-ring: 0 0 0 3px rgba(14, 165, 233, 0.45);

  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --transition-fast: var(--duration-fast) var(--ease);
  --transition-base: var(--duration-base) var(--ease);
  --transition-slow: var(--duration-slow) var(--ease);
}

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

html {
  scroll-behavior: smooth;
  /* Keep anchor targets clear of the sticky header. */
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Guards against any single wide child causing a page-wide sideways scroll. */
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(14, 165, 233, 0.15);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--color-primary-darker);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-deep);
}

/* One focus treatment for everything focusable, inheriting the element's own
   corner radius so pills stay pills. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-tight);
  font-weight: var(--font-weight-bold);
  color: var(--text-strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

::selection {
  background: var(--color-primary-lighter);
  color: var(--color-primary-deep);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 0;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary-darker);
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transform: translateY(-110%);
  transition: transform var(--transition-fast);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--color-white);
}

/* ==========================================================================
   3. Layout & Sections
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-20) 0;
}

.section--gray {
  background-color: var(--surface-muted);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-darker);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.section__title {
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: var(--line-height-snug);
}

/* A header row that keeps its "見出し＋リンク" pair aligned on desktop and
   stacks cleanly on mobile. */
.section__header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.section__header-row .section__title {
  margin-bottom: var(--space-2);
}

.section__header-row .section__subtitle {
  margin-inline: 0;
  text-align: left;
}

/* Centred action row closing a section, e.g. beneath a card grid. */
.section__actions {
  display: flex;
  justify-content: center;
  margin-top: var(--space-12);
}

.section__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-darker);
  white-space: nowrap;
  padding: var(--space-2) 0;
}

.section__link:hover {
  color: var(--color-primary-deep);
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-gray-900);
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.6);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-height);
  padding-block: var(--space-2);
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

/* Sized by height, not width: the logo is a 5.6:1 wordmark, so constraining
   width made the sticky header ~190px tall. */
.site-header__logo img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-white);
  z-index: 110;
}

.site-header__menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-header__hamburger,
.site-header__hamburger::before,
.site-header__hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), top var(--transition-base),
    background-color var(--transition-fast);
}

.site-header__hamburger { position: relative; }

.site-header__hamburger::before,
.site-header__hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.site-header__hamburger::before { top: -7px; }
.site-header__hamburger::after { top: 7px; }

.site-header__menu-toggle[aria-expanded='true'] .site-header__hamburger {
  background-color: transparent;
}
.site-header__menu-toggle[aria-expanded='true'] .site-header__hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header__menu-toggle[aria-expanded='true'] .site-header__hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Nav */
.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-300);
  white-space: nowrap;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.site-nav__link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav__link.is-active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
}

/* Active indicator — a state you can see at a glance, not just a hue shift. */
.site-nav__link.is-active::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary-light);
}

.site-nav__icon {
  display: flex;
  align-items: center;
}

.site-nav__icon .icon {
  stroke: currentColor;
}

/* Never display:none — toggling that in the same task as the class kills the
   fade. visibility keeps it out of hit-testing while still transitioning. */
.site-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 104;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base),
    visibility 0s linear var(--duration-base);
}

.site-nav__backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition-base), visibility 0s;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: var(--text-muted);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  margin-right: var(--space-2);
  color: var(--color-gray-400);
}

.breadcrumb__item a { color: var(--text-muted); }
.breadcrumb__item a:hover { color: var(--color-primary-deep); }

.breadcrumb__item span[aria-current='page'] {
  color: var(--color-gray-700);
  font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   5. Heroes & Buttons
   ========================================================================== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-gray-900);
  padding-block: var(--space-16);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.62) 50%,
    rgba(15, 23, 42, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color: var(--color-white);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-light);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-black);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Noto Sans JP ships no true italic, so emphasis is carried by colour and a
   swash underline instead of a synthetic oblique. */
.hero__title em {
  font-style: normal;
  color: var(--color-primary-light);
  background: linear-gradient(transparent 72%, rgba(56, 189, 248, 0.28) 72%);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-on-dark);
  margin-bottom: var(--space-8);
  line-height: 1.9;
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 3;
  pointer-events: none;
}

.hero__wave svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* Page hero — the gradient is on the element itself so a page without a
   heroImage still renders white text on a dark ground. */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary-dark) 100%);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.88) 0%, rgba(2, 132, 199, 0.75) 100%);
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.page-hero__description {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}


.btn--primary {
  background: var(--color-primary-darker);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-primary-deep);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--color-white);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--ocean {
  background: var(--color-primary-darker);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn--ocean:hover {
  background: var(--color-primary-deep);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  min-height: 56px;
}

/* Declared after every variant :hover — same specificity, so source order is
   what makes the press cancel the hover lift. */
.btn:active { transform: translateY(0); }

/* On the ocean gradient a blue primary button disappears — invert it. */
.section--ocean .btn--primary,
.cta-section .btn--primary {
  background: var(--color-white);
  color: var(--color-primary-deep);
}

.section--ocean .btn--primary:hover,
.cta-section .btn--primary:hover {
  background: var(--color-primary-lightest);
  color: var(--color-primary-deep);
}

/* ==========================================================================
   6. Cards
   ========================================================================== */
.card-grid {
  display: grid;
  gap: var(--space-6);
}

/* minmax(0, 1fr) rather than 1fr so a long unbreakable child cannot push a
   column past its share. Column counts step down in the media queries. */
.card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-lighter);
  box-shadow: var(--shadow-xl);
}

a.card {
  display: flex;
  text-decoration: none;
  color: inherit;
}

a.card:hover { color: inherit; }

a.card:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
}

/* Icon card */
.card--icon {
  padding: var(--space-8) var(--space-6);
  text-align: left;
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  /* Default tint — without this, an unmodified .card__icon rendered a white
     glyph on a white card and vanished. */
  background: var(--color-primary-lightest);
  color: var(--color-primary-darker);
  transition: transform var(--transition-base);
}

.card__icon .icon {
  width: 24px;
  height: 24px;
}

.card:hover .card__icon {
  transform: scale(1.06);
}

.card__icon--blue { background: var(--color-primary-lightest); color: var(--color-primary-darker); }
.card__icon--coral { background: #FFE4E1; color: #C2410C; }
.card__icon--orange { background: #FFEDD5; color: #C2410C; }

.card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}

.card__text {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-primary-darker);
  /* Pins the affordance to the bottom so a row of cards lines up. */
  margin-top: auto;
}

.card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.card:hover .card__link::after,
.card__link:hover::after {
  transform: translateX(4px);
}

/* Sub-heading + bullet list inside a card */
.card__subheading {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-darker);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.card__sublist {
  list-style: disc;
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
  line-height: 1.8;
}

.card__sublist li { margin-bottom: var(--space-1); }
.card__sublist li::marker { color: var(--color-primary); }

/* Image card */
.card--image {
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-sm);
  padding: 0;
}

/* A tinted ground behind every card photo: a slow remote image degrades to a
   soft placeholder instead of a white hole. */
.card__img,
.split__image {
  background-color: var(--color-gray-100);
}

.card--image .card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card--image:hover .card__img { transform: scale(1.04); }

.card--image .card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-6);
}

.card--image .card__body .card__icon { margin-bottom: var(--space-4); }

/* Overlay card */
.card--overlay {
  position: relative;
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.card--overlay .card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card--overlay:hover .card__img { transform: scale(1.06); }

.card--overlay .card__body {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.62) 55%,
    rgba(15, 23, 42, 0) 100%
  );
  color: var(--color-white);
}

.card--overlay .card__title {
  color: var(--color-white);
  font-size: var(--font-size-lg);
}

.card--overlay .card__text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}

.badge--beginner { background: #D1FAE5; color: #047857; }
.badge--intermediate { background: var(--color-primary-lightest); color: var(--color-primary-darker); }
.badge--advanced { background: #FFEDD5; color: #C2410C; }
.badge--family { background: #EDE9FE; color: #6D28D9; }

/* On an overlay card the badge sits on a dark scrim. */
.card--overlay .badge {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-gray-900);
}

/* ==========================================================================
   Feature List
   ========================================================================== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.feature-list--single { grid-template-columns: minmax(0, 1fr); }

.feature-item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary-lightest);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-darker);
}

.feature-item__icon .icon { width: 24px; height: 24px; }

.feature-item__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-1);
}

.feature-item__text {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* ==========================================================================
   Split (two-column image + text)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16);
  align-items: center;
}

.split__image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split__title {
  text-align: left;
  margin-bottom: var(--space-4);
}

.split__text {
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.split__actions { margin-top: var(--space-8); }

/* ==========================================================================
   CTA sections
   ========================================================================== */
.section--ocean {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary-darker) 55%, var(--color-primary-dark) 100%);
  color: var(--color-white);
}

/* Soft light bloom so the flat gradient reads with depth. */
.section--ocean::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.32) 0%, transparent 62%);
  pointer-events: none;
}

.section--ocean > .container { position: relative; z-index: 1; }

.cta {
  text-align: center;
}

.cta__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta__text {
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--font-size-lg);
  max-width: 56ch;
  margin: 0 auto var(--space-8);
  line-height: 1.8;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}


/* Image-backed CTA (homepage) */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: var(--space-20) 0;
  text-align: center;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary-dark) 100%);
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Strong enough that the copy stays legible over the brightest part of any
   background photo, not just the average. */
.cta-section__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.93) 0%, rgba(2, 132, 199, 0.86) 100%);
}

.cta-section > .container { position: relative; z-index: 1; }

.cta-section__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-section__text {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto var(--space-8);
  max-width: 56ch;
  font-size: var(--font-size-lg);
  line-height: 1.8;
}

.cta-section__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   7. Content / Prose
   ========================================================================== */
.page-content > :first-child { margin-top: 0; }

.page-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--border-subtle);
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.page-content h3 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-gray-800);
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.page-content h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.page-content p {
  margin-bottom: var(--space-5);
  color: var(--color-gray-600);
}

.page-content ul,
.page-content ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li {
  margin-bottom: var(--space-2);
  color: var(--color-gray-600);
}

.page-content li::marker { color: var(--color-primary); }

.page-content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-primary-lighter);
}

.page-content a:hover { text-decoration-color: currentColor; }

.page-meta,
.page-content .page-meta {
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Callouts */
.info-box,
.warning-box {
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5) var(--space-6);
  margin: var(--space-8) 0;
}

.info-box { background: var(--color-primary-lightest); }

.warning-box {
  background: #FEF6E0;
  border-left-color: #D97706;
}

.info-box > :first-child,
.warning-box > :first-child { margin-top: 0; }

.info-box > :last-child,
.warning-box > :last-child { margin-bottom: 0; }

.info-box__title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
  line-height: var(--line-height-snug);
}

.info-box__title { color: var(--color-primary-darker); }
.warning-box .info-box__title { color: #92400E; }

.info-box p,
.warning-box p { color: var(--color-gray-700); }

.info-box > ul,
.warning-box > ul {
  list-style: disc;
  padding-left: var(--space-6);
  color: var(--color-gray-700);
}

/* ==========================================================================
   8. Page components
   ========================================================================== */

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  color: var(--color-gray-800);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-item__question:hover { color: var(--color-primary-deep); }

.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-lightest);
  transition: background var(--transition-fast), transform var(--transition-base);
}

/* Plus/minus drawn as two bars so it can rotate into a minus smoothly. */
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary-darker);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item__question[aria-expanded='true'] .faq-item__icon {
  background: var(--color-primary-dark);
}

.faq-item__question[aria-expanded='true'] .faq-item__icon::before,
.faq-item__question[aria-expanded='true'] .faq-item__icon::after {
  background: var(--color-white);
}

.faq-item__question[aria-expanded='true'] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

/* Answers are open by default so they stay readable if the script never runs;
   the collapse is gated on `.js`, which is set in <head> before this parses.
   0fr → 1fr animates an unknown content height without a JS measurement. */
.faq-item__answer {
  display: grid;
  grid-template-rows: 1fr;
}

.js .faq-item__answer {
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-base);
}

.js .faq-item.is-open .faq-item__answer { grid-template-rows: 1fr; }

.faq-item__answer-inner {
  overflow: hidden;
  color: var(--color-gray-600);
  padding-bottom: var(--space-5);
}

/* `overflow: hidden` alone hides the answer visually but leaves it in the
   accessibility tree and the tab order, contradicting aria-expanded. */
.js .faq-item__answer-inner {
  padding-bottom: 0;
  visibility: hidden;
  transition: visibility var(--transition-base);
}

.js .faq-item.is-open .faq-item__answer-inner {
  padding-bottom: var(--space-5);
  visibility: visible;
}

/* Without JS the toggle cannot do anything, so it should not look pressable. */
html:not(.js) .faq-item__question { cursor: default; }
html:not(.js) .faq-item__icon { display: none; }

.faq-item__answer p { margin: 0; padding-top: var(--space-1); }

/* Glossary — a <dl> of <dt>(word + reading) / <dd>(definition) groups. */
.glossary-list { margin: 0; }

.glossary-term {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.glossary-term:last-child { border-bottom: none; }

.glossary-term dt { margin-bottom: var(--space-2); }

/* The word and reading are <span>s inside the <dt>; without an explicit block
   display their vertical margins are ignored and they run together on one line. */
.glossary-term__word {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-gray-800);
  margin-bottom: var(--space-1);
  line-height: var(--line-height-snug);
}

.glossary-term__reading {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.glossary-term__definition {
  color: var(--color-gray-600);
  margin: 0;
}

/* Forms */
.form-group { margin-bottom: var(--space-6); }

.form-label {
  display: block;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
}

.form-label .required {
  color: var(--color-danger);
  margin-left: var(--space-1);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  /* 16px minimum stops iOS Safari zooming the viewport on focus. */
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--surface);
  min-height: 48px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover { border-color: var(--color-gray-400); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary-dark);
  box-shadow: var(--focus-ring);
}

.form-textarea { min-height: 160px; resize: vertical; }

/* Blog placeholder */
.blog-notice {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  background: var(--surface-muted);
  border-radius: var(--radius-2xl);
  border: 1px dashed var(--color-gray-300);
}

.blog-notice__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-lightest);
  color: var(--color-primary-darker);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-6);
}

.blog-notice__icon .icon { width: 32px; height: 32px; }
.blog-notice__title { margin-bottom: var(--space-3); }

.blog-notice__text {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto;
}

/* Error page */
.error-page {
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding: var(--space-20) 0;
  text-align: center;
  background: var(--surface-muted);
}

.error-page__code {
  font-size: clamp(3.5rem, 2rem + 8vw, 6rem);
  font-weight: var(--font-weight-black);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-primary-darker);
  margin-bottom: var(--space-4);
}

.error-page__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-3);
}

.error-page__text {
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.error-page__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Error page sits on a light ground, so the outline button reads better than
   the dark-surface secondary variant. */
.error-page .btn--secondary {
  background: var(--surface);
  color: var(--color-gray-700);
  border-color: var(--border);
  backdrop-filter: none;
}

.error-page .btn--secondary:hover {
  background: var(--color-primary-lightest);
  border-color: var(--color-primary-darker);
  color: var(--color-primary-darker);
}

/* Ad unit */
.ad-unit {
  display: block;
  margin: var(--space-8) auto;
  text-align: center;
  /* Reserved height prevents the injected iframe from shifting the article. */
  min-height: 100px;
  overflow: hidden;
}

/* Wrapper used by the wide layout, where the ad sits between full-bleed
   sections rather than inside prose. */
.ad-slot { padding-block: var(--space-8); }
.ad-slot .ad-unit { margin: 0 auto; }

/* The following section brings its own generous top padding — without this the
   hero-to-content gap doubles up. */
.ad-slot + .section { padding-top: var(--space-8); }

.ad-unit__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  color: var(--color-gray-500);
}

/* AdSense stamps data-ad-status="unfilled" when it has no ad to serve.
   Collapsing the whole slot avoids leaving a labelled empty box in the page. */
.ad-unit:has(ins[data-ad-status='unfilled']) {
  display: none;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-gray-900);
  color: var(--text-on-dark);
  padding: var(--space-16) 0 var(--space-8);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.site-footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-4);
}

.site-footer__tagline {
  font-size: var(--font-size-sm);
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-6);
  line-height: 1.9;
}

.site-footer__social {
  display: flex;
  gap: var(--space-3);
}

.site-footer__social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-gray-300);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast);
}

.site-footer__social-link:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.site-footer__heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

.site-footer__nav li { margin-bottom: var(--space-1); }

/* Sized as a comfortable touch target rather than a bare text link. */
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) 0;
  color: var(--color-gray-300);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

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

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-gray-400);
}

.site-footer__bottom p { margin: 0; }

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.site-footer__bottom-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-gray-300);
  font-size: var(--font-size-xs);
}

.site-footer__bottom-links a:hover { color: var(--color-white); }

/* ==========================================================================
   10. Responsive
   ==========================================================================
   Desktop (≥1025px) is the base above. Below that the layout is re-tuned for
   touch: bigger targets, single-column reading, off-canvas navigation.
   ========================================================================== */

/* Small laptops: eight labelled nav items plus icons need ~1170px. Dropping
   the icons and tightening the padding buys back ~250px so the full horizontal
   nav survives down to the drawer breakpoint instead of overflowing. */
@media (min-width: 1024.02px) and (max-width: 1200px) {
  .site-nav__icon { display: none; }
  .site-nav__link { padding-inline: var(--space-2); }
  .site-nav__link.is-active::after { left: var(--space-2); right: var(--space-2); }
  .site-header__inner { gap: var(--space-4); }
}

/* Tablet / small laptop — 8 nav items no longer fit next to the logo. */
@media (max-width: 1024px) {
  .card-grid--3,
  .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split { gap: var(--space-10); }

  .site-header__menu-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 86vw;
    margin-left: 0;
    background: var(--color-gray-900);
    box-shadow: -12px 0 32px -12px rgba(0, 0, 0, 0.6);
    padding: calc(var(--header-height) + var(--space-4)) var(--space-5) var(--space-8);
    transform: translateX(100%);
    /* `visibility` keeps the closed off-canvas menu out of the tab order and
       the accessibility tree — a transform alone leaves it focusable. The 0s
       delay on close lets the slide-out finish before it is hidden. */
    visibility: hidden;
    transition: transform var(--transition-base),
      visibility 0s linear var(--duration-base);
    z-index: 105;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    /* No delay opening, so the drawer is focusable on the same frame. */
    transition: transform var(--transition-base), visibility 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .site-nav__link {
    /* 48px keeps every menu row inside the recommended touch target. */
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
  }

  .site-nav__link.is-active {
    background: rgba(56, 189, 248, 0.14);
    color: var(--color-primary-light);
  }

  .site-nav__link.is-active::after { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --container-gutter: var(--space-5);
    --header-height: 56px;
  }

  .section { padding: var(--space-12) 0; }
  .section__header { margin-bottom: var(--space-8); }
  .section__header-row { margin-bottom: var(--space-6); }
  .section__subtitle { font-size: var(--font-size-base); }

  .site-header__logo img { height: 32px; }

  .hero {
    min-height: auto;
    padding-block: var(--space-16) var(--space-20);
  }

  .hero__bg::after {
    /* A vertical scrim keeps the text legible when the subject fills the frame. */
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.72) 0%,
      rgba(15, 23, 42, 0.82) 100%
    );
  }

  .hero__subtitle { font-size: var(--font-size-base); margin-bottom: var(--space-6); }

  /* Stacked, full-width CTAs are far easier to hit with a thumb. */
  .hero__actions,
  .cta__actions,
  .cta-section__actions,
  .section__actions,
  .error-page__actions { flex-direction: column; align-items: stretch; }

  .hero__actions .btn,
  .cta__actions .btn,
  .cta-section__actions .btn,
  .section__actions .btn,
  .error-page__actions .btn { width: 100%; }

  .card-grid { gap: var(--space-5); }
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 { grid-template-columns: minmax(0, 1fr); }

  .card { padding: var(--space-5); }
  .card--icon { padding: var(--space-6) var(--space-5); }
  .card--image { padding: 0; }
  .card--image .card__img { height: 200px; }
  .card--image .card__body { padding: var(--space-5); }
  .card--overlay { min-height: 260px; padding: 0; }

  /* Hover transforms are noise on touch — a tap should not leave a card lifted. */
  .card:hover { transform: none; box-shadow: var(--shadow-md); }
  .card:hover .card__icon { transform: none; }

  .feature-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }

  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }


  .page-hero { padding: var(--space-12) 0; }
  .page-hero__description { font-size: var(--font-size-base); }

  .page-content h2 { margin-top: var(--space-10); }
  .page-content h3 { margin-top: var(--space-8); }

  .info-box,
  .warning-box { padding: var(--space-4) var(--space-5); margin: var(--space-6) 0; }

  .faq-item__question { font-size: var(--font-size-base); padding: var(--space-4) 0; }

  .site-footer { padding: var(--space-12) 0 var(--space-6); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
    justify-content: center;
  }

  .site-footer__bottom-links { justify-content: center; gap: var(--space-4); }

  /* Breadcrumbs scroll sideways rather than wrapping into three ragged lines. */
  .breadcrumb__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .breadcrumb__list::-webkit-scrollbar { display: none; }
  .breadcrumb__item { white-space: nowrap; }
}

@media (max-width: 480px) {
  :root { --container-gutter: var(--space-4); }

  .hero__eyebrow { font-size: 0.6875rem; padding: var(--space-1) var(--space-3); }
  .blog-notice { padding: var(--space-10) var(--space-5); }
}

/* Respect the OS "reduce motion" setting — no parallax, no slide, no zoom. */
@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;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .btn:hover,
  .site-footer__social-link:hover { transform: none; }

  .card--overlay:hover .card__img,
  .card--image:hover .card__img,
  .card:hover .card__icon { transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .ad-unit,
  .skip-link,
  .breadcrumb { display: none; }

  body { color: #000; }
  .page-hero { background: none; padding: 0 0 var(--space-6); }
  .page-hero__title { color: #000; }
  .page-hero__description { color: #333; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
/* Scoped variant included so it outranks `.page-content h2/h3`, which set a
   top margin of their own. */
.mt-0,
.page-content .mt-0 { margin-top: 0; }

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
