
:root {
  --nova-navy: #0c1238;
  --nova-navy-mid: #171e57;
  --nova-blue: #242c78;
  --nova-red: #d62d36;
  --nova-red-dark: #ad1f28;
  --paper: #fffdfa;
  --timeline-paper: #f0f2f7;
  --ink: #1a2130;
  --muted: #667083;
  --rule: #d5d9e2;
  --white-rule: rgb(255 255 255 / 18%);
  --shadow: 0 18px 50px rgb(2 5 22 / 34%);
  --radius: 10px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: nova-navy-mid;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background: darkblue;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 5px;
  color: #111;
  background: #fff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  color: #fff;
  border-bottom: 5px solid var(--nova-red);
  background: black;
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(132px, 242px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  width: min(1420px, calc(100% - 40px));
  min-height: 128px;
  margin: 0 auto;
}

.site-footer {
  position: relative;
  z-index: 10;
  color: red;
  background: DarkBlue;
}

.footer-inner {
  display: grid;
  text-align: center;
  width: min(1420px, calc(100% - 40px));
  min-height: 48px;
  margin: 0 auto;
}

.footer-inner a{
  text-decoration-line: none;
}

.archive-brand {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1242px;
  
}

.archive-brand img {
  width: 100%;
   height: auto;
}

.header-copy {
  min-width: 0;
  padding-left: clamp(16px, 2.4vw, 34px);
  border-left: 1px solid var(--white-rule);
  line-height: 1.1;
}

.header-copy p,
.header-copy h1 {
  margin: 0;
}

.series-title,
.chapter-number {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 800;
}

.series-title {
  color: #cbd2f4;
  font-size: clamp(.62rem, .85vw, .78rem);
}

.header-copy h1 {
  overflow-wrap: anywhere;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.8vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.chapter-number {
  margin-top: 8px !important;
  color: #f3a4a8;
  font-size: clamp(.56rem, .8vw, .72rem);
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 999px;
  background: rgb(255 255 255 / 7%);
  font-size: .83rem;
  font-weight: 800;
}

.menu-button:hover,
.menu-button:focus-visible {
  color: var(--nova-navy);
  border-color: #fff;
  background: #fff;
}

.menu-icon {
  display: grid;
  gap: 3px;
  width: 17px;
}

.menu-icon i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* Two-column reading surface */

.page-shell {
  width: min(1420px, calc(100% - 32px));
  margin: 26px auto 70px;
}

.reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, .9fr);
  align-items: stretch;
  gap: 12px;
}

.story-column,
.timeline-column {
  min-width: 0;
  overflow: hidden;
  border-top: 7px solid red;
  border-radius: var(--radius) var(--radius) 4px 4px;
  box-shadow: var(--shadow);
}

.story-column {
  padding: clamp(24px, 4.4vw, 62px);
  background: var(--paper);
  font-family: Verdana, Arial, sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  text-align: justify;
}

.story-column p {
  margin: 0 0 .9em;
}

