/* ==========================================================================
   Perunlight Corp: shared stylesheet
   Static and local-only. No web fonts, scripts or remote resources.
   ========================================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #1c1a17;
  --ink-2: #4f483f;
  --rule-soft: #c9bda6;
  --accent: #a8360f;
  --on-dark: #f4efe6;
  --on-dark-2: #bfb6a6;
  --accent-on-dark: #f0a07e;

  /* Per-product identity; overridden by .t-* classes */
  --p: var(--accent);
  --p-tint: var(--paper-2);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L", P052, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;

  --wrap: 78rem;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --space: clamp(3.5rem, 8vw, 7rem);

  color-scheme: light;
}

.t-skadira   { --p: #1f5a73; --p-tint: #dfe9ec; }
.t-ymircage  { --p: #4a3f78; --p-tint: #e4e0ef; }
.t-svarn     { --p: #7a2e4a; --p-tint: #efdfe4; }
.t-bragiwave { --p: #7a5a12; --p-tint: #efe5cc; }
.t-sagasteps { --p: #245c45; --p-tint: #dde9e1; }

/* Base ------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
a:hover { color: var(--accent); }

code { font-family: var(--mono); font-size: .9em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--ink); color: var(--paper); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; color: var(--paper); }

/* Top strip + header ----------------------------------------------------- */

.topbar {
  background: var(--ink);
  color: var(--on-dark-2);
  font-size: .78rem;
  letter-spacing: .06em;
}
.topbar p { padding-block: .45rem; }
.topbar strong { color: var(--on-dark); font-weight: 600; }

.site-head {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}
.mark svg { width: 2rem; height: 2rem; flex: none; color: var(--accent); }
.brand-bolt { fill: var(--paper); }
.site-foot .mark svg { color: var(--accent-on-dark); }
.site-foot .brand-bolt { fill: var(--ink); }
.mark-dot { fill: var(--accent); }
.site-foot .mark-dot { fill: var(--accent-on-dark); }
.mark:hover { color: inherit; }
.mark:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
}
@media (max-width: 26.25rem) {
  .nav ul { gap: .1rem 1rem; font-size: .875rem; }
}
@media (max-width: 21.25rem) {
  .nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: .1rem 2rem; }
}
.nav a {
  display: inline-block;
  padding-block: .4rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-color: var(--ink); }
.nav a[aria-current="page"] { border-color: var(--accent); }

/* Type helpers ----------------------------------------------------------- */

.kicker {
  margin-bottom: 1rem;
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.display {
  font-size: clamp(2.5rem, 1.3rem + 5vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.display em { font-style: italic; color: var(--accent); }

.lede {
  max-width: 36em;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem);
  line-height: 1.5;
}

.section { padding-block: var(--space); }
.section:not(.band-dark) + .section:not(.band-dark) { padding-top: 0; }

.section-head {
  display: grid;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head p { max-width: 38em; color: var(--ink-2); }

.section-title {
  font-size: clamp(1.8rem, 1.3rem + 1.7vw, 2.75rem);
  letter-spacing: -.01em;
}

@media (min-width: 60rem) {
  .section-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: end; }
}

/* Buttons & badges ------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: 100%;
  padding: .8rem 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn svg { width: 1rem; height: 1rem; flex: none; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn-p { background: var(--p); border-color: var(--p); color: #fff; }
.btn-p:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn-light { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--ink); }

.badge {
  display: inline-block;
  padding: .42em .65em;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-dl { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.badge-pre { background: var(--paper); color: var(--accent); }

.status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin-top: 1.5rem;
  font-size: .92rem;
  color: var(--ink-2);
}

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

.hero {
  border-bottom: 1px solid var(--ink);
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.hero-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
}

.hero .lede { margin-top: 1.75rem; }

.ledger {
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ledger-head span:last-child { color: var(--ink-2); font-weight: 600; }

.ledger ol { margin: 0; padding: 0; list-style: none; }
.ledger li + li { border-top: 1px solid var(--rule-soft); }
.ledger a {
  display: grid;
  grid-template-columns: .75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1.1rem;
  text-decoration: none;
}
.ledger a:hover { color: inherit; background: var(--p-tint); }
.ledger a:hover .l-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.l-swatch { width: .75rem; height: .75rem; background: var(--p); }
.l-name { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.l-host { display: block; color: var(--ink-2); font-size: .8rem; }

/* Principles ------------------------------------------------------------- */

.principles {
  display: grid;
  gap: 2.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) { .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.principles li { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.principles h3 { margin-bottom: .75rem; font-size: 1.45rem; }
.principles p { color: var(--ink-2); }
.pr-num {
  display: block;
  margin-bottom: .6rem;
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

/* Project index ---------------------------------------------------------- */

.projects { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ink); }

.proj {
  display: grid;
  gap: 1.75rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--ink);
}
@media (min-width: 48rem) {
  .proj { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2.5rem; align-items: center; }
  .proj:nth-child(even) .plate { order: 2; }
}
@media (min-width: 75rem) {
  .proj { gap: 4.5rem; }
}

.proj-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .9rem;
  margin-bottom: .6rem;
  color: var(--ink-2);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.proj-num { color: var(--p); font-family: var(--serif); font-size: 1.1rem; font-style: italic; letter-spacing: 0; text-transform: none; }

.proj h3 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.25rem); letter-spacing: -.015em; }
.proj h3 a { text-decoration: none; color: var(--p); }
.proj h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.proj-desc { margin-top: .75rem; font-size: 1.12rem; max-width: 32em; }

.proj-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .84rem;
}
.proj-facts li { padding: .2rem .55rem; border: 1px solid var(--rule-soft); background: var(--paper); }

.proj-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-top: 1.5rem;
}

.more {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.more::after { content: " \2192"; content: " \2192" / ""; }

/* Illustration plates ---------------------------------------------------- */

.plate {
  --pad: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: var(--pad);
  border: 1px solid var(--ink);
  background-color: var(--p-tint);
  background-image:
    linear-gradient(to right, rgb(28 26 23 / .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(28 26 23 / .07) 1px, transparent 1px);
  background-size: 1.25rem 1.25rem;
  color: var(--p);
}
.plate figcaption {
  margin: var(--pad) calc(var(--pad) * -1) calc(var(--pad) * -1);
  padding: .55rem .9rem;
  border-top: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.4;
}

.motif { width: 100%; height: auto; }

/* Downloads (home, dark band) -------------------------------------------- */

.band-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.band-dark .kicker,
.band-dark .section-head p { color: var(--on-dark-2); }
.band-dark a:not(.btn):hover { color: var(--accent-on-dark); }
.band-dark :focus-visible { outline-color: var(--accent-on-dark); }

.dl-grid { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.dl-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #5d564c;
  border-top: 4px solid var(--p-on-dark, var(--accent-on-dark));
}
.dl-card.t-skadira  { --p-on-dark: #8cc3d9; }
.dl-card.t-ymircage { --p-on-dark: #b7abe6; }

.dl-card h3 { font-size: 1.9rem; }
.dl-card h3 small { color: var(--on-dark-2); font-family: var(--sans); font-size: .9rem; letter-spacing: .04em; }
.dl-card .dl-meta { color: var(--on-dark-2); font-size: .92rem; }
.dl-card .btn { align-self: flex-start; }

.sum-label {
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sum {
  display: block;
  padding: .75rem .9rem;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.55;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.band-dark .sum { background: #2b2824; border-left: 3px solid var(--p-on-dark, var(--accent-on-dark)); color: var(--on-dark); }

.verify { font-size: .88rem; }
.band-dark .verify { color: var(--on-dark-2); }
.verify code { white-space: nowrap; }

.dl-card-foot { margin-top: auto; padding-top: .5rem; font-size: .92rem; }

.note-previews {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #5d564c;
  color: var(--on-dark-2);
  font-size: .95rem;
}

/* Contact strip ---------------------------------------------------------- */

.contact-strip {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.contact-strip p { max-width: 40em; font-size: 1.1rem; }
@media (min-width: 48rem) { .contact-strip { grid-template-columns: minmax(0, 1fr) auto; } }

/* Product page hero ------------------------------------------------------ */

.p-hero {
  border-bottom: 1px solid var(--ink);
  background-color: var(--p-tint);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}

/* Distinct faint surface pattern per product */
.t-skadira .p-hero {
  background-image: repeating-linear-gradient(0deg, transparent 0 23px, rgb(31 90 115 / .09) 23px 24px);
}
.t-ymircage .p-hero {
  background-image:
    repeating-linear-gradient(45deg, transparent 0 27px, rgb(74 63 120 / .08) 27px 28px),
    repeating-linear-gradient(-45deg, transparent 0 27px, rgb(74 63 120 / .08) 27px 28px);
}
.t-svarn .p-hero {
  background-image: conic-gradient(rgb(122 46 74 / .06) 25%, transparent 0 50%, rgb(122 46 74 / .06) 0 75%, transparent 0);
  background-size: 16px 16px;
}
.t-bragiwave .p-hero {
  background-image: repeating-linear-gradient(90deg, transparent 0 11px, rgb(122 90 18 / .1) 11px 12px);
}
.t-sagasteps .p-hero {
  background-image: radial-gradient(rgb(36 92 69 / .2) 1.2px, transparent 1.7px);
  background-size: 18px 18px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding: 0;
  list-style: none;
  font-size: .85rem;
}
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink-2); }

.p-hero-grid { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) {
  .p-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
}

.p-name {
  color: var(--p);
  font-size: clamp(3.25rem, 1.6rem + 8vw, 8.5rem);
  line-height: .95;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}
.p-hero .lede { margin-top: 1.5rem; }

.p-hero .plate {
  background-color: var(--paper);
  box-shadow: 10px 10px 0 var(--p);
}

/* Facts ------------------------------------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: 2rem 0 0;
  border-top: 2px solid var(--ink);
}
.fact {
  padding: 1rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.fact dt {
  color: var(--ink-2);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fact dd {
  margin: .35rem 0 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
}
.fact dd small { display: block; margin-top: .2rem; color: var(--ink-2); font-family: var(--sans); font-size: .85rem; }

/* Notice (preview projects) ---------------------------------------------- */

.notice {
  display: grid;
  gap: 1.25rem 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--ink);
  border-left: 6px solid var(--accent);
  background: var(--paper-2);
}
@media (min-width: 48rem) { .notice { grid-template-columns: auto minmax(0, 1fr); align-items: start; } }
.notice-mark {
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  font-style: italic;
  line-height: 1.1;
}
.notice h2 { margin-bottom: .75rem; font-size: 1.5rem; }
.notice p { max-width: 40em; }

/* Screenshot ------------------------------------------------------------- */

.shot { margin: 2rem 0 0; }
.shot-frame {
  display: block;
  padding: clamp(.35rem, 1vw, .75rem);
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 10px 10px 0 var(--p);
}
.shot-frame:hover { outline: 2px solid var(--p); outline-offset: 3px; }
.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: baseline;
  margin-top: 1.5rem;
  max-width: 52em;
  color: var(--ink-2);
  font-size: .95rem;
}
.tag {
  padding: .3em .55em;
  border: 1px solid var(--p);
  color: var(--p);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.shot figcaption span:last-child { flex: 1 1 20rem; }

/* Two-column prose + checklists ------------------------------------------ */

.split { display: grid; gap: 3rem; }
@media (min-width: 48rem) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }

.split .section-title { margin-bottom: 1.25rem; }

.prose { max-width: 40em; }
.prose p, .prose li { color: var(--ink); }
.prose em { font-style: italic; }

.list-title {
  margin: 1.75rem 0 .75rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.list-title:first-of-type { margin-top: 0; }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li {
  position: relative;
  padding: .7rem 0 .7rem 1.9rem;
  border-top: 1px solid var(--rule-soft);
}
.checklist li:last-child { border-bottom: 1px solid var(--rule-soft); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: .8rem;
  height: .8rem;
  border: 2px solid var(--p);
}
.checklist .done::before { background: var(--p); }

/* Product download panel ------------------------------------------------- */

.dl-panel {
  display: grid;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--p);
}
@media (min-width: 60rem) { .dl-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }

.dl-panel-head {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--p);
  color: #fff;
}
.dl-panel-head .kicker { color: #fff; opacity: .92; }
.dl-panel-head .section-title { margin-bottom: 1rem; }
.dl-panel-head :focus-visible { outline-color: #fff; }

.dl-panel-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.dl-panel-body .btn { align-self: flex-start; }
.dl-panel-body .sum { background: var(--paper-2); border-left: 3px solid var(--p); }
.dl-panel-body .verify, .dl-panel-body .fine { color: var(--ink-2); }
.fine { font-size: .88rem; }

/* Pager ------------------------------------------------------------------ */

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 2rem var(--space);
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  text-decoration: none;
}
.pager .next { text-align: right; align-items: flex-end; }
.pager-dir { color: var(--ink-2); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pager-name { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.pager a:hover .pager-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.pager .prev .pager-name::before { content: "\2190\00a0"; content: "\2190\00a0" / ""; }
.pager .next .pager-name::after { content: "\00a0\2192"; content: "\00a0\2192" / ""; }

/* Documents: license, privacy, support ----------------------------------- */

.doc-hero {
  border-bottom: 1px solid var(--ink);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
}
.doc-hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.5vw, 5rem); letter-spacing: -.02em; }
.doc-hero .lede { margin-top: 1.25rem; }
.doc-date { margin-top: 1.25rem; color: var(--ink-2); font-size: .9rem; }

.doc-grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--space); }
@media (min-width: 64rem) { .doc-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 5rem; } }

.toc {
  align-self: start;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  font-size: .92rem;
}
@media (min-width: 64rem) { .toc { position: sticky; top: 1.5rem; } }
.toc h2 {
  margin-bottom: .75rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { padding-block: .2rem; }

.doc { max-width: 44em; }
.doc section { padding-bottom: 2.25rem; }
.doc section + section { padding-top: 2rem; border-top: 1px solid var(--rule-soft); }
.doc h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); scroll-margin-top: 1.5rem; }
.doc h3 { margin: 1.5rem 0 .5rem; font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.doc ul { margin: 0 0 1em; padding-left: 1.25rem; }
.doc li { margin-bottom: .45rem; }
.doc li::marker { color: var(--accent); }
.doc .sum { background: var(--paper-2); border-left: 3px solid var(--accent); margin-bottom: 1em; }

.pair { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
@media (min-width: 40rem) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair > div { padding: 1.1rem 1.25rem; border: 1px solid var(--ink); background: var(--paper); }
.pair h3 { margin-top: 0; }
.pair ul { margin-bottom: .75rem; }

.callout {
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--ink);
  border-left: 6px solid var(--accent);
  background: var(--paper-2);
}

/* Footer ----------------------------------------------------------------- */

.site-foot {
  background: var(--ink);
  color: var(--on-dark);
  font-size: .95rem;
}
.site-foot a:hover { color: var(--accent-on-dark); }
.site-foot :focus-visible { outline-color: var(--accent-on-dark); }

.foot-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
@media (min-width: 48rem) { .foot-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); } }

.foot-intro p { max-width: 24em; margin-top: 1rem; color: var(--on-dark-2); }
.foot-h {
  margin-bottom: .9rem;
  color: var(--on-dark-2);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.foot-nav ul { margin: 0; padding: 0; list-style: none; }
.foot-nav li { padding-block: .25rem; }
.foot-nav li span { color: var(--on-dark-2); font-size: .82rem; }

.foot-base {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid #3d3933;
  color: var(--on-dark-2);
  font-size: .82rem;
}

/* Motion & accessibility preferences ------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav a, .ledger a, .more, .shot-frame { transition: background-color .15s ease, color .15s ease, border-color .15s ease, outline-color .15s ease; }
}

@media (forced-colors: active) {
  .badge, .tag, .btn { border: 1px solid CanvasText; }
  .l-swatch, .checklist .done::before { forced-color-adjust: none; }
}

@media print {
  .topbar, .skip, .nav, .pager, .actions { display: none; }
  .band-dark, .site-foot { background: none; color: #000; }
  .ledger, .plate, .shot-frame, .dl-panel { box-shadow: none; }
}
