@font-face {
  font-family: Source;
  src: url("/assets/fonts/SourceSans3-Variable.ttf");
  font-display: swap;
}
@font-face {
  font-family: Serif;
  src: url("/assets/fonts/SourceSerif4-Variable.ttf");
  font-display: swap;
}
@font-face {
  font-family: Mono;
  src: url("/assets/fonts/IBMPlexMono-Regular.ttf");
  font-display: swap;
}
:root {
  --paper: #f5f3ee;
  --white: #fffefa;
  --ink: #20333c;
  --muted: #5b676c;
  --line: #dbded9;
  --wine: #792f49;
  --pale: #f1e6e9;
  --teal: #2d6667;
  --red: #a93138;
  --sans: Source, system-ui, sans-serif;
  --serif: Serif, Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: var(--wine);
  text-underline-offset: 4px;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #337e9e;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font: 500 clamp(34px, 3.5vw, 52px)/1.12 var(--serif);
  letter-spacing: -1.2px;
}
h2 {
  font: 500 28px/1.25 var(--serif);
}
h3 {
  font-size: 20px;
  font-weight: 650;
}
p + p {
  margin-top: 14px;
}
img {
  display: block;
  max-width: 100%;
}
small,
.small {
  font-size: 14px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--teal);
  font-weight: 650;
  margin-bottom: 14px;
}
.mono {
  font:
    14px Mono,
    monospace;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.skip {
  position: absolute;
  left: -10000px;
  top: 0;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  position: fixed;
  left: 8px;
  top: 8px;
}
header.app-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 80px;
}
.brand {
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
}
.brand b {
  font-size: 30px;
  letter-spacing: -1px;
}
.brand small {
  color: var(--wine);
  font:
    12px Mono,
    monospace;
}
.brand-mark {
  display: grid;
  grid-template-columns: 10px 10px;
  gap: 3px;
}
.brand-mark i {
  height: 10px;
  background: var(--ink);
}
.brand-mark i:last-child {
  background: var(--wine);
  transform: translate(2px, 2px);
}
.identity {
  font-size: 14px;
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.identity b {
  display: block;
}
.app-header .actions {
  margin-left: auto;
}
.layout {
  display: grid;
  grid-template-columns: 214px 1fr;
  min-height: calc(100vh - 80px);
}
aside {
  background: #efefea;
  border-right: 1px solid var(--line);
  padding: 28px 14px;
  display: flex;
  flex-direction: column;
}
aside nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
aside a {
  color: #4b5a60;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 15px;
}
aside a[aria-current="page"] {
  background: #e8dade;
  color: var(--wine);
  font-weight: 650;
  border-left: 3px solid var(--wine);
}
aside .aside-bottom {
  margin-top: auto;
  padding: 28px 15px;
  font-size: 13px;
  color: var(--muted);
}
main {
  padding: 38px 42px 70px;
  max-width: 1440px;
  width: 100%;
  margin: auto;
  min-width: 0;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 26px;
  align-items: start;
  margin-bottom: 30px;
}
.page-head p {
  margin-top: 16px;
  max-width: 710px;
  color: var(--muted);
}
.period {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  flex-shrink: 0;
  text-align: right;
}
.period b {
  display: block;
  font: 27px var(--serif);
}
.period small {
  display: block;
  margin-top: 8px;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 26px;
  min-width: 0;
}
.panel + .panel {
  margin-top: 22px;
}
.panel h2,
.panel h3 {
  margin-bottom: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid > .panel + .panel {
  margin: 0;
}
.three {
  grid-template-columns: repeat(3, 1fr);
}
.stack > * + * {
  margin-top: 22px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 17px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #bdc6c0;
  border-radius: 4px;
  background: var(--white);
  text-decoration: none;
  line-height: 1.35;
}
.btn:hover,
button:hover {
  border-color: var(--ink);
  background: #f0f0eb;
}
.primary {
  background: var(--wine);
  border-color: var(--wine);
  color: white;
}
.primary:hover {
  background: #63253b;
}
.subtle {
  background: transparent;
  border-color: transparent;
}
.danger {
  color: var(--red);
  border-color: var(--red);
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
  padding: 5px 9px;
  border-radius: 3px;
  background: #e4ece9;
  color: var(--teal);
}
.badge.warn {
  background: #f7ebd7;
  color: #7c4b00;
}
.badge.dark {
  background: var(--ink);
  color: white;
}
.notice {
  border-left: 3px solid var(--teal);
  padding: 16px 20px;
  background: #eaf0ed;
  font-size: 15px;
  margin-bottom: 23px;
}
.notice.warn {
  border-color: #885609;
  background: #faf0df;
}
.notice.error {
  border-color: var(--red);
  background: #faeaea;
  color: #892c34;
}
.notice p {
  white-space: pre-line;
}
.spaced {
  margin-top: 24px;
}
.preline {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.empty {
  border: 1px dashed #aeb8b4;
  padding: 36px;
  text-align: center;
  border-radius: 4px;
}
.empty p {
  color: var(--muted);
  margin: 10px 0 18px;
}
.list-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
}
.list-row .grow {
  flex: 1;
  min-width: 0;
}
.list-row h3 {
  margin: 0;
  font-size: 18px;
}
.list-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.timeline {
  display: flex;
  gap: 7px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 28px;
  overflow-x: auto;
}
.timeline span {
  display: grid;
  place-items: center;
  min-width: 33px;
  height: 31px;
  font:
    12px Mono,
    monospace;
  color: var(--muted);
}
.timeline .past {
  background: #e4eae5;
}
.timeline .current {
  background: var(--wine);
  color: white;
}
.timeline .intro {
  font: 13px var(--sans);
  margin-right: auto;
  min-width: 160px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  margin-bottom: 25px;
}
.stat-row > div {
  padding: 20px 25px;
  border-right: 1px solid var(--line);
}
.stat-row > div:last-child {
  border: 0;
}
.stat-row b {
  display: block;
  font: 30px var(--serif);
}
.stat-row small {
  color: var(--muted);
}
.flow {
  display: flex;
  margin: 26px 0;
}
.flow span {
  flex: 1;
  border-top: 3px solid var(--line);
  padding: 12px 7px;
  font-size: 13px;
  color: var(--muted);
}
.flow span.active {
  color: var(--wine);
  border-color: var(--wine);
}
label.field {
  display: block;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
}
label.field > span {
  display: block;
  margin-bottom: 7px;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #aeb8b5;
  border-radius: 4px;
  background: white;
  font-size: 16px;
}
input:disabled,
select:disabled {
  background: #eeefe9;
}
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
label small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--wine);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  margin: 18px 0;
}
.check input {
  flex-shrink: 0;
  margin-top: 3px;
}
.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-pair .field {
  margin: 0;
}
fieldset {
  border: 1px solid var(--line);
  padding: 20px;
  margin: 24px 0;
}
legend {
  padding: 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.chapter-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 24px 0;
}
.chapter-nav button {
  display: block;
  text-align: left;
  padding: 11px;
  font-size: 14px;
  min-height: 70px;
}
.chapter-nav button small {
  display: block;
  font-size: 11px;
  color: var(--teal);
  margin-bottom: 6px;
}
.chapter-nav .active {
  background: var(--ink);
  color: white;
}
.chapter-nav .active small {
  color: #afd4cc;
}
.decision-field {
  display: grid;
  grid-template-columns: 1fr 70px minmax(180px, 235px);
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  border-top: 1px solid var(--line);
}
.decision-field:first-child {
  border-top: 0;
}
.decision-field label {
  font-size: 16px;
  font-weight: 600;
}
.decision-field label small {
  font-size: 13px;
  max-width: 520px;
}
.decision-field .delay {
  font-size: 12px;
  color: var(--teal);
}
.decision-field .unit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}
.decision-fields {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.decision-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px 20px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  box-shadow: 0 -5px 20px #20333c09;
}
.decision-footer p {
  font-size: 14px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}
