/* The Layover Loophole - design tokens + components */
/* One CSS file. No external requests. */

/* ------------------------------------------------------------------
   Font: Fraunces (display only, H1/H2/pull-quotes)
   ------------------------------------------------------------------ */
/* ------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------ */
:root {
  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid scale - Perfect Fourth (1.333), clamped */
  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);      /* floor 12px */
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);       /* floor 14px */
  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);      /* floor 16px */
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.333rem);
  --text-xl: clamp(1.333rem, 1.15rem + 0.75vw, 1.777rem);
  --text-2xl: clamp(1.777rem, 1.4rem + 1.25vw, 2.369rem);
  --text-3xl: clamp(2.369rem, 1.75rem + 2.25vw, 3.157rem);
  --text-4xl: clamp(2.5rem, 1.5rem + 3vw, 3.5rem);          /* H1 floor 40px */

  /* Spacing - 8pt grid with 4pt sub-grid */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.5rem;    /* 24px */
  --space-6: 2rem;      /* 32px */
  --space-7: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-9: 5rem;      /* 80px */
  --space-10: 6rem;     /* 96px */

  /* Measure */
  --measure: 43.75rem;  /* 700px reading column */
  --container: 75rem;   /* 1200px */

  /* Radius */
  --radius-sm: 0.5rem;   /* 8px */
  --radius-md: 1rem;     /* 16px */
  --radius-lg: 1.5rem;   /* 24px */
  --radius-pill: 100vh;

  /* Colors - light theme (default) */
  --surface-0: #FDFBF7;
  --surface-1: #FFFFFF;
  --surface-2: #F3EEE6;
  --surface-3: #E8E4DC;
  --surface-invert: #0D1F1F;

  --text-1: #1A2E2E;
  --text-2: #3D5252;
  --text-3: #5F6A6A;
  --text-invert: #F5F3EE;

  --action: #0E6B6A;
  --action-hover: #0A4F4E;
  --action-text: #FFFFFF;
  --action-soft: rgba(14, 107, 106, 0.10);

  --accent-warm: #B45309;
  --amber-surface: #FEF3C7;

  --border: #D6D1C8;
  --shadow: rgba(26, 46, 46, 0.08);
  --shadow-strong: rgba(26, 46, 46, 0.16);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  :root {
    --surface-0: #0D1F1F;
    --surface-1: #142A2A;
    --surface-2: #1C3535;
    --surface-3: #244040;
    --surface-invert: #FDFBF7;

    --text-1: #F5F3EE;
    --text-2: #D6D2CA;
    --text-3: #9BA3A3;
    --text-invert: #1A2E2E;

    --action: #4FB3AE;
    --action-hover: #6BC9C4;
    --action-text: #0D1F1F;
    --action-soft: rgba(79, 179, 174, 0.14);

    --accent-warm: #FDBA74;
    --amber-surface: #3D2A12;

    --border: #2F4A4A;
    --shadow: rgba(0, 0, 0, 0.24);
    --shadow-strong: rgba(0, 0, 0, 0.40);
  }
}

/* Manual overrides */
[data-theme="dark"] {
  --surface-0: #0D1F1F;
  --surface-1: #142A2A;
  --surface-2: #1C3535;
  --surface-3: #244040;
  --surface-invert: #FDFBF7;

  --text-1: #F5F3EE;
  --text-2: #D6D2CA;
  --text-3: #9BA3A3;
  --text-invert: #1A2E2E;

  --action: #4FB3AE;
  --action-hover: #6BC9C4;
  --action-text: #0D1F1F;
  --action-soft: rgba(79, 179, 174, 0.14);

  --accent-warm: #FDBA74;
  --amber-surface: #3D2A12;

  --border: #2F4A4A;
  --shadow: rgba(0, 0, 0, 0.24);
  --shadow-strong: rgba(0, 0, 0, 0.40);
}

