/* Dick Gordon Tribute theme styles. Colors and type are set as tokens on :root.
   Layout: a quiet night-sky tribute lit in mission-control readout green, carried over from the original dickgordon.com. The hero is the moon seen from Yankee Clipper's orbit; mission pages read like a flight data file, with tabbed chapters and photo plates marked with reseau crosses. One committed dark look. */
:root {
  --sky: #0b1018;          /* page, blue-black with a Navy bias */
  --sky-2: #121a26;        /* raised panels */
  --sky-3: #1a2433;        /* photo plate ground */
  --line: rgba(214, 222, 232, 0.12);
  --star: #e7ebf0;         /* main text, cool white */
  --dust: #9aa6b5;         /* secondary text */
  --brass: #36fa45;        /* halfway between the old site's #00FF00 and the softer #6cf58a; the one accent */
  --brass-dim: rgba(54, 250, 69, 0.2);
  --on-brass: #031203;

  --f-display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1180px;
  --read: 64ch;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--sky);
  color: var(--star);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--sky); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.02; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.label { font-family: var(--f-data); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dust); }
.brass { color: var(--brass); }

/* Site header */
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.mark strong { font-family: var(--f-display); font-size: 26px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.mark span { font-family: var(--f-data); font-size: 12px; color: var(--dust); }
.menu { display: flex; flex-wrap: wrap; gap: 4px 22px; font-family: var(--f-data); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.menu a { text-decoration: none; color: var(--dust); padding-block: 4px; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current] { color: var(--star); border-bottom-color: var(--brass); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The Apollo XII Moon photo sits where the drawn Moon would; theme.js sizes it to the orbit line. Before the script runs it rests low on the right. */
.hero-moon { position: absolute; right: -30vmax; bottom: -55vmax; width: 110vmax; height: 110vmax; max-width: none; border-radius: 50%; object-fit: cover; filter: grayscale(1) brightness(0.82) contrast(1.08); -webkit-mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%); mix-blend-mode: lighten; pointer-events: none; }
/* lighten: the photo's black sky around the Moon takes the page's own night color instead of showing as a black ring. */
@media (max-width: 699px) { .hero-moon { filter: grayscale(1) brightness(0.55) contrast(1.08); } }
.hero-credit { position: absolute; right: 16px; bottom: 10px; text-shadow: 0 1px 3px #000; margin: 0; font-family: var(--f-data); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); opacity: 0.8; }
.hero .wrap { position: relative; padding-block: clamp(24px, 3vw, 40px) clamp(64px, 11vw, 140px); }
.hero .label { margin-bottom: 18px; }
.hero h1 { font-size: clamp(56px, 11vw, 148px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; }
/* One line each: RICHARD F. / “DICK” / GORDON, JR. The breaks are <br>s, so they hold even before this file loads. */
.hero h1 span { white-space: nowrap; }
.hero .dates { font-family: var(--f-data); font-size: clamp(15px, 1.8vw, 19px); margin-top: 18px; color: var(--brass); letter-spacing: 0.08em; }
.hero .lede { font-size: clamp(18px, 2vw, 22px); max-width: 34ch; margin-top: 26px; color: var(--star); }
.hero .lede em { color: var(--dust); }

/* Sections */
section.band { padding-block: clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.band-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; }
.band-head h2 { font-size: clamp(36px, 5vw, 60px); text-transform: uppercase; }
.band-head p { color: var(--dust); max-width: 46ch; }

/* Mission cards */
.missions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.mission { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--sky-2); text-decoration: none; transition: border-color .2s; }
.mission:hover { border-color: var(--brass); }
.mission .body { display: grid; gap: 16px; padding: 24px; align-content: start; }
.mission h3 { font-size: 44px; text-transform: uppercase; }
.mission p { color: var(--dust); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 14px; gap: 12px; }
.stats div { display: grid; gap: 2px; min-width: 0; }
.stats b { font-family: var(--f-data); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--star); }
.stats span { font-family: var(--f-data); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dust); }
.go { font-family: var(--f-data); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }

/* Photo plates: placeholders for the archive prints */
.plate {
  position: relative; margin: 0; background-color: var(--sky-3); aspect-ratio: 4 / 5; max-width: 100%;
  background-image:
    radial-gradient(120% 90% at 30% 20%, rgba(231,235,240,0.07), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64'><path d='M32 27v10M27 32h10' stroke='%23e7ebf0' stroke-opacity='.28' stroke-width='1'/></svg>");
  background-size: auto, 64px 64px;
  background-position: center, 0 0;
}
.plate.wide { aspect-ratio: 16 / 9; }
.plate.sq { aspect-ratio: 1; }
.plate figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: linear-gradient(to top, rgba(11,16,24,0.92), rgba(11,16,24,0)); display: grid; gap: 2px; }
.plate figcaption b { font-family: var(--f-body); font-weight: 600; font-size: 15px; line-height: 1.3; }
.plate figcaption span { font-family: var(--f-data); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); }
.plate .sig { position: absolute; top: 12px; right: 12px; font-family: var(--f-data); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); border: 1px solid var(--brass-dim); padding: 4px 6px; border-radius: 2px; background: rgba(11,16,24,0.6); }

