/* ═══════════════════════════════════════════════════════════════
   Jason Boog — shared stylesheet
   One stylesheet, every page.
═══════════════════════════════════════════════════════════════ */

:root {
  --paper:        #f4ecd8;
  --paper-soft:   #ebe2c8;
  --paper-deep:   #e3d8b8;
  --ink:          #2a2117;
  --ink-soft:     #6b5e4a;
  --ink-faint:    #a89a7e;
  --rule:         #c8bda0;
  --rule-soft:    #d9cfb4;
  --accent:       #a83432;
  --max-w:        940px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  padding: 0 1.5rem;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 0.5px; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
em, i { font-style: italic; }

.page { max-width: var(--max-w); margin: 0 auto; position: relative; }

/* ── Editorial label ──────────────────────────────────────── */
.kicker {
  display: inline-block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.kicker--ink   { color: var(--ink-soft); }
.kicker--faint { color: var(--ink-faint); }

/* ── Masthead ─────────────────────────────────────────────── */
.masthead {
  padding: 3.5rem 0 1.75rem;
  text-align: center;
}
.double-rule {
  border: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  height: 4px;
}
.double-rule--thin {
  border-top: 0.5px solid var(--ink);
  border-bottom: 0.5px solid var(--ink);
  height: 3px;
}
.masthead-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 9vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 1.75rem 0 0.5rem;
}
.masthead-title a { text-decoration: none; color: inherit; }
.masthead-deck {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 32em;
  margin: 0 auto 1.5rem;
}
.masthead-deck em, .masthead-deck i { font-style: italic; }
.masthead-deck a { color: var(--ink-soft); text-decoration-color: var(--rule); }
.masthead-deck a:hover { color: var(--accent); }
nav.masthead-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  padding-top: 1rem;
}
nav.masthead-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-decoration: none;
}
nav.masthead-nav a:hover { color: var(--accent); }
nav.masthead-nav a.is-current { color: var(--accent); }

/* ── The Books spotlight ──────────────────────────────────── */
.books {
  margin: 2.5rem 0 0;
  text-align: center;
}
.books .kicker { margin-bottom: 0.65rem; }
.books-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 38em;
  margin: 0 auto;
}
.books-list li {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.25;
  text-wrap: balance;
}
.books-list a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 0.5px solid var(--rule);
  padding-bottom: 1px;
}
.books-list a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Plate (shared image frame) ───────────────────────────── */
.plate-frame {
  background: var(--paper-deep);
  padding: 0.5rem;
  border: 0.5px solid var(--rule);
}
.plate-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg, var(--paper-soft) 0 10px, var(--paper-deep) 10px 20px);
  overflow: hidden;
}
.plate-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) sepia(0.05);
}
.plate-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Daily hero plate ─────────────────────────────────────── */
.hero-plate {
  margin: 2rem 0 0;
}
.hero-plate .plate-img-wrap {
  aspect-ratio: 16 / 9;
  max-height: 460px;
}
.hero-cap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0.25rem 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.hero-cap .kicker { font-style: normal; }
.hero-cap .title { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--ink); }
.hero-cap .meta { text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.06em; }

/* ── Pull quote ───────────────────────────────────────────── */
.pull-quote {
  margin: 3rem 0 0;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pull-quote::before, .pull-quote::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 1rem;
}
.pull-quote::after { margin: 1rem auto 0; }
.pull-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.4;
  max-width: 28em;
  margin: 0 auto 0.85rem;
  color: var(--ink);
  text-wrap: pretty;
}
.pull-quote blockquote em, .pull-quote blockquote i { font-style: italic; }
.pull-quote cite {
  font-style: normal;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── Four Rooms — symmetric 2×2 ───────────────────────────── */
#rooms {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
  row-gap: 2.75rem;
}
.room { display: flex; flex-direction: column; }
.room-plate { margin: 0 0 1.1rem; }
.room-cap {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--ink-faint);
  padding: 0.55rem 0.15rem 0;
}
.room-cap a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 0.5px solid var(--rule);
}
.room-cap a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.room-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.room-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.room-deck {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.room-pieces {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.85rem 0 0.85rem;
  border-top: 0.5px solid var(--rule-soft);
  border-bottom: 0.5px solid var(--rule-soft);
}
.room-pieces li {
  padding: 0.32rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  border-bottom: 0.5px dotted var(--rule);
}
.room-pieces li em, .room-pieces li i { font-style: italic; }
.room-pieces li:last-child { border-bottom: none; }
.room-pieces a { text-decoration: none; color: var(--ink); }
.room-pieces a:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.room-more {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.room-more::after { content: " →"; }
.room-more:hover { text-decoration: underline; }

/* ── Interior page (About / Resume / Contact) ─────────────── */
.interior {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.interior-head {
  text-align: center;
  margin-bottom: 2.5rem;
}
.interior-head .kicker { margin-bottom: 0.6rem; }
.interior-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.interior-head .deck {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 32em;
  margin: 0.6rem auto 0;
}
.interior-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.interior-grid .col-side {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
  padding-top: 0.45rem;
}
.interior-prose {
  max-width: 36em;
  margin: 0 auto;
}
.interior-prose p { margin-bottom: 1.1rem; }
.interior-prose p + p { text-indent: 1.5em; }
.interior-prose p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 3.3rem;
  float: left;
  line-height: 0.9;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--ink);
}

/* Resume entries */
.cv-section + .cv-section { margin-top: 2.25rem; }
.cv-section h2 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding-bottom: 0.55rem;
  border-bottom: 0.5px solid var(--rule);
  margin-bottom: 1.1rem;
}
.cv-entry {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  padding: 0.65rem 0;
  border-bottom: 0.5px dotted var(--rule);
}
.cv-entry:last-child { border-bottom: none; }
.cv-entry .yr {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-top: 0.25rem;
}
.cv-entry h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.cv-entry .org {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}
.cv-entry .org em, .cv-entry .org i { font-style: italic; }
.cv-entry p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
  max-width: 640px;
  margin: 0 auto;
  padding-top: 0.5rem;
}
.contact-card {
  padding: 1.5rem 1.25rem;
  border: 0.5px solid var(--rule);
  background: var(--paper-soft);
}
.contact-card .kicker { display: block; margin-bottom: 0.6rem; }
.contact-card .h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}
.contact-card .h a { text-decoration: none; }
.contact-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Colophon ─────────────────────────────────────────────── */
.colophon {
  margin: 3.5rem 0 0;
  padding: 2rem 0 3.5rem;
}
.colophon::before {
  content: "❦";
  display: block;
  text-align: center;
  color: var(--accent);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.foot-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.foot-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
}
.foot-nav a:hover { color: var(--accent); }
.foot-nav a.is-current { color: var(--accent); }
.foot-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 1.25rem;
}
.foot-social a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-decoration: none;
}
.foot-social a:hover { color: var(--accent); }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 720px) {
  body { font-size: 16px; padding: 0 1rem; }
  .masthead { padding-top: 2.5rem; }
  .masthead-title { font-size: 3rem; }
  .rooms-grid { grid-template-columns: 1fr; row-gap: 2.25rem; column-gap: 0; }
  .pull-quote blockquote { font-size: 1.25rem; }
  .room-name { font-size: 1.65rem; }
  .hero-plate .plate-img-wrap { aspect-ratio: 4 / 3; max-height: none; }
  .interior-grid { grid-template-columns: 1fr; gap: 1rem; }
  .interior-grid .col-side { text-align: left; }
  .cv-entry { grid-template-columns: 1fr; gap: 0.25rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
