:root {
  --night: #0a1620;
  --fjord: #122634;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #142028;
  --muted: #5c6b73;
  --line: rgba(20, 32, 40, 0.12);
  --flag: #ba0c2f;
  --flag-hover: #9b0a27;
  --brass: #c4a574;
  --hero-ink: #f4efe6;
  --hero-muted: rgba(244, 239, 230, 0.74);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 76px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 30;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  color: var(--hero-ink);
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  color: var(--ink);
  background: rgba(244, 239, 230, 0.92);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.hero,
.section,
.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 13px;
}

.logo-mark {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--flag) 0 0) center / 100% 3px no-repeat,
    linear-gradient(var(--flag) 0 0) center / 3px 100% no-repeat,
    linear-gradient(#f4efe6 0 0) center / 100% 7px no-repeat,
    linear-gradient(#f4efe6 0 0) center / 7px 100% no-repeat,
    #0a1620;
}

.site-header.is-scrolled .logo-mark,
body.nav-open .site-header .logo-mark {
  background:
    linear-gradient(var(--flag) 0 0) center / 100% 3px no-repeat,
    linear-gradient(var(--flag) 0 0) center / 3px 100% no-repeat,
    linear-gradient(#0a1620 0 0) center / 100% 7px no-repeat,
    linear-gradient(#0a1620 0 0) center / 7px 100% no-repeat,
    #f4efe6;
  box-shadow: inset 0 0 0 1px rgba(10, 22, 32, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  opacity: 0.82;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.nav-cta {
  padding: 8px 14px;
  border: 1px solid currentColor;
  opacity: 1 !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle span:first-of-type {
  top: 16px;
}

.nav-toggle span:last-of-type {
  top: 24px;
}

.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 120px;
  color: var(--hero-ink);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -1px;
  left: 50%;
  z-index: -2;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--night);
}

.hero-aurora {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(70vw, 640px);
  height: 420px;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 30%, rgba(186, 12, 47, 0.28), transparent 42%),
    radial-gradient(circle at 30% 60%, rgba(80, 150, 170, 0.22), transparent 50%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-fjord {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 100vw;
  height: 180px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-kicker {
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero h1 {
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin-top: 22px;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--hero-muted);
}

.hero-intro {
  margin-top: 20px;
  max-width: 42ch;
  color: var(--hero-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--flag);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--flag-hover);
}

.btn-ghost {
  border: 1px solid rgba(244, 239, 230, 0.35);
  color: var(--hero-ink);
}

.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible {
  border-color: var(--hero-ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 28px;
  margin-top: 56px;
}

.stats dt {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
}

.stats dd {
  margin-top: 8px;
  font-size: 13px;
  color: var(--hero-muted);
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 48px;
}

.eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flag);
}

.section h2,
.signup-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 16px;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.split-3 {
  grid-template-columns: repeat(3, 1fr);
}

.panel {
  padding: 36px 32px;
  background: var(--paper);
}

.panel-index {
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brass);
}

.panel h3,
.method-list h3,
.work-grid h3,
.format-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
}

.panel p,
.method-list p,
.work-grid p,
.format-card > p {
  color: var(--muted);
}

.section.section-ink {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  color: var(--hero-ink);
  background: var(--fjord);
}

.section-ink .section-lead,
.section-ink .method-list p {
  color: var(--hero-muted);
}

.section-ink .eyebrow {
  color: var(--brass);
}

.method-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

.method-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.method-list span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brass);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-grid li {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.format-card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
}

.format-card:first-child {
  grid-column: 1 / -1;
}

.format-card ul {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.format-card li {
  padding-left: 14px;
  border-left: 2px solid var(--flag);
  color: var(--muted);
  font-size: 0.98rem;
}

.signup {
  padding-bottom: 120px;
}

.signup-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 48px;
  background: #fff;
  border: 1px solid var(--line);
}

.signup-copy p {
  margin-top: 16px;
  color: var(--muted);
}

.signup-copy .eyebrow {
  margin-top: 0;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-row a,
.site-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-row a:hover,
.site-footer a:hover {
  color: var(--flag);
}

.signup-form {
  display: grid;
  gap: 16px;
}

.signup-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  outline: none;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  border-color: var(--ink);
}

.signup-form .btn {
  justify-self: start;
  margin-top: 8px;
}

.form-status {
  font-size: 14px;
  color: var(--muted);
}

.form-status.is-ok {
  color: #1f6b4a;
}

.form-status.is-error {
  color: var(--flag);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 24px;
    background: var(--paper);
    color: var(--ink);
  }

  .nav.is-open {
    display: flex;
  }

  .split,
  .split-3,
  .work-grid,
  .format-grid,
  .signup-card {
    grid-template-columns: 1fr;
  }

  .format-card:first-child {
    grid-column: auto;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .signup-card {
    padding: 28px 22px;
  }

  .site-footer {
    flex-direction: column;
  }

  .hero {
    padding-top: calc(var(--header-h) + 36px);
  }
}

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

  .btn {
    transition: none;
  }
}
