@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-700-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400i-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-400i.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/familjen-500.ttf") format("truetype");
}

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/familjen-600.ttf") format("truetype");
}

@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/familjen-700.ttf") format("truetype");
}

:root {
  --ink: oklch(0.22 0.03 255);
  --muted: oklch(0.4 0.02 255);
  --paper: oklch(0.975 0.004 255);
  --sheet: #ffffff;
  --inset: oklch(0.96 0.006 255);
  --line: oklch(0 0 0 / 0.08);
  --line-strong: oklch(0 0 0 / 0.14);
  --accent: #6d3de9;
  --accent-hover: #592dcc;
  --on-accent: #f7f9fb;
  --danger: oklch(0.46 0.17 25);
  --shadow-sheet:
    0 0 0 0.5px oklch(0 0 0 / 0.05),
    0 1px 2px oklch(0 0 0 / 0.04),
    0 8px 24px oklch(0.3 0.04 255 / 0.06);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  color-scheme: light;
}

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

html {
  scrollbar-color: var(--accent) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

:focus:not(:focus-visible) {
  outline: none;
}

.skip {
  position: absolute;
  left: var(--space-4);
  top: 0;
  transform: translateY(-120%);
  background: var(--sheet);
  color: var(--accent);
  padding: var(--space-2) var(--space-3);
  z-index: 30;
}

.skip:focus {
  transform: none;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.nav,
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(0.975 0.004 255 / 0.86);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: 1120px;
  margin-inline: auto;
  padding: 0 clamp(20px, 4vw, 48px);
  min-height: 64px;
}

.mark {
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: var(--space-2);
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-3);
  color: var(--ink);
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color 140ms var(--ease-out);
}

.top nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.letterhead,
.chapter,
.reach,
.sheet {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.letterhead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.9fr);
  gap: var(--space-12) var(--space-16);
  align-items: end;
  padding-block: var(--space-16) var(--space-12);
}

h1,
h2 {
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
}

.lead {
  margin: var(--space-4) 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.4;
}

.official {
  margin: var(--space-4) 0 0;
}

.official a {
  color: var(--ink);
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: var(--space-8);
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 140ms var(--ease-out),
    background-color 140ms var(--ease-out);
}

.button:active,
button:active {
  transform: scale(0.97);
}

form button {
  margin-top: 0;
}

button:disabled {
  background: oklch(0.9 0.01 255);
  color: oklch(0.42 0.02 255);
  cursor: not-allowed;
  transform: none;
}

.record {
  margin: 0;
  padding: var(--space-2) var(--space-6);
  background: var(--sheet);
  border-radius: 12px;
  box-shadow: var(--shadow-sheet);
}

.record div {
  display: grid;
  gap: 2px;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.record div:last-child {
  border-bottom: 0;
}

.record dt {
  margin: 0;
  color: var(--muted);
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}

.record dd {
  margin: 0;
  color: var(--ink);
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1.4fr);
  gap: var(--space-6) var(--space-12);
  padding-block: var(--space-8) var(--space-16);
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.prose p {
  margin: 0 0 var(--space-4);
  max-width: 68ch;
}

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

.reach {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
  padding: var(--space-8);
  background: var(--sheet);
  border-radius: 12px;
  box-shadow: var(--shadow-sheet);
}

.reach p {
  margin: var(--space-3) 0 0;
  max-width: 36ch;
  color: var(--muted);
}

.mail {
  color: var(--ink);
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.03em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.16em;
}

.sheet {
  padding-block: var(--space-12) var(--space-16);
}

.sheet h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  max-width: 16ch;
}

.intro {
  margin-top: var(--space-4);
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.45;
}

.stack {
  display: grid;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

.stack h2 {
  margin-bottom: var(--space-3);
}

form {
  display: grid;
  gap: var(--space-4);
  max-width: 36rem;
  margin-top: var(--space-8);
}

label {
  display: grid;
  gap: var(--space-2);
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--inset);
  color: var(--ink);
  caret-color: var(--accent);
  font: inherit;
  padding: 12px;
  transition:
    border-color 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out);
}

textarea {
  resize: vertical;
  min-height: 9rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(109 61 233 / 0.2);
}

.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px oklch(0.46 0.17 25 / 0.14);
}

.error {
  margin: 0;
  color: var(--danger);
  font-weight: 700;
}

.hint {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: var(--space-6) var(--space-8);
  border-top: 1px solid var(--line);
}

.site-footer p,
.site-footer nav {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  button:hover:not(:disabled) {
    background: var(--accent-hover);
  }

  .top nav a:hover {
    color: var(--accent);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .record div {
    animation: rise 280ms var(--ease-out) both;
  }

  .record div:nth-child(2) { animation-delay: 40ms; }
  .record div:nth-child(3) { animation-delay: 80ms; }
  .record div:nth-child(4) { animation-delay: 120ms; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 320px);
  gap: var(--space-8) var(--space-16);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: var(--space-12) auto var(--space-8);
}

.phone {
  margin: 0;
  padding: 8px;
  background: #17141f;
  border-radius: 36px;
  box-shadow: var(--shadow-sheet);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

.stage .phone {
  justify-self: end;
}

.captures {
  width: min(1120px, calc(100% - 40px));
  margin: var(--space-8) auto var(--space-12);
  padding: var(--space-8) var(--space-6) var(--space-8);
  background: #f3eefe;
  border-radius: 20px;
}

.captures h2 {
  margin-bottom: var(--space-6);
}

.capture-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.capture-row figure {
  margin: 0;
}

.capture-row figcaption {
  margin-top: var(--space-4);
  font-family: "Familjen Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.capture-row p {
  margin: var(--space-2) 0 0;
  color: var(--muted);
}

@media (max-width: 800px) {
  .letterhead,
  .chapter,
  .reach,
  .stage {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stage .phone {
    justify-self: center;
    width: min(280px, 86%);
  }

  .capture-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--space-4);
    padding-bottom: var(--space-2);
  }

  .capture-row figure {
    flex: 0 0 78%;
    scroll-snap-align: center;
  }

  .letterhead {
    align-items: start;
    padding-block: var(--space-12) var(--space-8);
    gap: var(--space-8);
  }

  .reach {
    align-items: start;
  }

  .button,
  button {
    margin-top: var(--space-6);
  }

  .top {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding-block: var(--space-2);
  }

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

