/* ============================================================
   Waylighter Article Landing Page
   Editorial magazine feel until the CTA reveal at the bottom.
   ============================================================ */

:root {
  --navy: #183B2B;
  --navy-90: rgba(24, 59, 43, 0.9);
  --navy-70: rgba(24, 59, 43, 0.7);
  --navy-40: rgba(24, 59, 43, 0.4);
  --coral: #C96C4A;
  --coral-hover: #B65A3A;
  --cream: #FBF6EC;
  --sand: #F4EEE2;
  --sand-dark: #E8DFC9;
  --gold: #D4A85C;
  --ink: #1A1E1B;
  --ink-70: rgba(26, 30, 27, 0.75);
  --ink-50: rgba(26, 30, 27, 0.55);
  --rule: rgba(24, 59, 43, 0.15);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'General Sans', 'Inter', system-ui, -apple-system, sans-serif;

  --measure: 640px;
  --measure-wide: 780px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--navy-40); transition: text-decoration-color .15s ease; }
a:hover { text-decoration-color: var(--coral); color: var(--coral); }

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

/* ============================================================
   Site nav (editorial, thin, restrained)
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-brand { display: inline-flex; }
.nav-logo { height: 26px; width: auto; }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 8px;
  flex: 1;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.005em;
}
.nav-links a:hover { color: var(--coral); }
.nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--coral); color: var(--cream); }

@media (max-width: 720px) {
  .nav-inner { padding: 12px 20px; gap: 16px; }
  .nav-links { display: none; }
}

/* ============================================================
   Article header
   ============================================================ */

.article {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 32px 32px;
}

.article-header {
  max-width: var(--measure-wide);
  margin: 0 auto 40px;
  text-align: left;
}

.article-kicker {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 22px;
}

.article-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 24px;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}

.article-deck {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  color: var(--ink-70);
  margin: 0 0 28px;
  max-width: var(--measure);
}

.article-byline {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-50);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.byline-name { color: var(--navy); font-weight: 600; }
.byline-dot { color: var(--ink-50); }

/* ============================================================
   Hero image
   ============================================================ */

.article-hero {
  margin: 0 auto 48px;
  max-width: 1080px;
}
.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
}
.article-hero figcaption,
.inline-image figcaption {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-50);
  margin-top: 12px;
  max-width: var(--measure);
  font-style: normal;
}

/* ============================================================
   Body typography
   ============================================================ */

.article-body {
  max-width: var(--measure);
  margin: 0 auto;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
}

.article-body p {
  margin: 0 0 24px;
}

/* Drop cap on the lede */
.article-lede { margin-top: 0; }
.drop-cap {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 5.4em;
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 -2px;
  color: var(--navy);
  font-variation-settings: "opsz" 144;
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 48px 0 20px;
  font-variation-settings: "opsz" 48;
}

/* Emphasis */
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body em { font-style: italic; }

/* Lists */
.article-list {
  padding: 0 0 0 22px;
  margin: 0 0 28px;
}
.article-list li {
  margin-bottom: 12px;
  padding-left: 6px;
}
.article-list li::marker { color: var(--coral); }

/* ============================================================
   Pull quote
   ============================================================ */

.pull-quote {
  margin: 40px 0 40px;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--coral);
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}

/* ============================================================
   Data tables
   ============================================================ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
.data-table thead th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--navy);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}
.data-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.data-table thead .num { text-align: right; }
.data-table .row-total td {
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--navy);
  border-bottom: none;
  padding-top: 14px;
}
.table-source {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-50);
  margin: -12px 0 32px;
}

/* ============================================================
   Inline images
   ============================================================ */

.inline-image {
  margin: 36px 0;
}
.inline-image img {
  width: 100%;
  border-radius: 4px;
}

@media (min-width: 900px) {
  .inline-image--right {
    float: right;
    width: 300px;
    margin: 6px -180px 20px 32px;
  }
}

/* ============================================================
   CTA section (the reveal)
   Distinct visual break — navy on cream, product-oriented
   ============================================================ */

.cta-section {
  background: var(--navy);
  color: var(--cream);
  padding: 96px 32px 80px;
  margin-top: 96px;
  position: relative;
  overflow: hidden;
}

/* Subtle top border stripe */
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral) 0%, var(--gold) 100%);
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 20px;
}

.cta-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0 0 20px;
  font-variation-settings: "opsz" 72;
}

.cta-deck {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: rgba(251, 246, 236, 0.82);
  margin: 0 auto 40px;
  max-width: 560px;
}

/* Form */
.cta-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  max-width: 620px;
  margin: 0 auto 32px;
  text-align: left;
}
.cta-field { display: flex; flex-direction: column; }
.cta-field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 246, 236, 0.65);
  margin-bottom: 8px;
}
.cta-field input,
.cta-field select {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 246, 236, 0.22);
  background: rgba(251, 246, 236, 0.06);
  color: var(--cream);
  border-radius: 6px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
  min-height: 46px;
}
.cta-field input::placeholder { color: rgba(251, 246, 236, 0.4); }
.cta-field input:focus,
.cta-field select:focus {
  border-color: var(--coral);
  background: rgba(251, 246, 236, 0.1);
}
.cta-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%23FBF6EC' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cta-field select option { background: var(--navy); color: var(--cream); }

.cta-button {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 22px;
  background: var(--coral);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
  min-height: 46px;
}
.cta-button:hover { background: var(--coral-hover); }
.cta-button:active { transform: translateY(1px); }

@media (max-width: 640px) {
  .cta-form { grid-template-columns: 1fr; }
}

/* Trust row */
.cta-trust {
  list-style: none;
  padding: 0;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 28px;
  max-width: 620px;
}
.cta-trust li {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(251, 246, 236, 0.78);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.cta-small {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(251, 246, 236, 0.6);
  margin: 24px 0 0;
}
.cta-small a { color: var(--cream); text-decoration-color: rgba(251, 246, 236, 0.4); }
.cta-small a:hover { color: var(--coral); text-decoration-color: var(--coral); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 40px 32px 48px;
  border-top: 1px solid rgba(251, 246, 236, 0.1);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo { height: 28px; width: auto; margin: 0 auto 12px; }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(251, 246, 236, 0.7);
  margin: 0 0 20px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(251, 246, 236, 0.75);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--coral); }
.footer-legal {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(251, 246, 236, 0.45);
  margin: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Responsive tune-ups
   ============================================================ */

@media (max-width: 720px) {
  .article { padding: 32px 20px 20px; }
  .article-header { margin-bottom: 28px; }
  .article-body { font-size: 18px; }
  .drop-cap { font-size: 4.6em; margin-right: 10px; }
  .article-body h2 { margin: 36px 0 16px; }
  .pull-quote { margin: 28px 0; padding-left: 18px; }
  .data-table { font-size: 14px; }
  .data-table tbody td, .data-table thead th { padding: 10px 8px; }
  .cta-section { padding: 64px 20px 56px; margin-top: 64px; }
  .site-footer { padding: 32px 20px 40px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