th {
  background: #e9eeea;
  font-weight: 650;
  padding: 12px 16px;
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
}
td.num {
  text-align: right;
  font:
    12px Mono,
    monospace;
  white-space: nowrap;
}
.table-wrap caption {
  padding: 14px;
  text-align: left;
}
.report h2 {
  margin: 27px 0 14px;
}
.report .table-wrap {
  max-width: 950px;
}
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 22px;
  margin: 15px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
details > div {
  padding-top: 16px;
}
details table {
  margin-top: 15px;
}
.chart {
  width: 100%;
  height: auto;
  min-width: 480px;
}
.chart text {
  font: 12px var(--sans);
  fill: var(--muted);
}
.chart line {
  stroke: var(--line);
}
.chart polyline {
  fill: none;
  stroke-width: 2.5;
}
.chart-scroll {
  overflow: auto;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}
.legend b {
  font-weight: 400;
}
.public-main {
  max-width: 1260px;
}
.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 65px;
  align-items: center;
  padding: 35px 0 50px;
}
.hero h1 {
  font-size: clamp(42px, 4.4vw, 66px);
  letter-spacing: -1.8px;
}
.hero h1 em {
  color: var(--wine);
  font-weight: 450;
}
.hero p {
  font-size: 20px;
  color: var(--muted);
  margin: 24px 0 29px;
  max-width: 500px;
}
.hero-visual img {
  height: 390px;
  width: 100%;
  object-fit: cover;
  border-radius: 3px;
}
.hero-caption {
  padding: 22px 27px;
  background: var(--white);
  border: 1px solid var(--line);
  margin: -35px 25px 0 -15px;
  position: relative;
}
.hero-caption h2 {
  font-size: 25px;
}
.hero-caption p {
  font-size: 15px;
  margin: 12px 0 0;
}
.public-section {
  padding: 35px 0;
}
.public-section h2 {
  margin-bottom: 25px;
}
.public-quote {
  padding: 36px 42px;
  background: var(--ink);
  color: #fffefa;
  margin: 25px 0;
}
.public-quote p {
  max-width: 850px;
  margin-top: 15px;
  color: #d1dddc;
}
.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 25px 0;
  font-size: 14px;
}
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 55px;
  align-items: start;
  padding: 70px 0 75px;
  border-top: 1px solid var(--line);
}
.contact-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 50px);
}
.contact-intro > p {
  max-width: 540px;
  color: var(--muted);
}
.contact-form,
.contact-fallback {
  max-width: 620px;
  margin-left: auto;
}
.contact-form h3,
.contact-fallback h3 {
  margin-bottom: 20px;
}
.contact-form .cf-turnstile {
  min-height: 65px;
  margin: 4px 0 18px;
}
.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px;
  opacity: 0;
}
.contact-fallback p {
  margin-bottom: 22px;
  color: var(--muted);
}
.history-page {
  max-width: 1260px;
}
.history-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 34px;
  align-items: center;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}
