*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  font-family: var(--font-sans);
}

html[data-theme="dark"] {
  --bg: #050c0a;
  --text: #e8f5ef;
  --muted: #6d9688;
  --accent: #2ecf8e;
  --accent-bright: #7ee8b8;
  --accent-deep: #149d6b;
  --card: rgba(12, 28, 22, 0.78);
  --border: rgba(46, 207, 142, 0.18);
  --glow1: rgba(46, 207, 142, 0.35);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --sub-strong: #b8e0cc;
}

html[data-theme="light"] {
  --bg: #eef6f1;
  --text: #0f241c;
  --muted: #4a6670;
  --accent: #0d9f6e;
  --accent-bright: #0a7d56;
  --accent-deep: #065f46;
  --card: rgba(255, 255, 255, 0.94);
  --border: rgba(13, 159, 110, 0.2);
  --glow1: rgba(13, 159, 110, 0.18);
  --card-shadow: 0 20px 50px rgba(15, 60, 40, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --sub-strong: #0a5c45;
}

html, body { min-height: 100%; }

body {
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -15%, var(--glow1), transparent 58%),
    var(--bg);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  padding-left: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-right, 0px));
  padding-bottom: max(clamp(1.25rem, 4vw, 2.5rem), env(safe-area-inset-bottom, 0px));
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  min-height: 44px;
  padding: 0.25rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-bright);
  text-decoration: none;
}

.back:hover { text-decoration: underline; }

.back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.card a {
  color: var(--accent-bright);
  font-weight: 600;
}

.card a:hover { text-decoration: underline; }

.card a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  margin-bottom: 1rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--sub-strong);
}

h2:first-child { margin-top: 0; }

p, li { color: var(--muted); font-size: 0.95rem; }
p { margin-bottom: 0.75rem; }
ul { margin: 0 0 0.75rem 1.15rem; }
li { margin-bottom: 0.35rem; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent-bright);
  margin-bottom: 0.75rem;
}

.badge--muted { opacity: 0.75; }

footer {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
