/* PNG History Explained — site stylesheet.
   The CSS lives only here (there is no generator copy), same as the law site.
   Bump the ?v= stamp in parts/head.html and parts/foot.html whenever this file
   changes, or browsers keep serving the stale sheet. */

:root {
  --ink-900:  #121736;
  --ink-800:  #1b2340;
  --ink-700:  #27304f;
  --brass:    #c9a227;
  --brass-dk: #9d7c15;
  --oxide:    #8c3b2f;

  --bg:        #faf7f0;
  --bg-raised: #ffffff;
  --bg-sunk:   #f1ece1;
  --ink:       #1d2030;
  --ink-soft:  #4d5368;
  --ink-faint: #787e93;
  --rule:      #ddd6c6;
  --link:      #27304f;
  --link-hover:#8c3b2f;

  --wrap: 1120px;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(18, 23, 54, .06), 0 6px 20px rgba(18, 23, 54, .07);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #14161f;
    --bg-raised: #1c1f2b;
    --bg-sunk:   #101219;
    --ink:       #e9e6dd;
    --ink-soft:  #b4b8c6;
    --ink-faint: #8a8fa1;
    --rule:       #303443;
    --link:      #b9c4e8;
    --link-hover:#e8a08f;
  }
}
:root[data-theme="dark"] {
  --bg:        #14161f;
  --bg-raised: #1c1f2b;
  --bg-sunk:   #101219;
  --ink:       #e9e6dd;
  --ink-soft:  #b4b8c6;
  --ink-faint: #8a8fa1;
  --rule:      #303443;
  --link:      #b9c4e8;
  --link-hover:#e8a08f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.68 var(--sans);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brass); color: #22200c; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header / nav ---------- */

.site-head { background: var(--ink-800); color: #efecdf; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.head-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand-mark { width: 20px; height: 20px; flex: none; border-radius: 3px; background: var(--brass); }
.brand-text { font-size: 18px; letter-spacing: .005em; }
.brand-text em { font-style: normal; color: var(--brass); font-weight: 600; }

.nav-toggle {
  margin-left: auto; display: grid; gap: 4px; place-content: center;
  width: 42px; height: 38px; background: transparent; border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px; cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; }

.nav { display: none; width: 100%; }
.nav.open { display: block; }
.nav-list { list-style: none; margin: 0 0 10px; padding: 0; }
.nav-list > li { border-top: 1px solid rgba(255,255,255,.12); }
.nav-list a, .submenu-btn {
  display: block; width: 100%; text-align: left; padding: 11px 2px;
  color: #efecdf; text-decoration: none; font: inherit; font-weight: 600;
  background: none; border: 0; cursor: pointer;
}
.nav-list a:hover, .submenu-btn:hover { color: var(--brass); }
.submenu { list-style: none; margin: 0 0 8px; padding: 0 0 0 14px; display: none; }
.submenu.open { display: block; }
.submenu a { font-weight: 400; padding: 8px 2px; }
.submenu .sep { height: 1px; background: rgba(255,255,255,.15); margin: 6px 0; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .nav { display: block; width: auto; margin-left: auto; }
  .nav-list { display: flex; gap: 2px; margin: 0; }
  .nav-list > li { border: 0; position: relative; }
  .nav-list a, .submenu-btn { padding: 19px 12px; font-size: 16px; }
  .submenu {
    position: absolute; top: 100%; left: 0; min-width: 250px; margin: 0;
    background: var(--ink-900); padding: 6px 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
  }
  .submenu a { padding: 9px 16px; white-space: nowrap; }
  .submenu .sep { margin: 5px 10px; }
  .has-menu:hover .submenu, .has-menu:focus-within .submenu { display: block; }
}

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

.hero {
  background: var(--ink-900); color: #efecdf; padding: 56px 0 50px;
  background-image: radial-gradient(900px 340px at 80% -20%, rgba(39,48,79,.9), transparent 70%);
  border-bottom: 3px solid var(--brass);
}
.hero h1 { font: 700 clamp(29px, 5.6vw, 44px)/1.15 var(--sans); margin: 0 0 14px; letter-spacing: -.015em; }
.hero p { font-size: clamp(17px, 2.3vw, 19.5px); color: #c7cbdd; max-width: 62ch; margin: 0 0 22px; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-block; padding: 12px 20px; border-radius: 4px; font-weight: 650; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--brass); color: #24200a; }
.btn-primary:hover { background: #dbb43c; color: #24200a; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #efecdf; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- page furniture ---------- */

.crumb { font-size: 14px; color: var(--ink-faint); padding: 18px 0 0; }
.crumb a { color: var(--ink-soft); }
.crumb span { padding: 0 6px; }

.page-head { padding: 10px 0 8px; }
.page-head h1 { font: 700 clamp(27px, 4.4vw, 37px)/1.2 var(--sans); margin: 8px 0 12px; letter-spacing: -.012em; }
.lede { font-size: 19px; color: var(--ink-soft); max-width: 66ch; margin: 0 0 8px; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: 12.5px; font-weight: 700; color: var(--oxide); }
.dateline { font-size: 14px; color: var(--ink-faint); margin: 0; }

section.band { padding: 42px 0; }
section.band.sunk { background: var(--bg-sunk); }
section.band h2 { font: 700 clamp(22px, 3.2vw, 28px)/1.25 var(--sans); margin: 0 0 6px; }
section.band > .wrap > p.sub { color: var(--ink-soft); margin: 0 0 24px; max-width: 64ch; }

/* ---------- cards ---------- */

.cards { display: grid; gap: 18px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow);
}
.card h3 { margin: 0; font-size: 18.5px; line-height: 1.32; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.card .meta { margin-top: auto; font-size: 13px; color: var(--ink-faint); }
.card .years { font: 650 13px/1 var(--sans); letter-spacing: .04em; color: var(--oxide); text-transform: uppercase; }

/* era cards get a brass left edge, so the nine eras read as a sequence */
.card.era { border-left: 3px solid var(--brass); }

/* ---------- article layout ---------- */

.article-layout { display: grid; gap: 34px; grid-template-columns: 1fr; padding: 8px 0 50px; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0,1fr) 290px; gap: 46px; } }

.prose { max-width: 70ch; font-size: 17.5px; }
.prose h2 { font: 700 25px/1.3 var(--sans); margin: 38px 0 12px; }
.prose h3 { font: 700 19.5px/1.35 var(--sans); margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 7px; }
.prose blockquote {
  margin: 22px 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--brass);
  font-family: var(--serif); font-size: 18.5px; color: var(--ink-soft);
}
.prose blockquote cite { display: block; font: 400 14px/1.5 var(--sans); color: var(--ink-faint); margin-top: 8px; font-style: normal; }

/* A superscript footnote marker, and the note list at the foot of an article. */
a.fn { font-size: 12.5px; vertical-align: super; line-height: 0; text-decoration: none; padding: 0 1px; font-weight: 650; }
.notes { border-top: 1px solid var(--rule); margin-top: 44px; padding-top: 20px; font-size: 15px; color: var(--ink-soft); }
.notes h2 { font: 700 15px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--oxide); margin: 0 0 12px; }
.notes ol { padding-left: 20px; margin: 0; }
.notes li { margin: 0 0 8px; }