.story-heading {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  margin-bottom: 6px !important;
  color: var(--nova-red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.story-heading h2 {
  margin: 0;
  color: var(--nova-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.story-column > h2 {
  clear: both;
  margin: 1.15em 0 .45em;
  color: var(--nova-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.lead::first-letter {
  float: left;
  margin: .1em .1em 0 0;
  color: var(--nova-red);
  font-size: 4.35em;
  font-weight: 900;
  line-height: .68;
}

.feature-quote {
  margin: 0 0 24px;
}

.archive-image {
  margin: 26px 0;
}

.archive-image img {
  width: 100%;
  border-radius: 5px;
}

.archive-image a {
  display: block;
  outline-offset: 4px;
}

.archive-image-supp {
  margin: 6px 0;
}

.archive-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.4;
}

.story-float {
  width: min(38%, 280px);
  margin-top: .2rem;
  margin-bottom: 1rem;
}

.story-float-right,
.quoteimg {
  float: right;
  margin-left: 18px;
}

.story-float-left,
.flowimg {
  float: left;
  margin-right: 18px;
}

.dialogue-card {
  margin: 28px 0;
  padding: 24px 28px 18px;
  color: #f7f8ff;
  border-radius: 8px;
  background: var(--nova-navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .95em;
}

.dialogue-card p {
  margin-bottom: .58em;
}

.dialogue-card strong {
  color: #f5a2a7;
}

.recollection,
.opening-quote {
  margin: 24px 0;
  padding: 24px 20px;
  color: #343c4c;
  border-block: 1px solid var(--rule);
  background: #eef6fc;
  font-size: .98em;
}

.recollection p:last-child,
.opening-quote p:last-child {
  margin-bottom: 0;
}

.opinion,
.anecdote {
  margin-bottom: 20px;
  padding: 14px;
  border-left: 4px solid var(--nova-red);
  background: #fff0f1;
}


.letter {
  margin-bottom: 20px;
  padding: 14px;
  border-left: 4px solid var(--nova-navy);
  background: HoneyDew;
}

.extra {
  margin: 24px 0;
  padding: 24px 20px;
  color: #343c4c;
  border-block: 1px solid var(--rule);
  background: #DCDCDC;
  font-size: .98em;
}


.audio-prompt {
  display: grid;
  place-items: center;
  clear: both;
  margin: 20px auto 26px;
}

.audio-button {
  position: relative;
  display: block;
  width: min(100%, 700px);
  padding: 0;
  overflow: hidden;
  color: #fff;
  border: 1px solid #c8cdd9;
  border-radius: 5px;
  background: #fff;
}

.audio-button img {
  width: 100%;
}

.audio-button::before {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--nova-red);
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
  font-size: .7rem;
}

.audio-button.is-playing::before {
  content: "Ⅱ";
}

.audio-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.chapter-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  clear: both;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: Arial, Helvetica, sans-serif;
}

.chapter-footer a {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  text-decoration: none;
}

.chapter-footer a:last-child {
  text-align: right;
}

.chapter-footer a:hover,
.chapter-footer a:focus-visible {
  border-color: var(--nova-blue);
  background: #f1f3fa;
}

.chapter-footer span {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chapter-footer strong {
  color: var(--nova-navy);
  font-size: .86rem;
}

/* Chronology */

.timeline-column {
  display: flex;
  align-self: stretch;
  background: var(--timeline-paper);
}

.timeline-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(16px, 2.2vw, 28px);
}

.chapter-banner {
  margin: 0 0 18px;
  border: 1px solid #c8ccd5;
  background: #fff;
}

.chapter-banner img {
  border-radius: 0;
}

.timeline-intro {
  margin-bottom: 28px;
  padding: 3px 3px 20px;
  border-bottom: 1px solid #c8cdd8;
}

.timeline-kicker {
  margin: 0 0 3px;
  color: var(--nova-red);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.timeline-intro h2 {
  margin: 0;
  color: var(--nova-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  line-height: 1.1;
}

.timeline-event {
  position: relative;
  flex: 1;
  padding: 0 2px 28px 22px;
}

.timeline-event::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 4px;
  width: 2px;
  background: #c5cad5;
}

.timeline-event p {
  margin: 0 0 1.1em;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.66;
  text-align: justify;
}

.timeline-caption {
  margin: 0 0 1.1em;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.66;
  text-align: left;
}

.date-stamp {
  position: relative;
  margin: 0 0 18px;
  color: var(--nova-navy);
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.date-stamp::before {
  content: "";
  position: absolute;
  top: .42em;
  left: -23px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--timeline-paper);
  border-radius: 50%;
  background: var(--nova-red);
  box-shadow: 0 0 0 1px var(--nova-red);
}

.date-stamp-intro {
  position: relative;
  margin: 0 0 18px;
  color: var(--nova-navy);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
}

.date-stamp-intro::before {
  content: "";
  position: absolute;
  top: .42em;
  left: -23px;
  width: 11px;
  height: 11px;
  border: 3px solid var(--timeline-paper);
  border-radius: 50%;
  background: var(--nova-red);
  box-shadow: 0 0 0 1px var(--nova-red);
}

.timeline-column .archive-image {
  margin: 20px 0 25px;
}

.timeline-portrait img {
  max-height: 440px;
  object-fit: contain;
}

.recording-note {
  color: var(--nova-red-dark);
}

.timeline-audio {
  margin: 14px 0 22px;
}

.side p {
  margin: 0 0 1.1em;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.66;
  text-align: justify;
}

.energy-visor {
  width: min(100%, 320px);
  height: 41px;
  border: 0;
  background: url("../functional/energyvisor.jpg") center / 100% 100% no-repeat;
}


.hrimage {
  width: min(100%, 300px);
  height: 18px;
  border: 0;
  background: url("../functional/hrimage.png") center / 100% 100% no-repeat;
}

.timeline-quote {
  margin: 30px 0 0;
  padding: 20px;
  color: #fff;
  border-radius: 7px;
  background: var(--nova-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-quote p {
  margin-bottom: 7px;
  font: inherit;
}

.timeline-quote cite {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .68rem;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.credits-trigger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-top: auto;
  padding: 16px 18px;
  color: #fff;
  border: 0;
  border-left: 5px solid var(--nova-red);
  border-radius: 7px;
  background: var(--nova-navy);
  text-align: left;
}

.credits-trigger span {
  color: #c6cdec;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.credits-trigger strong {
  margin-top: 2px;
  font-size: .9rem;
}

.credits-trigger:hover,
.credits-trigger:focus-visible {
  background: var(--nova-blue);
}

/* Navigation drawer and credits modal */

dialog {
  color: inherit;
}

dialog::backdrop {
  background: rgb(2 5 22 / 76%);
  backdrop-filter: blur(3px);
}

.nav-dialog {
  width: min(460px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: var(--nova-navy);
  box-shadow: -18px 0 55px rgb(0 0 0 / 34%);
}

.dialog-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dialog-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  color: #fff;
  border-bottom: 4px solid var(--nova-red);
  background: var(--nova-navy);
}

.dialog-header p,
.dialog-header h2 {
  margin: 0;
}

.dialog-header p {
  color: #c6cdec;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.dialog-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1.1;
}

.dialog-close {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 50%;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--nova-navy);
  background: #fff;
}

.story-navigation {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-intro-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.nav-intro-links a {
  padding: 10px 12px;
  border: 1px solid var(--white-rule);
  border-radius: 6px;
  color: #e3e7fb;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.nav-intro-links a:hover,
.nav-intro-links a:focus-visible {
  background: rgb(255 255 255 / 10%);
}

.nav-intro-link {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.nav-intro-link a {
  padding: 10px 12px;
  border: 1px solid var(--white-rule);
  border-radius: 6px;
  color: #e3e7fb;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.nav-intro-link a:hover,
.nav-intro-link a:focus-visible {
  background: rgb(255 255 255 / 10%);
}


.nav-group {
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid var(--white-rule);
  border-radius: 7px;
  background: rgb(255 255 255 / 4%);
}

.nav-group summary {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 13px 42px 13px 15px;
  cursor: pointer;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: #f3a4a8;
  font-size: 1.25rem;
  font-weight: 400;
}

.nav-group[open] summary::after {
  content: "−";
}

.nav-group summary span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.nav-group summary small {
  color: #aeb7dd;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.nav-group ol {
  margin: 0;
  padding: 5px 8px 11px;
  border-top: 1px solid var(--white-rule);
  list-style: none;
}

.nav-group a {
  display: block;
  padding: 7px 9px;
  color: #dce1f7;
  border-radius: 4px;
  font-size: .76rem;
  line-height: 1.35;
  text-decoration: none;
}

.nav-group a:hover,
.nav-group a:focus-visible {
  color: #fff;
  background: rgb(255 255 255 / 9%);
}

.nav-group a[aria-current="page"] {
  color: var(--nova-navy);
  border-left: 5px solid var(--nova-red);
  background: #fff;
  font-weight: 900;
}

.credits-dialog {
  width: min(650px, calc(100% - 28px));
  max-width: none;
  max-height: min(84dvh, 760px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.credits-card {
  max-height: inherit;
  overflow-y: auto;
}

.credits-copy {
  padding: clamp(22px, 4vw, 38px);
}

.credits-copy dl {
  margin: 0;
}

.credits-copy dt {
  margin: 20px 0 2px;
  color: var(--nova-red-dark);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.credits-copy dt:first-child {
  margin-top: 0;
}

.credits-copy dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.credits-copy mark {
  padding: 2px 4px;
  background: #fff1a9;
}

.credits-note {
  margin: 28px 0 0;
  padding-top: 14px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  font-size: .74rem;
}

/* Portrait reading: floated images become their own row. */

@media (orientation: portrait) {
  .story-float,
  .quoteimg,
  .flowimg {
    float: none;
    width: min(100%, 440px);
    margin: 24px auto;
  }
}

/* Phone and narrow tablet portrait: story first, self-contained timeline second. */

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: minmax(100px, 170px) minmax(0, 1fr) auto;
    gap: 14px;
    width: calc(100% - 28px);
    min-height: 96px;
  }

  .header-copy {
    padding-left: 14px;
  }

  .menu-button {
    justify-content: center;
    width: 46px;
    padding: 0;
  }

  .menu-button > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .reader-grid {
    display: block;
  }

  .story-column,
  .timeline-column {
    border-radius: 0;
    box-shadow: none;
  }

  .story-column {
    padding: 32px clamp(18px, 6vw, 42px) 46px;
    text-align: left;
  }

  .timeline-column {
    border-top-width: 9px;
  }

  .timeline-scroll {
    width: min(100%, 650px);
    margin: 0 auto;
    padding: 26px clamp(18px, 6vw, 42px) 44px;
  }

  .chapter-footer {
    grid-template-columns: 1fr;
  }

  .chapter-footer a:last-child {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .header-inner {
    grid-template-columns: 92px minmax(0, 1fr) 42px;
    gap: 10px;
    min-height: 82px;
  }

  .header-copy {
    padding-left: 10px;
  }

  .series-title {
    display: none;
  }

  .header-copy h1 {
    font-size: clamp(1.12rem, 7vw, 1.85rem);
  }

  .chapter-number {
    margin-top: 5px !important;
    font-size: .48rem;
    letter-spacing: .1em;
  }

  .menu-button {
    width: 42px;
    min-height: 42px;
  }

  .story-heading h2 {
    font-size: clamp(2.55rem, 15vw, 4.5rem);
  }

  .dialogue-card {
    padding: 20px 18px 14px;
  }

  .nav-dialog {
    width: 100%;
  }

  .dialog-header {
    padding: 17px 18px;
  }

  .story-navigation {
    padding: 12px;
  }
}

/* A phone held sideways regains the parallel story/timeline presentation. */

@media (orientation: landscape) and (min-width: 640px) and (max-width: 960px) and (max-height: 600px) and (pointer: coarse) {
  .header-inner {
    grid-template-columns: 118px minmax(0, 1fr) auto;
    min-height: 68px;
  }

  .header-copy h1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
  }

  .page-shell {
    width: calc(100% - 18px);
    margin: 9px auto 24px;
  }

  .reader-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(245px, .95fr);
    gap: 9px;
  }

  .story-column,
  .timeline-column {
    border-top-width: 4px;
    border-radius: 7px 7px 3px 3px;
    box-shadow: var(--shadow);
  }

  .story-column {
    padding: 25px 28px 36px;
    font-size: .9rem;
    text-align: justify;
  }

  .timeline-scroll {
    width: auto;
    padding: 12px;
  }

  .timeline-event p {
    font-size: .7rem;
    line-height: 1.52;
  }

  .story-float-right,
  .quoteimg {
    float: right;
    width: min(38%, 240px);
    margin: .2rem 0 1rem 15px;
  }

  .story-float-left,
  .flowimg {
    float: left;
    width: min(38%, 240px);
    margin: .2rem 15px 1rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .chapter-footer,
  .credits-trigger,
  dialog {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .reader-grid {
    grid-template-columns: 2fr 1fr;
    gap: 16px;
  }

  .story-column,
  .timeline-column {
    border: 0;
    box-shadow: none;
  }
}
