/* ronlloyd.ca — Between Intent and Outcomes
   One stylesheet for the whole site. Colours and type live in :root. */

:root {
  --navy: #0E2438;
  --navy-2: #16304A;
  --mid: #4A6785;
  --slate: #5B6B7C;
  --ink: #1B2A3A;
  --body: #4A5A6B;
  --cream: #F7F5F0;
  --sand: #EDE6D6;
  --sand-2: #D8CFBC;
  --line: #DDD8CC;
  --line-2: #D5D9DF;
  --pale: #E4E9EF;
  --gold: #B07D1A;
  --gold-d: #8A6214;
  --gold-l: #D9B25F;
  --white: #FFFFFF;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 96px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* anchor targets clear the masthead */
section[id], div[id] { scroll-margin-top: 24px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-d); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); margin: 0; line-height: 1.15; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white);
  padding: 12px 18px; z-index: 50; font-weight: 700;
}
.skip:focus { left: 0; color: var(--white); }

/* ---------- Masthead ---------- */

.masthead { border-bottom: 1px solid var(--line); background: var(--cream); }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--navy); }
.brand__line { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--slate); }

.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: #3A4A5C; font-weight: 600; font-size: 16px;
  padding: 12px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- Shared pieces ---------- */

.kicker { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--gold-d); }
.kicker--onnavy { color: var(--gold-l); }
.kicker--quiet { color: var(--slate); letter-spacing: 2px; font-size: 13px; }