/* Quote */
.quote { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 900px; }
.quote blockquote { margin: 0; font-family: var(--f-body); font-style: italic; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; text-wrap: balance; }
.quote blockquote::before { content: "\201C"; color: var(--brass); }
.quote blockquote::after { content: "\201D"; color: var(--brass); }
.quote cite { font-style: normal; }

/* Photo strip */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.timeline li { list-style: none; padding: 18px 16px 4px 0; position: relative; display: grid; gap: 6px; min-width: 0; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); border: 2px solid var(--brass); }
.timeline b { font-family: var(--f-data); font-weight: 500; font-size: 15px; color: var(--brass); font-variant-numeric: tabular-nums; }
.timeline span { font-size: 15px; line-height: 1.45; }
.timeline ol { margin: 0; padding: 0; display: contents; }

/* Remembrance */
.remember { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px; align-items: start; }
.remember p { color: var(--dust); max-width: var(--read); }
.remember p + p { margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font: 500 13px/1 var(--f-data); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 14px 18px; border-radius: 3px; background: var(--brass); color: var(--on-brass); border: 0; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--star); border: 1px solid var(--line); }
.memory { border: 1px solid var(--line); border-radius: 6px; padding: 22px; background: var(--sky-2); display: grid; gap: 10px; }
.memory .label { color: var(--brass); }
.memory p { color: var(--star); font-style: italic; }

/* Footer */
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 32px 48px; font-family: var(--f-data); font-size: 12px; color: var(--dust); letter-spacing: 0.04em; }

/* ---------- Mission page ---------- */
.m-hero { border-bottom: 1px solid var(--line); }
.m-hero .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; padding-block: clamp(40px, 7vw, 80px); align-items: end; }
.crumb { font-family: var(--f-data); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dust); margin-bottom: 18px; }
.crumb a { text-decoration: none; }
.m-hero h1 { font-size: clamp(64px, 12vw, 160px); font-weight: 800; text-transform: uppercase; }
.m-hero .sub { margin-top: 18px; font-size: 20px; max-width: 32ch; }
.fdf { border: 1px solid var(--line); border-radius: 6px; background: var(--sky-2); overflow: hidden; }
.fdf header { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.fdf dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.fdf dt, .fdf dd { margin: 0; padding: 10px 18px; border-bottom: 1px solid var(--line); font-family: var(--f-data); font-size: 14px; font-variant-numeric: tabular-nums; }
.fdf dt { color: var(--dust); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; }
.fdf dd { text-align: right; }
.fdf dl > :nth-last-child(-n+2) { border-bottom: 0; }

.tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--sky); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 0; }
.tabs a { flex: 0 0 auto; text-decoration: none; font-family: var(--f-data); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); padding: 14px 12px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--star); border-bottom-color: var(--brass); }
.tabs a b { font-weight: 500; color: var(--brass); margin-right: 6px; }

