@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f1ea;
  --surface: #ede5da;
  --surface-raised: #e4dacd;
  --ink: #1b1714;
  --muted: #564d45;
  --faint: #6c6259;
  --accent: #0b6b4e;
  --accent-ink: #f6f1ea;
  --accent-wash: #d5ebe0;
  --line: rgba(27, 23, 20, 0.14);
  --focus: #0b6b4e;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --surface: #1b1714;
    --surface-raised: #261f1b;
    --ink: #f2ebe2;
    --muted: #c6bdb2;
    --faint: #a39a8f;
    --accent: #7ef0c8;
    --accent-ink: #04120e;
    --accent-wash: #23382f;
    --line: rgba(242, 235, 226, 0.1);
    --focus: #7ef0c8;
  }
}

.stage {
  --bg: #0c0a09;
  --surface: #1b1714;
  --surface-raised: #261f1b;
  --ink: #f2ebe2;
  --muted: #c6bdb2;
  --faint: #a39a8f;
  --accent: #7ef0c8;
  --accent-ink: #04120e;
  --accent-wash: #23382f;
  --line: rgba(242, 235, 226, 0.1);
  --focus: #7ef0c8;
  color-scheme: dark;
  background: var(--bg);
  color: var(--ink);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

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

h1,
h2,
h3 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.6em 1em;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 500;
}

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 38ch;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.mark-sun {
  fill: var(--ink);
}

.mark-horizon {
  fill: var(--accent);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero {
  padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero h1 {
  max-width: 16ch;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.prose > * {
  max-width: 44rem;
}

.after-ledger {
  margin-top: 1.5rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.belief {
  display: grid;
  gap: 2rem;
}

.belief blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 26ch;
}

.belief blockquote p {
  margin: 0;
}

@media (min-width: 860px) {
  .belief {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
    gap: 4rem;
  }
}

.app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  text-decoration: none;
  max-width: 44rem;
}

.app-card:hover {
  border-color: var(--accent);
}

.app-card img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.app-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.app-card p {
  margin: 0;
  color: var(--muted);
}

.app-card .label {
  margin: 0.6rem 0 0;
}

.app-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.store {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.store-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .store-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.app-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-title img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.app-title h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1rem;
  padding: 0;
  list-style: none;
}

.store-badge {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  min-width: 200px;
  padding: 0.65rem 1.1rem 0.65rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  line-height: 1.15;
}

.store-badge svg {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
}

.store-badge-small {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-badge-large {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.store-badge-soon {
  display: none;
}

.store-badge.is-soon {
  grid-template-columns: auto auto;
  background: transparent;
  border-color: var(--faint);
  border-style: dashed;
  color: var(--faint);
  cursor: not-allowed;
}

.store-badge.is-soon .store-badge-soon {
  display: block;
  grid-column: 1 / -1;
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.store-note {
  font-size: 0.9375rem;
  color: var(--muted);
}

.feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 5rem;
  }

  .feature.flip > :first-child {
    order: 2;
  }
}

.shot {
  margin: 0 auto;
  width: min(300px, 78vw);
}

.shot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #0c0a09;
}

.shot figcaption {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.shots {
  display: grid;
  gap: 2.5rem;
  justify-items: center;
}

@media (min-width: 640px) {
  .shots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .shots .shot {
    width: min(280px, 100%);
  }
}

.cards {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .cards.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cards li {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.cards strong {
  display: block;
  font-weight: 500;
}

.cards span {
  color: var(--muted);
  font-size: 0.975rem;
}

.cards .is-headline {
  border-color: var(--accent);
  background: var(--accent-wash);
}

.presence-figure {
  max-width: 44rem;
  margin: 2.5rem 0 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.presence-figure svg {
  width: 100%;
  max-width: 520px;
}

.presence-figure figcaption {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.room {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.wall {
  fill: var(--faint);
}

.phone {
  fill: var(--surface-raised);
  stroke: var(--ink);
  stroke-width: 2;
}

.phone-blocked {
  fill: var(--accent-wash);
  stroke: var(--accent);
}

.wave {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.wave-weak {
  stroke: var(--faint);
  stroke-dasharray: 4 6;
}

.diagram-text {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.diagram-strong {
  fill: var(--ink);
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.ledger {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 780px) {
  .ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ledger section {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.ledger h3 {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.ledger ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ledger li + li {
  margin-top: 0.6rem;
}

.plan {
  width: 100%;
  max-width: 40rem;
  margin: 1.5rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.975rem;
}

.plan th,
.plan td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.plan thead th {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan thead th:last-child {
  color: var(--accent);
}

.plan tbody th {
  font-weight: 400;
}

.plain-list {
  padding-left: 1.1rem;
  max-width: 62ch;
}

.plain-list li + li {
  margin-top: 0.5rem;
}

.error-code {
  font-family: var(--mono);
  color: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  a,
  .app-card {
    transition: color 0.15s ease, border-color 0.15s ease, text-decoration-color 0.15s ease;
  }
}

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