/* Tokens + resets — section styles live in sections.css */
:root {
  --cream: #f4efe4;
  --cream-deep: #ebe4d6;
  --ink: #1a1f1c;
  --ink-soft: #3d4540;
  --accent: #0a5c3a;
  --accent-tint: rgba(10, 92, 58, 0.1);
  --accent-tint-2: rgba(10, 92, 58, 0.06);
  --surface: #fffcf6;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --max: 72rem;
  --font-display: "Roboto Slab", "Rockwell", "Courier New", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --shadow-tile: 0 6px 18px rgba(26, 31, 28, 0.06);
  --radius: 0;
  --dash: 1px dashed rgba(10, 92, 58, 0.35);
  --dot: 1px dotted rgba(10, 92, 58, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 70% 55% at 12% 8%, rgba(10, 92, 58, 0.11), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* Links with chevron suffix — site-wide motif */
a.link-chev::after,
.nav-bar a::after,
.foot-col a::after,
.safety-panel a::after,
.prose a:not(.btn-cta):not(.btn-text)::after {
  content: " ›";
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--space-4);
}

p {
  margin: 0 0 var(--space-4);
  max-width: 70ch;
}

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.motif-break {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin: var(--space-7) 0;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.motif-break::before,
.motif-break::after {
  content: "";
  width: min(8rem, 20vw);
  border-top: var(--dash);
}

.motif-break .diamond {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-tint);
  color: var(--ink-soft);
  border: none;
  border-radius: var(--radius);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0.5rem 0;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-text .chev {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-text:hover .chev,
a.btn-text:hover .chev {
  transform: translateX(4px);
}

a.btn-text::after {
  content: none !important;
}

.tile {
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  border: var(--dash);
  padding: var(--space-5);
}

.tick,
.cross {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.tick { color: var(--accent); }
.cross { color: var(--ink-soft); opacity: 0.55; }

.stars {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-size: 1rem;
  white-space: nowrap;
}

.stars .empty {
  opacity: 0.28;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.stars .half {
  opacity: 0.65;
  position: relative;
}

.stars .half {
  display: inline-block;
  position: relative;
  color: var(--accent);
  opacity: 1;
  width: 0.85em;
  overflow: hidden;
}
.stars .half::before {
  content: "★";
}
