/* speaking.css: all the design for the speaking page lives here.
   Colours are set once below; change them there and the whole page follows. */

:root {
  --accent: #c2410c;      /* burnt orange: buttons, links, highlights */
  --ink: #1c1917;         /* main text */
  --muted: #57534e;       /* secondary text */
  --paper: #ffffff;
  --sand: #f6f3ee;        /* light background for alternating sections */
  --line: #e7e2da;
  --width: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", Futura, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.2; }
h2 { font-size: 2.2em; margin: 0 0 0.8em; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

section { padding: 4.5em 1.5em; }
section > * { max-width: var(--width); margin-left: auto; margin-right: auto; }
.alt { background: var(--sand); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9em 1.5em;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--line);
}
.topbar .name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.2em; color: var(--ink); text-decoration: none; }
.topbar nav a { margin-left: 1.5em; color: var(--ink); text-decoration: none; font-size: 0.95em; }
.topbar nav a:hover { color: var(--accent); }

/* ---------- hero: full photo, text over the bottom ---------- */
.hero { position: relative; padding: 0; background: #000; }
.hero img { width: 100%; max-width: none; }
.hero > .hero-text, .hero > img { max-width: none; }
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 6em max(1.5em, calc((100% - var(--width)) / 2)) 2.5em;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
}
.hero h1 { font-size: 3.4em; margin: 0; color: #fff; }
.hero .role { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.9em; margin: 0.3em auto 0.6em; opacity: 0.9; }
.hero .tagline { font-size: 1.35em; margin-top: 0; margin-bottom: 1.2em; }

.button {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 0.8em 1.8em; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.button:hover { filter: brightness(1.1); }

/* ---------- about + credentials strip ---------- */
.about .lead { font-size: 1.2em; }
.creds {
  list-style: none; padding: 0; margin-top: 2.5em;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em;
}
.creds li {
  border-top: 3px solid var(--accent);
  padding-top: 0.8em;
  font-size: 0.95em; color: var(--muted);
}
blockquote {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5em; font-style: italic;
  border-left: 4px solid var(--accent);
  margin-top: 2.5em; padding-left: 1em;
}
blockquote p { margin: 0; }
blockquote .who { font-family: "Inter", Arial, sans-serif; font-style: normal; font-size: 0.55em; color: var(--muted); margin-top: 0.6em; }

/* ---------- video ---------- */
.video { position: relative; padding-top: 56.25%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* ---------- talks as cards ---------- */
.talk {
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  padding: 2em 2.2em;
  margin-bottom: 2em;
}
.talk h3 { font-size: 1.6em; margin: 0 0 0.8em; }
.details { display: flex; gap: 2em; align-items: flex-start; }
.cover { flex: 0 0 160px; }
.cover img { border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.cover p { font-size: 0.75em; font-style: italic; color: var(--muted); margin: 0.6em 0 0; line-height: 1.4; }
.details em { color: var(--muted); font-style: normal; font-size: 0.92em; }
.details ul { padding-left: 1.2em; }
.details li { margin-bottom: 0.3em; }

/* ---------- books grid ---------- */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5em; }
.book img { width: 180px; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.18); margin-bottom: 1em; }
.book h3 { font-size: 1.15em; margin: 0 0 0.4em; }
.book h3 a { color: var(--ink); text-decoration: none; }
.book p { color: var(--muted); font-size: 0.95em; margin: 0; }

/* ---------- contact band ---------- */
.contact { background: var(--ink); color: #f5f5f4; text-align: center; }
.contact h2 { color: #fff; }
.contact a:not(.button) { color: #fdba74; }
.contact .button { margin: 0.5em 0 1.5em; }

footer { text-align: center; font-size: 0.85em; color: var(--muted); padding: 2em 1em; }
footer a { color: var(--muted); }

/* ---------- phones and small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar nav a { margin-left: 0.9em; font-size: 0.85em; }
  .hero-text { position: static; padding: 1.5em; background: var(--ink); }
  .hero h1 { font-size: 2.4em; }
  .creds { grid-template-columns: 1fr 1fr; }
  .details { flex-direction: column; }
  .cover { flex: none; width: 140px; }
  .books { grid-template-columns: 1fr; }
  .talk { padding: 1.5em; }
}