/* "What the record says" — used where sources conflict or are thin. The site's
   credibility rests on flagging this rather than smoothing it over. */
.contested {
  background: var(--bg-raised); border: 1px solid var(--rule); border-left: 4px solid var(--oxide);
  border-radius: var(--radius); padding: 16px 20px; margin: 26px 0;
}
.contested .kicker { color: var(--oxide); }
.contested p:last-child { margin-bottom: 0; }

.notice {
  background: rgba(201,162,39,.13); border: 1px solid rgba(201,162,39,.45);
  border-radius: var(--radius); padding: 14px 18px; margin: 24px 0; font-size: 16px;
}

/* ---------- sidebar ---------- */

.sidebar > * + * { margin-top: 22px; }
.factbox { background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--radius); padding: 17px 19px; box-shadow: var(--shadow); font-size: 15.5px; }
.factbox h2 { font-size: 14px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--oxide); }
.factbox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.factbox dt { font-weight: 650; color: var(--ink-soft); }
.factbox dd { margin: 0; }
.factbox ul { list-style: none; margin: 0; padding: 0; }
.factbox li { margin: 0 0 8px; }

/* ---------- timeline ---------- */

.timeline { list-style: none; margin: 26px 0 0; padding: 0 0 0 26px; border-left: 2px solid var(--rule); }
.timeline > li { position: relative; padding: 0 0 26px 4px; }
.timeline > li::before {
  content: ""; position: absolute; left: -33px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--brass); border: 2px solid var(--bg);
}
.timeline > li.major::before { background: var(--oxide); width: 15px; height: 15px; left: -35px; top: 5px; }
.timeline .year { font: 700 15px/1.2 var(--sans); color: var(--oxide); letter-spacing: .03em; display: block; margin-bottom: 3px; }
.timeline h3 { font: 650 17.5px/1.35 var(--sans); margin: 0 0 4px; }
.timeline h3 a { text-decoration: none; }
.timeline h3 a:hover { text-decoration: underline; }
.timeline p { margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }

table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--bg-sunk); font-weight: 650; }

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

.site-foot { background: var(--ink-900); color: #bcc1d4; margin-top: 44px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 42px; padding-bottom: 28px; }
@media (min-width: 680px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.foot-brand { font-weight: 700; color: #fff; font-size: 18px; margin: 0 0 8px; }
.foot-brand em { font-style: normal; color: var(--brass); }
.foot-note { margin: 0 0 10px; max-width: 42ch; color: #959cb4; }
.foot-note a { color: #bcc1d4; }
.site-foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--brass); margin: 0 0 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 7px; }
.site-foot a { color: #bcc1d4; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 26px; }
.foot-base p { margin: 0; font-size: 13.5px; color: #868da6; }

/* ---------- forms ---------- */

form.contact { max-width: 36rem; }
form.contact label { display: block; font-weight: 650; margin: 16px 0 5px; }
form.contact input, form.contact textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
  background: var(--bg-raised); border: 1px solid var(--rule); border-radius: 5px;
}
form.contact textarea { min-height: 170px; resize: vertical; }
form.contact button { margin-top: 18px; }

@media print {
  .site-head, .site-foot, .nav, .crumb { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .prose { max-width: none; }
}
