@import url("./variables.css");

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

main > section {
  scroll-margin-top: 5.5rem;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--warm-300);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 999;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--navy-900);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - (var(--gutter) * 2)), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
}

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

.section--dark {
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 20%, rgba(80, 118, 154, 0.14), transparent 30%),
    var(--navy-950);
}

.section--paper {
  background:
    linear-gradient(rgba(255, 245, 233, 0.78), rgba(255, 245, 233, 0.78)),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(14, 46, 78, 0.025) 4px 5px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--navy-500);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: var(--warm-300);
}

.eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: var(--step-4);
  line-height: 0.92;
}

h2 {
  max-width: 20ch;
  margin-bottom: 1.25rem;
  font-size: var(--step-3);
  line-height: 1;
}

h3 {
  margin-bottom: 0.65rem;
  color: inherit;
  font-size: var(--step-1);
  line-height: 1.25;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: var(--step-1);
  text-wrap: pretty;
}

.section--dark .lede,
.section--dark .muted {
  color: rgba(249, 249, 249, 0.68);
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.button::after {
  content: "→";
  transition: transform var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--navy-700);
}

.button:hover::after {
  transform: translateX(4px);
}

.button--light {
  border-color: var(--warm-100);
  background: var(--warm-100);
  color: var(--navy-900);
}

.button--ghost {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.button--plain::after {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-800);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
}

.section--dark .text-link {
  color: var(--paper);
}

.surface {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 10vw, 8.5rem);
  color: var(--paper);
  background: var(--navy-950);
}

.page-hero--compact {
  padding-block: clamp(4.5rem, 8vw, 6.75rem);
}

.page-hero::after {
  position: absolute;
  width: min(50vw, 36rem);
  aspect-ratio: 1;
  top: 50%;
  right: -7%;
  border: 1px solid var(--line-warm);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(198, 213, 227, 0.025),
    0 0 0 9rem rgba(198, 213, 227, 0.02);
  content: "";
  transform: translateY(-50%);
}

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

.page-hero h1 {
  max-width: 20ch;
}

.page-hero .lede {
  max-width: 68ch;
  color: rgba(249, 249, 249, 0.7);
}

.hero-statement {
  max-width: 18ch;
  margin: 0;
  color: var(--warm-100);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.7rem);
  line-height: 1.05;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.2rem;
  color: var(--warm-300);
  font-size: 0.95rem;
  font-weight: 700;
}

.breadcrumb a {
  text-underline-offset: 0.2rem;
}

.notice {
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--navy-500);
  background: rgba(80, 118, 154, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.is-disabled {
  opacity: 0.72;
  cursor: not-allowed;
  pointer-events: none;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading > :last-child {
  max-width: 35rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    animation: content-arrive 520ms var(--ease) both;
  }

  @keyframes content-arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
