/* Journey pages: jacobwarwick.com/journeys/<slug>.html
 *
 * One stylesheet for every journey page. The header and footer rules are the
 * homepage's (index.html, the .jw-nav block), carried across verbatim so the
 * bar is the same bar; everything after them is the journey itself: a title
 * block, then a vertical timeline read top to bottom, then the close.
 */

:root {
  --ivory: #FAF7F1;
  --ivory-2: #F4EFE4;
  --ink: #131210;
  --ink-2: rgba(19, 18, 16, .72);
  --ink-3: rgba(19, 18, 16, .6);
  --hair: rgba(19, 18, 16, .14);
  --gold: #C9A15F;
  --brass: #8A6A2A; /* gold as text on ivory: 4.9:1, where #C9A15F is 2.1:1 */
  --pad: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (max-width: 900px) { html { scroll-padding-top: 152px; } }
@media (max-width: 760px) { html { scroll-padding-top: 134px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Cormorant Garamond", Garamond, serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.jr-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--ivory); padding: 10px 16px; font-family: 'Cormorant SC', serif; font-weight: 600; letter-spacing: .08em; text-decoration: none; }
.jr-skip:focus { top: 12px; }

/* ---------- header: the homepage's bar ---------- */
.jw-nav { position: sticky; top: 0; z-index: 20; color: var(--ink); background: var(--ivory); border-bottom: 1px solid var(--hair); }
.jw-nav-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; max-width: 1360px; margin: 0 auto; padding: 18px var(--pad); }
.jw-wm { font-family: 'Cormorant SC', serif; font-weight: 600; font-size: 18px; letter-spacing: .1em; color: var(--ink); text-decoration: none; min-width: 140px; }
.jw-navlinks { display: flex; align-items: center; flex-wrap: wrap; gap: 12px clamp(14px, 2.4vw, 28px); font-family: 'Cormorant Garamond', serif; font-size: 15px; }
.jw-navlinks a:not(.jw-btn) { text-decoration: none; color: rgba(19, 18, 16, .74); transition: color .28s ease; }
.jw-navlinks a:not(.jw-btn):hover, .jw-navlinks a:not(.jw-btn):focus-visible { color: var(--brass); }
.jw-btn { box-sizing: border-box; display: inline-flex; align-items: center; font-family: 'Cormorant SC', serif; font-weight: 600; font-size: 14px; letter-spacing: .06em; line-height: normal; color: var(--ink); background: var(--gold); padding: 8px 18px; border-radius: 2px; text-decoration: none; transition: background .16s ease-out; }
.jw-btn:hover { background: #D6B478; }
@media (max-width: 1024px) {
  .jw-wm { padding: 7px 0; }
  .jw-navlinks a:not(.jw-btn) { padding: 10px 0; }
  .jw-navlinks .jw-btn { padding: 12px 18px; min-height: 40px; }
}
@media (max-width: 760px) {
  .jw-nav-in { position: relative; row-gap: 2px; padding: 10px var(--pad) 5px; }
  .jw-wm { min-height: 50px; display: flex; align-items: center; }
  .jw-navlinks { width: 100%; order: 2; gap: 0 clamp(16px, 4.5vw, 30px); font-size: 14px; }
  .jw-navlinks .jw-btn { position: absolute; top: 10px; right: var(--pad); max-width: 44vw; font-size: 11px; letter-spacing: .05em; line-height: 1.3; text-align: center; white-space: normal; }
}
@media (max-width: 380px) {
  .jw-wm { font-size: 15px; }
  .jw-navlinks .jw-btn { max-width: 40vw; padding: 9px 11px; }
}
/* A large monitor: the bar's type grows from 1600px as thinkwarwick.com's does. */
@media (min-width: 1600px) {
  .jw-nav-in { padding-top: 12px; padding-bottom: 12px; min-height: 70px; }
  .jw-wm { font-size: clamp(18px, 1.15vw, 26px); }
  .jw-navlinks { font-size: clamp(15px, .95vw, 21px); gap: 12px clamp(28px, 2.2vw, 46px); }
  .jw-navlinks .jw-btn { font-size: clamp(14px, .9vw, 19px); padding: clamp(8px, .42vw, 11px) clamp(18px, 1.4vw, 32px); }
}

/* ---------- title block ---------- */
.jr-wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--pad); }
.jr-head { padding: clamp(48px, 7vw, 104px) 0 clamp(32px, 4vw, 56px); }
.jr-kicker { font-family: 'Cormorant SC', serif; font-weight: 600; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 22px; }
.jr-kicker a { text-decoration: none; }
.jr-kicker a:hover { color: var(--brass); }
.jr-title { font-family: 'Cormorant SC', serif; font-weight: 600; font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; letter-spacing: .02em; margin: 0; max-width: 20ch; text-wrap: balance; }
.jr-rule { height: 1px; background: var(--gold); max-width: 180px; margin: 30px 0 26px; border: 0; }
.jr-summary { font-size: clamp(21px, 2vw, 26px); line-height: 1.45; margin: 0; max-width: 52ch; color: var(--ink-2); text-wrap: pretty; }
.jr-hero { margin: clamp(32px, 4vw, 52px) 0 0; }
.jr-hero img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--ivory-2); }
.jr-placeholder { margin: 26px 0 0; padding: 12px 16px; border: 1px dashed var(--brass); color: var(--brass); font-size: 16px; font-style: italic; max-width: 60ch; }

/* ---------- the timeline ----------
   A left rail (step number over date) and the entry on the right, joined by a
   hairline running the length of the list. Each entry sets a gold dot on the
   line level with its number. On a phone the rail sits above its entry and the
   line runs down the left edge. */
