/* Nalgent brand stylesheet
   Palette: navy #0B1D30 / steel #3E5C76 / ice #9FC4E8 / paper #F4F1EA
   Radius system: interactive 10px, media & panels 14px */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --navy-950: #081625;
  --navy-900: #0b1d30;
  --navy-800: #10283f;
  --steel: #3e5c76;
  --ice: #9fc4e8;
  --paper: #f4f1ea;
  --paper-70: rgba(244, 241, 234, 0.72);
  --paper-50: rgba(244, 241, 234, 0.52);
  --line: rgba(62, 92, 118, 0.38);
  --r-ui: 10px;
  --r-media: 14px;
  --measure: 62ch;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--navy-900);
  color: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--navy-900);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--paper);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }

.site-nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.site-nav a {
  color: var(--paper-70);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--paper); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--paper); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  border-radius: var(--r-ui);
  padding: 0.72rem 1.4rem;
  font-weight: 600;
  font-size: 0.975rem;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--ice); color: var(--navy-950); }
.btn-primary:hover { background: #b4d3ef; }

.btn-ghost {
  border: 1px solid var(--steel);
  color: var(--paper);
}
.btn-ghost:hover { border-color: var(--ice); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(4rem, 9vh, 6rem) 0; }

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 650;
  max-width: 14ch;
}

.hero .lede {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--paper-70);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  .hero > *:nth-child(2) { animation-delay: 0.08s; }
  .hero > *:nth-child(3) { animation-delay: 0.16s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

.hero-media { margin-top: clamp(3rem, 7vh, 4.5rem); }
.hero-media img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* ---------- sections ---------- */

.section { padding-block: clamp(4.5rem, 10vh, 7rem); }
.section + .section { border-top: 1px solid var(--line); }

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-weight: 630;
}

.section .body { color: var(--paper-70); max-width: var(--measure); }

/* two-column: sticky heading left, content right */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
}
.cols > .col-head h2 { position: sticky; top: 2rem; }

.practice + .practice { margin-top: 3.25rem; }
.practice h3 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.practice p { margin-top: 0.6rem; color: var(--paper-70); }
.practice .more { display: inline-block; margin-top: 0.7rem; font-weight: 500; }

/* split: text + image */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split .body { margin-top: 1.1rem; }
.split img {
  border-radius: var(--r-media);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split .more { display: inline-block; margin-top: 1.4rem; font-weight: 500; }

/* page header + banner */
.page-head { padding-block: clamp(3.5rem, 8vh, 5rem) 0; }
.page-head h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-weight: 650;
}
.page-head .lede {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: 1.15rem;
  color: var(--paper-70);
}
.banner { margin-top: clamp(2.5rem, 6vh, 4rem); }
.banner img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
}

/* prose sections on inner pages */
.prose h2 { margin-bottom: 0.9rem; }
.prose .body + h2 { margin-top: 3rem; }

/* callout panel */
.callout {
  margin-block: 3rem;
  background: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 8fr) auto;
  gap: 1.5rem;
  align-items: center;
}
.callout h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
.callout p { margin-top: 0.55rem; color: var(--paper-70); max-width: 52ch; }

/* help list */
.help {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 3.5rem;
  margin-top: 2.5rem;
}
.help h3 { font-size: 1.1rem; font-weight: 600; }
.help p { margin-top: 0.4rem; color: var(--paper-70); font-size: 0.97rem; }

/* CTA band */
.cta-band .inner {
  background: var(--navy-950);
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band p { color: var(--paper-70); margin-top: 0.5rem; max-width: 44ch; }

/* contact */
.contact-email {
  display: inline-block;
  margin-top: 2.25rem;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 630;
  letter-spacing: -0.02em;
}
.contact-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--paper-70);
  max-width: var(--measure);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  background: var(--navy-950);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer .brand { font-size: 1.05rem; }
.site-footer .tag { margin-top: 0.6rem; color: var(--paper-50); font-size: 0.92rem; }
.footer-nav { display: grid; gap: 0.45rem; }
.footer-nav a { color: var(--paper-70); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--paper); }
.site-footer .fine {
  width: 100%;
  margin-top: 1.5rem;
  color: var(--paper-50);
  font-size: 0.85rem;
}

/* ---------- mobile ---------- */

@media (max-width: 767px) {
  .cols, .split, .grid-2, .help, .callout { grid-template-columns: 1fr; }
  .cols > .col-head h2 { position: static; margin-bottom: 2rem; }
  .split img { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .banner img { aspect-ratio: 16 / 9; }
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.9rem; }
}
