/* rjohnwalker.com — one stylesheet for the whole site */

:root {
  /* Dusk (John, 22 Nov 2026): deep blue page, light ink, burnished brass. --gold is the accent's old name. */
  --bg: #0b1627;
  --bg-raised: #122036;
  --ink: #eef3f8;
  --ink-soft: #d3deea;
  --ink-faint: #bccbdb;
  --gold: #b8985a;
  --gold-soft: rgba(184, 152, 90, 0.45);
  --rule: rgba(238, 243, 248, 0.22);
  --accent-hover: #d1b57c;
  --night: #0f1b2e;
  --shadow: rgba(5, 12, 24, 0.45);
  --halo: rgba(200, 170, 104, 0.26);
  --halo-soft: rgba(200, 170, 104, 0.07);

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Source Serif 4", "Iowan Old Style", Georgia, serif;

  --measure: 36rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration-color: var(--gold-soft); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--gold); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem var(--gutter);
  max-width: 72rem;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav { display: flex; gap: 1.75rem; }

.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold); }

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }
h3 { font-size: 1.6rem; }

.rule {
  width: 6rem;
  height: 1px;
  background: var(--gold-soft);
  border: 0;
  margin: 2rem 0;
}

.lede {
  font-size: 1.2em;
  color: var(--ink);
}

p { margin: 0 0 1.1rem; color: var(--ink-soft); }

blockquote {
  margin: 2.5rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- layout ---------- */

.section {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  max-width: 72rem;
  margin: 0 auto;
}

.section + .section { border-top: 1px solid var(--rule); }

.prose { max-width: var(--measure); }

.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .rule { margin-left: auto; margin-right: auto; }

/* book hero: cover beside the pitch */
.book-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 52rem) {
  .book-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.cover {
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.6), 0 0 0 1px var(--rule);
}

