/* looyork.app — black by default, with a day mode. Helvetica Neue, bold headings, light body. */

:root,
:root[data-theme="dark"] {
  --bg: #000000;
  --fg: #ffffff;
  --soft: #b8b8b4;   /* secondary text */
  --dim: #8a8a86;    /* footer, notes (≥ 4.5:1 on black) */
  --line: #2a2a28;
  --panel: #141413;
  --blue: #4c8dff;
  --logo-invert: 0;  /* the mark is white; 1 flips it black for day mode */
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --fg: #111111;
  --soft: #5c5c58;
  --dim: #6b6b68;
  --line: #e6e6e6;
  --panel: #f4f4f2;
  --blue: #1e63c6;   /* the app's blue */
  --logo-invert: 1;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-font-smoothing: antialiased;
}
main, .wrap { max-width: 640px; margin: 0 auto; padding: 0 24px; }

a { color: var(--fg); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
b, strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- header ---------- */
.top { padding-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); }
.brand span { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.top-right { display: flex; align-items: center; gap: 18px; }
.top nav a { text-decoration: none; font-weight: 500; font-size: 16px; }
.top nav a:hover { text-decoration: underline; }
.theme {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
}
.theme:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- the landing page ---------- */
.hero { padding: 72px 0 56px; }
.hero .logo { width: 160px; height: 160px; display: block; margin-bottom: 40px; filter: invert(var(--logo-invert)); }
.etym { color: var(--soft); font-size: 17px; margin: 0 0 20px; }
.etym em { color: var(--fg); font-style: italic; }
h1 { font-weight: 700; font-size: clamp(40px, 9vw, 64px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
h1 .second { display: block; color: var(--soft); }

section { border-top: 1px solid var(--line); padding: 44px 0; }
h2 { font-weight: 700; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 16px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--soft); }

.ways { display: grid; gap: 28px; margin-top: 8px; }
.ways h3 { font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.ways p { color: var(--soft); margin: 0; }

.beta { padding: 56px 0; }
.runner { font-size: clamp(15px, 3.6vw, 20px); white-space: nowrap; overflow-x: auto; margin: 0 0 12px; color: var(--fg); }
.beta h2 { font-size: clamp(28px, 6vw, 36px); line-height: 1.1; }
@media (prefers-reduced-motion: no-preference) {
  .runner span { display: inline-block; animation: dash 2.4s ease-in-out infinite alternate; }
  @keyframes dash { from { transform: translateX(0); } to { transform: translateX(10px); } }
}

/* the email form */
.join { margin: 24px 0 20px; }
.join .row { display: flex; gap: 10px; flex-wrap: wrap; }
.join input[type="email"] {
  flex: 1 1 16rem; min-width: 0;
  font: inherit; font-size: 17px; color: var(--fg);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 13px 18px;
}
.join input[type="email"]::placeholder { color: var(--dim); opacity: 1; }
.join .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.button {
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg); border-radius: 999px;
  padding: 13px 22px;
}
.button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.button[disabled] { opacity: 0.5; cursor: default; }
.join .form-note { color: var(--dim); font-size: 14px; margin: 10px 0 0; }
.join .form-status { margin: 10px 0 0; font-weight: 500; min-height: 1.5em; }
.join .form-status.ok { color: var(--blue); }
.join .form-status.err { color: #ff6b6b; }
:root[data-theme="light"] .join .form-status.err { color: #b3261e; }

/* ---------- footer ---------- */
.foot, footer { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 48px; color: var(--dim); font-size: 14px; }
footer p { margin: 0 0 6px; }
footer a { color: var(--dim); }
.dignity { text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg); font-weight: 700; }

/* ---------- inner pages (privacy, support) ---------- */
.page { padding-top: 40px; }
.page h1 { font-size: clamp(32px, 7vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; }
.page .updated { color: var(--soft); font-size: 16px; margin: 0 0 36px; }
.page h2 { font-size: 22px; margin: 40px 0 10px; }
.page h3 { font-size: 17px; font-weight: 700; margin: 26px 0 6px; }
.page p, .page li { font-size: 17px; }
.page ul { padding-left: 20px; }
.page li { margin: 6px 0; }
.page .box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 20px 0; }
.page .box p:last-child { margin-bottom: 0; }

/* ---------- dev notes (public) ---------- */
.notes article.note { padding: 28px 0; border-top: 1px solid var(--line); }
.notes article.note:first-child { border-top: 0; padding-top: 8px; }
.notes article.note h2 { font-size: 26px; margin: 0 0 4px; }
.notes article.note .updated { margin: 0 0 14px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--panel); padding: 1px 5px; border-radius: 5px; }
.prose ul, .prose ol { padding-left: 22px; }
