/* =====================================================================
   STYLE.CSS — how the whole website looks
   ---------------------------------------------------------------------
   Every page uses this one file, so a change here changes every page.

   QUICK GUIDE
   - Want to change a colour everywhere?  Edit the COLOURS list just
     below (section 1). Colours are written as "hex codes" like #A3482A.
     You can find hex codes for any colour by searching "colour picker".
   - Want to change the fonts?  See section 2.
   - The rest of the file is grouped by part of the page (navigation,
     hero, calendar, talks...). Each group has a heading like this one.

   A tiny bit of CSS vocabulary:
     .something { ... }   styles anything with class="something"
     padding               space INSIDE a box
     margin                space OUTSIDE a box
     gap                   space BETWEEN the items inside a box
     @media (...)          rules that only apply on small screens
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. COLOURS  (change these to re-colour the whole site)
   --------------------------------------------------------------------- */
:root {
  --parchment: #F2EADA;   /* main page background (cream)            */
  --paper:     #F8F3E8;   /* slightly lighter cream for some sections */
  --card:      #FFFBF3;   /* boxes, like the "Buy" box and the forms  */
  --line:      #CDBE98;   /* thin khaki lines between things          */
  --line-soft: #DCCFAE;   /* even fainter lines                       */
  --khaki:     #A8986F;   /* borders around form boxes                */
  --forest:    #24392D;   /* deep green: hero and blog backgrounds    */
  --forest-label: #4A5A3F;/* green used for small capital labels      */
  --terracotta:#A3482A;   /* the main buttons ("Watch the Talks")     */
  --link:      #8E3E22;   /* colour of text links                     */
  --brass:     #9A7A3A;   /* the dotted route lines                   */
  --ink:       #2A1F17;   /* main text colour (dark brown)            */
  --ink-soft:  #3A2E24;   /* slightly softer text                     */
  --muted:     #5A4A3A;   /* small print and captions                 */
  --on-dark:   #F2EADA;   /* text on the green and brown backgrounds  */
  --on-dark-soft: #D9C9A0;/* softer text on dark backgrounds          */
}


/* ---------------------------------------------------------------------
   2. FONTS  (the fonts are loaded from Google Fonts in each page's <head>)
   --------------------------------------------------------------------- */
:root {
  --serif: 'Libre Caslon Text', Georgia, serif;                 /* headings */
  --sans:  'Source Sans 3', 'Helvetica Neue', Arial, sans-serif; /* body    */
}


/* ---------------------------------------------------------------------
   3. BASICS that apply to the whole page
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--parchment);
  /* the faint paper grain. Delete this line for a plain background. */
  background-image: url("../images/paper.png");
}

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

a { color: var(--link); }
a:hover { color: #5E2914; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.12; }
p { margin: 0; }

/* A visible outline when someone moves around with the keyboard */
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* Keeps content from getting too wide on big screens, with side margins */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

/* Small capital-letter labels above headings ("CALENDAR · 2027") */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest-label);
}

/* Standard spacing for big page sections */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-alt { background-color: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(32px, 3.6vw, 48px); }
.lead { font-size: 20px; color: var(--ink-soft); }
.small-print { font-size: 15px; font-style: italic; color: var(--muted); }


/* ---------------------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 3px;
  border: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;      /* keeps button words on one line */
  cursor: pointer;
  background: var(--terracotta);
  color: #FFF8EE;
}
.button:hover { color: #FFF8EE; filter: brightness(0.9); }

/* The outlined button used on dark backgrounds ("See the Calendar") */
.button-outline { background: transparent; border: 1px solid var(--on-dark-soft); color: var(--on-dark); }
.button-outline:hover { color: var(--on-dark); background: rgba(255,255,255,0.06); }

/* A full-width button (used in the Buy box) */
.button-wide { display: flex; width: 100%; min-height: 54px; font-size: 18px; font-weight: 700; }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; }


/* ---------------------------------------------------------------------
   5. TOP NAVIGATION BAR (stays at the top while you scroll)
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--parchment);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.logo:hover { color: var(--ink); }
.logo-name { font-family: var(--serif); font-size: 21px; }
.logo-tagline { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-label); font-weight: 600; margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 600; }
.main-nav a.nav-link { color: var(--ink); text-decoration: none; }
.main-nav a.nav-link:hover { color: var(--link); text-decoration: underline; text-underline-offset: 5px; }
.main-nav .button { min-height: 44px; padding: 0 20px; font-size: 16px; }

/* The ☰ menu button. Hidden on big screens, shown on phones (see below). */
.menu-button {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
}

/* The drop-down menu that opens on phones */
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--parchment); }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: flex; align-items: center; min-height: 52px; padding: 0 clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font-weight: 600; }