.section { padding-top: clamp(56px, 7vw, 112px); padding-bottom: clamp(56px, 7vw, 112px); }
.section--tight { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--sand { background: var(--sand); }

.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.section__head h2 { font-size: clamp(30px, 3.4vw, 48px); }
.section__head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.section__note { font-size: 16px; color: var(--slate); max-width: 420px; }

.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.65; font-family: var(--serif); }
.muted { color: var(--body); }
.small { font-size: 15px; }
.tiny { font-size: 13px; color: var(--slate); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 17px;
  padding: 15px 26px; border-radius: 4px; border: 1px solid transparent;
}
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-d); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); color: var(--white); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--onnavy { border-color: #6F8399; color: var(--white); }
.btn--onnavy:hover { background: var(--navy-2); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.todo { background: #FFF1A8; color: var(--ink); padding: 0 4px; font-weight: 600; }

/* ---------- Hero ---------- */

.hero { background: var(--navy); color: var(--white); padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(64px, 8vw, 128px); }
.hero h1 { color: var(--white); font-size: clamp(42px, 6.2vw, 88px); line-height: 1.02; max-width: 15ch; margin: 24px 0 0; }
.hero__q { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.3vw, 32px); line-height: 1.35; color: #D6E0EA; max-width: 34ch; margin: 28px 0 0; }
.hero__sub { font-size: clamp(17px, 1.4vw, 20px); color: #C3CFDB; max-width: 62ch; margin: 24px 0 0; }
.hero .btn-row { margin-top: 36px; }

.pagehead { border-bottom: 1px solid var(--line); padding-top: 48px; padding-bottom: clamp(40px, 5vw, 72px); }
.pagehead h1 { font-size: clamp(34px, 4.6vw, 64px); max-width: 20ch; }
.pagehead__sub { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2vw, 28px); line-height: 1.35; color: #3A4A5C; max-width: 44ch; margin-top: 18px; }

.crumbs { font-size: 14px; color: var(--slate); margin-bottom: 20px; }
.crumbs a { color: var(--slate); }
.meta-line { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--gold-d); margin-bottom: 20px; }
.meta-line span[aria-hidden] { color: #C9BEA6; }

.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
/* .tag is a non-interactive label, not a control. There is no filtering
   on the site, so the pills must not promise navigation. */
.tag { font-size: 14px; font-weight: 600; color: var(--navy); background: var(--pale); padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.tag--plain { background: var(--sand); color: #5B5240; }

/* ---------- Follow the argument ---------- */

.chrono { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 3px solid var(--navy); }
.chrono li { padding: 20px 16px 24px 0; }
.chrono li.is-current { background: var(--sand); margin-top: -3px; border-top: 3px solid var(--gold); padding-left: 14px; }
.chrono a { text-decoration: none; display: block; }
.chrono .date { font-size: 13px; font-weight: 700; color: var(--gold-d); letter-spacing: 1px; display: block; }
.chrono .stage { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.2; display: block; margin: 10px 0; }
.chrono .title { font-size: 14px; color: var(--body); line-height: 1.45; display: block; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: 40px; }
.reflection { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; color: var(--navy); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

.card {
  background: var(--white); border: 1px solid var(--line-2); border-top: 4px solid var(--navy);
  border-radius: 2px; padding: 32px 28px; text-decoration: none;
  display: flex; flex-direction: column; gap: 16px; min-height: 240px;
}
.card h3 { font-size: 26px; line-height: 1.2; }
.card p { font-size: 16px; color: var(--body); margin: 0; }
.card .more { margin-top: auto; font-size: 15px; font-weight: 700; color: var(--gold-d); }

.work { background: var(--white); border: 1px solid var(--line); padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.work h3 { font-size: 26px; line-height: 1.25; }
.work p { font-size: 16px; color: var(--body); }
.work--dark { background: var(--navy); border-color: var(--navy); }
.work--dark h3 { color: var(--white); }
.work--dark p { color: #C3CFDB; }
.work--dark a { color: var(--white); }
.work__links { margin-top: auto; display: flex; gap: 20px; font-size: 15px; font-weight: 700; padding-top: 6px; }

/* ---------- Presentations ---------- */
.pres-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pres { background: var(--white); border: 1px solid var(--line); padding: 32px; }
.pres h3 { font-size: 28px; }
.pres__sub { font-family: var(--serif); font-style: italic; font-size: 19px; color: #3A4A5C; margin: 6px 0 18px; }
.pres p { font-size: 16px; color: var(--body); }
.pres .pres__draws { font-size: 14px; color: var(--slate); margin-top: 18px; }

.deck-link { display: flex; gap: 28px; align-items: center; padding: 24px; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.deck-thumb {
  width: 240px; height: 135px; flex: 0 0 auto; background: var(--navy); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; padding: 0 20px; gap: 6px;
}
.deck-thumb b { font-family: var(--serif); font-size: 21px; }
.deck-thumb i { font-size: 11px; color: #AFC2D4; font-style: italic; }
.deck-link__text { display: flex; flex-direction: column; gap: 8px; }
.deck-link__text b { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.deck-link__text span { font-size: 15px; color: var(--body); line-height: 1.5; }
.deck-link__text em { font-size: 14px; font-weight: 700; color: var(--gold-d); font-style: normal; }

/* ---------- Paper page ---------- */

.paper-layout { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 4.4vw, 64px); }
.paper-body { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 52px); }
.paper-body h2 { font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--gold-d); font-family: var(--sans); margin-bottom: 16px; }

blockquote.pull { margin: 0; padding: 36px 40px; background: var(--navy); }
blockquote.pull p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; color: var(--white); }
blockquote.pull cite { font-size: 14px; color: #AFC2D4; font-style: normal; }

.findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.findings li { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.findings .n { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--gold); flex: 0 0 40px; }
.findings p { font-size: 18px; }
.findings strong { color: var(--navy); }

.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.recs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rec { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.rec b { font-family: var(--serif); font-size: 20px; color: var(--navy); display: block; margin-bottom: 10px; }
.rec span { font-size: 16px; color: var(--body); }
.rec ul { margin: 12px 0 0; padding-left: 18px; }
.rec li { font-size: 16px; color: var(--body); line-height: 1.5; margin-bottom: 8px; }

.side { display: flex; flex-direction: column; gap: 24px; }
.panel { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.panel h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--slate); margin-bottom: 14px; }
.panel dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 15px; }
.panel dt { color: var(--slate); }
.panel dd { margin: 0; font-weight: 600; }
.deck-card { background: var(--navy); color: var(--white); padding: 22px; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; gap: 8px; margin-bottom: 16px; }
.deck-card small { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-l); }
.deck-card b { font-family: var(--serif); font-size: 20px; line-height: 1.15; }

.wherefits { background: var(--white); border: 1px solid var(--line); padding: 32px 40px; display: grid; grid-template-columns: 1fr 3fr; gap: 40px; align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.wherefits h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--gold-d); }

.update { background: var(--sand); border-top: 4px solid var(--gold); padding: clamp(32px, 4vw, 48px) clamp(24px, 3.4vw, 56px); margin-top: 24px; }
.update__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.update__head h2 { font-size: clamp(26px, 3vw, 40px); }
.update__stamp { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #5B5240; background: var(--cream); padding: 8px 14px; border-radius: 4px; }
.update h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #5B5240; margin-bottom: 14px; }
.update ul { margin: 0; padding-left: 20px; }
.update li { margin-bottom: 10px; font-size: 16px; line-height: 1.55; }
.update .links a { display: block; font-size: 16px; font-weight: 600; line-height: 1.45; padding: 4px 0; }

.prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: clamp(40px, 5vw, 64px) 0; }
.prevnext a { background: var(--white); border: 1px solid var(--line-2); padding: 28px 32px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.prevnext .dir { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--slate); }
.prevnext b { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.prevnext .next { text-align: right; }

/* ---------- Published work list ---------- */

.pub { display: grid; grid-template-columns: 176px 1fr auto; gap: 28px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pub__date { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--gold-d); }
.pub__title { font-family: var(--serif); font-size: 23px; font-weight: 700; color: var(--navy); line-height: 1.25; display: block; margin-bottom: 8px; }
.pub__themes { font-size: 14px; color: var(--slate); }
.pub__action { font-size: 15px; font-weight: 700; white-space: nowrap; }
.pub__action span { color: var(--slate); font-weight: 600; }

.notice { background: var(--sand); border-left: 0; border-top: 4px solid var(--gold); padding: 28px 32px; margin-top: 40px; }
.notice h2 { font-family: var(--sans); font-size: 13px; letter-spacing: 3px; color: var(--gold-d); margin-bottom: 12px; }

/* ---------- About / portrait ---------- */

.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 4vw, 48px); align-items: center; }
.portrait { width: 100%; height: auto; display: block; border: 1px solid #C9BEA6; }
.about-grid p { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 25px); line-height: 1.55; color: var(--navy); }

.prose { max-width: 70ch; }
.prose h2 { font-size: 28px; margin: 40px 0 14px; }
.prose p { font-size: 18px; color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 10px; }

/* ---------- Footer ---------- */

.foot { background: var(--navy); color: #AFC2D4; padding-top: 56px; padding-bottom: 56px; }
.foot__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot b { font-family: var(--serif); font-size: 22px; color: var(--white); display: block; margin-bottom: 10px; }
.foot p { font-size: 14px; line-height: 1.6; max-width: 62ch; }
.foot small { font-size: 13px; color: #8FA3B8; }
.foot nav { display: flex; gap: 28px; flex-wrap: wrap; }
.foot nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; }
.foot nav a:hover { color: var(--gold-l); }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .chrono { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .chrono li { border-top: 3px solid var(--navy); }
  .chrono li.is-current { margin-top: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .paper-layout { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .recs, .recs--2 { grid-template-columns: 1fr; }
  .wherefits { grid-template-columns: 1fr; gap: 16px; padding: 28px; }
  .about-grid { grid-template-columns: 220px 1fr; }
  .pub { grid-template-columns: 120px 1fr; }
  .pub__action { grid-column: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .masthead__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav { gap: 18px; }
  .chrono { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .grid--2, .pres-list { grid-template-columns: 1fr; }
  .deck-link { flex-direction: column; align-items: flex-start; gap: 18px; }
  .deck-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .next { text-align: left; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .update__head { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; text-align: center; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

@media (max-width: 520px) {
  .chrono { grid-template-columns: 1fr; }
  .chrono li { padding-right: 0; }
  .pub { grid-template-columns: 1fr; gap: 10px; }
  .pub__action { grid-column: 1; }
  .findings li { gap: 14px; }
  .findings .n { flex-basis: 26px; font-size: 22px; }
  blockquote.pull { padding: 26px 24px; }
}

/* ---------- Single-page additions ---------- */

.transparency { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px); }
.transparency h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--gold-d); margin-bottom: 10px; }
.transparency p { font-size: 17px; color: var(--ink); }

.authorbox { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.authorbox h2 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--slate); flex: 0 0 auto; }
.authorbox p { font-size: 16px; color: var(--body); max-width: 70ch; }

.contact-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 760px; }
.contact-lines b { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: 2px; color: var(--slate); margin-bottom: 8px; }

@media (max-width: 760px) {
  .transparency { grid-template-columns: 1fr; }
  .contact-lines { grid-template-columns: 1fr; }
}

@media print {
  .masthead, .foot, .prevnext, .btn-row { display: none; }
  body { background: var(--white); }
}
