/* Self-hosted so a visit to the site makes no third-party request (JAS-384). */
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

/* Mirrors artifacts/mobile/constants/colors.ts so the site reads as the app. */
:root {
  --bg: #fbf7f0;
  --fg: #1a1a1a;
  --muted: #78716c;
  --card: #ffffff;
  --border: #e8ddd0;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --accent-ink: #92400e;
  --button: #1a1a1a;
  --button-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1410;
    --fg: #f5f0e8;
    --muted: #a8956e;
    --card: #241e18;
    --border: #3d3028;
    --accent: #f59e0b;
    --accent-soft: #2d2418;
    --accent-ink: #fde68a;
    --button: #f5f0e8;
    --button-fg: #1a1410;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Phone first: the nav is a row under the brand. From 880px it becomes a sticky left column. */
.shell {
  max-width: 640px;
  margin: 0 auto;
  padding: max(32px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 20px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
}
.nav a:hover {
  color: var(--fg);
}
.nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
}

@media (min-width: 880px) {
  .shell {
    max-width: none;
    display: grid;
    grid-template-columns: 200px minmax(0, 640px);
    justify-content: center;
    column-gap: 72px;
    padding-top: 56px;
  }
  .side {
    position: sticky;
    top: 56px;
    align-self: start;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .nav {
    flex-direction: column;
    gap: 4px;
  }
  .nav a {
    font-size: 16px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid var(--border);
  }
  .nav a[aria-current="page"] {
    border-left-color: var(--accent);
  }
}

.hero {
  padding: 64px 0 48px;
}
@media (min-width: 880px) {
  .hero {
    padding-top: 64px;
  }
}
h1 {
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.lede {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(19px, 4.6vw, 22px);
  line-height: 1.5;
  margin: 0;
  text-wrap: pretty;
}
.lede + .lede {
  margin-top: 16px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.num {
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  line-height: 1.4;
}
.steps h2,
.steps h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 6px;
}
.steps p {
  margin: 0;
}
@media (max-width: 480px) {
  .steps li {
    grid-template-columns: 24px 1fr;
  }
}

.story {
  padding-bottom: 8px;
}
.story p {
  font-family: "Lora", Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.story .signoff {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
}
.story p:first-child {
  font-size: clamp(21px, 5vw, 24px);
  line-height: 1.5;
}

.beta {
  margin: 56px 0 0;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.beta p {
  margin: 0 0 20px;
}
.button {
  display: inline-block;
  background: var(--button);
  color: var(--button-fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: 12px;
}

/* Prose sections and the cards on the beta invite page (JAS-567). */
.section {
  margin: 48px 0 0;
}
.section h2,
.beta h2 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 14px;
}
.section p {
  margin: 0 0 16px;
}
.section a,
.beta p a {
  color: var(--fg);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
.beta .steps {
  margin-bottom: 24px;
}
.beta .steps li:last-child {
  border-bottom: none;
}
.beta .steps p {
  margin: 0;
}
.after-steps {
  color: var(--muted);
}

/* The public TestFlight link is pasted into the Install button's href in beta.html (JAS-567).
   No script runs on the site, so the stylesheet keeps a placeholder href from showing as a
   broken button: the button shows only for a real join link, the notice in every other case. */
.install:not([href^="https://testflight.apple.com/join/"]) {
  display: none;
}
.install[href^="https://testflight.apple.com/join/"] + .install-pending {
  display: none;
}
.beta .install-pending {
  display: inline-block;
  margin: 0;
  padding: 12px 21px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
}

.note {
  margin: 48px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.note p {
  margin: 0 0 8px;
}

footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
}
footer .spacer {
  flex: 1;
}
footer .legal {
  display: flex;
  gap: 20px;
}
