/* ============================================================
   PNG Places — base stylesheet
   Palette lives here as CSS variables. Change here, whole site follows.
   ============================================================ */

:root {
  --green: #1b4332;
  --green-deep: #0f2a1f;
  --green-mid: #2d6a4f;
  --gold: #d9a441;
  --sand: #f6f1e7;
  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --line: #e4ddc9;
  --white: #ffffff;
  --surface: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --max-width: 1100px;
}

/* --white stays constant across themes: it's the text/icon colour on the
   dark-green brand sections (header, hero, footer), which don't change
   between light and dark mode. --surface is the "card" background and is
   the one that goes dark here. */
@media (prefers-color-scheme: dark) {
  :root {
    --sand: #14201a;
    --ink: #eef0ea;
    --ink-soft: #b8c2b8;
    --line: #27392f;
    --surface: #1e3327;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
}

.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 8px; top: 8px; z-index: 999; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 6px; }

a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---- Header ---- */
.site-header {
  background: var(--green-deep);
  color: var(--white);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
}
.brand .mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--gold); color: var(--green-deep);
  font-weight: 700; font-size: 0.85rem;
}
.brand .name { display: block; font-weight: 700; font-size: 1.15rem; }
.brand .tag { display: block; font-size: 0.8rem; color: var(--gold); }

.site-nav ul {
  display: flex; gap: 18px; list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.site-nav a { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--gold); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 1px solid var(--white); color: var(--white);
  padding: 8px 12px; border-radius: 6px; font-weight: 600;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 10px; padding: 10px 0; }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: var(--white);
  padding: 56px 0;
}
.hero h1 { font-size: 2.2rem; margin: 0 0 12px; }
.hero p { font-size: 1.1rem; color: #e7e0cb; max-width: 640px; }

/* ---- Cards ---- */
.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 24px 0;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .meta { color: var(--ink-soft); font-size: 0.85rem; }

/* ---- Main content ---- */
main { display: block; }
.section { padding: 40px 0; }
.section h2 { font-size: 1.6rem; border-bottom: 3px solid var(--gold); display: inline-block; padding-bottom: 4px; }

.crumbs { color: var(--ink-soft); font-size: 0.9rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs span { margin: 0 6px; }

/* ---- Callouts (mirrors PNG Law Explained convention) ---- */
.key, .note, .warn {
  border-left: 4px solid var(--green-mid);
  background: var(--surface);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0;
}
.note { border-color: var(--gold); }
.warn { border-color: #b23a3a; }

/* ---- Footer ---- */
.site-footer {
  background: var(--green-deep); color: #cfd8d0;
  padding: 30px 0; margin-top: 40px; font-size: 0.9rem;
}
.site-footer a { color: var(--gold); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