[data-theme="light"] {
  --surface-0: #FDFBF7;
  --surface-1: #FFFFFF;
  --surface-2: #F3EEE6;
  --surface-3: #E8E4DC;
  --surface-invert: #0D1F1F;

  --text-1: #1A2E2E;
  --text-2: #3D5252;
  --text-3: #5F6A6A;
  --text-invert: #F5F3EE;

  --action: #0E6B6A;
  --action-hover: #0A4F4E;
  --action-text: #FFFFFF;
  --action-soft: rgba(14, 107, 106, 0.10);

  --accent-warm: #B45309;
  --amber-surface: #FEF3C7;

  --border: #D6D1C8;
  --shadow: rgba(26, 46, 46, 0.08);
  --shadow-strong: rgba(26, 46, 46, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-1);
  background-color: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.08em;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--action-hover);
}

a:focus-visible {
  outline: 0.1875rem solid var(--action);
  outline-offset: 0.125rem;
  border-radius: var(--radius-sm);
}

/* ------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-1);
  margin: 0;
}

h1 {
  font-size: var(--text-4xl);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-3xl);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-2xl);
  line-height: 1.16;
}

h4 {
  font-size: var(--text-xl);
  line-height: 1.22;
}

p {
  margin: 0;
}

p + p {
  margin-top: var(--space-5);
}

/* Utility */
.font-display {
  font-family: var(--font-display);
}

.text-secondary {
  color: var(--text-2);
}

.text-muted {
  color: var(--text-3);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.25;
  color: var(--text-1);
  border-left: 0.25rem solid var(--action);
  padding-left: var(--space-5);
  margin: var(--space-7) 0;
}

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: var(--space-3);
}

/* ------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.flow > * + * {
  margin-top: var(--space-5);
}

.flow-lg > * + * {
  margin-top: var(--space-7);
}

.section {
  padding-block: var(--space-8);
}

@media (min-width: 48rem) {
  .section {
    padding-block: var(--space-9);
  }
}

.reading {
  max-width: var(--measure);
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 4rem;
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: transform var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background-color: var(--surface-1);
  box-shadow: 0 1px 0 var(--border), 0 0.25rem 1rem var(--shadow);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo:hover, .logo:focus {
  color: var(--action);
}

.nav-primary {
  display: none;
}

.nav-primary ul {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-primary a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-1);
  text-decoration: none;
}

.nav-primary a:hover, .nav-primary a:focus {
  color: var(--action);
}

.site-header .nav-cta {
  display: none;
}

@media (min-width: 48rem) {
  .site-header {
    min-height: 5rem;
  }

  .nav-primary {
    display: block;
  }

  .site-header .nav-cta {
    display: inline-flex;
  }
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  border: 0.125rem solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-0.0625rem);
}

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

.btn:focus-visible {
  outline: 0.1875rem solid var(--action);
  outline-offset: 0.125rem;
}

.btn-primary {
  background-color: var(--action);
  border-color: var(--action);
  color: var(--action-text);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--action-hover);
  border-color: var(--action-hover);
  color: var(--action-text);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-1);
}

.btn-secondary:hover, .btn-secondary:focus {
  border-color: var(--action);
  color: var(--action);
  background-color: var(--action-soft);
}

.btn-small {
  min-height: 2.5rem;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  background-color: var(--surface-2);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  min-height: 80vh;
  padding-block: var(--space-9);
}

.hero__copy {
  max-width: var(--measure);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-4xl);
  line-height: 1.05;
  margin-bottom: var(--space-5);
}

.hero__title span {
  color: var(--action);
}

.hero__sub {
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--text-2);
  margin-bottom: var(--space-6);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: stretch;
}

.hero__cta .btn {
  width: 100%;
}

.hero__cta a:not(.btn) {
  font-weight: 700;
  color: var(--action);
  text-decoration: underline;
  text-align: center;
}

.hero__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--surface-3);
  aspect-ratio: 4 / 3;
}

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

.hero__caption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-3);
}

@media (min-width: 40rem) {
  .hero__cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero__cta .btn {
    width: auto;
  }

  .hero__cta a:not(.btn) {
    text-align: left;
  }
}

@media (min-width: 64rem) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 5rem);
  }

  .hero__media {
    aspect-ratio: 3 / 2;
  }
}

/* Hero variants for testing */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--action);
  background-color: var(--action-soft);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.hero--photo .hero__badge {
  color: #0D1F1F;
  background-color: #8FD8D3;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1;
  color: inherit;
}

