/* Stark site: matches the app's light look (grouped grey ground, white cards, one blue accent,
   system font) and follows the phone's light/dark setting. Tokens come from the app's Theme.swift;
   --link is a darker blue than the app accent so small text passes WCAG AA on the light ground. */
:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --card: #ffffff;
  --fg: #1c1c1e;
  --para: #55555b;
  --muted: #6c6c70;
  --accent: #3b82f6;
  --link: #1d5fd1;
  --border: #d1d1d6;
  --red: #ff3b30;
  --gutter: 40px;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --fg: #f2f2f7;
    --para: #aeaeb2;
    --muted: #8e8e93;
    --accent: #5b9bff;
    --link: #5b9bff;
    --border: #38383a;
    --red: #ff453a;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; text-decoration: underline; }

/* Header: the STARK wordmark over the page title. */
.site-header {
  padding: 48px var(--gutter) 32px;
  border-bottom: 1px solid var(--border);
}
.wordmark { font-size: 13px; font-weight: 600; letter-spacing: 4px; color: var(--link); }
.wordmark a { color: var(--link); }
.wordmark a:hover { text-decoration: none; }

h1 { font-size: 32px; font-weight: 700; margin-top: 16px; line-height: 1.2; letter-spacing: -0.5px; overflow-wrap: anywhere; }
.sub { color: var(--para); font-size: 18px; margin-top: 8px; line-height: 1.4; }
.updated { font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: 1px; }

main { padding: 48px var(--gutter); flex: 1; max-width: 680px; width: 100%; }

h2 { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--link); margin-top: 40px; margin-bottom: 12px; text-transform: uppercase; }
main > h2:first-child { margin-top: 0; }

p { font-size: 16px; color: var(--para); line-height: 1.65; margin-bottom: 16px; overflow-wrap: break-word; }
p strong { color: var(--fg); font-weight: 600; }

.badge { display: inline-block; line-height: 0; margin-top: 8px; }
.badge:hover { text-decoration: none; }
.badge img { height: 48px; width: auto; }

.contact-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 12px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

/* Screenshot strip: scrolls sideways inside itself, never the page. */
.screenshots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 40px var(--gutter);
  scrollbar-width: none;
  border-top: 1px solid var(--border);
  max-width: 100vw;
}
.screenshots::-webkit-scrollbar { display: none; }
.screenshots img {
  height: 480px;
  width: auto;
  flex-shrink: 0;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Footer: links, copyright and the build id. */
.site-footer {
  padding: 24px var(--gutter);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer a { color: var(--muted); text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--link); text-decoration: none; }
.site-footer p { font-size: 12px; color: var(--muted); line-height: 1.4; margin: 0; }
.site-footer .build-id { color: var(--muted); }

/* Generated 404 page (h1 and text in main, no header). */
code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1rem 0.35rem;
  overflow-wrap: anywhere;
}
main > h1:first-child { margin-top: 0; margin-bottom: 16px; }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 32px; padding-bottom: 24px; }
  h1 { font-size: 28px; }
  .sub { font-size: 16px; }
  main { padding-top: 32px; padding-bottom: 32px; }
  .screenshots { padding-top: 32px; padding-bottom: 32px; }
  .screenshots img { height: 400px; border-radius: 18px; }
}
