/* Self-hosted variable fonts (latin subset), including real Playfair Display italic. */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-display-italic-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #faf5e8;
  --paper-deep: #f2ead6;
  --ink: #2b2925;
  --ink-soft: #4d4a43;
  --sea: #174d6f;
  --sea-deep: #0f3550;
  --gold: #8a6220;
  --card-bg: #ffffff;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--sea-deep);
  line-height: 1.3;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p { margin: 0 0 1.1em; }
a { color: var(--sea); }
a:hover { color: var(--sea-deep); }
:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sea-deep);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 245, 232, 0.96);
  border-bottom: 1px solid rgba(23, 77, 111, 0.14);
  z-index: 20;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sea-deep);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--sea); text-decoration: underline; }
.header-cta { font-size: 0.85rem; padding: 10px 16px; min-height: 42px; white-space: nowrap; }
@media (max-width: 420px) {
  .header-cta { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--sea-deep); border-color: rgba(23, 77, 111, 0.45); background: transparent; }
.btn-ghost:hover { background: rgba(23, 77, 111, 0.08); color: var(--sea-deep); }

.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.promise { font-size: 1.2rem; color: var(--ink-soft); max-width: 44ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.byline { margin-top: 22px; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.hero-cover { text-align: center; }
.hero-cover img {
  width: min(340px, 100%);
  border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(15, 53, 80, 0.35);
}

.section { padding: 72px 0; }
.book, .video, .contact { background: var(--paper-deep); }
.lede { font-size: 1.12rem; color: var(--ink-soft); }
.keywords { font-size: 0.85rem; color: var(--ink-soft); margin-top: 32px; }

.author-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 56px;
  align-items: center;
}
.author-frame {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sea-deep);
  box-shadow: 0 20px 40px -18px rgba(15, 53, 80, 0.4);
}
.author-frame img { width: 100%; height: 100%; object-fit: cover; }
.author-copy p { color: var(--ink-soft); font-size: 1.05rem; }

.speech-hook {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  color: var(--sea-deep);
  margin-bottom: 32px;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--sea-deep), var(--sea) 60%, #2a6d94);
  box-shadow: 0 30px 60px -24px rgba(15, 53, 80, 0.4);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 1;
}
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fdf6e6;
  z-index: 2;
}
.video-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(15, 53, 80, 0.35), rgba(15, 53, 80, 0.55));
}
.video-poster > span { position: relative; z-index: 1; }
.play-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(253, 246, 230, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.video-poster:hover .play-ring { background: rgba(253, 246, 230, 0.16); }
.play-triangle {
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fdf6e6;
  margin-left: 6px;
}
.poster-label { font-weight: 600; letter-spacing: 0.02em; }
.video-frame.is-loading .video-poster { cursor: progress; }
.video-frame.is-loading .play-ring { opacity: 0.35; }
.video-frame.is-loading .poster-label { visibility: hidden; }
.video-frame.is-loading .video-poster::after {
  content: "Loading video...";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 2;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fdf6e6;
}
@media (prefers-reduced-motion: reduce) {
  .play-ring { transition: none; }
}

.contact { text-align: center; }
.mail-link {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  color: var(--sea);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail-link:hover { text-decoration: underline; }
.social-links {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
}
.social-links a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.social-links a:hover { color: var(--sea); }

.legal { min-height: 60vh; }
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(23, 77, 111, 0.14);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-row p { margin: 0; }
.footer-row a { color: var(--ink-soft); }

@media (max-width: 900px) {
  .site-nav { display: none; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-cover { order: -1; }
  .author-grid { grid-template-columns: 1fr; gap: 32px; justify-items: center; text-align: left; }
  .author-frame { width: min(320px, 100%); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 44px 0 56px; }
  .section { padding: 52px 0; }
  .header-row { gap: 10px; min-height: 64px; }
  .brand { font-size: 1rem; }
  .header-cta { padding: 8px 12px; font-size: 0.8rem; }
  .footer-row { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