.status {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- series list ---------- */

.series {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (min-width: 44rem) {
  .series { grid-template-columns: repeat(3, 1fr); }
}

.series li {
  background: var(--bg);
  padding: 1.75rem 1.5rem;
}

.series .num {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.series .title {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0.4rem 0 0.3rem;
}

.series .when { font-size: 0.95rem; color: var(--ink-faint); }
.series li.current .when { color: var(--gold); }

/* ---------- sign-up ---------- */

.signup {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.signup form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.signup input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--gold-soft);
  border-radius: 0;
}

.signup input[type="email"]::placeholder { color: var(--ink-faint); }

.button {
  padding: 0.85rem 1.6rem;
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}

.button:hover { background: #d8b674; }

.button.ghost { color: var(--gold); background: transparent; }
.button.ghost:hover { color: var(--bg); background: var(--gold); }

.fine { font-size: 0.85rem; color: var(--ink-faint); margin-top: 1rem; }

/* ---------- about ---------- */

.portrait {
  width: 13rem;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.9);
  margin: 0 0 2rem;
  border: 1px solid var(--rule);
}

.portrait-placeholder {
  width: 12rem;
  aspect-ratio: 4 / 5;
  margin: 0 0 2rem;
  border: 1px dashed var(--gold-soft);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem var(--gutter) 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.site-footer p { color: var(--ink-faint); margin: 0 0 0.5rem; }
.site-footer a { color: var(--ink-soft); }

/* ---------- eye candy: gold dust and pull quotes ---------- */

body.dust {
  background-color: var(--bg);
  background-image: url("images/dust.svg");
  background-repeat: no-repeat;
  background-position: center 140px;
  background-size: 1600px auto;
}

@media (min-width: 100rem) {
  body.dust { background-size: 100% auto; }
}

.pull {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0;
  border: 0;
  text-align: center;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
  line-height: 1.25;
}

.pull::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 0 auto 2rem;
  background: var(--gold);
}

.pull cite { margin-top: 1.5rem; }

/* The Brothers page: dust stays on the cover side, desktop only */
@media (min-width: 52rem) {
  body.dust-left {
    background-color: var(--bg);
    background-image: url("images/dust-left.svg");
    background-repeat: no-repeat;
    background-position: center 60px;
    background-size: 1600px auto;
  }
}

/* ---------- hero polish: halo, coming-soon, entrance ---------- */

.cover-wrap { position: relative; }

.cover-wrap::before {
  content: "";
  position: absolute;
  inset: -12% -18%;
  background: radial-gradient(closest-side, rgba(201, 164, 92, 0.22), rgba(201, 164, 92, 0.06) 60%, transparent);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.cover-wrap .cover { position: relative; z-index: 1; }

.coming {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 2.25rem;
}

.coming-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.coming-label::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
}

@media (prefers-reduced-motion: no-preference) {
  .book-hero > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .book-hero > :nth-child(2) { animation-delay: 0.12s; }
  .coming { animation: rise 0.8s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* phones: the hero stacks, so keep the dust out from behind the text */
@media (max-width: 52rem) {
  body.dust { background-image: none; }
}

/* "Coming 2027": heavier, brighter, lifted off the dust */
.coming-label {
  font-weight: 700;
  color: #dcb96f;
  text-shadow: 0 0 10px var(--bg), 0 0 22px var(--bg), 0 0 36px var(--bg);
}

.coming-label::before { height: 2px; background: #dcb96f; }
.coming-label { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }

/* ---------- art on The Brothers page ---------- */

figure { margin: 0; }

.scene figcaption,
.panorama figcaption {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

.panorama {
  position: relative;
  margin: 0 auto;
  max-width: 105rem;
  padding: 0 0 clamp(3rem, 6vw, 5rem);
}

.panorama img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
                      linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
              linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-composite: intersect;
}

/* the Selah: a smaller framed plate, not a full-width band */
.panorama { max-width: 40rem; padding-left: var(--gutter); padding-right: var(--gutter); }
.panorama.round { max-width: 46rem; padding-bottom: 0; }
.panorama.round img { -webkit-mask-image: none; mask-image: none; box-shadow: 0 2rem 4rem rgba(0,0,0,0.5), 0 0 0 1px var(--rule); }

.panorama figcaption .line {
  display: block;
  max-width: 30rem;
  margin: 0.9rem auto 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.panorama figcaption .who { display: block; margin-top: 0.6rem; }

/* quote that belongs to the image above it: no divider, tucked up close */
.section.attached { border-top: 0; padding-top: 0; }
.section.attached .pull::before { display: none; }
.section.attached + .panorama {
  border-top: 1px solid var(--rule);
  padding-top: clamp(3rem, 6vw, 5rem);
  max-width: 72rem;
}
.section.attached + .panorama img { max-width: 36rem; margin: 0 auto; }


/* ---------- excerpt (30 Sep 2026) ---------- */

.excerpt-title { font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.8rem); }

.excerpt { margin-left: auto; margin-right: auto; }

.annex {
  margin: 2rem 0;
  padding: 1.5rem clamp(1rem, 3vw, 1.75rem);
  background: var(--bg-raised);
  border-left: 2px solid var(--gold-soft);
}

.annex-entry { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.75rem; }
.annex-entry + .annex-entry { margin-top: 1.1rem; }
.annex-entry p { margin: 0; font-size: 0.95em; color: var(--ink-soft); }
.annex-num {
  font-family: var(--display);
  color: var(--gold);
  font-size: 1.05em;
  line-height: 1.65;
}

.excerpt .closing { color: var(--ink); font-size: 1.1em; }
.excerpt-source {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-align: center;
}

.new-note {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  text-decoration: none;
}
.new-note:hover { border-color: var(--gold); }
.new-badge {
  flex: none;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.25rem 0.6rem;
}
.new-text { display: flex; flex-direction: column; }
.new-title { font-family: var(--display); font-size: 1.35rem; color: var(--ink); line-height: 1.25; }
.new-sub { color: var(--ink-faint); font-size: 0.95rem; }

@media (max-width: 30rem) {
  .annex-entry { grid-template-columns: 1fr; gap: 0.2rem; }
  .new-note { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

.excerpt .voice {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--rule);
}
.excerpt .voice p { color: var(--ink); font-style: italic; }
.excerpt .recorder {
  margin: 1.5rem 0;
  font-family: var(--display);
  font-size: 1.35em;
  color: var(--ink);
}
.excerpt .rule { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem auto; width: 40%; }

.excerpt-figure { margin: 2rem auto; max-width: 22rem; text-align: center; }
.excerpt-figure img { width: 100%; opacity: 0.85; border: 1px solid var(--rule); }
.excerpt-figure figcaption { margin-top: 0.6rem; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--ink-faint); font-style: italic; }


/* ---------- press kit (30 Sep 2026) ---------- */
.press h2 { margin-top: 2.75rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.press h2:first-child { margin-top: 0; }
.press-note { font-size: 0.9rem; color: var(--ink-faint); margin-bottom: 0.8rem; }
.press-copy { background: var(--bg-raised); border-left: 2px solid var(--gold-soft); padding: 1.1rem 1.4rem; margin: 0 0 1rem; font-style: normal; font-size: 1em; color: var(--ink-soft); }
.press-copy p:last-child { margin-bottom: 0; }
.press-facts { display: grid; grid-template-columns: 8rem 1fr; gap: 0.5rem 1rem; margin: 0 0 1.5rem; }
.press-facts dt { color: var(--gold); font-family: var(--display); font-size: 1.05rem; }
.press-facts dd { margin: 0; color: var(--ink-soft); }
.press-downloads { list-style: none; padding: 0; margin: 0 0 1rem; }
.press-downloads li { padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.press-downloads span { display: block; font-size: 0.85rem; color: var(--ink-faint); }
@media (max-width: 30rem) { .press-facts { grid-template-columns: 1fr; gap: 0.1rem; } .press-facts dd { margin-bottom: 0.6rem; } }
.press { margin-left: auto; margin-right: auto; }

.series-quote { max-width: 36rem; margin: 1.5rem auto 0; text-align: center; border: 0; padding: 0; font-style: italic; }
.series-quote cite { display: block; margin-top: 0.6rem; font-style: normal; }

.lede-cite { margin-top: -0.4rem; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.excerpt-figure figcaption.gold-caption { font-family: var(--display); font-size: 1.3rem; letter-spacing: 0; color: var(--gold); font-style: italic; margin-top: 0.8rem; }

/* the orchard scene on the series page: 20% smaller than the Round plate */
.panorama.round.orchard { max-width: 37rem; }

/* ---------- home refresh (30 Oct 2026): first lines, the Selah band, the shelf ---------- */

.first-lines .opening {
  max-width: 46rem;
  margin: 0 auto 2.25rem;
  padding: 0;
  border: 0;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.15rem);
  line-height: 1.45;
}
.first-lines .opening cite { margin-top: 1.25rem; }
.first-lines .opening em { font-style: normal; }
@media (max-width: 44rem) {
  .band img { height: 30rem; object-position: 62% 30%; }
  .band-quote { bottom: 6%; }
}

.band {
  position: relative;
  max-width: 110rem;
  margin: 0 auto;
  overflow: hidden;
}
.band img {
  width: 100%;
  height: clamp(24rem, 44vw, 40rem);
  object-fit: cover;
  object-position: 60% center;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
.band-quote {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  width: min(44rem, calc(100% - 2 * var(--gutter)));
  text-shadow: 0 2px 1.2rem rgba(0, 0, 0, 0.9), 0 0 2.5rem rgba(0, 0, 0, 0.6);
}
.band-quote cite { color: var(--ink-soft); }
.band-quote em { font-style: normal; }

.shelf {
  list-style: none;
  padding: 0;
  margin: 2.5rem auto 2rem;
  max-width: 52rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 3vw, 2.25rem);
  text-align: center;
}
.shelf a { text-decoration: none; display: block; }
.shelf img {
  width: 100%;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.55), 0 0 0 1px var(--rule);
  transition: transform 0.3s ease;
}
.shelf a:hover img { transform: translateY(-4px); }
.shelf .num {
  display: block;
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.shelf .title {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--display);
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.4rem);
  line-height: 1.2;
  color: var(--ink);
}
.shelf .when { display: block; margin-top: 0.3rem; font-size: 0.85rem; color: var(--ink-faint); }
.shelf .when.current { color: var(--gold); }

/* the Eben at sunset, through the old man's window (30 Oct 2026) */
.window { margin: 0 auto 2.5rem; max-width: 60rem; }
.window img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 90%, transparent);
  mask-composite: intersect;
}
.excerpt .window { margin: 2.5rem -2rem; max-width: none; }
@media (max-width: 44rem) { .excerpt .window { margin: 2rem 0; } }
.nova-band img { object-position: 45% 42%; }
.band-quote cite a { color: inherit; text-decoration-color: var(--gold-soft); }
@media (max-width: 44rem) { .nova-band img { object-position: 40% 40%; } }

/* the Adon box, at "Our story begins in my family's box" (30 Oct 2026) */
.box-view { margin: 2.5rem auto; max-width: 34rem; text-align: center; }
.box-view img {
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.box-view figcaption { margin-top: 0.6rem; font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-faint); }


/* ---------- Daylight (John, 7 Nov 2026): "the colors are drab, it feels like a horror story site" ---------- */
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.button.ghost:hover { color: var(--bg); background: var(--gold); }
.coming-label { color: var(--gold); text-shadow: none; }
.coming-label::before { background: var(--gold); }
.cover-wrap::before { background: radial-gradient(closest-side, var(--halo), var(--halo-soft) 60%, transparent); }
.cover, .shelf img, .panorama.round img { box-shadow: 0 1.5rem 3rem var(--shadow), 0 0 0 1px var(--rule); }
.excerpt-figure img { opacity: 1; }

/* no gold dust on a pale page */
body.dust, body.dust-left { background-image: none; }

/* the Nova band: the picture sits on night blue, the quote in light type */
.band { background: var(--night); }
.band img { opacity: 0.85; -webkit-mask-image: none; mask-image: none; }
.band-quote { color: #f6f2ea; }
.band-quote cite { color: #e6e0d4; }
.band-quote::before { background: #f6f2ea; }

/* pictures get a clean frame instead of fading into the page */
.window img, .box-view img, .panorama img {
  -webkit-mask-image: none; mask-image: none;
  border-radius: 3px; box-shadow: 0 1.25rem 2.5rem var(--shadow);
}

.spines { margin: 2rem auto 1.25rem; max-width: 150px; }
.spines img { width: 100%; height: auto; display: block; }

/* night sky: the cover's black-blue, one faint glow, real stars */
html { background-color: #060b15; background-image: url('images/starfield-quiet.svg'), radial-gradient(ellipse 1100px 650px at 70% 0, rgba(52,85,124,0.28), transparent 70%), linear-gradient(to bottom, #0b1627 0, #070d19 900px, #05080f 2200px); background-repeat: repeat, no-repeat, no-repeat; background-size: 600px 600px, 100% 1300px, 100% 2200px; background-position: 0 0, center top, 0 0; }
body, body.dust, body.dust-left { background: transparent; }

/* bramble sprig between sections (ink on parchment) */
.section + .section { border-top: 0; }
.section + .section::before {
  content: ""; display: block; width: 170px; height: 58px;
  margin: calc(-1 * clamp(1.5rem, 4vw, 3rem)) auto clamp(2rem, 5vw, 3.5rem);
  background: url("images/sprig.png") center / contain no-repeat; opacity: 0.78; filter: invert(1) brightness(1.6);
}
.section.attached::before { display: none; }
.excerpt .rule, hr.rule { border: 0; width: 170px; height: 58px; margin: 2.5rem auto; background: url("images/sprig.png") center / contain no-repeat; opacity: 0.78; filter: invert(1) brightness(1.6); }

/* inside the Selah: a busy picture, shown large */
.panorama.town, .section.attached + .panorama.town { max-width: 72rem; }
.panorama.town img, .section.attached + .panorama.town img { max-width: none; }

/* the Gate chart: ink on the page, no fade */
.panorama.map img { -webkit-mask-image: none; mask-image: none; border-radius: 6px; box-shadow: 0 1.5rem 3rem var(--shadow); }

/* ---------- the navigator's chart (the-reach.html) ---------- */
.reach-intro { padding-bottom: 1.5rem; }
.navboard-wrap { position: relative; max-width: 110rem; margin: 0 auto 2rem; padding: 0 var(--gutter); }
.navboard { border-radius: 8px; overflow: hidden; box-shadow: 0 1.5rem 3rem var(--shadow); background: #08121e; }
.navboard svg { display: block; width: 100%; height: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.pan-hint { display: none; }
@media (max-width: 60rem) {
  .navboard { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .navboard svg { width: 1100px; max-width: none; }
  .pan-hint { display: block; text-align: center; font-size: 0.9rem; color: var(--ink-faint); margin: 0 0 0.5rem; }
}
.b-title { fill: #e1eef5; font-size: 26px; font-weight: 700; letter-spacing: 6px; }
.b-sub, .b-foot { fill: rgba(120,210,230,0.75); font-size: 12px; letter-spacing: 2px; }
.b-foot { fill: rgba(120,210,230,0.35); }
.b-sphere { fill: rgba(170,205,190,0.9); font-size: 11px; letter-spacing: 2px; }
.b-hull { fill: rgba(170,205,190,0.05); stroke: rgba(170,205,190,0.45); stroke-width: 1.1; stroke-dasharray: 4 6; }
.b-link line { stroke: rgba(120,210,230,0.75); stroke-width: 1.6; transition: stroke 0.25s, stroke-width 0.25s, opacity 0.25s; }
.b-link.lit line { stroke: #f0b05c; stroke-width: 2.6; filter: url(#glow); }
.has-selection .b-link:not(.lit) line { opacity: 0.35; }
/* Gate mouths as small Sheol mouths (John, 22 Nov 2026) */
.b-link .gate { fill: rgba(8,18,30,0.95); stroke: #f0b05c; stroke-width: 1.5; transition: fill 0.25s, opacity 0.25s; }
.b-link.lit .gate { fill: #f0b05c; filter: url(#glow); }
.has-selection .b-link:not(.lit) .gate { opacity: 0.35; }
.trade-on .b-link .gate { opacity: 0.3; }
.b-node { cursor: pointer; outline: none; }
.b-node .hit { fill: transparent; }
.b-node .orbit { fill: none; stroke: rgba(120,210,230,0.42); stroke-width: 1; }
.b-node .planet { fill: rgba(180,205,220,0.85); }
.b-node .home { fill: #e1eef5; }
.b-node .homering { fill: none; stroke: #78d2e6; stroke-width: 1.2; }
.b-node .star { fill: #ffe4b4; }
.b-node.dim .orbit { stroke: rgba(120,210,230,0.22); }
.b-node.dim .star, .b-node.dim .planet { fill: rgba(120,210,230,0.4); }
.b-name { fill: #e1eef5; font-size: 15px; font-weight: 700; letter-spacing: 2.5px; paint-order: stroke; stroke: #08121e; stroke-width: 5px; }
.b-name.big { font-size: 20px; }
.b-code { fill: rgba(120,210,230,0.85); font-size: 10.5px; letter-spacing: 1.5px; paint-order: stroke; stroke: #08121e; stroke-width: 4px; }
.b-name.gold, .b-code.gold { fill: #f0b05c; }
.b-node:hover .orbit, .b-node:focus-visible .orbit, .b-node.on .orbit { stroke: #f0b05c; }
.b-node.on .homering { stroke: #f0b05c; stroke-width: 2; }
.b-node.on .b-name { fill: #f0b05c; }
.b-node:focus-visible .hit { stroke: #f0b05c; stroke-width: 1.5; stroke-dasharray: 3 4; }
.has-selection .b-node:not(.on):not(.near) { opacity: 0.55; }
.b-node.junction .hub { fill: #f0b05c; filter: url(#glow); }
/* Sheol over Nod, with its docks (John, 22 Nov 2026) */
.b-node.junction .nod { fill: #1b2a3a; stroke: rgba(120,210,230,0.38); stroke-width: 1; }
.b-node.junction .nod-lit { fill: rgba(150,180,200,0.22); }
.b-node.junction .dock { fill: #f0b05c; filter: url(#glow); }
.b-node.junction .spoke { stroke: #f0b05c; stroke-width: 1.4; }
.b-node.junction .mouth { fill: rgba(8,18,30,0.9); stroke: #f0b05c; stroke-width: 2; filter: url(#glow); }
.b-node.junction.pulse .mouth { animation: mouthlight 0.9s ease-out both; }
@keyframes mouthlight { 0% { fill: rgba(8,18,30,0.9); } 35% { fill: #f0b05c; } 100% { fill: rgba(240,176,92,0.35); } }
.navpanel { position: absolute; top: 1rem; right: calc(var(--gutter) + 1rem); width: min(23rem, calc(100% - 2 * var(--gutter) - 2rem)); max-height: calc(100% - 2rem); overflow-y: auto;
  background: rgba(8,18,30,0.94); color: #e1eef5; border: 1px solid rgba(240,176,92,0.6); border-radius: 8px; padding: 1.1rem 1.25rem 1.2rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.5; box-shadow: 0 0 2rem rgba(240,176,92,0.18); }
.navpanel[hidden] { display: none; }
.navpanel h2 { font-family: inherit; font-size: 1.35rem; letter-spacing: 0.2em; margin: 0.1rem 0 0.15rem; color: #f0b05c; }
.np-kicker { margin: 0; font-size: 0.68rem; letter-spacing: 0.2em; color: rgba(120,210,230,0.75); }
.np-code { margin: 0 0 0.8rem; color: #78d2e6; letter-spacing: 0.1em; }
.np-dl { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.3rem 0.6rem; margin: 0 0 0.8rem; }
.np-dl dt { color: rgba(120,210,230,0.75); font-size: 0.7rem; letter-spacing: 0.15em; padding-top: 0.15rem; }
.np-dl dd { margin: 0; }
.np-note { margin: 0.4rem 0 0.6rem; color: #cfdde6; font-family: var(--body); font-size: 1rem; line-height: 1.5; }
.np-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0; font-size: 0.75rem; }
.np-table th { text-align: left; font-weight: 400; color: rgba(120,210,230,0.75); letter-spacing: 0.12em; font-size: 0.65rem; padding: 0.2rem 0.3rem; border-bottom: 1px solid rgba(120,210,230,0.3); }
.np-table td { padding: 0.4rem 0.3rem; border-bottom: 1px solid rgba(120,210,230,0.12); vertical-align: top; }
.np-table td span { display: block; color: rgba(120,210,230,0.7); font-size: 0.68rem; }
.np-table tr.held td { color: #f08a7a; }
.np-small { margin: 0.4rem 0 0; color: rgba(120,210,230,0.5); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; }
.navpanel-close { position: absolute; top: 0.4rem; right: 0.6rem; background: none; border: 0; color: #f0b05c; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }
@media (max-width: 60rem) {
  .navpanel { position: fixed; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; top: auto; width: auto; max-height: 60vh; z-index: 20; }
}
.navlegend { list-style: none; padding: 0; margin: 0 auto 1.5rem; text-align: left; display: inline-block; font-size: 1rem; }
.navlegend li { margin: 0.2rem 0; }
.navlegend .k { display: inline-block; min-width: 2.6rem; font-family: ui-monospace, Menlo, monospace; color: var(--ink-soft); }
.navlegend .k.gold { color: var(--gold); }

/* the duel's line, right under the Round */
.hero-art { min-width: 0; }
.pull.under-art { margin: 1.6rem auto 0; max-width: 26rem; text-align: center; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); }
.pull.under-art::before { display: none; }
.panorama.after-hero { padding-top: 0; }

/* the chart, filled in: small worlds and trade highlights */
.b-name.sm { font-size: 11px; letter-spacing: 1.5px; stroke-width: 4px; }
.b-code.sm { font-size: 8.5px; letter-spacing: 1px; }
.tradebar { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; align-items: center; margin: 0 auto 0.9rem; max-width: 60rem; }
.tradebar .tb-label { font-size: 0.95rem; color: var(--ink-soft); margin-right: 0.3rem; }
.tradebar .tb { font: inherit; font-size: 0.85rem; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid rgba(23,34,58,0.35); background: rgba(255,255,255,0.45); color: var(--ink); cursor: pointer; }
.tradebar .tb[aria-pressed="true"] { background: #17223a; color: #f0b05c; border-color: #17223a; }
.trade-on .b-node:not(.trade):not(.junction) { opacity: 0.22; }
.trade-on .b-link line { opacity: 0.3; }
.b-node.trade .orbit { stroke: #f0b05c; }
.b-node.trade .star { fill: #f0b05c; }
.b-node.trade .b-name { fill: #f0b05c; }

/* ---------- Quiet buttons, midnight navy (John, 22 Nov 2026) ----------
   He asked for "luxury old library"; tried leather spines, then chose the quiet version in midnight navy.
   One filled button per page, the rest brass outlines. A pressed chart button fills in solid brass. */
:root { --btn: #101d33; --btn-hover: #1a2c4a; --gilt: #dcc48a; --gilt-hi: #f1dfae; }
.button, .button.ghost, .tradebar .tb {
  color: var(--gilt);
  background: var(--btn);
  border: 1px solid rgba(184, 152, 90, 0.85);
  border-radius: 3px;
  box-shadow: none; text-shadow: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.button:hover { background: var(--btn-hover); color: var(--gilt-hi); border-color: var(--gilt); }
.button.ghost, .tradebar .tb { background: transparent; }
.button.ghost:hover, .tradebar .tb:hover { background: rgba(220, 196, 138, 0.10); color: var(--gilt-hi); border-color: var(--gilt); }
.tradebar { gap: 0.5rem; }
.tradebar .tb { border-color: rgba(184, 152, 90, 0.6); padding: 0.4rem 0.9rem; font-size: 0.95rem; letter-spacing: 0.06em; }
.tradebar .tb[aria-pressed="true"] { background: #c4a560; color: #2e1a0c; border-color: var(--gilt-hi); }

/* ---------- Easy to read and navigate (John, 22 Nov 2026) ----------
   Source Serif for reading text (his pick: "it seems to jump out at you more"); headings stay Cormorant.
   Reading text, labels, buttons, navigation and chart names all one step larger. */
body { font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem); line-height: 1.7; }
.eyebrow { font-size: 0.92rem; letter-spacing: 0.26em; }
.button { font-size: 0.95rem; letter-spacing: 0.18em; }
.fine, .lede-cite, .box-view figcaption, blockquote cite, .excerpt-source { font-size: 0.9rem; }
.wordmark { font-size: 1.6rem; }
.site-header { align-items: center; row-gap: 0.6rem; }
.site-nav { gap: 0.4rem 0.5rem; flex-wrap: wrap; }
.site-nav a { font-size: 1rem; letter-spacing: 0.16em; color: var(--ink); padding: 0.45rem 0.8rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--gilt-hi); border-bottom-color: rgba(184, 152, 90, 0.6); }
.site-nav a[aria-current="page"] { color: var(--gilt); border-bottom-color: var(--gold); }
.site-footer { font-size: 1rem; }
.site-footer a { color: var(--ink); }
@media (max-width: 34rem) { .site-nav a { font-size: 0.92rem; letter-spacing: 0.1em; padding: 0.4rem 0.55rem; } .wordmark { font-size: 1.45rem; } }
/* the chart: larger names and a larger panel */
.b-name { font-size: 17px; }
.b-name.big { font-size: 22px; }
.b-name.sm { font-size: 13.5px; }
.b-code { font-size: 12px; }
.b-code.sm { font-size: 10.5px; }
.b-sub, .b-foot { font-size: 13px; }
.b-sphere { font-size: 12.5px; }
.np-kicker, .np-small, .np-dl dt, .np-table td span { font-size: 0.8rem; }
.np-table { font-size: 0.9rem; }
.np-table th { font-size: 0.78rem; }
.np-note { font-size: 1.08rem; }
.navlegend { font-size: 1.08rem; }
.tradebar .tb { font-size: 1rem; }
.tradebar .tb-label { font-size: 1.05rem; }


/* a slow gold shadow passing over the title */
h1.weave {
  background-image: linear-gradient(100deg, #eef3f8 0%, #eef3f8 36%, #b8924a 44%, #e6c477 49%, #b8924a 54%, #eef3f8 62%, #eef3f8 100%);
  background-size: 320% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: weave 11s ease-in-out infinite;
}
@keyframes weave { 0% { background-position: 100% 0; } 55% { background-position: 0% 0; } 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { h1.weave { animation: none; background-position: 100% 0; } }