/* PHONES: hide the text links, show the menu button */
@media (max-width: 860px) {
  .main-nav { gap: 8px; }
  .main-nav .nav-link { display: none; }
  .menu-button { display: inline-flex; }
}
@media (max-width: 420px) {
  .logo-name { font-size: 16px; white-space: nowrap; }
  .logo-tagline { display: none; }   /* not enough room on small phones */
  .main-nav .button { padding: 0 12px; font-size: 14px; }
}


/* ---------------------------------------------------------------------
   6. HOME: HERO (the big green intro with the stage photo)
   --------------------------------------------------------------------- */
.hero { background: var(--forest); color: var(--on-dark); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.hero-text {
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  padding: clamp(40px, 7vw, 104px) clamp(16px, 6vw, 88px);
}
.hero .eyebrow { color: var(--on-dark-soft); }
.hero h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.08; text-wrap: balance; }

/* The David McCullough quote at the top of the hero */
.hero-quote { margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 32em; }
.hero-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: #EDE3CC; text-wrap: pretty; }
.hero-quote cite { font-style: normal; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--on-dark-soft); }
.hero-quote cite::before { content: "— "; }
.hero-intro { font-size: 20px; color: #EDE3CC; max-width: 34em; }
.hero-aside { font-size: 18px; color: var(--on-dark-soft); max-width: 34em; }
.hero-photo { position: relative; min-height: 640px; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }

/* On phones the photo goes on top and gets shorter */
@media (max-width: 920px) {
  .hero-photo { order: -1; min-height: 360px; }
  .hero-photo img { object-position: 50% 25%; }
}


/* ---------------------------------------------------------------------
   7. TALK THUMBNAILS (used on the home page and the Talks page)
   --------------------------------------------------------------------- */
.talk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 36px 28px; }
.featured-grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }

