/* ==========================================================================
   Fotina — support and legal site
   Colors from the app (Fotina/UI/Palette.swift): black and gold.
   The app's gold (#CFA472) is 2:1 on a light background, too faint for links:
   the light theme uses a darker bronze (#86602A, 5:1) and keeps the gold
   for the dark theme (9:1 on black).
   No web fonts, no JavaScript, nothing loaded from other sites.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* light */
  --bg:        #F2F2F2;
  --surface:   #FFFFFF;
  --text:      #1A1A1A;
  --text-dim:  #6B6B6B;
  --line:      #E2E2E2;
  --accent:    #86602A;

  --radius:    18px;
  --maxw:      720px;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #000000;
    --surface:   #2D2D2D;
    --text:      #F5F5F5;
    --text-dim:  #A3A3A3;
    --line:      #3F3F3F;
    --accent:    #CFA472;
  }
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); margin: 0 0 .3em; }
h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
h3 { font-size: 1.1rem; margin: 1.6em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .4em; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ header */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 750; font-size: 1.15rem; color: var(--text); text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim); font-weight: 600; font-size: .95rem;
  padding: 8px 10px; border-radius: 10px; text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
@media (max-width: 420px) {
  .brand { font-size: 1.05rem; gap: 8px; }
  .nav-links { gap: 0; }
  .nav-links a { font-size: .9rem; padding: 8px 6px; }
}

/* ------------------------------------------------------------------ page */
main.wrap { padding-top: 40px; padding-bottom: 56px; }
.page-head { margin-bottom: 28px; }
.updated { color: var(--text-dim); font-size: .95rem; margin: 0; }
.lede { font-size: 1.15rem; color: var(--text-dim); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 0 0 16px;
}
.card > :last-child { margin-bottom: 0; }

/* home */
.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 112px; height: 112px; border-radius: 25px; margin: 0 auto 18px; display: block; }
.links { list-style: none; padding: 0; display: grid; gap: 10px; margin: 28px 0 0; }
.links a {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; font-weight: 650; text-decoration: none;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 24px 0 40px;
  color: var(--text-dim); font-size: .9rem;
}
.site-footer p { margin: 0 0 .4em; }
.site-footer a { color: var(--text-dim); }
