/* Run Edit Run — base tokens, reset, type, chrome */

:root {
  --bg: #f3f1ec;
  --bg-2: #eae7e0;
  --ink: #141413;
  --ink-2: #3d3c39;
  --muted: #6b6a66;
  --rule: #d8d4cb;
  --rule-strong: #bdb8ad;
  --blue: #1f5bd8;
  --navy: #0b1626;
  --white: #ffffff;

  --font-display: "Archivo", "Archivo Narrow", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 3vw, 46px);
  --max: 1520px;
  --radius-pill: 999px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 62, "wght" 800;
  font-weight: 800;
  font-stretch: 62%;
  line-height: 0.88;
  letter-spacing: -0.015em;
}

.display--black {
  font-variation-settings: "wdth" 62, "wght" 900;
  font-weight: 900;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

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

.lede {
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
}

.measure { max-width: 62ch; }

/* ---------- Layout ---------- */

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

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.section { padding-block: clamp(64px, 8vw, 128px); }
.section--tight { padding-block: clamp(40px, 5vw, 80px); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px var(--gutter);
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 64px);
}

.section-head .display { font-size: clamp(44px, 5.4vw, 88px); }
.section-head .lede { max-width: 44ch; }

@media (max-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease;
}

.btn:hover { background: #000; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--sm { height: 44px; padding: 0 22px; font-size: 12px; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
}
.btn--ghost:hover { background: var(--bg-2); }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #164ab5; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.link-arrow .arrow { transition: transform 160ms ease; }
.link-arrow:hover .arrow,
.btn:hover .arrow { transform: translate(2px, -2px); }

.arrow { width: 12px; height: 12px; flex: none; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
}

.nav__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 84px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.nav__brand svg { width: 38px; height: 38px; }

.nav__wordmark {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 62, "wght" 800;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav__links {
  display: flex;
  justify-content: flex-end;
  gap: clamp(22px, 3vw, 56px);
  padding-right: clamp(24px, 4vw, 96px);
}

.nav__links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

.nav__toggle { display: none; }

@media (max-width: 960px) {
  .nav__inner { grid-template-columns: auto 1fr auto; height: 72px; }
  .nav__links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 72px;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }
  .nav__links a { padding-block: 14px; border-bottom: 1px solid var(--rule); }
  .nav.is-open .nav__links { display: flex; }
  .nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--rule-strong);
  }
  .nav__cta { display: none; }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 56px 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 40px var(--gutter);
}

.footer__brand .nav__wordmark { font-size: 28px; }
.footer__brand p { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 34ch; }

.footer h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer li + li { margin-top: 10px; }
.footer li a { font-size: 14px; color: var(--ink-2); }
.footer li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 12px 24px; width: 100%; }
.footer__legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--ink); }
.footer__legal a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Utilities ---------- */

.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;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}

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