@font-face {
  font-family: "Literata";
  src: url("/fonts/Literata-VF-latin.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --surface-2: #F3EEE7;
  --hairline: #E4DCD1;
  --border: #89827A;
  --text-1: #1A1614;
  --text-2: #554D46;
  --text-3: #6B625A;
  --error: #A03323;
  --error-wash: #FBECE8;
  --accent: #1E3A6E;
  --on-accent: #FFFFFF;
  --accent-text: #1E3A6E;
  --accent-wash: #E9EFFA;
  --accent-border: #6287C9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100E0D;
    --surface: #191615;
    --surface-2: #201C1A;
    --hairline: #342F2C;
    --border: #767068;
    --text-1: #F4EFE9;
    --text-2: #C3BAB0;
    --text-3: #9C938A;
    --error: #E8907C;
    --error-wash: #2A1714;
    --accent: #3A63B0;
    --on-accent: #FFFFFF;
    --accent-text: #8FB2E8;
    --accent-wash: #141C2E;
    --accent-border: #416DBD;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

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

a {
  color: var(--accent-text);
}

h1,
h2,
h3,
p,
li,
.prose {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 2.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h2 {
  margin: 32px 0 8px;
  font-size: 1.1875rem;
  line-height: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.008em;
}

p {
  margin: 0;
}

p + p {
  margin-top: 12px;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.625rem;
  color: var(--text-2);
}

.prose a,
footer p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lede {
  margin-top: 12px;
}

.next {
  margin-top: 12px;
}

.section-gap {
  margin-top: 32px;
}

.sub + .sub {
  margin-top: 20px;
}

ol,
ul {
  margin: 0;
  padding-left: 24px;
}

ol.steps {
  margin-top: 8px;
}

li + li {
  margin-top: 8px;
}

/* site1 LAYOUT.md §2: the frame is size.web.wide (1072), centred, with wave15's gutters. */
.wide {
  box-sizing: content-box;
  max-width: 1072px;
  margin: 0 auto;
  padding: 0 16px;
}

/* size.web.column: prose on every page, left-aligned in the frame (S1Q-3 A). */
.col {
  max-width: 640px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus,
.skip:focus-visible {
  left: 16px;
  top: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.hdrw {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}

.hdr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.wm {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-1);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.008em;
}

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

.nav a,
.flinks a {
  text-decoration: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible,
.flinks a:hover,
.flinks a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav a[aria-current="page"],
.flinks a[aria-current="page"],
.nav a[aria-current="page"]:hover,
.nav a[aria-current="page"]:focus-visible,
.flinks a[aria-current="page"]:hover,
.flinks a[aria-current="page"]:focus-visible {
  color: var(--text-1);
  text-decoration: none;
}

main.page {
  padding-top: 32px;
}

.eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-3);
}

.meta {
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--text-3);
}

.caption {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  color: var(--text-3);
}

h1.passage {
  margin-top: 8px;
  font-family: Literata, Georgia, "Times New Roman", serif;
  font-size: 1.875rem;
  line-height: 2.375rem;
  font-weight: 400;
  letter-spacing: 0;
}

.invited {
  margin-top: 8px;
}

.count {
  margin-top: 4px;
}

.card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 20px 16px;
}

.notice + .card {
  margin-top: 16px;
}

.code {
  margin: 8px 0 0;
  max-width: 100%;
  color: var(--text-1);
  font-size: 2.25rem;
  line-height: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  user-select: all;
  overflow-wrap: anywhere;
}

.hint {
  margin-top: 8px;
}

.open {
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.9375rem;
  line-height: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.btn.filled {
  background: var(--accent);
  color: var(--on-accent);
}

.btn.outlined {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent-text);
}

.note {
  margin-top: 8px;
}

.notice {
  margin-top: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.notice.err {
  background: var(--error-wash);
  border-color: var(--error);
}

.notice .nt,
.notice h1.nt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--text-1);
}

.notice.err .nt,
.notice.err h1.nt {
  color: var(--error);
}

.notice .nb {
  margin-top: 4px;
  font-size: 1.0625rem;
  line-height: 1.625rem;
  color: var(--text-1);
}

.notice.plain .nb {
  color: var(--text-2);
}

.after {
  margin-top: 16px;
}

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

footer {
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
  padding: 24px 0 32px;
}

footer p {
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--text-3);
}

footer p + p {
  margin-top: 8px;
}

.flinks {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  margin-top: 8px;
}

.flinks a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

/* ===== home (site1 LAYOUT.md §3; sizes site1 TOKENS-DELTA.md §2-§4). Narrow first. ===== */

.hero {
  padding: 40px 0;
}

.hero h1 {
  margin-top: 12px;
  font-size: 2.5rem;
  line-height: 2.625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.hero h1 span {
  display: block;
}

.btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--text-3);
}

.phone {
  width: 270px;
  height: 558px;
  margin: 40px auto 0;
  border: 12px solid #1A1614;
  border-radius: 48px;
  background: #1A1614;
  overflow: hidden;
}

.phone img,
.shots img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone img {
  border-radius: 36px;
  background: var(--surface-2);
}

.what > div + div h2 {
  margin-top: 20px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 16px;
}

.shots figure {
  margin: 0;
  min-width: 0;
}

.shots img {
  height: auto;
  aspect-ratio: 276 / 596;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--surface-2);
}

.shots figcaption {
  margin-top: 8px;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--text-2);
}

@media (prefers-color-scheme: dark) {
  .phone {
    box-shadow: 0 0 0 1px var(--hairline);
  }
}

@media (min-width: 600px) {
  .wide {
    padding: 0 24px;
  }

  main.page {
    padding-top: 40px;
  }

  h1 {
    font-size: 2.125rem;
    line-height: 2.5rem;
  }

  .btn {
    width: auto;
  }

  .btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 540px) 300px;
    justify-content: space-between;
    align-items: center;
    column-gap: 40px;
    padding: 72px 0;
  }

  .hero h1 {
    font-size: 3.25rem;
    line-height: 3.5625rem;
  }

  .phone {
    width: 300px;
    height: 620px;
    margin: 0;
  }

  .what {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
  }

  .what > div + div h2 {
    margin-top: 32px;
  }

  .shots {
    grid-template-columns: repeat(4, minmax(0, 240px));
    gap: 32px;
  }
}
