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

:root {
  --bg: #1c1814;
  --bg-raised: #27211b;
  --ink: #efe8da;
  --ink-soft: #d6cebf;
  --ink-faint: #a39a89;
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, 0.35);
  --rule: rgba(201, 164, 92, 0.28);

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "EB Garamond", "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; }

.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; }
