:root {
  color-scheme: dark;
  --charcoal: #0e1d36;
  --paper: #f4ecda;
  --ink: #1a2230;
  --yellow: #e6c96e;
  --blue-ink: #142642;
  --typewriter: "Special Elite", "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--charcoal); color: var(--paper); font: 1.125rem/1.55 "Liberation Serif", "Times New Roman", serif; }
a { color: inherit; }
a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #477dcc; outline-offset: 4px; }
.masthead, main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.masthead { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 20px; border-bottom: 1px solid #7d5e22; }
.brand { font: 1.3rem var(--typewriter); color: var(--yellow); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; }
nav a { text-decoration-thickness: 1px; text-underline-offset: .25em; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(26px, 5vw, 70px); padding-block: clamp(30px, 7vw, 76px); }
.hero img { width: 100%; height: auto; border: 1px solid #b8923a; }
h1, h2, h3 { font-family: var(--typewriter); font-weight: 400; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(3.35rem, 8vw, 7.1rem); letter-spacing: -.045em; color: var(--yellow); }
h2 { font-size: clamp(1.9rem, 4.1vw, 3rem); }
h3 { font-size: 1.3rem; }
.intro { max-width: 36ch; font-size: 1.19rem; }
.handwriting { margin: 0 0 .55rem; font: italic 700 clamp(1.15rem, 2.4vw, 1.5rem)/1.2 "Liberation Serif", "Times New Roman", serif; color: var(--blue-ink); }
.hero .handwriting, .dark .handwriting { color: #d8b85a; }
.button { display: inline-block; padding: .9rem 1.4rem; border: 1px solid #b8923a; background: repeating-linear-gradient(90deg, #13233e 0 5px, #16243b 5px 6px, #13233e 6px 11px); color: #e6c96e; font: 1rem/1.3 var(--typewriter); text-decoration: none; }
.button:hover { border-color: var(--yellow); }
.paper, .dark { padding: clamp(20px, 5vw, 54px); margin-bottom: 24px; }
.paper { color-scheme: light; background: var(--paper); color: var(--ink); }
.dark { border: 1px solid #7d5e22; }
.paper p, .dark p { max-width: 68ch; }
.documents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.documents > * { border: 1px solid #b8923a; padding: 16px; }
.documents a { text-decoration: none; }
.documents a:hover strong { text-decoration: underline; }
.documents span { display: block; margin-top: 5px; font-size: .96rem; }
.reform-calculator { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #b8923a; }
.comparison-callout {
  display: block;
  margin-block: 1.35rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border-left: .35rem solid #ab292c;
  background: var(--blue-ink);
  color: var(--paper);
  text-decoration: none;
}
.comparison-callout strong { display: block; color: var(--yellow); font: 1.4rem/1.25 var(--typewriter); }
.comparison-callout span { display: block; margin-top: .45rem; }
.comparison-callout:hover strong { text-decoration: underline; }
.comparison-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: .85rem 0 0; }
.comparison-pair > div { padding: .9rem 1rem; border: 1px solid #b8923a; background: #fbf7f0; }
.comparison-pair dt { color: var(--blue-ink); font-weight: 700; }
.comparison-pair dd { margin: .4rem 0 0; }
@media (max-width: 650px) { .comparison-pair { grid-template-columns: 1fr; } }
.record-star {
  display: inline-block;
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: .35rem;
  vertical-align: -.32rem;
  transform: rotate(-7deg);
}
.record-star::before, .record-star::after, .record-star > span {
  position: absolute;
  top: 46%;
  left: 1%;
  width: 98%;
  height: .19rem;
  border-radius: 75% 30% 50% 35%;
  background: #d74842;
  content: "";
}
.record-star::before { transform: rotate(8deg); }
.record-star::after { transform: rotate(68deg) scaleX(.95); }
.record-star > span { transform: rotate(-57deg) scaleX(.88); }
.survey-connection { padding: .75rem 1rem; border-left: .25rem solid #ab292c; background: #fbf7f0; }
.fields { display: grid; grid-template-columns: 1fr .7fr 1.4fr; gap: 14px; max-width: 680px; }
label { font-weight: 600; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 9px; font: inherit; background: #fbf7f0; color: var(--ink); border: 1px solid #b8923a; }
output { display: block; color: var(--blue-ink); margin-top: 12px; font-size: 2rem; font-weight: 700; overflow-wrap: anywhere; }
#byte-total { margin-top: 0; overflow-wrap: anywhere; }
.note { font-size: .9rem; }
.site-footer {
  margin-top: 1.5rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid #7d5e22;
  font-size: 1rem;
}
.site-footer p { max-width: 60ch; margin: 0; }
@media (max-width: 720px) {
  .hero, .documents { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .fields label:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.section-lead, .cocktail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}
.folder-art, .cocktail-layout img, .covers img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #b8923a;
}
.covers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  margin-top: 30px;
}
.covers figure { margin: 0; }
.covers img { aspect-ratio: 1; object-fit: contain; background: #101011; }
.covers figcaption { margin-top: 8px; color: var(--yellow); }
.cocktail-layout { margin-top: 24px; align-items: start; }
.recipes article { padding-block: 16px; border-top: 1px solid #b8923a; }
.recipes p { margin: 8px 0 0; }
@media (max-width: 640px) {
  .section-lead, .cocktail-layout { grid-template-columns: 1fr; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Vertical pinstripes on dark navy suiting. */
body {
  background-color: #0e1d36;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 19px,
    #a0aecb30 19px 20px,
    #080c1655 20px 21px,
    transparent 21px 24px
  );
}
.dark { background-color: #13233ee8; }

.masthead nav { flex: 1 1 100%; gap: .55rem 1.15rem; }
.masthead nav [aria-current="page"] { color: var(--yellow); }
.subpage { padding-top: clamp(20px, 5vw, 52px); }
.subpage h1 { color: var(--blue-ink); font-size: clamp(2.15rem, 6vw, 4.7rem); letter-spacing: -.025em; overflow-wrap: anywhere; }
.subpage h2 { margin-top: 1.4rem; }
.page-intro { font-style: italic; font-size: 1.25rem; }
.entries, .resource-list { max-width: 68ch; }
.entries dt { font-weight: 700; border-top: 1px solid #b8923a; padding-top: .7rem; }
.entries dd { margin: .25rem 0 .8rem; }
.resource-list li { margin-bottom: .75rem; }
.subpage .covers figcaption { color: var(--blue-ink); }

.pdf-reader { margin: 1.5rem 0 1rem; }
.pdf-reader figcaption { font-weight: 700; margin-bottom: .6rem; }
.pdf-reader iframe, .pdf-page-previews, .evidence-reader {
  width: 100%;
  height: clamp(18rem, 68vh, 46rem);
  height: clamp(18rem, 68svh, 46rem);
  border: 1px solid #b8923a;
  background: #fbf7f0;
}
.pdf-reader iframe { display: block; }
.pdf-page-previews { display: none; }
.evidence-reader {
  overflow: auto;
  overscroll-behavior-y: contain;
}
.evidence-reader:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
.evidence-reader img { display: block; width: 100%; height: auto; }
.evidence-reader img + img { margin-top: .75rem; }
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .pdf-reader iframe { display: none; }
  .pdf-page-previews {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    overflow: auto;
    overscroll-behavior-y: contain;
  }
  .pdf-page-previews:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
  .pdf-page-previews img { display: block; flex: none; width: 100%; height: auto; }
}

.pdf-document { margin-block: 1rem; padding: .8rem 1rem; border: 1px solid #b8923a; }
.pdf-document summary { cursor: pointer; font-weight: 700; color: var(--blue-ink); }
.pdf-document > .button { margin-bottom: .4rem; }

.document-entry { margin-top: 1.7rem; padding-top: 1.15rem; border-top: 1px solid #b8923a; }
.subpage .document-heading, .pdf-reader figcaption {
  color: #254d85;
  font: 700 clamp(1.75rem, 4vw, 2.45rem)/1.05 "Caveat", cursive;
}
.subpage .document-entry .document-heading { margin: 0; }
.document-entry > p { margin: .5rem 0 .85rem; }
.document-entry .pdf-document { margin: 0; padding: 0; border: 0; }
.pdf-document summary.button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--yellow);
  list-style: none;
}
.pdf-document summary::-webkit-details-marker { display: none; }
.pdf-document summary.button::after { content: ""; width: .45em; height: .45em; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-.12em) rotate(45deg); }
.pdf-document[open] summary.button::after { transform: translateY(.12em) rotate(225deg); }
.pdf-document summary:focus-visible { outline: 3px solid #254d85; outline-offset: 3px; }
.pdf-close, .pdf-document[open] .pdf-open { display: none; }
.pdf-document[open] .pdf-close { display: inline; }

.document-actions {
  --preview-button-width: 10.75rem;
  display: grid;
  align-items: start;
  isolation: isolate;
}
.document-actions > * { grid-area: 1 / 1; }
.document-actions summary.button {
  width: var(--preview-button-width);
  min-height: 2.85rem;
  justify-content: space-between;
}
.pdf-download.button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-self: start;
  z-index: 1;
  min-height: 2.85rem;
  margin-left: calc(var(--preview-button-width) + .6rem);
  background: var(--yellow);
  color: var(--blue-ink);
  padding-inline: .85rem;
}
.pdf-download.button:hover { background: #f4ecda; border-color: var(--blue-ink); }
.download-icon {
  display: inline-block;
  width: .95em;
  text-align: center;
  border-bottom: 1px solid currentColor;
  font: 700 1.15em/.85 system-ui, sans-serif;
}
@media (max-width: 420px) {
  .document-actions { --preview-button-width: 8.4rem; }
  .document-actions .button { padding-inline: .6rem; font-size: .88rem; }
}
@media (max-width: 340px) {
  .document-actions > * { grid-area: auto; }
  .pdf-download.button { order: -1; margin: 0 0 .5rem; }
}

.meeting-video { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 1rem; border: 1px solid #b8923a; background: var(--blue-ink); }
.meeting-group { margin-block: .7rem; }
.meeting-group > summary { cursor: pointer; list-style: none; }
.meeting-group > summary::-webkit-details-marker { display: none; }
.meeting-group > summary::after { content: " ▾"; }
.meeting-group[open] > summary::after { content: " ▴"; }
.meeting-group-content { padding: .55rem 0 .2rem .8rem; border-left: 1px solid #b8923a; margin-top: .45rem; }
.meeting-group-content > .meeting-group > summary { color: var(--blue-ink); background: transparent; }
.meeting-group-content > .pdf-download { margin-left: 0; }

.public-comment-callout {
  margin-block: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  border-left: .3rem solid #b8923a;
  background: var(--blue-ink);
  color: var(--paper);
}
.public-comment-callout h2 {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(1.6rem, 4.2vw, 3rem);
}
.public-comment-callout p { margin: .75rem 0 0; }

.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 26px);
  margin-top: 1.5rem;
}
.cast-card {
  min-width: 0;
  border: 1px solid #b8923a;
  background: #fbf4e6;
}
.cast-portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--charcoal);
  border-bottom: 1px solid #b8923a;
}
.cast-portrait img {
  position: absolute;
  display: block;
  width: 309.68%;
  height: auto;
  left: var(--portrait-left, -2%);
  top: var(--portrait-top, -2%);
}
.cast-portrait .cast-photo {
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center 33%;
}
.cast-bowie { --portrait-left: -207.25%; --portrait-top: -119%; }
.cast-zevon { --portrait-top: -119%; }
.cast-mice { --portrait-left: -207.25%; }
.cast-mercedes { --portrait-left: -104.64%; --portrait-top: -119%; }
.cast-copy { padding: clamp(14px, 2vw, 22px); }
.subpage .cast-copy h2 {
  margin: 0;
  color: var(--blue-ink);
  font-size: clamp(1.4rem, 2.55vw, 2rem);
}
.cast-copy p, .cast-copy blockquote { margin: .7rem 0 0; }
.cast-copy blockquote { font-style: italic; }
.cast-slideshow { max-width: 680px; margin: 2.25rem auto 0; }
.cast-slideshow h2 { color: var(--blue-ink); font-size: clamp(1.55rem, 3.3vw, 2.45rem); }
.cast-slide { margin: .9rem 0; }
.cast-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--charcoal);
  border: 1px solid #b8923a;
}
.cast-slide figcaption { margin-top: .45rem; font-style: italic; }
.cast-slide-controls:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}
.cast-slide-controls button { cursor: pointer; }
.cast-slide-controls button:focus-visible { outline: 3px solid #477dcc; outline-offset: 4px; }
@media (max-width: 880px) {
  .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 565px) {
  .cast-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Narrative section PDF dropdowns */
.story-sections { margin: 1.5rem 0; }
.story-section {
  margin: 0 0 .9rem;
  border: 1px solid #25364b;
  border-radius: 3px;
}
.story-section > h2 {
  margin: 0;
  padding: .8rem 1rem;
  background: #15243a;
  color: #faf5e8;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  line-height: 1.35;
}
.story-pdf > summary {
  padding: .65rem 1rem;
  background: #f6edda;
  color: #15243a;
  cursor: pointer;
}
.story-pdf > summary:focus-visible { outline: 3px solid #a87100; outline-offset: -3px; }
.story-section-content { padding: .8rem 1rem 1rem; }
.story-section-content p { margin: 0 0 .9rem; }
.story-section-content p:last-child { margin-bottom: 0; }
.story-pdf-frame {
  display: block;
  width: 100%;
  height: min(70vh, 50rem);
  border: 1px solid #aab3bf;
}
@media (max-width: 700px) {
  .story-pdf-frame { display: none; }
}
