@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/eb-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-normal-latin.woff2") format("woff2");
}

:root {
  --navy: #1f2a44;
  --ink: #23293a;
  --muted: #5d6475;
  --copper: #b85a1a;
  --copper-bright: #c8641e;
  --paper: #fbfaf7;
  --card: #ffffff;
  --pale: #eef1f6;
  --rule: #e4e1da;
  --rule-strong: #cfcbc2;
  --serif: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(31, 42, 68, 0.06), 0 8px 24px rgba(31, 42, 68, 0.06);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration-color: rgba(184, 90, 26, 0.45); text-underline-offset: 3px; }
a:hover { color: var(--copper); text-decoration-color: currentColor; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--copper-bright); outline-offset: 3px; }

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

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: rgba(251, 250, 247, 0.94); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--navy); text-decoration: none; letter-spacing: 0.01em; }
.brand:hover { color: var(--navy); }
.site-nav { display: flex; gap: 28px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--copper-bright); }

/* Home hero */
.hero { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: center; padding-top: 80px; padding-bottom: 72px; }
.headshot { width: 280px; height: 280px; border-radius: 50%; background: var(--pale); box-shadow: 0 0 0 1px var(--rule), var(--shadow); }
.hero h1 { font-size: 64px; letter-spacing: -0.01em; margin-bottom: 20px; }
.bio p { font-size: 19px; max-width: 60ch; color: var(--ink); }
.hero-actions { margin-top: 28px; margin-bottom: 0; }

.button {
  display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  color: #fff; background: var(--navy); border: 0; border-radius: 999px; padding: 12px 24px;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s ease;
}
.button:hover { background: var(--copper); color: #fff; }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--rule); }
.section > h2 { font-size: 38px; margin-bottom: 32px; }
.section > h2::before { content: ""; display: block; width: 44px; height: 2px; background: var(--copper-bright); margin-bottom: 18px; }
.section-note { color: var(--muted); max-width: 64ch; margin-top: -16px; margin-bottom: 28px; }

.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }

/* Writing */
.writing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.writing-card { display: flex; flex-direction: column; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper); margin-bottom: 12px; }
.writing-card h3 { font-size: 27px; margin-bottom: 14px; }
.writing-card h3 a { text-decoration: none; }
.writing-card p { color: var(--ink); }
.card-note { font-size: 14px; color: var(--muted); }
.card-link { margin-top: auto; margin-bottom: 0; font-size: 15px; font-weight: 600; }

/* Books */
.book-group + .book-group { margin-top: 40px; }
.group-title { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.book { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--navy); border-radius: 6px; padding: 20px 22px; }
.book-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--navy); margin-bottom: 4px; }
.book-author { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.book-line { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.45; color: var(--ink); margin-bottom: 0; }

/* Links */
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.link-card { display: flex; flex-direction: column; height: 100%; gap: 6px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.link-card:hover { border-color: var(--copper-bright); transform: translateY(-1px); }
.link-name { font-family: var(--serif); font-size: 24px; color: var(--navy); }
.link-desc { color: var(--ink); font-size: 16px; }
.link-domain { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--copper); }

/* Page heads */
.page-head { padding-top: 72px; padding-bottom: 40px; }
.page-head h1 { font-size: 56px; margin-bottom: 14px; }
.lede { font-size: 19px; color: var(--muted); max-width: 60ch; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.video { margin: 0; }
.video-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0e1424; box-shadow: var(--shadow); }
.video-thumb, .video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease, opacity 0.25s ease; opacity: 0.94; }
.video-thumb:hover img { transform: scale(1.02); opacity: 1; }
.play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: rgba(31, 42, 68, 0.86); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); transition: background-color 0.15s ease;
}
.play::after {
  content: ""; position: absolute; left: 27px; top: 21px;
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff;
}
.video-thumb:hover .play { background: var(--copper-bright); }
.duration { position: absolute; right: 10px; bottom: 10px; background: rgba(14, 20, 36, 0.82); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.video figcaption { padding-top: 14px; }
.video-title { font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--navy); margin-bottom: 4px; }
.video-meta { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.audio-link { margin-top: 28px; margin-bottom: 0; font-size: 16px; }
.audio-link .video-meta { display: inline; margin-left: 6px; }

/* Contact */
.contact-form { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; margin-bottom: 80px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--rule-strong); border-radius: 8px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--copper-bright); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; margin-top: 24px; }
.site-footer p { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 960px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .header-inner { min-height: 60px; gap: 12px; }
  .brand { font-size: 22px; }
  .site-nav { gap: 16px; font-size: 14px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 48px; text-align: left; }
  .headshot { width: 200px; height: 200px; }
  .hero h1 { font-size: 46px; margin-bottom: 14px; }
  .bio p { font-size: 17px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .section > h2 { font-size: 32px; margin-bottom: 24px; }
  .writing-grid, .book-grid, .link-grid, .video-grid { grid-template-columns: 1fr; }
  .card, .contact-form { padding: 22px; }
  .page-head { padding-top: 48px; padding-bottom: 28px; }
  .page-head h1 { font-size: 44px; }
}

@media (max-width: 400px) {
  .site-nav { gap: 12px; font-size: 13px; }
  .brand { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
