/* Reusable responsive styles for the French Moore interview and other history pages. */

:root {
  --forest: #244a35;
  --forest-dark: #173324;
  --forest-light: #eaf2ec;
  --paper: #fffdf8;
  --page: #f2f1ec;
  --ink: #252724;
  --muted: #62665f;
  --line: #d8d7cf;
  --accent: #a96b2c;
  --max-width: 1100px;
  --reading-width: 780px;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(20, 30, 20, .08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.8;
}

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

a {
  color: var(--forest);
}

a:hover {
  color: var(--forest-dark);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--forest-dark);
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  color: #fff;
  background: var(--forest-dark);
  border-bottom: 4px solid var(--accent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding: .9rem 0;
}

.site-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.site-nav a {
  padding: .35rem .65rem;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255,255,255,.12);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 2rem auto 4rem;
}

.interview {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.interview-header {
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(135deg, var(--forest-dark), var(--forest));
  color: #fff;
}

.eyebrow {
  margin: 0 0 .5rem;
  color: #d9e7dc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.subtitle {
  max-width: 720px;
  margin: 1rem 0 0;
  color: #e6eee8;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.interview-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem 2rem;
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.25);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .92rem;
}

.interview-details div {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .7rem;
}

.interview-details dt {
  font-weight: 700;
}

.interview-details dd {
  margin: 0;
  color: #e6eee8;
}

.intro-note {
  width: min(calc(100% - 2rem), var(--reading-width));
  margin: 2.5rem auto;
  padding: 1.25rem 1.5rem;
  background: var(--forest-light);
  border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.intro-note strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--forest-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intro-note p {
  margin: 0;
}

.transcript {
  width: min(calc(100% - 2rem), var(--reading-width));
  margin: 0 auto;
  padding-bottom: 2rem;
}

.transcript h2 {
  margin: 3rem 0 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--line);
  color: var(--forest-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.exchange {
  margin: 0 0 1.7rem;
}

.exchange p {
  margin: 0 0 .9rem;
}

.speaker {
  margin-bottom: .25rem !important;
  color: var(--forest-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.speaker span {
  color: var(--muted);
  font-weight: 600;
}

.speaker--rs {
  border-left: 4px solid var(--accent);
  padding-left: .75rem;
}

.speaker--fm {
  border-left: 4px solid var(--forest);
  padding-left: .75rem;
}

.speaker-inline {
  color: var(--forest-dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .88em;
  font-weight: 800;
}

.exchange--laughter {
  padding-left: 1rem;
  color: var(--muted);
  font-style: italic;
}

.historical-photo {
  margin: 2.5rem 0;
  padding: 1rem;
  background: #f5f3ec;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.historical-photo img {
  width: 100%;
  border-radius: 8px;
}

.photo-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
  background: #e6e4dc;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}

.photo-placeholder p {
  margin: .25rem;
}

.photo-note {
  font-size: .8rem;
}

figcaption {
  margin-top: .75rem;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

.page-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #f8f7f1;
  font-family: Arial, Helvetica, sans-serif;
}

.page-navigation__current {
  color: var(--muted);
  font-size: .9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.1rem;
  color: #fff;
  background: var(--forest);
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  color: #fff;
  background: var(--forest-dark);
}

.site-footer {
  padding: 2rem 1rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .85rem;
  text-align: center;
}

@media (max-width: 700px) {
  body {
    font-size: 1.04rem;
    line-height: 1.7;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    background: rgba(255,255,255,.08);
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .interview {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .interview-header {
    padding: 2rem 1rem;
  }

  .interview-details {
    grid-template-columns: 1fr;
  }

  .interview-details div {
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .intro-note,
  .transcript {
    width: min(calc(100% - 2rem), var(--reading-width));
  }

  .page-navigation {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .page-navigation,
  .skip-link {
    display: none;
  }

  body,
  .interview {
    background: #fff;
    box-shadow: none;
    border: 0;
  }

  .interview-header {
    color: #000;
    background: #fff;
    border-bottom: 2px solid #000;
  }

  .subtitle,
  .interview-details dd,
  .eyebrow {
    color: #000;
  }
}
