/* PintRunner site - palette
   cellar #17141f  page background
   slate  #241f2f  raised areas
   plum   #4b3585  brand purple (scorecard header)
   ale    #e2a832  brand gold (buttons, links)
   foam   #f3ecdc  text, scorecard paper
*/

:root {
  --cellar: #17141f;
  --slate: #241f2f;
  --plum: #4b3585;
  --ale: #e2a832;
  --foam: #f3ecdc;
  --muted: #b9b0c9;
  --line: #3a3348;
  --ink: #2a2233;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", "Book Antiqua", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cellar);
  color: var(--foam);
  font: 1.0625rem/1.65 var(--body);
}

a { color: var(--ale); text-underline-offset: 0.2em; }
a:hover { color: #f2c35e; }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ale);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- header / footer ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ale);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav { display: flex; gap: 1.25rem; }
.site-nav a { color: var(--foam); text-decoration: none; }
.site-nav a:hover { color: var(--ale); text-decoration: underline; }

.site-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.site-footer p { margin: 0.25rem 0; max-width: 60ch; }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); font-weight: 700; margin-top: 3.5rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-top: 2rem; }

p { margin: 0 0 1rem; }

.lede { font-size: 1.2rem; color: var(--foam); max-width: 34rem; }
.fine { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--ale);
  color: #1d1626;
  font-weight: 700;
  text-decoration: none;
}
.btn:hover { background: #f2c35e; color: #1d1626; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: 3rem;
  padding-top: 1rem;
  align-items: start;
}

.download { margin: 1.75rem 0 0; }
.download .btn { margin-bottom: 0.9rem; }

/* The scorecard is the one showpiece on the page. */
.scorecard {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 1px 0 #fff8 inset, 0 18px 40px #0008;
  overflow: hidden;
}

.scorecard figcaption {
  padding: 0.9rem 1.1rem;
  background: var(--plum);
  color: var(--foam);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
}

.scroll-x { overflow-x: auto; }

.scorecard table { width: 100%; border-collapse: collapse; min-width: 30rem; }

.scorecard th,
.scorecard td {
  text-align: left;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid #cdbf9f;
  vertical-align: top;
  font-size: 0.98rem;
}

.scorecard th { font-weight: 700; font-size: 0.9rem; color: #5b4a78; }
.scorecard tbody th { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.scorecard td.none { color: #8a7d9c; }
.scorecard tr:last-child th, .scorecard tr:last-child td { border-bottom: 0; }

@media (min-width: 60rem) {
  .hero { grid-template-columns: 1fr 1.05fr; gap: 4rem; padding-top: 2rem; }
  .scorecard { transform: rotate(1.2deg); }
}

/* ---------- content sections ---------- */

.section { max-width: 42rem; }

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3.25rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--plum);
  color: var(--foam);
  font-family: var(--display);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps strong { display: block; font-family: var(--display); font-size: 1.15rem; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  background: var(--slate);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  word-break: break-all;
}

/* ---------- legal pages ---------- */

.prose { max-width: 42rem; padding-bottom: 1rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.updated { color: var(--muted); margin-bottom: 2rem; }

.note {
  border-left: 4px solid var(--ale);
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1.5rem 0;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
