:root {
  --site-bg: #8A1C41;
  --site-surface: #9B2E53;
  --text-body: #FFF1F6;
  --text-heading: #FFFFFF;
  --text-link: #FFE1AB;
  --brand-accent: #FFE1AB;
  --on-accent: #111111;
  --font-heading: "Courier New", Courier, monospace;
  --font-body: Verdana, Geneva, sans-serif;
  --font-ui: Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--site-bg); color: var(--text-body); font: 17px/1.75 var(--font-body); }
main { max-width: 1440px; margin: auto; padding: 0 5.5%; }
h1,h2,h3 { color: var(--text-heading); font-family: var(--font-heading); line-height: 1.08; font-weight: 700; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.6rem,5.3vw,4.9rem); margin: .5rem 0 1.6rem; }
h2 { font-size: clamp(1.8rem,3vw,2.6rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.3rem; }
a { color: var(--text-link); text-underline-offset: .23em; text-decoration-thickness: 1px; overflow-wrap: anywhere; transition: background-color .15s, color .15s; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,summary:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 5px; }
#content:focus { outline: none; }
.skip { position: absolute; left: 5.5%; top: -100px; padding: .5rem 1rem; background: var(--brand-accent); color: var(--on-accent); z-index: 10; }
.skip:focus { top: .5rem; }
.masthead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.7rem 0 1.2rem; font: 15px/1.5 var(--font-ui); }
.wordmark { font: bold 21px/1.3 var(--font-heading); color: var(--text-heading); text-decoration: none; }
.category { color: var(--text-body); }
.tabs { display: flex; align-items: flex-end; margin: 0 0 2.4rem; border-bottom: 1px solid var(--brand-accent); min-height: 82px; }
.tabs a { padding: .65rem 1.6rem; border: 1px solid var(--brand-accent); border-bottom: 0; font: 16px/1.5 var(--font-ui); background: var(--site-surface); }
.tabs a:nth-child(2) { padding-top: 1rem; }
.tabs a:nth-child(3) { padding-top: 1.35rem; }
.tabs a:nth-child(4) { padding-top: 1.7rem; }
.tabs a:nth-child(5) { padding-top: 2.05rem; }
.tabs a[aria-current=page] { background: var(--brand-accent); color: var(--on-accent); text-decoration: none; }
.eyebrow,.tab-label,.small,.source,.section-guide,.record dt { font: 14px/1.6 var(--font-ui); }
.eyebrow { margin-bottom: 1.2rem; }
.company-record { position: relative; border: 1px solid var(--brand-accent); background: var(--site-surface); padding: 2rem 3rem 0; box-shadow: 8px 8px 0 var(--site-bg),9px 9px 0 var(--brand-accent); }
.record-top { display: flex; justify-content: space-between; gap: 2rem; border-bottom: 1px solid #d18ca4; padding-bottom: 1.4rem; }
.record-top p { margin: 0; max-width: 34rem; }
address { font-style: normal; overflow-wrap: anywhere; }
.record-top address { max-width: 24rem; font-size: 15px; }
.company-record h1 { max-width: 900px; margin: 2.2rem 0 1.5rem; }
.lead { font-size: 19px; max-width: 55rem; }
.record-bottom { margin-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-top: 1px solid #d18ca4; font: 15px/1.6 var(--font-ui); }
.collection { padding-top: 5rem; }
.collection-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; margin-bottom: 2.8rem; }
.collection-intro p { max-width: 36rem; }
.card-pair { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; margin-bottom: 3rem; align-items: start; }
.card-pair.reverse { grid-template-columns: .9fr 1.3fr; }
.topic-card { display: block; position: relative; border: 1px solid #e4adc0; background: var(--site-surface); padding: 2rem 2rem 1.5rem; text-decoration: none; color: var(--text-body); min-width: 0; }
.topic-card:nth-child(2) { margin-top: 2rem; }
.topic-card:hover { background: #a7395e; }
.topic-card h3 { font-size: clamp(1.7rem,2.8vw,2.25rem); margin: 1.5rem 0 1rem; }
.tab-label { position: absolute; top: -1.9rem; left: -1px; padding: .2rem 1rem; border: 1px solid #e4adc0; border-bottom: 0; background: var(--site-surface); color: var(--text-link); min-width: 7rem; }
.card-pair.reverse .tab-label { left: auto; right: -1px; }
.card-action { display: block; color: var(--text-link); text-decoration: underline; text-underline-offset: .23em; border-top: 1px solid #d18ca4; padding-top: .8rem; margin-top: 1.6rem; font: 15px/1.6 var(--font-ui); }
.reading-note { padding: 1rem 0 3rem; max-width: 57rem; }
.reading-note h2 { font-size: 1.7rem; }
.page-heading { padding: 1rem 0 2rem; max-width: 64rem; }
.page-heading h1 { font-size: clamp(2.3rem,5vw,4.2rem); }
.page-heading .lead { max-width: 49rem; }
.section-guide { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 1rem 0; border-top: 1px solid #d18ca4; border-bottom: 1px solid #d18ca4; margin: 0 0 3rem; }
.article-sheet { position: relative; background: var(--site-surface); border: 1px solid #e4adc0; padding: 3.5rem 2rem; margin: 1.5rem 0 3rem; }
.prose { max-width: 69ch; margin: auto; }
.prose section { margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.9rem; }
.inset { padding: 1.5rem 1.8rem; border-left: 4px solid var(--brand-accent); background: var(--site-bg); margin: 2rem 0; }
.inset p:last-child { margin-bottom: 0; }
.source { border-top: 1px solid #d18ca4; padding-top: 1.2rem; }
.continue { padding: 1.7rem 0 3rem; max-width: 64rem; }
.continue p { margin: .3rem 0; }
.record { margin: 0 0 3rem; border-top: 1px solid var(--brand-accent); }
.record div { display: grid; grid-template-columns: 1fr 2.7fr; gap: 2rem; border-bottom: 1px solid #d18ca4; padding: 1.4rem 0; }
.record dd { margin: 0; font-size: 20px; }
.open-prose { max-width: 72ch; padding-bottom: 3rem; }
.open-prose h2 { font-size: 1.9rem; margin-top: 2.2rem; }
.correspondence { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; }
.mail-label { border: 1px solid var(--brand-accent); padding: 2.2rem; background: var(--site-surface); }
.mail-label address { font: bold clamp(1.4rem,2.5vw,2rem)/1.6 var(--font-heading); color: var(--text-heading); }
.email-strip { margin: 2.5rem 0; padding: 1.7rem 0; border-block: 1px solid var(--brand-accent); }
.email-strip a { font-size: clamp(1.05rem,2.4vw,1.7rem); }
.footer { margin-top: 2.5rem; padding: 2rem 0 2.4rem; border-top: 2px solid var(--brand-accent); }
.footer-top { display: flex; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.3rem; font: 14px/1.6 var(--font-ui); }
.footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font: 14px/1.6 var(--font-ui); }
.footer [aria-current=page] { color: var(--text-heading); text-decoration: none; }
@media(min-width:1100px) { body { font-size: 18px; } .topic-card { padding: 2rem 2.5rem 1.6rem; } }
@media(max-width:700px) {
  main { padding: 0 6%; }
  .masthead { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; margin-top: .8rem; gap: 5px; padding-bottom: .8rem; }
  .tabs a,.tabs a:nth-child(n) { padding: .6rem .7rem; border: 1px solid var(--brand-accent); font-size: 15px; }
  .company-record { padding: 1.4rem 1.3rem 0; box-shadow: 4px 4px 0 var(--site-bg),5px 5px 0 var(--brand-accent); }
  .record-top,.record-bottom,.collection-intro { flex-direction: column; gap: 1rem; }
  .record-top address { font-size: 15px; }
  .company-record h1 { margin-top: 1.8rem; font-size: clamp(2.3rem,9vw,3.8rem); }
  .lead { font-size: 17px; }
  .collection { padding-top: 3.5rem; }
  .collection-intro { display: block; margin-bottom: 3rem; }
  .card-pair,.card-pair.reverse { display: block; margin: 0; }
  .topic-card,.topic-card:nth-child(2) { margin: 0 0 3.5rem; padding: 1.2rem 1.3rem; }
  .topic-card h3 { margin-top: 1rem; }
  .reading-note { padding-top: 0; }
  .article-sheet { padding: 2rem 1.1rem; }
  .inset { padding: 1rem; }
  .section-guide { gap: .5rem 1rem; }
  .record div { grid-template-columns: 1fr; gap: .4rem; }
  .record dd { font-size: 18px; }
  .correspondence { display: block; }
  .mail-label { padding: 1.5rem; margin-bottom: 2rem; }
  .footer-top { flex-direction: column; gap: .4rem; }
  .footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