.tile { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.tile:hover { color: var(--ink); }
.tile:hover .tile-title { text-decoration: underline; text-underline-offset: 4px; }
.tile:hover .thumb { filter: brightness(1.12); }

/* The 16:9 picture. If there's no thumbnail image yet, it shows a coloured
   panel with the title on it instead. */
.thumb {
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  padding: 18px;
  color: var(--on-dark);
  background-color: var(--forest);
  overflow: hidden;
  position: relative;
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb-kicker { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: #E6D9B8; }
.thumb-title { font-family: var(--serif); font-size: 22px; line-height: 1.15; }

/* "Coming Soon" written in the top corner of a thumbnail */
.thumb-soon {
  position: absolute; top: 16px; left: 18px; z-index: 1;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: #FFF8EE;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);   /* keeps it readable on photos */
}

/* The big bold "Coming Soon" in the box on a talk page */
.coming-soon { font-family: var(--serif); font-weight: 700; font-size: 36px; line-height: 1.1; color: var(--ink); }

/* Bundles look like a little stack of cards */
.thumb-stack { box-shadow: 6px -6px 0 #4F6B58, 12px -12px 0 #8BA08F; margin: 12px 12px 0 0; }

.tile-text { display: flex; flex-direction: column; gap: 4px; }
.tile-title { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.tile-line { font-size: 16px; color: var(--ink-soft); line-height: 1.45; }
.tile-meta { font-size: 15px; color: var(--muted); font-weight: 600; }
.tile-saving { color: var(--forest); font-weight: 700; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 40px;
}
.section-head p { color: var(--muted); margin-top: 8px; }


/* ---------------------------------------------------------------------
   8. HOME: CALENDAR ("Where I'll be")
   --------------------------------------------------------------------- */
.calendar { position: relative; overflow: hidden; }
.calendar .container { position: relative; }   /* keeps text above the map line */
.route-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.calendar-intro { display: flex; flex-direction: column; gap: 14px; max-width: 46em; margin-bottom: 40px; }
.calendar-intro h2 { font-size: clamp(36px, 4vw, 52px); }

.sailing { display: flex; flex-wrap: wrap; gap: 20px 56px; padding: 36px 0; border-top: 1px solid var(--line); }
.sailing-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.sailing-info h3 { font-size: 30px; }
.sailing-dates { font-weight: 600; }
.sailing-ship { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-label); font-weight: 600; }
.sailing-summary { font-size: 16px; color: var(--muted); margin-top: 6px; }
.sailing-legs { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

/* Each voyage is a <details> box: click the top line to open/close it */
.leg { background: var(--card); border: 1px solid var(--line-soft); border-radius: 3px; }
.leg summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 16px 20px; min-height: 44px; }
.leg summary::-webkit-details-marker { display: none; }
.leg-dates { flex: none; min-width: 120px; font-weight: 700; font-size: 16px; color: var(--forest); }
.leg-title { flex: 1; font-size: 17px; }
.chevron { flex: none; transition: transform 0.2s; }
.leg[open] .chevron { transform: rotate(180deg); }

/* The list of ports, joined by little dotted lines */
.ports { list-style: none; margin: 0; padding: 14px 20px 20px; border-top: 1px dashed var(--line-soft); display: flex; flex-wrap: wrap; align-items: center; row-gap: 10px; }
.ports li { display: flex; align-items: center; font-size: 16px; }
.ports li + li::before { content: ""; width: 20px; border-top: 2px dotted var(--brass); margin: 0 8px; }
.ports li span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--forest); margin-right: 8px; vertical-align: middle; }

/* PHONES: ports become a vertical list, dates stack above titles */
@media (max-width: 640px) {
  .leg summary { padding: 12px 14px; align-items: flex-start; }
  .leg-dates { min-width: 0; }
  .leg summary .leg-text { display: flex; flex-direction: column; }
  .ports { flex-direction: column; align-items: flex-start; padding: 12px 14px 16px; }
  .ports li + li::before { display: none; }
  .ports li { padding: 3px 0; }
  .sailing-info h3 { font-size: 25px; }
}
.leg-text { flex: 1; display: flex; gap: 16px; flex-wrap: wrap; }


/* ---------------------------------------------------------------------
   9. HOME: BLOG (green band with the Substack box)
   --------------------------------------------------------------------- */
.blog { background: var(--forest); color: var(--on-dark); }
.blog .eyebrow { color: var(--on-dark-soft); }
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.split > * { flex: 1 1 340px; }
.blog-intro { display: flex; flex-direction: column; gap: 16px; }
.blog-intro p { font-size: 19px; color: #EDE3CC; max-width: 30em; }
.essay-card { flex-basis: 440px; background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 44px); border-radius: 3px; display: flex; flex-direction: column; gap: 16px; }
.essay-card h3 { font-style: italic; font-size: clamp(26px, 2.8vw, 36px); }


/* ---------------------------------------------------------------------
   10. HOME: ABOUT
   --------------------------------------------------------------------- */
.about-photo { flex: 1 1 320px; max-width: 480px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.about-photo figcaption { font-size: 14px; font-style: italic; color: var(--muted); }
.about-text { flex: 999 1 420px; display: flex; flex-direction: column; gap: 20px; max-width: 38em; }


/* ---------------------------------------------------------------------
   11. FORMS (Book a Talk, and the email sign-up)
   --------------------------------------------------------------------- */
.book-pitch { display: flex; flex-direction: column; gap: 18px; align-self: flex-start; }
.rates { padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; color: var(--forest); }
.form-box { flex-basis: 460px; display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 3px; padding: clamp(20px, 3.5vw, 40px); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 18px; }
.form-box label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.form-box input, .form-box select, .form-box textarea {
  font: inherit; font-weight: 400; font-size: 17px;
  min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--khaki); border-radius: 3px;
  background: #FFFFFF; color: var(--ink);
}
.form-box textarea { resize: vertical; }
#book .split { align-items: flex-start; }


/* ---------------------------------------------------------------------
   11b. TESTIMONIALS (the slideshow of quotes on the home page)
   --------------------------------------------------------------------- */
.testimonials { padding-top: 0; }
.testimonials .container {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: clamp(56px, 7vw, 96px);
}
.carousel { width: 100%; max-width: 50em; display: flex; flex-direction: column; align-items: center; gap: 28px; }

/* All the quotes sit on top of each other; only the active one is visible.
   This keeps the section the same height, so the page doesn't jump. */
.slides { display: grid; width: 100%; }
.slide {
  grid-area: 1 / 1;
  margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide blockquote { margin: 0; }
.slide p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.5; text-wrap: pretty; }
.slide figcaption { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--forest-label); }
.slide figcaption::before { content: "— "; }

/* Arrows and dots */
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.carousel-button {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
}
.carousel-button:hover { background: var(--paper); }

.carousel-dots { display: flex; }
.carousel-dot {
  width: 28px; height: 44px;              /* big enough to tap */
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.carousel-dot span { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--forest); }
.carousel-dot[aria-current="true"] span { background: var(--forest); }

/* People who've asked their device for less motion get no fading */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}


/* ---------------------------------------------------------------------
   12. FOOTER
   --------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #EDE3CC; padding: 56px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 36px 80px; justify-content: space-between; }
.footer-name { font-family: var(--serif); font-size: 26px; color: var(--on-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-weight: 600; font-size: 16px; }
.footer-links a { color: var(--on-dark); text-underline-offset: 4px; min-height: 40px; display: inline-flex; align-items: center; }
.footer-signup { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-signup .button { background: var(--on-dark); color: var(--ink); }
.copyright { margin-top: 36px; padding-top: 22px; border-top: 1px solid #4A3C30; font-size: 14px; color: #BFAF8C; }


/* ---------------------------------------------------------------------
   13. TALKS PAGE
   --------------------------------------------------------------------- */
