/* Spin Watch Room — tokens & reset */
:root {
  --sand: #f3ebe0;
  --sand-deep: #e6d9c8;
  --sand-tint: #faf6f0;
  --ink: #2a1f18;
  --brown: #4a3428;
  --brown-mid: #6b4f3f;
  --sage: #6f9a74;
  --sage-bright: #7fb085;
  --sage-soft: rgba(111, 154, 116, 0.14);
  --sage-softer: rgba(111, 154, 116, 0.08);
  --cream: #fffaf4;
  --muted: #7a6a5c;
  --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: 4.5rem;
  --measure: 68ch;
  --container: 72rem;
  --font-display: "Zilla Slab", "Rockwell", "Slab Serif", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-pill: 999px;
  --radius-none: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--sand);
  background-image:
    url("/assets/bg-motif.png"),
    linear-gradient(180deg, var(--sand-tint) 0%, var(--sand) 40%, var(--sand-deep) 100%);
  background-size: 480px auto, 100% 100%;
  background-repeat: repeat, no-repeat;
  background-blend-mode: soft-light, normal;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--brown); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brown);
  margin: 0 0 var(--space-4);
}

p { margin: 0 0 var(--space-4); max-width: var(--measure); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
small { font-size: 0.875rem; color: var(--muted); }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Links — chevron suffix */
.content-link,
.site-footer a:not(.btn),
.masthead__nav a,
.prose a {
  font-weight: 600;
  color: var(--sage);
}
.content-link::after,
.prose a::after,
.site-footer a:not(.btn)::after,
.masthead__nav a::after {
  content: " ›";
  font-weight: 400;
  speak: none;
}

/* Buttons — pill shaped */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.btn:active {
  transform: scale(0.96);
}
.btn--primary {
  background: var(--sage);
  color: #fff;
}
.btn--primary:hover {
  background: var(--sage-bright);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--sage);
  box-shadow: inset 0 0 0 2px var(--sage);
}
.btn--ghost:hover {
  background: var(--sage-soft);
  color: var(--brown);
}
.btn::after { content: none !important; }

/* Badges — subtle tinted */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--sage-soft);
  color: var(--brown);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.badge__ico {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Centred accent divider */
.rule {
  display: flex;
  justify-content: center;
  margin: var(--space-7) 0;
}
.rule::before {
  content: "";
  width: 4.5rem;
  height: 3px;
  background: var(--sage);
  border-radius: var(--radius-pill);
}

/* Stars */
.stars {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--sage);
  font-weight: 700;
  white-space: nowrap;
}
.stars__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:active { transform: none; }
}
