@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Libre Baskerville";
  src: url("assets/fonts/LibreBaskerville-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --ivory: #e9e4da;
  --body: #cbc6bc;
  --muted: #aaa59b;
  --rule: #393630;
  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --sans: Arial, Helvetica, sans-serif;
  --heading: "Barlow Condensed", "Arial Narrow", var(--sans);
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ivory); color: var(--black); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ivory); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: var(--gutter);
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ivory);
  color: var(--black);
  transform: translateY(calc(-100% - 2rem));
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--black);
  outline-offset: -4px;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  min-height: 108px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  width: 244px;
  min-height: 48px;
  flex-shrink: 0;
}
.brand img { width: 100%; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.nav a, .eyebrow, .launch, .site-footer {
  font-family: var(--sans);
  font-size: 0.6875rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.nav a {
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

.hero {
  min-height: calc(100svh - 108px);
  padding-block: clamp(3.75rem, 6vw, 5.5rem) clamp(4.75rem, 7vw, 6.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-rule {
  width: 4rem;
  height: 1px;
  background: var(--muted);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 800;
  overflow-wrap: break-word;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 18vw, 12.5rem);
  line-height: 0.91;
  letter-spacing: -0.015em;
}

.hero-copy {
  max-width: 39rem;
  margin: clamp(2rem, 3.5vw, 3rem) 0 1.75rem;
  color: var(--body);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 48px;
  border-bottom: 1px solid var(--ivory);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.text-link span {
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0;
  transition: transform 160ms ease;
}
.text-link:hover span, .text-link:focus-visible span { transform: translateX(4px); }

.app-section, .about {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  border-top: 1px solid var(--rule);
}

.eyebrow { margin: 0 0 2rem; color: var(--muted); }

.section-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}
.section-grid > * { min-width: 0; }

h2 {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
}

.section-copy { max-width: 30rem; padding-top: 0.25rem; }

.section-copy p {
  color: var(--body);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.85;
  margin: 0 0 1.25rem;
}

.section-copy .launch {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.6875rem;
  line-height: 1.8;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--rule);
}

.pillars article { padding: 2.5rem clamp(1.5rem, 3vw, 3rem) 2.75rem; }
.pillars article:first-child { padding-left: 0; }
.pillars article:last-child { padding-right: 0; }
.pillars article + article { border-left: 1px solid var(--rule); }

.pillars span {
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

.pillars h3 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.875rem, 2.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.pillars p {
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.85;
  margin: 0;
  max-width: 30ch;
}

.about { border-top: 0; padding-block: clamp(5rem, 10vw, 9rem); }

.about > p:last-child {
  color: var(--body);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.85;
  max-width: 39rem;
  margin: 2.5rem 0 0;
}

.site-footer {
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 44px;
  color: var(--ivory);
}
.footer-brand img { width: 40px; flex-shrink: 0; }

@media (max-width: 800px) {
  .section-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillars { grid-template-columns: 1fr; }
  .pillars article, .pillars article:first-child, .pillars article:last-child {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: 1.25rem;
    row-gap: 0.875rem;
    padding: 2rem 0;
  }
  .pillars article + article { border-left: 0; border-top: 1px solid var(--rule); }
  .pillars span { padding-top: 0.5rem; }
  .pillars h3 { margin: 0; }
  .pillars p { grid-column: 2; max-width: 42ch; }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 1rem; }
  .header-inner { min-height: 88px; gap: 1rem; padding-block: 0.75rem; }
  .brand { width: clamp(136px, 38vw, 188px); }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.625rem; letter-spacing: 0.12em; }
  .hero { min-height: auto; padding-block: 3.5rem 4.5rem; }
  .hero-rule { width: 2.5rem; }
  .hero-copy { max-width: 33ch; }
  .footer-inner { align-items: flex-start; }
  .footer-brand { gap: 0.75rem; }
  .footer-brand span { max-width: 15ch; font-size: 0.625rem; }
  .footer-inner > span { padding-top: 0.75rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */

.legal-page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-hero {
  padding: 120px 0 88px;
  border-bottom: 1px solid rgba(233, 228, 218, 0.18);
}

.legal-hero .eyebrow {
  margin-bottom: 28px;
}

.legal-hero h1 {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.045em;
  color: #e9e4da;
}

.legal-intro {
  max-width: 660px;
  margin: 48px 0 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e9e4da;
}

.legal-date {
  margin: 34px 0 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(233, 228, 218, 0.62);
}

.legal-content {
  max-width: 760px;
  padding: 72px 0 120px;
}

.legal-content article {
  padding: 0 0 54px;
}

.legal-content article + article {
  padding-top: 54px;
  border-top: 1px solid rgba(233, 228, 218, 0.14);
}

.legal-content h2 {
  margin: 0 0 22px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #e9e4da;
}

.legal-content p {
  margin: 0 0 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.9;
  color: rgba(233, 228, 218, 0.8);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  white-space: nowrap;
}

.footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #e9e4da;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 0.72;
}

@media (max-width: 700px) {
  .legal-page {
    width: min(100% - 40px, 1120px);
  }

  .legal-hero {
    padding: 88px 0 64px;
  }

  .legal-intro {
    margin-top: 34px;
    font-size: 1rem;
  }

  .legal-content {
    padding: 54px 0 88px;
  }

  .legal-content article {
    padding-bottom: 42px;
  }

  .legal-content article + article {
    padding-top: 42px;
  }

  .footer-links {
    gap: 16px;
  }
  
}