/* Chris Raggio — hand-built, no framework. Design tokens lifted 1:1 from the original. */

/* ---- Fonts (self-hosted, woff2) ---- */
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/serif-300.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/serif-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/mono-400.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
  --cream: #f4f2ec;
  --ink: #1c1f24;
  --muted: #626977;
  --blue: #1f5fb3;
  --navy: #28415c;
  --gold: #856734;       /* accent on light bg (AA-contrast safe) */
  --gold-light: #c9b68e; /* accent on navy */
  --serif: "IBM Plex Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --maxw: 1120px;
  --pad: 40px; /* uniform side gutter on every section; never below 40px */
}

/* ---- Reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }
body, h1, h2, p, figure, blockquote, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---- Skip link ---- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---- Shared eyebrow label ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Header ---- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
  border-bottom: 1px solid rgba(28, 31, 36, 0.10);
}
.wordmark {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover,
.nav a:focus-visible { color: var(--blue); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 72px;   /* inline gutter stays from .wrap so hero aligns with body */
  padding-bottom: 64px;
}
.hero .eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 16px;
  background: var(--gold-light);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--blue);
  margin: 18px 0 22px;
}
.hero .lede {
  font-weight: 300;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 30ch;
}
.hero figure { margin: 0; }
.hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero figcaption {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 14px;
}

/* ---- Main / content sections ---- */
main { padding: 8px 0 24px; }

.section {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-top: 40px;
}
.section > .body { max-width: 72ch; }

.prose p { font-size: 18px; line-height: 1.62; }
.prose p + p { margin-top: 1.2em; }

blockquote {
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1.28;
  color: var(--navy);
  margin: 1.4em 0;
  text-wrap: balance;
}

/* ---- Talks ---- */
.talks li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(40, 65, 92, 0.14);
}
.talks li:last-child { border-bottom: 1px solid rgba(40, 65, 92, 0.14); }
.talk-year {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--gold);
}
.talk-title {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
}
.talk-venue {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 6px;
}

/* ---- Footer ---- */
.site-foot {
  background: var(--navy);
  margin-top: 64px;
}
.site-foot .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 56px;
}
.foot-name {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.foot-tag {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin-top: 8px;
}
.cr-mark {
  flex: none;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--gold-light);
  border: 2px solid var(--gold-light);
  border-radius: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero figure { order: -1; }
  .section { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .site-foot .wrap { flex-direction: column; align-items: flex-start; gap: 28px; }
}