.history-hero h1 {
  margin-top: 4px;
  font-size: clamp(32px, 3.6vw, 46px);
  letter-spacing: -1.2px;
}
.history-hero p {
  max-width: 780px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
.history-hero-number {
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  justify-content: end;
  color: var(--teal);
  line-height: 0.85;
}
.history-hero-number strong {
  grid-row: span 2;
  font: 600 96px/0.78 var(--sans);
  letter-spacing: -7px;
}
.history-hero-number span {
  font: 500 24px/1 var(--serif);
  padding-left: 10px;
}
.history-hero-number small {
  padding: 5px 0 1px 10px;
  font-size: 16px;
  line-height: 1.18;
}
.history-archive {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 55px;
  align-items: center;
  padding: 65px 0 75px;
  border-bottom: 1px solid var(--line);
}
.dos-figure {
  margin: 0;
}
.dos-window {
  width: 75%;
  margin: 0 auto;
  overflow: hidden;
  background: #050807;
  border: 1px solid #1d302e;
  box-shadow: 15px 16px 0 #d9ded8;
}
.dos-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 11px;
  background: #122d2e;
  color: #ecf1e8;
  font-size: 12px;
}
.dos-titlebar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bb6a59;
}
.dos-titlebar span:nth-child(2) {
  background: #d0b35b;
}
.dos-titlebar span:nth-child(3) {
  background: #81a486;
}
.dos-titlebar b {
  margin-left: auto;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.dos-window img {
  width: 100%;
  height: auto;
}
.dos-figure figcaption {
  max-width: 75%;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 14px;
}
.history-copy {
  max-width: 480px;
}
.history-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 40px);
}
.history-copy p {
  color: var(--muted);
}
.era-comparison {
  padding: 34px 0 58px;
  border-bottom: 1px solid var(--line);
}
.era-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 55px;
  align-items: end;
  margin-bottom: 35px;
}
.era-intro h2 {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 34px);
  margin-top: 8px;
  color: var(--teal);
  font: 560 clamp(54px, 8vw, 104px)/0.9 var(--sans);
  letter-spacing: -6px;
}
.era-intro h2 i {
  color: var(--wine);
  font: 400 0.48em/1 var(--sans);
  letter-spacing: 0;
}
.era-intro p {
  max-width: 510px;
  color: var(--muted);
  font-size: 19px;
}
.era-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.era-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  background: #f8f7f2;
}
.era-card-present {
  background: #edf3f1;
  border-color: #cad8d4;
}
.era-card-heading {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}
.era-year {
  display: block;
  color: var(--teal);
  font: 600 clamp(38px, 4.7vw, 64px)/0.9 var(--sans);
  letter-spacing: -4px;
}
.era-card-heading small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.era-card-heading h3 {
  font: 500 clamp(25px, 2.4vw, 34px)/1.08 var(--serif);
}
.era-card figure {
  margin: 0 0 22px;
}
.era-card .dos-window,
.modern-window {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 10px 11px 0 rgba(29, 48, 46, 0.15);
}
.era-card .dos-window img,
.modern-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}
.modern-window {
  border: 1px solid #b9c8c4;
  background: #f5f4ef;
}
.era-card figcaption {
  max-width: none;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.era-card > p {
  margin-top: auto;
  color: var(--muted);
}
.era-continuity {
  margin-top: 24px;
  padding: 23px 28px;
  background: var(--ink);
  color: #dce7e3;
  font-size: 17px;
}
.era-continuity strong {
  color: #fffefa;
}
.history-showcase {
  padding: 55px 0 60px;
  border-bottom: 1px solid var(--line);
}
.showcase-intro {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  column-gap: 50px;
  align-items: end;
  margin-bottom: 30px;
}
.showcase-intro .eyebrow {
  grid-column: 1/-1;
}
.showcase-intro h2 {
  font-size: clamp(30px, 3.5vw, 42px);
}
.showcase-intro p {
  max-width: 560px;
  color: var(--muted);
}
.experience-carousel {
  overflow: hidden;
  background: var(--ink);
  color: #fffefa;
  box-shadow: 18px 18px 0 #d9ded8;
}
.carousel-viewport {
  min-height: 425px;
}
.carousel-slide {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 0;
  min-height: 425px;
}
.carousel-slide.is-active {
  display: grid;
}
.carousel-image-frame {
  min-height: 425px;
  background: #d8ddd8;
}
.carousel-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 425px;
  object-fit: cover;
  object-position: left top;
}
.carousel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 45px;
}
.slide-count {
  color: #a4c7c0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.5px;
}
.carousel-copy h3 {
  margin: 18px 0 14px;
  color: #fffefa;
  font: 500 clamp(29px, 3vw, 42px)/1.12 var(--serif);
}
.carousel-copy p {
  color: #d3dfdc;
}
.carousel-copy small {
  margin-top: 28px;
  color: #a4c7c0;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 24px;
  border-top: 1px solid #ffffff2b;
}
.carousel-control {
  box-sizing: border-box;
  width: 35px;
  min-width: 35px;
  height: 35px;
  min-height: 35px;
  padding: 0;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: transparent;
  color: #fffefa;
  font-size: 25px;
  line-height: 1;
}
.carousel-control:hover,
.carousel-control:focus-visible {
  background: #ffffff1a;
}
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel-dot {
  display: block;
  flex: 0 0 10px;
  width: 10px;
  min-width: 10px;
  height: 10px;
  min-height: 10px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #a4c7c0;
  border-radius: 999px;
  background: transparent;
  line-height: 0;
}
.carousel-dot.is-active {
  background: #a4c7c0;
}
.history-section {
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
}
.history-section > h2 {
  margin-bottom: 35px;
  font-size: clamp(30px, 3.5vw, 42px);
}
.history-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.history-timeline article {
  padding-top: 18px;
  border-top: 2px solid var(--teal);
}
.history-timeline article > span {
  color: var(--teal);
  font: 600 13px Mono, monospace;
}
.history-timeline h3 {
  margin: 14px 0 10px;
}
.history-timeline p {
  color: var(--muted);
}
.legacy-contract,
.history-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
}
.legacy-contract h2,
.history-method h2 {
  margin-bottom: 17px;
}
.legacy-contract ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.legacy-contract li + li {
  margin-top: 8px;
}
.history-method p,
.history-privacy p {
  color: var(--muted);
}
.history-privacy {
  max-width: 760px;
  padding: 65px 0 30px;
}
.history-privacy h2 {
  margin-bottom: 14px;
}
.history-actions {
  padding: 25px 0 70px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  max-width: 1000px;
  margin: 45px auto;
}
.login-layout p {
  margin-top: 23px;
  color: var(--muted);
  font-size: 19px;
}
.login-layout img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  margin-top: 28px;
}
.narrow {
  max-width: 800px;
}
.reading {
  max-width: 880px;
}
.reading h2 {
  margin: 30px 0 17px;
}
.reading li {
  margin: 9px 0;
}
.reading .lead {
  font-size: 21px;
  color: var(--muted);
  margin-top: 23px;
}
.cover {
  padding: 0;
  overflow: hidden;
}
.cover img {
  height: 170px;
  object-fit: cover;
  width: 100%;
}
.cover > div {
  padding: 24px;
}
.version {
  font-size: 11px;
  color: var(--muted);
  margin-top: 30px;
}
.saved {
  color: var(--teal);
}
dialog {
  width: calc(100% - 34px);
  max-width: 760px;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 28px;
  box-shadow: 0 25px 100px #0003;
}
dialog::backdrop {
  background: #172c36a8;
}
dialog h2 {
  margin-bottom: 20px;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 24px;
}
dialog textarea {
  font-size: 13px;
  min-height: 200px;
}
#message {
  position: fixed;
  bottom: 20px;
  right: 22px;
  max-width: min(650px, calc(100% - 40px));
  z-index: 50;
  white-space: pre-line;
  box-shadow: 0 6px 22px #0002;
  border-radius: 4px;
  background: var(--ink);
  color: white;
  padding: 16px 22px;
}
#message:empty {
  display: none;
}
#message.error {
  background: #802e3a;
}
.loading {
  padding: 50px;
  text-align: center;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1100px) {
  main {
    padding: 30px 25px 65px;
  }
  .layout {
    grid-template-columns: 185px 1fr;
  }
  .hero {
    gap: 35px;
  }
  .three {
    grid-template-columns: 1fr;
  }
  .history-archive {
    gap: 38px;
  }
  .era-intro {
    gap: 35px;
  }
  .era-card {
    padding: 22px;
  }
  .era-card-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .carousel-copy {
    padding: 38px 32px;
  }
  .decision-field {
    grid-template-columns: 1fr 55px 175px;
    gap: 10px;
    padding: 16px;
  }
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 16px;
  }
  aside nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1px;
  }
  aside a {
    padding: 8px 10px;
    font-size: 14px;
  }
  aside .aside-bottom {
    display: none;
  }
  .hero {
    gap: 24px;
  }
  .history-archive,
  .carousel-slide {
    grid-template-columns: 1fr;
  }
  .era-intro,
  .era-grid {
    grid-template-columns: 1fr;
  }
  .era-intro {
    gap: 18px;
  }
  .era-intro p {
    max-width: 680px;
  }
  .era-card-heading {
    grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
    gap: 22px;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .history-copy {
    max-width: none;
  }
  .carousel-image-frame,
  .carousel-image-frame img {
    min-height: 300px;
  }
  .history-timeline {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero-visual img {
    height: 330px;
  }
  .identity {
    display: none;
  }
  .login-layout {
    gap: 30px;
  }
  .chapter-nav button {
    font-size: 12px;
  }
  .page-head h1 {
    font-size: 40px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  main {
    padding: 26px 18px 55px;
  }
  header.app-header {
    padding: 13px 18px;
    gap: 12px;
  }
  .brand b {
    font-size: 26px;
  }
  .app-header .actions {
    gap: 3px;
  }
  .app-header button,
  .app-header .btn {
    font-size: 13px;
    padding: 8px 10px;
  }
  .page-head {
    display: block;
  }
  .page-head h1 {
    font-size: 35px;
  }
  .period {
    text-align: left;
    border: 0;
    padding: 16px 0 0;
  }
  .period b {
    display: inline-block;
    margin-right: 12px;
    font-size: 22px;
  }
  .period small {
    display: inline;
  }
  .grid,
  .form-pair,
  .login-layout,
  .hero {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 22px;
  }
  .hero {
    padding: 15px 0 30px;
  }
  .history-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 15px 0 18px;
  }
  .history-hero h1 {
    font-size: 32px;
  }
  .history-hero p {
    font-size: 16px;
  }
  .history-hero-number {
    justify-content: start;
  }
  .history-hero-number strong {
    font-size: 82px;
  }
  .history-archive {
    padding: 45px 0 55px;
  }
  .era-comparison {
    padding: 28px 0 45px;
  }
  .era-intro h2 {
    gap: 12px;
    font-size: 52px;
    letter-spacing: -4px;
  }
  .era-card {
    padding: 18px;
  }
  .era-card-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .era-year {
    font-size: 44px;
  }
  .era-card .dos-window,
  .modern-window {
    box-shadow: 7px 8px 0 rgba(29, 48, 46, 0.15);
  }
  .era-continuity {
    padding: 20px;
    font-size: 16px;
  }
  .dos-window,
  .dos-figure figcaption {
    width: 100%;
    max-width: none;
  }
  .dos-window {
    box-shadow: 9px 10px 0 #d9ded8;
  }
  .dos-titlebar b {
    font-size: 11px;
  }
  .history-showcase,
  .history-section,
  .legacy-contract,
  .history-method {
    padding: 50px 0;
  }
  .showcase-intro,
  .legacy-contract,
  .history-method {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .experience-carousel {
    box-shadow: 9px 10px 0 #d9ded8;
  }
  .carousel-viewport {
    min-height: 0;
  }
  .carousel-image-frame,
  .carousel-image-frame img {
    min-height: 210px;
    height: 210px;
  }
  .carousel-copy {
    padding: 30px 25px 35px;
  }
  .carousel-copy h3 {
    font-size: 32px;
  }
  .carousel-controls {
    padding: 10px 16px;
  }
  .history-privacy {
    padding: 45px 0 15px;
  }
  .history-actions {
    padding-bottom: 50px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero p {
    font-size: 18px;
  }
  .hero-visual img {
    height: 265px;
  }
  .hero-caption {
    margin: -25px 15px 0 0;
    padding: 20px;
  }
  .hero-caption p {
    font-size: 15px;
  }
  .stat-row > div {
    padding: 15px 12px;
  }
  .stat-row b {
    font-size: 23px;
  }
  .stat-row small {
    font-size: 12px;
  }
  .timeline .intro {
    display: none;
  }
  .chapter-nav {
    display: flex;
    overflow: auto;
  }
  .chapter-nav button {
    min-width: 135px;
    font-size: 13px;
  }
  .decision-field {
    grid-template-columns: 1fr 70px;
  }
  .decision-field > div:last-child {
    grid-column: 1/-1;
  }
  .decision-footer {
    padding: 13px;
    flex-wrap: wrap;
  }
  .decision-footer .actions {
    width: 100%;
  }
  .decision-footer button {
    flex: 1;
  }
  .list-row {
    flex-wrap: wrap;
    gap: 12px;
  }
  .list-row .actions {
    width: 100%;
  }
  .flow span {
    font-size: 11px;
    padding: 9px 3px;
  }
  .public-quote {
    padding: 28px;
  }
  .public-footer {
    flex-direction: column;
  }
  .login-layout {
    margin: 15px auto;
  }
  .login-layout img {
    display: none;
  }
  dialog {
    padding: 22px;
  }
  .report .table-wrap {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  header.app-header,
  aside,
  .actions,
  .decision-footer,
  .no-print,
  #message,
  dialog {
    display: none !important;
  }
  .layout {
    display: block;
  }
  main {
    max-width: none;
    padding: 0;
  }
  body {
    background: white;
    font-size: 11pt;
  }
  .panel,
  .table-wrap {
    break-inside: avoid;
  }
  .report h1 {
    font-size: 25pt;
  }
  .report .table-wrap {
    max-width: none;
  }
  .page-head {
    margin-bottom: 15px;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  .grid {
    display: block;
  }
  .grid > .panel {
    margin: 15px 0;
  }
  .timeline {
    display: none;
  }
}