.chapter { padding-block: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.chapter .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: start; }
.chapter.flip .text { order: 2; }
.chapter .text { display: grid; gap: 16px; min-width: 0; }
.chapter .text h2 { font-size: clamp(34px, 4.4vw, 54px); text-transform: uppercase; }
.chapter .text p { max-width: var(--read); }
.chapter .met { font-family: var(--f-data); font-size: 12px; letter-spacing: 0.1em; color: var(--brass); text-transform: uppercase; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aside { border-left: 2px solid var(--brass); padding-left: 16px; color: var(--dust); font-style: italic; max-width: var(--read); }
.aside b { font-style: normal; color: var(--star); font-weight: 600; }
.reading { border-top: 1px solid var(--line); }
.reading .wrap { padding-block: 32px; }
.reading ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.reading li { font-size: 18px; }
.reading li .label { margin-left: 8px; }
.next .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 40px; }
.next a { text-decoration: none; display: grid; gap: 4px; }
.next a.to-right { text-align: right; }
.next a strong { font-family: var(--f-display); font-size: 32px; text-transform: uppercase; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pair { grid-template-columns: 1fr; }
  .chapter.flip .text { order: 0; }
}

/* ---------- WordPress additions ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--brass); color: var(--on-brass); border-radius: 3px; font-family: var(--f-data); font-size: 13px; text-decoration: none; }
.admin-bar .tabs { top: 32px; }
@media (max-width: 782px) { .admin-bar .tabs { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tabs { top: 0; } }
.menu ul, .foot-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-menu a { color: var(--dust); }
.site-foot a { color: var(--dust); }
.site-foot a:hover { color: var(--star); }

/* Inner page title band */
.p-hero { border-bottom: 1px solid var(--line); }
.p-hero .wrap { padding-block: clamp(40px, 7vw, 80px) clamp(32px, 5vw, 56px); }
.p-hero h1 { font-size: clamp(52px, 9vw, 120px); font-weight: 800; text-transform: uppercase; }
.p-hero .sub { margin-top: 18px; font-size: clamp(18px, 2vw, 21px); max-width: 46ch; color: var(--dust); }
.h-band { font-size: clamp(36px, 5vw, 60px); text-transform: uppercase; margin-bottom: 18px; }
.band-head + .grid, .band-head + .strip { margin-top: 0; }
.strip + div, .timeline + div, .missions + p { margin-top: 8px; }

/* Editor content */
.entry { max-width: var(--read); }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: clamp(30px, 3.6vw, 42px); text-transform: uppercase; margin-top: 1.6em; }
.entry h3 { font-size: 26px; text-transform: uppercase; margin-top: 1.4em; }
.entry a { color: var(--brass); }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li + li { margin-top: 0.4em; }
.entry blockquote { margin-left: 0; border-left: 2px solid var(--brass); padding-left: 16px; font-style: italic; color: var(--dust); }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption, .wp-element-caption { font-family: var(--f-data); font-size: 12px; letter-spacing: 0.06em; color: var(--dust); margin-top: 8px; }
.entry img { max-width: 100%; height: auto; }
.entry .wp-block-embed, .entry .wp-block-video { max-width: 100%; }
.entry .wp-block-gallery { max-width: none; }
.entry-band .entry { max-width: none; }
.entry-band .entry > p, .entry-band .entry > h2, .entry-band .entry > h3, .entry-band .entry > ul { max-width: var(--read); }