.talks-intro { padding: clamp(44px, 6vw, 88px) 0 32px; }
.talks-intro .container { display: flex; flex-wrap: wrap; gap: 24px 80px; align-items: flex-end; justify-content: space-between; }
.talks-intro-text { flex: 999 1 520px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.talks-intro h1 { font-size: clamp(36px, 4.6vw, 60px); text-wrap: balance; }
.pricing-note { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-soft); }

/* The row of topic buttons. Also sticks to the top while scrolling. */
.topic-bar { position: sticky; top: 77px; z-index: 40; background: var(--parchment); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topic-bar .container {
  display: flex; gap: 10px; overflow-x: auto; padding-top: 12px; padding-bottom: 10px;
  /* A thin scroll bar in the site's colours (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: var(--khaki) transparent;
  /* Fades the left and right edges so it's clear there's more to scroll to */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 56px), transparent 100%);
}
/* The same thin scroll bar for Chrome, Safari and Edge */
.topic-bar .container::-webkit-scrollbar { height: 6px; }
.topic-bar .container::-webkit-scrollbar-track { background: transparent; }
.topic-bar .container::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.topic-bar .container::-webkit-scrollbar-thumb:hover { background: var(--khaki); }
.topic-button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--khaki); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; }
.topic-button:hover { background: #E6DCC4; color: var(--ink); }
.topic-button span { font-weight: 400; color: var(--muted); }

.topic-section { padding: 56px 0 24px; scroll-margin-top: 160px; }
.topic-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 28px; }
.topic-head h2 { font-size: clamp(30px, 3vw, 40px); }
.topic-head span { font-size: 16px; color: var(--muted); }
.topic-intro { font-size: 19px; color: var(--ink-soft); max-width: 44em; margin-bottom: 32px; }
.topic-feature { display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; margin-bottom: 40px; }
.topic-feature .topic-intro { flex: 1 1 300px; margin: 0; }
.topic-photo { flex: 999 1 520px; margin: 0; }
.topic-photo img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 2px; }
.photo-placeholder { flex: 999 1 520px; min-height: 360px; background: #E6DCC4; border: 1px dashed var(--khaki); border-radius: 2px; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); font-size: 16px; }

@media (max-width: 640px) {
  .topic-bar { top: 65px; }
  .photo-placeholder { min-height: 220px; }
}

/* LAPTOPS AND BIGGER: show every topic button at once (wrapping onto a
   second row) instead of a sideways-scrolling row, which is awkward with
   a mouse. Phones keep the swipeable row. */
@media (min-width: 861px) {
  .topic-bar .container {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 12px;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .topic-bar .container { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .topic-button { min-height: 38px; padding: 0 14px; font-size: 15px; }   /* a bit smaller, to fit on two rows */
  .topic-section { scroll-margin-top: 200px; }   /* leaves room for the taller bar */
}


/* ---------------------------------------------------------------------
   14. SINGLE TALK PAGE and BUNDLE PAGE
   --------------------------------------------------------------------- */
.talk-page { padding-top: 32px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 16px; text-decoration: none; }
.back-link-bottom { border-top: 1px solid var(--line); padding-top: 24px; }
.talk-heading { display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.talk-heading h1 { font-size: clamp(36px, 4.6vw, 60px); text-wrap: balance; }

.talk-main { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; }
.talk-media { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #1C2A21; border-radius: 2px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.talk-media .thumb { padding: 32px; }
.talk-media .thumb-title { font-size: clamp(28px, 3vw, 40px); }
.media-caption { font-size: 15px; color: var(--muted); }

.buy-box { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: 3px; padding: 28px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price { font-family: var(--serif); font-size: 40px; line-height: 1; }
.length { font-size: 16px; color: var(--muted); }
.price-block { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.buy-note { font-size: 15px; color: var(--ink-soft); line-height: 1.55; }
.bundle-note { padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 16px; line-height: 1.5; }

.talk-about { display: flex; flex-direction: column; gap: 20px; max-width: 42em; padding-top: 16px; }
.talk-about h2, .included h2 { font-size: 30px; }

.included { display: flex; flex-direction: column; }
.included h2 { margin-bottom: 20px; }
.included-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.included-row:hover { color: var(--ink); }
.included-row:hover .tile-title { text-decoration: underline; text-underline-offset: 4px; }
.included-row .thumb { flex: 0 1 240px; padding: 14px; }
.included-row .thumb-title { font-size: 18px; }
.included-row .tile-text { flex: 999 1 320px; }
.included-row .tile-title { font-size: 24px; }

@media (max-width: 640px) {
  .talk-page { gap: 24px; padding-top: 12px; }
  .buy-box { padding: 20px; }
  .price { font-size: 34px; }
}