.hero__stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.hero__route-card {
  display: none;
}

@media (min-width: 64rem) {
  .hero__route-card {
    display: flex;
    flex-direction: column;
    justify-self: end;
    align-self: center;
    width: min(100%, 26rem);
    padding: var(--space-6);
    background-color: rgba(253, 251, 247, 0.96);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.25);
    color: var(--text-1);
  }

  .hero__route-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
  }

  .hero__route-card svg {
    width: 100%;
    height: auto;
    margin-bottom: var(--space-4);
  }

  .hero__route-card p {
    font-size: var(--text-sm);
    color: var(--text-2);
    margin: 0;
  }
}

/* ------------------------------------------------------------------
   Cards - bento-ish, varied weights
   ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  gap: var(--space-5);
  align-items: stretch;
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card-grid--featured {
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .card-grid--featured {
    grid-template-columns: 1.25fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 0.25rem 1rem var(--shadow);
  text-decoration: none;
  color: var(--text-1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover, .card:focus {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem var(--shadow-strong);
  border-color: var(--action);
  color: var(--text-1);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.2;
}

.card__body {
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-2);
}

.card__meta {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--action);
}

.card--large {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.card--large .card__title {
  font-size: var(--text-2xl);
}

.card--small {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
}

.card--small .card__title {
  font-size: var(--text-lg);
}

.card--accent {
  background-color: var(--action);
  border-color: var(--action);
  color: var(--action-text);
}

.card--accent .card__title,
.card--accent .card__body,
.card--accent .card__meta {
  color: var(--action-text);
}

.card--accent:hover, .card--accent:focus {
  background-color: var(--action-hover);
  border-color: var(--action-hover);
  color: var(--action-text);
}

/* ------------------------------------------------------------------
   Tables
   ------------------------------------------------------------------ */
.table-wrap {
  width: calc(100% - 1.5rem);
  margin-inline: 0.75rem;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: var(--surface-1);
}

.table-wrap table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.table-wrap caption {
  text-align: left;
  padding: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-1);
}

.table-wrap th,
.table-wrap td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.table-wrap thead th {
  font-weight: 700;
  color: var(--text-1);
  background-color: var(--surface-2);
  white-space: nowrap;
}

.table-wrap tbody th {
  font-weight: 600;
  color: var(--text-1);
  background-color: var(--surface-1);
}

.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 10rem;
}

.table-wrap thead th:first-child {
  z-index: 3;
}

@media (min-width: 48rem) {
  .table-wrap {
    width: 100%;
    margin-inline: 0;
  }
}

/* ------------------------------------------------------------------
   Article
   ------------------------------------------------------------------ */
.article-header {
  padding-block: var(--space-8) var(--space-6);
  background-color: var(--surface-2);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: 0 0 var(--space-5) 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--text-3);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: var(--space-2);
  color: var(--border);
}

.breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
}

.breadcrumb a:hover, .breadcrumb a:focus {
  color: var(--action);
}

.article-title {
  max-width: var(--measure);
  margin-bottom: var(--space-5);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-2);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--action);
  background-color: var(--action-soft);
  border-radius: var(--radius-pill);
}

.article-body {
  padding-block: var(--space-7);
}

.article-body .reading {
  margin-inline: auto;
}

.article-body h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.article-body h3 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.article-body ul,
.article-body ol {
  padding-left: var(--space-5);
  margin: var(--space-4) 0;
}

.article-body li + li {
  margin-top: var(--space-2);
}

/* ------------------------------------------------------------------
   TOC disclosure
   ------------------------------------------------------------------ */
.toc {
  margin-block: var(--space-6);
  padding: var(--space-4);
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.toc summary {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc summary::-webkit-details-marker {
  display: none;
}

.toc summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--action);
}

.toc[open] summary::after {
  content: "−";
}

.toc ol {
  margin: var(--space-4) 0 0 0;
  padding-left: var(--space-5);
  color: var(--text-2);
}

.toc li + li {
  margin-top: var(--space-2);
}

.toc a {
  color: var(--text-2);
  text-decoration: none;
}

