/* Steplings - shared chrome and document styles.
   Used by privacy.html and support.html. The design tokens mirror the inline
   styles in index.html / how-to-play.html; if those change, change these too. */

:root {
  --paper: #faf4e6;
  --paper-deep: #f3e9d2;
  --ink: #2c3327;
  --ink-soft: #5a614f;
  --moss: #3e6b4a;
  --moss-deep: #2c5038;
  --clay: #c4562f;
  --sun: #e8a33d;
  --sky-a: #fde8c8;
  --sky-b: #f7d9a8;
  --night: #22301f;
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Karla", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  font-variation-settings: "SOFT" 80;
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}

/* ============ NAV ============ */
nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 24px 0;
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
}
.logo img {
  width: 38px; height: 38px;
  border-radius: 11px;
  box-shadow: 0 2px 6px rgba(44, 51, 39, 0.25);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--clay); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ============ HERO ============ */
header {
  position: relative;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 70%, var(--paper) 100%);
  padding: 150px 0 56px;
  overflow: hidden;
}
header h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
header .lede {
  margin-top: 16px;
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* ============ DOCUMENT BODY ============ */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}
.doc h2 {
  font-size: 1.5rem;
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(44, 51, 39, 0.12);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; margin-top: 8px; }
.doc h3 {
  font-size: 1.12rem;
  margin: 28px 0 8px;
  color: var(--moss-deep);
}
.doc p { margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 7px; }
.doc strong { font-weight: 700; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--paper-deep);
  padding: 1px 6px;
  border-radius: 6px;
}
.doc a:not(.btn) { color: var(--moss); }

/* metadata block at the head of a document */
.meta {
  background: var(--paper-deep);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 30px;
  font-size: 0.94rem;
  line-height: 1.85;
}
.meta div { display: flex; gap: 10px; flex-wrap: wrap; }
.meta .k { font-weight: 700; min-width: 150px; }

/* callout for publication notes */
.note {
  border-left: 4px solid var(--sun);
  background: rgba(232, 163, 61, 0.1);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* unfilled value that must be replaced before this page goes public */
.todo {
  background: rgba(196, 86, 47, 0.13);
  color: var(--clay);
  border-bottom: 1px dashed var(--clay);
  padding: 0 5px;
  border-radius: 4px;
  font-size: 0.92em;
  font-weight: 600;
}

/* ============ FOOTER ============ */
footer {
  padding: 48px 0 56px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
footer img {
  width: 44px; height: 44px;
  border-radius: 12px;
  margin: 0 auto 12px;
  box-shadow: 0 2px 8px rgba(44, 51, 39, 0.2);
}
footer .foot-logo {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 8px;
}
footer .foot-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 12px;
  font-weight: 600;
  flex-wrap: wrap;
}
footer .foot-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
footer .foot-links a:hover { color: var(--clay); }
