@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #000000;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --accent: var(--ink);
  --tint: #ebebeb;
  --radius: 22px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #111111;
    --ink: #ffffff;
    --muted: #9a9a9a;
    --line: #262626;
    --tint: #1c1c1c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1;
}
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 7px 12px; border-radius: 999px; text-decoration: none;
  font-size: 14px; color: var(--muted);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--tint); }
@media (max-width: 680px) { .nav-links li:not(.keep) { display: none; } }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
h1, h2, h3 { font-weight: 400; margin: 0; }
.display {
  font-family: var(--serif);
  font-size: clamp(52px, 9vw, 112px);
  line-height: .98; letter-spacing: -0.025em;
}
.display em, .h2 em { font-style: italic; }
.h2 { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.kicker { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 18px; }

/* Hero */
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.hero .display { margin: 26px auto 26px; max-width: 12ch; }
.hero .lead { margin: 0 auto; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Sections */
section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { margin-bottom: 44px; max-width: 640px; }
.section-head .lead { margin-top: 18px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* App grid */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }
.app-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  min-height: 300px; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid transparent;
  text-decoration: none; overflow: hidden;
}
.app-card:hover { border-color: var(--ink); }
.app-card h3 { font-family: var(--serif); font-size: 40px; line-height: 1; letter-spacing: -0.015em; margin-top: 22px; }
.app-card p { margin: 10px 0 0; color: var(--muted); max-width: 26em; }
.app-card .go { position: relative; z-index: 1; font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.status { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; margin-left: 10px; vertical-align: middle; font-family: var(--sans); }

.icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
}
.icon svg { width: 30px; height: 30px; }
.icon img { width: 100%; height: 100%; border-radius: inherit; }
.icon-lg { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto; }
.icon-lg svg { width: 46px; height: 46px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle .n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--muted); }
.principle h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 10px 0 8px; }
.principle p { margin: 0; color: var(--muted); }

/* Manifesto */
.manifesto { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 50px); line-height: 1.15; letter-spacing: -0.015em; max-width: 22ch; }
.manifesto .soft { color: var(--muted); }

/* App page */
.app-hero { padding: clamp(64px, 10vw, 128px) 0 40px; text-align: center; }
.app-hero .display { margin: 28px auto 22px; }
.app-hero .lead { margin: 0 auto; }
.showcase {
  margin-top: 56px; border-radius: 32px; background: var(--surface);
  padding: clamp(28px, 6vw, 72px); display: grid; place-items: center; overflow: hidden;
}
.showcase img { width: min(320px, 70%); border-radius: 36px; border: 1px solid var(--line); }
.mock {
  width: min(560px, 100%); background: var(--bg); border-radius: 18px; border: 1px solid var(--line);
  overflow: hidden; text-align: left;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 22px 24px 26px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 15px; }
.mock-row:last-child { border-bottom: 0; }
.mock-row b { font-weight: 600; }
.mock-row span { color: var(--muted); }
.mock-row .pill { margin-left: auto; font-size: 12px; color: var(--muted); }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; }
.mock-dot.read { background: transparent; }
.mock-title { font-family: var(--serif); font-size: 30px; margin: 0 0 6px; }
.mock-line { height: 10px; border-radius: 6px; background: var(--tint); margin: 10px 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); }
.feature .n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feature h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; margin: 18px 0 10px; }
.feature p { margin: 0; color: var(--muted); }

.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.checks li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; }

.cta { text-align: center; }
.cta .h2 { max-width: 16ch; margin: 0 auto; }

.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .others { grid-template-columns: 1fr; } }
.other { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid transparent; background: var(--surface); text-decoration: none; }
.other:hover { border-color: var(--ink); }
.other .icon { width: 44px; height: 44px; border-radius: 12px; }
.other .icon svg { width: 22px; height: 22px; }
.other b { display: block; font-weight: 600; }
.other span { color: var(--muted); font-size: 14px; }

/* Prose (legal) */
.prose { padding: clamp(56px, 8vw, 100px) 0; }
.prose h1 { font-family: var(--serif); font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -0.02em; margin-bottom: 14px; }
.prose h2 { font-family: var(--serif); font-size: 30px; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--ink); }
.prose .meta { color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }


section.cta { padding-top: 0; }

.prose a, .lead a { text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.prose code, .lead code { overflow-wrap: anywhere; }