.toc a:hover, .toc a:focus {
  color: var(--action);
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.faq {
  margin-block: var(--space-8);
}

.faq summary {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-1);
  cursor: pointer;
  list-style: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--action);
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details[open] summary {
  border-bottom-color: transparent;
}

.faq__answer {
  padding: var(--space-4) 0 var(--space-5) 0;
  color: var(--text-2);
}

/* ------------------------------------------------------------------
   Inline opt-in
   ------------------------------------------------------------------ */
.optin-inline {
  padding: var(--space-5);
  margin-block: var(--space-7);
  background-color: var(--amber-surface);
  border: 1px solid color-mix(in srgb, var(--accent-warm) 20%, transparent);
  border-radius: var(--radius-md);
}

.optin-inline__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: var(--space-2);
}

.optin-inline__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.25;
  color: var(--text-1);
  margin-bottom: var(--space-3);
}

.optin-inline__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: stretch;
}

.optin-inline__form input[type="email"] {
  flex: 1 1 12rem;
  min-height: 3rem;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-1);
  background-color: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.optin-inline__form input[type="email"]:focus {
  outline: 0.1875rem solid var(--accent-warm);
  outline-offset: 0.125rem;
}

/* ------------------------------------------------------------------
   Opt-in band
   ------------------------------------------------------------------ */
.optin-band {
  padding-block: var(--space-8);
  background-color: var(--surface-2);
}

.optin-band__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 48rem) {
  .optin-band__inner {
    grid-template-columns: 1fr auto;
  }
}

.optin-band__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.optin-band__text {
  font-size: var(--text-lg);
  color: var(--text-2);
}

/* ------------------------------------------------------------------
   Section index
   ------------------------------------------------------------------ */
.section-intro {
  padding-block: var(--space-8) var(--space-6);
  background-color: var(--surface-2);
}

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

.section-intro__lead {
  max-width: var(--measure);
  font-size: var(--text-lg);
  color: var(--text-2);
}

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer {
  padding-block: var(--space-8);
  background-color: var(--surface-invert);
  color: var(--text-invert);
}

.site-footer a {
  color: var(--text-invert);
  text-decoration: none;
}

.site-footer a:hover, .site-footer a:focus {
  text-decoration: underline;
  color: var(--action);
}

.footer__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--text-3);
  max-width: 18rem;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  color: var(--text-3);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.footer__legal {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid color-mix(in srgb, var(--text-invert) 15%, transparent);
  font-size: var(--text-xs);
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
}

/* ------------------------------------------------------------------
   Back to top
   ------------------------------------------------------------------ */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--action);
  text-decoration: none;
  margin-top: var(--space-6);
}

.back-to-top:hover, .back-to-top:focus {
  color: var(--action-hover);
}

/* ------------------------------------------------------------------
   Sources footer
   ------------------------------------------------------------------ */
.sources {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.sources__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

.sources ol {
  margin: 0;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-2);
}

.sources li + li {
  margin-top: var(--space-2);
}

/* ------------------------------------------------------------------
   Skip link / accessibility
   ------------------------------------------------------------------ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 101;
  padding: var(--space-3) var(--space-4);
  background-color: var(--action);
  color: var(--action-text);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ------------------------------------------------------------------
   Print
   ------------------------------------------------------------------ */
@media print {
  .site-header,
  .optin-inline,
  .optin-band,
  .back-to-top {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ---- Claude pass: componentes adicionais ---- */
/* Key-facts card (substitui tabela 2-colunas "short version" — CEO 2026-07-10) */
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); margin: var(--space-5) 0; padding: 0; }
.keyfacts > div { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-4) var(--space-4); }
.keyfacts dt { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 var(--space-1); }
.keyfacts dd { margin: 0; font-size: var(--text-base); color: var(--text-1); font-variant-numeric: tabular-nums; }
/* Hero SVG (ilustração própria da marca: a rota com desvio) */
.hero-art { width: 100%; height: auto; display: block; }
.hero-art .route-boring { stroke: var(--text-3); opacity: .35; }
.hero-art .route-loophole { stroke: var(--action); }
.hero-art .stamp { stroke: var(--accent-warm); fill: none; }
.hero-art .dot { fill: var(--text-2); }
.hero-art text { font-family: var(--font-body); font-size: 11px; letter-spacing: .1em; fill: var(--text-3); }
/* Sources visíveis */
.sources { border-top: 1px solid var(--border); margin-top: var(--space-7); padding-top: var(--space-4); font-size: var(--text-sm); color: var(--text-3); }
.sources ol { padding-left: 1.2em; } .sources li { word-break: break-all; margin: .3em 0; }
.sources__title { font-weight: 600; color: var(--text-2); margin-bottom: var(--space-2); }

