/* Shared styles for jrsdinner.club static pages (index, privacy, terms).
   event.html is intentionally NOT linked to this file. */

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f4ece3;
  --text: #231a14;
  --muted: #6b5d52;
  --line: #e8ddd1;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fde9dc;
  --accent-ink: #ffffff;
  --green: #15803d;
  --green-soft: #dcf3e3;
  --blue: #1d4ed8;
  --blue-soft: #e0e8fc;
  --shadow: 0 1px 2px rgba(60, 30, 10, .05), 0 8px 24px rgba(60, 30, 10, .07);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16110e;
    --surface: #211a16;
    --surface-2: #2b231e;
    --text: #f6efe8;
    --muted: #bfb0a3;
    --line: #3a3029;
    --accent: #fb923c;
    --accent-hover: #fdba74;
    --accent-soft: #3d2416;
    --accent-ink: #1b0f06;
    --green: #4ade80;
    --green-soft: #173323;
    --blue: #93b4fd;
    --blue-soft: #1c2747;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--text); text-decoration: none; letter-spacing: -.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 16px;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 10px; border-radius: 10px;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav .nav-cta {
  background: var(--text); color: var(--bg); font-weight: 600; margin-left: 6px;
}
.site-nav .nav-cta:hover { background: var(--text); color: var(--bg); opacity: .88; }
@media (max-width: 760px) { .site-nav .nav-link { display: none; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 16px 40px; text-align: center; color: var(--muted); font-size: 14px;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--text); }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal {
  max-width: 720px; margin: 0 auto; padding: 40px 16px 64px;
}
.legal h1 {
  font-family: var(--font-display); font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 8px;
}
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-family: var(--font-display); font-size: 21px; margin: 32px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { margin-bottom: 12px; font-size: 16px; }
.legal ul { padding-left: 24px; }
.legal strong { color: var(--text); }