/* Photo plates with a real image: show the whole print, signatures included */
.plate.has-img { aspect-ratio: auto; background: var(--sky-3); }
.plate.has-img > a, .plate.has-img > img { display: block; }
.plate.has-img img { display: block; width: 100%; height: auto; }
.plate.has-img figcaption { position: static; background: none; padding: 10px 2px 0; }
.plate.has-img .lb { cursor: zoom-in; }
.mission .plate.has-img { max-height: 340px; overflow: hidden; }
.mission .plate.has-img img { height: 100%; max-height: 340px; object-fit: cover; object-position: center 30%; }
.mission .plate.has-img figcaption { position: absolute; padding: 12px 14px; background: linear-gradient(to top, rgba(11,16,24,0.92), rgba(11,16,24,0)); }
.plate .todo { color: var(--brass) !important; text-transform: none !important; letter-spacing: 0 !important; }

/* Whole mission card is one link */
.mission { position: relative; }
.mission h3 a { text-decoration: none; }
.mission h3 a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Mission chapters */
.figs { display: grid; gap: 12px; min-width: 0; }
.chapter.text-only .wrap { grid-template-columns: minmax(0, 1fr); }

/* Biography */
.bio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 900px) { .bio { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .bio-side { position: sticky; top: 24px; } }
.bio-side { display: grid; gap: 16px; }
.bio .entry h2:first-child { margin-top: 0; }

/* Gallery */
.album { scroll-margin-top: 60px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; align-items: start; }
.plate { scroll-margin-top: 80px; }

/* Interview */
.qa { margin: 0; display: grid; gap: 0; max-width: 820px; }
.qa-row { padding-block: 26px; border-bottom: 1px solid var(--line); }
.qa-row:first-child { padding-top: 0; }
.qa dt { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.12; text-transform: uppercase; }
.qa dd { margin: 12px 0 0; display: grid; gap: 6px; }
.credit { margin-top: 28px; }

/* Remembrance and forms */
.memory-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.memory-text p + p { margin-top: 10px; }
.memory-text p { color: var(--star); font-style: italic; }
.memory.empty p:not(.label) { color: var(--dust); font-style: normal; }
.memory .go { margin-top: 4px; text-decoration: none; }
.remember .entry p { color: var(--star); }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-family: var(--f-data); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dust); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--star); background: var(--sky-2); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.comment-form .form-submit, .contact-form .btn { margin-top: 20px; }
.comment-form .btn, .contact-form .btn { margin-top: 0; font-size: 13px; }
.comment-form-cookies-consent { display: none; }
.comment-awaiting-moderation { display: block; font-family: var(--f-data); font-size: 12px; color: var(--brass); margin-bottom: 8px; }
.form-status { font-family: var(--f-data); font-size: 13px; padding: 12px 14px; border-radius: 3px; border: 1px solid var(--brass-dim); color: var(--brass); }
.form-status.error { border-color: rgba(255, 138, 122, 0.4); color: #ff8a7a; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nav-links { display: flex; gap: 16px; margin-top: 24px; font-family: var(--f-data); font-size: 13px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 12, 0.94); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: min(1100px, 100%); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; height: auto; }
.lightbox figcaption { font-family: var(--f-data); font-size: 13px; letter-spacing: 0.04em; color: var(--star); text-align: center; }
.lightbox figcaption .lb-desc { display: block; max-width: 68ch; margin: 8px auto 0; font-family: var(--f-body); font-size: 15px; line-height: 1.45; letter-spacing: 0; color: var(--dust); text-align: left; }
.lightbox figure:has(.lb-desc) img { max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px); }
.lightbox { overflow-y: auto; }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--sky-2); color: var(--star); font-size: 26px; line-height: 1; cursor: pointer; }
body.lb-open { overflow: hidden; }
.memory .label { font-style: normal; }
.memory .who { color: var(--dust); }
p.todo { font-family: var(--f-data); font-size: 13px; line-height: 1.6; color: var(--brass); }
.remember-photo .plate { max-width: 820px; }