/* ---- BAM pass (Claude, 2026-07-10) ---- */
/* Hero: rota que se desenha + carimbo que bate */
.hero-art .route-draw { stroke-dasharray: none; }
.hero-art .stamp-g { transform: rotate(-8deg); transform-origin: 240px 88px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .route-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: llp-draw 1.6s cubic-bezier(.6,0,.3,1) .2s forwards; }
  .hero-art .stamp-g { opacity: 0; animation: llp-stamp .45s cubic-bezier(.2,1.6,.4,1) 1.75s forwards; }
  .hero-art .hero-label { opacity: 0; animation: llp-fade .5s ease 2.15s forwards; }
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in-view { opacity: 1; transform: none; }
}
@keyframes llp-draw { to { stroke-dashoffset: 0; } }
@keyframes llp-stamp {
  0% { opacity: 0; transform: scale(2.1) rotate(-16deg); }
  70% { opacity: 1; transform: scale(.94) rotate(-6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
@keyframes llp-fade { to { opacity: 1; } }
/* Título da home com mais soco */
.hero__title { font-size: clamp(2.6rem, 2rem + 4vw, 4.25rem); line-height: 1.06; }
/* Carimbo de verificação (artefato da marca) */
.stamp-seal { display: inline-block; border: 2px solid var(--accent-warm); color: var(--accent-warm);
  border-radius: 8px; padding: 5px 14px; font-family: var(--font-body); font-size: var(--text-xs);
  font-weight: 800; letter-spacing: .16em; text-transform: uppercase; transform: rotate(-3deg);
  position: relative; background: transparent; }
.stamp-seal::after { content: ""; position: absolute; inset: 3px; border: 1px solid var(--accent-warm);
  border-radius: 5px; opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .stamp-seal { animation: llp-stampflat .4s cubic-bezier(.2,1.6,.4,1) .3s backwards; }
}
@keyframes llp-stampflat { 0% { opacity: 0; transform: scale(1.9) rotate(-11deg); } 100% { opacity: 1; transform: scale(1) rotate(-3deg); } }
/* Código IATA fantasma no header dos guias */
.article-header { position: relative; overflow: hidden; }
.iata-ghost { position: absolute; right: -.04em; top: 50%; transform: translateY(-52%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 800;
  font-size: clamp(6rem, 22vw, 15rem); line-height: 1; letter-spacing: -.05em;
  color: var(--action); opacity: .07; pointer-events: none; user-select: none; z-index: 0; }
.article-header .container { position: relative; z-index: 1; }
/* Key-facts com detalhe de cartão de embarque */
.keyfacts > div { position: relative; border-left: 3px solid var(--action); }
.keyfacts > div::after { content: ""; position: absolute; right: 12px; top: 14px; width: 36px; height: 11px;
  background: repeating-linear-gradient(90deg, var(--border) 0 2px, transparent 2px 5px); opacity: .8; }

/* ---- Photo package (Claude, 2026-07-10): fotografia real, o BAM que faltava ---- */
/* Hero fotográfico full-bleed */
.hero--photo { background-color: var(--surface-invert); color: var(--text-invert); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero--photo::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(9,22,22,.92) 0%, rgba(9,22,22,.72) 42%, rgba(9,22,22,.28) 100%); }
@media (max-width: 63.99rem) {
  .hero--photo::after { background: linear-gradient(180deg, rgba(9,22,22,.9) 0%, rgba(9,22,22,.66) 55%, rgba(9,22,22,.42) 100%); }
  .hero--photo .hero__inner { min-height: calc(100svh - 4rem); padding-top: 6rem; padding-bottom: var(--space-8); align-content: end; }
  .hero--photo .hero__title { font-size: clamp(2rem, 1.55rem + 2.5vw, 2.75rem); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
  .hero--photo .hero__sub { text-shadow: 0 1px 16px rgba(0,0,0,.4); }
}
@media (max-width: 22rem) {
  .hero--photo .hero__title { font-size: 1.875rem; }
}
.hero--photo .hero__inner { z-index: 2; }
.hero--photo .hero__title { color: #fff; }
.hero--photo .hero__sub { color: rgba(245,243,238,.88); }
.hero--photo .hero__eyebrow { color: #8FD8D3; }
.hero--photo .hero__cta a:not(.btn) { color: #fff; }
.hero--photo .hero__media { background: none; border-radius: 0; aspect-ratio: auto; }
.hero--photo .route-boring { stroke: rgba(245,243,238,.55); opacity: 1; }
.hero--photo .route-loophole { stroke: #8FD8D3; }
.hero--photo .dot { fill: #F5F3EE; }
.hero--photo .stamp { stroke: #E8A852; }
.hero--photo .hero-art text { fill: rgba(245,243,238,.85); }
/* Banner fotográfico no header dos artigos */
.article-header--photo { background-color: var(--surface-invert); }
.article-header__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.article-header--photo::after { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(9,22,22,.5) 0%, rgba(9,22,22,.62) 55%, rgba(9,22,22,.86) 100%); }
.article-header--photo .article-title { color: #fff; }
.article-header--photo .byline { color: rgba(245,243,238,.85); }
.article-header--photo .breadcrumb, .article-header--photo .breadcrumb a { color: rgba(245,243,238,.72); }
.article-header--photo .breadcrumb a:hover, .article-header--photo .breadcrumb a:focus { color: #fff; }
.article-header--photo .iata-ghost { color: #fff; opacity: .14; }
.article-header--photo .stamp-seal { border-color: #F0B968; color: #F0B968; }
.article-header--photo .stamp-seal::after { border-color: #F0B968; }
/* Thumbnails nos cards */
.card { --card-pad: var(--space-5); --card-r: var(--radius-md); }
.card--large { --card-pad: var(--space-6); --card-r: var(--radius-lg); }
.card--small { --card-pad: var(--space-4); --card-r: var(--radius-sm); }
.card__thumb { width: calc(100% + 2 * var(--card-pad)); max-width: none;
  margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) var(--space-1);
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: calc(var(--card-r) - 1px) calc(var(--card-r) - 1px) 0 0; }
.card:hover .card__thumb { filter: saturate(1.12); }
/* Créditos de foto */
.photo-credits li { margin: .4em 0; font-size: var(--text-sm); color: var(--text-3); }
/* Header sobre foto: texto branco até rolar */
.site-header.header--on-photo:not(.is-scrolled) .logo,
.site-header.header--on-photo:not(.is-scrolled) .nav-primary a { color: #fff; }
.site-header.header--on-photo:not(.is-scrolled) .nav-primary a:hover,
.site-header.header--on-photo:not(.is-scrolled) .nav-primary a:focus { color: #8FD8D3; }

/* ---- Ticket illustration (novo hero, 2026-07-14) ---- */
.ticket-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.ticket-illustration .ticket-bg {
  fill: var(--surface-1);
  stroke: var(--border);
  stroke-width: 2;
}

.ticket-illustration .ticket-cutout {
  fill: var(--surface-2);
}

.ticket-illustration .ticket-route {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
  stroke-dasharray: 6 4;
}

.ticket-illustration .ticket-dot {
  fill: var(--text-3);
}

.ticket-illustration .ticket-stop {
  fill: var(--action-soft);
  stroke: var(--action);
  stroke-width: 3;
}

.ticket-illustration .ticket-plus {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  fill: var(--action);
}

.ticket-illustration .ticket-code {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  fill: var(--text-1);
}

.ticket-illustration .ticket-code--stop {
  fill: var(--action);
}

.ticket-illustration .ticket-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--text-3);
}

.ticket-illustration .ticket-label--stop {
  fill: var(--action);
}

.ticket-illustration .ticket-plane {
  fill: var(--action);
}

.hero__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.hero__caption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-3);
  text-align: center;
}

@media (min-width: 64rem) {
  .hero__caption {
    text-align: left;
  }
}