.jr-timeline { list-style: none; margin: 0; padding: 0 0 clamp(24px, 3vw, 40px); position: relative; }
.jr-timeline::before { content: ""; position: absolute; top: 8px; bottom: 0; left: 150px; width: 1px; background: var(--hair); }
.jr-entry { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 0; padding: 0 0 clamp(40px, 5vw, 64px); }
.jr-entry::before { content: ""; position: absolute; left: 150px; top: 8px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--ivory); }
.jr-rail { padding-right: 28px; display: flex; flex-direction: column; gap: 6px; }
.jr-step { font-family: 'Cormorant SC', serif; font-weight: 600; font-size: 15px; letter-spacing: .16em; color: var(--brass); line-height: 1.6; }
.jr-date { font-size: 16px; font-style: italic; color: var(--ink-3); line-height: 1.35; }
.jr-body { padding-left: clamp(28px, 4vw, 48px); min-width: 0; }
.jr-type { font-family: 'Cormorant SC', serif; font-weight: 600; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; line-height: 1.6; }
.jr-h { font-family: 'Cormorant SC', serif; font-weight: 600; font-size: clamp(22px, 2vw, 28px); line-height: 1.22; letter-spacing: .02em; margin: 0; text-wrap: pretty; }
.jr-h a { text-decoration: none; }
.jr-h a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.jr-meta { font-size: 17px; font-style: italic; color: var(--ink-3); margin: 8px 0 0; }
.jr-text { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 14px 0 0; max-width: 62ch; }
.jr-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: 'Cormorant SC', serif; font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.jr-link:hover { color: var(--brass); }
.jr-img { display: block; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 18px; background: var(--ivory-2); }

/* An article with a cover: text on the left, the cover beside it. */
.jr-article { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 320px); gap: clamp(20px, 3vw, 36px); align-items: start; }
.jr-cover { display: block; overflow: hidden; background: var(--ivory-2); aspect-ratio: 73 / 34; box-shadow: 0 0 0 1px var(--hair); }
.jr-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.jr-cover:hover img { transform: scale(1.03); }
@media (max-width: 860px) {
  .jr-article { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .jr-cover { order: -1; max-width: 560px; }
}

/* A note is a quiet passage between items: no dot, no number, set in italic. */
.jr-entry.is-note::before { width: 5px; height: 5px; margin-left: -2px; top: 12px; background: var(--ink-3); }
.jr-entry.is-note .jr-text { font-style: italic; font-size: clamp(20px, 1.8vw, 23px); line-height: 1.5; color: var(--ink); margin: 0; }

/* Click-to-load video: a real button showing the thumbnail. Nothing from
   YouTube loads until it is pressed, and then only from youtube-nocookie. */
.jr-media { position: relative; margin-top: 18px; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.jr-play { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; display: block; }
.jr-play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; opacity: .92; }
.jr-play:hover img { transform: scale(1.03); opacity: 1; }
.jr-play-btn { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(19, 18, 16, .78); border: 1px solid rgba(201, 161, 95, .7); display: grid; place-items: center; transition: background .2s ease; }
.jr-play-btn::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--gold); }
.jr-play:hover .jr-play-btn { background: rgba(19, 18, 16, .92); }
.jr-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.jr-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.jr-pod { margin-top: 18px; width: 100%; max-width: 720px; }
.jr-pod iframe { display: block; width: 100%; border: 0; border-radius: 12px; background: transparent; }

@media (max-width: 700px) {
  .jr-timeline::before { left: 4px; }
  .jr-entry { grid-template-columns: minmax(0, 1fr); padding-left: 28px; }
  .jr-entry::before { left: 4px; top: 7px; }
  .jr-entry.is-note::before { top: 10px; }
  .jr-rail { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 0 0 10px; }
  .jr-body { padding-left: 0; }
  .jr-play-btn { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
}

/* ---------- close ---------- */
.jr-close { border-top: 1px solid var(--hair); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 112px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.jr-next { text-decoration: none; display: flex; flex-direction: column; gap: 8px; max-width: 34ch; }
.jr-next-k { font-family: 'Cormorant SC', serif; font-weight: 600; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-3); }
.jr-next-t { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
.jr-next:hover .jr-next-t { color: var(--brass); }
.jr-cta { font-size: 17px; padding: 14px 28px; border-radius: 4px; }

/* ---------- footer: the homepage's, minus the claim ---------- */
.jr-foot { background: var(--ink); color: var(--ivory-2); }
.jr-foot-in { max-width: 1360px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--pad) clamp(32px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.jr-mail { font-family: 'Cormorant SC', serif; font-weight: 600; font-size: clamp(19px, 2vw, 24px); letter-spacing: .04em; color: var(--gold); border-bottom: 1px solid rgba(201, 161, 95, .5); padding-bottom: 4px; text-decoration: none; }
.jr-mail:hover { color: var(--ivory-2); border-color: var(--ivory-2); }
.jr-mail:focus-visible, .jr-foot a:focus-visible { outline-color: var(--gold); }
.jr-foot-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: center; width: 100%; padding-top: 28px; border-top: 1px solid rgba(244, 239, 228, .16); }
.jr-lockup { display: flex; align-items: center; gap: 12px; }
.jr-lion { display: block; flex: none; width: 13.4px; height: 24px; background: var(--gold); -webkit-mask: url(../assets/tw-lion.png) center / contain no-repeat; mask: url(../assets/tw-lion.png) center / contain no-repeat; }
.jr-lockup-t { font-family: 'Cormorant SC', serif; font-weight: 600; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; line-height: 1.6; color: #B8B0A0; }
.jr-foot p { font-size: 16px; font-style: italic; color: rgba(244, 239, 228, .62); margin: 0; }
