/* Titanic Women's Stories — author site for Melinda E. Ratchford
   Palette: deep-sea navy, sunset coral, teal, gold, warm cream. Loud on purpose. */

:root {
  --navy: #12284c;
  --navy-2: #1d3a6b;
  --coral: #e2492f;
  --coral-dark: #b9341d;
  --teal: #12877f;
  --teal-dark: #0b645e;
  --gold: #f4b63d;
  --plum: #7b2d5f;
  --cream: #fff7e8;
  --paper: #ffffff;
  --ink: #1c2430;
  --muted: #55606f;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 40, 76, .16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral-dark); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 700; }
.eyebrow {
  font-family: var(--sans); font-weight: 800; font-size: .82rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--coral-dark); margin: 0 0 .6rem;
}
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; flex-wrap: wrap; padding-block: 6px; }
.brand { font-family: var(--serif); font-weight: 800; color: #fff; text-decoration: none; font-size: 1.1rem; white-space: nowrap; }
.brand span { color: var(--gold); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.nav li a { display: block; padding: 8px 12px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav li a:hover { background: var(--coral); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 800; text-decoration: none;
  background: var(--coral); color: #fff; border: 3px solid var(--coral); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn.navy { background: var(--navy); border-color: var(--navy); }
.btn.navy:hover { background: var(--navy-2); border-color: var(--navy-2); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(244,182,61,.35), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(226,73,47,.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0f3b5c 60%, var(--teal-dark) 100%);
  color: #fff; padding: 64px 0 88px; overflow: hidden; position: relative;
}
.hero::after { /* wavy bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: var(--cream);
  -webkit-mask: radial-gradient(circle at 24px 0, transparent 23px, #000 24px) 0 0 / 48px 48px repeat-x;
          mask: radial-gradient(circle at 24px 0, transparent 23px, #000 24px) 0 0 / 48px 48px repeat-x;
}
.hero .wrap { display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .2em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .sub { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.6rem); color: #ffe7b8; margin: 0 0 1.4rem; }
.hero .by { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; margin-bottom: 1.6rem; }
.three-words {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 .5rem;
  font-family: var(--serif); font-weight: 900; font-size: clamp(1.4rem, 3.2vw, 2rem);
}
.three-words span:nth-child(1) { color: var(--gold); }
.three-words span:nth-child(3) { color: #ff8a73; }
.three-words span:nth-child(5) { color: #7fe0d6; }
.three-words i { font-style: normal; opacity: .6; }
.quote-line { margin: 0 0 1.8rem; color: #d9e6f5; font-size: 1.05rem; max-width: 34rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cover-wrap { position: relative; justify-self: center; max-width: 360px; }
.cover-wrap img { border-radius: 6px; box-shadow: 0 24px 50px rgba(0,0,0,.45); transform: rotate(2.5deg); border: 6px solid #fff; }
.badge {
  position: absolute; left: -22px; bottom: 26px; transform: rotate(-6deg); background: var(--gold); color: var(--navy);
  font-weight: 900; padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: .95rem; line-height: 1.25; text-align: center;
}
.badge small { display: block; font-weight: 700; font-size: .78rem; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.band-white { background: var(--paper); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy .eyebrow { color: var(--gold); }
.band-navy .lede { color: #cbd8ea; }
.band-teal { background: var(--teal); color: #fff; }
.band-teal h2 { color: #fff; }
.band-teal .eyebrow { color: var(--gold); }
.band-teal a { color: #fff; }

/* The book */
.book { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: start; }
.book p { margin: 0 0 1.1em; }
.facts { background: var(--cream); border: 3px solid var(--navy); border-radius: var(--radius); padding: 24px; box-shadow: 8px 8px 0 var(--gold); }
.facts h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .98rem; }
.facts dt { font-weight: 800; color: var(--coral-dark); }
.facts dd { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.chips li { background: var(--navy); color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.chips li:nth-child(3n+1) { background: var(--coral); }
.chips li:nth-child(3n+2) { background: var(--teal); }

/* Praise */
.praise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.praise {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  border-top: 10px solid var(--coral); display: flex; flex-direction: column;
}
.praise:nth-child(2) { border-top-color: var(--gold); }
.praise:nth-child(3) { border-top-color: #4fc3b8; }
.praise .pull { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; line-height: 1.3; color: var(--navy); margin: 0 0 1rem; }
.praise .pull::before { content: "\201C"; color: var(--coral); font-size: 2.4rem; line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.praise details { font-size: .98rem; color: var(--muted); }
.praise summary { cursor: pointer; font-weight: 800; color: var(--coral-dark); margin-bottom: .5rem; }
.praise details p { margin: 0 0 .8em; }
.who { margin-top: auto; padding-top: 1rem; border-top: 1px dashed #c8cfd9; font-size: .95rem; color: var(--ink); }
.who strong { display: block; font-size: 1.05rem; color: var(--navy); }
.triumvirate-note { text-align: center; max-width: 44rem; margin: 0 auto; color: #cbd8ea; }
.descendant { margin: 32px auto 0; max-width: 52rem; background: rgba(255,255,255,.1); border: 2px dashed rgba(255,255,255,.4); border-radius: var(--radius); padding: 24px 28px; text-align: center; }
.descendant p { margin: 0 0 .6rem; font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.descendant .who { border: 0; padding: 0; color: #e6eefb; }
.descendant .who strong { color: var(--gold); display: inline; }

/* Sixteen */
.sixteen { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; margin-top: 36px; align-items: start; }
.woman { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 10px solid var(--c, var(--coral)); }
.woman:nth-child(5n+1) { --c: var(--coral); }
.woman:nth-child(5n+2) { --c: var(--teal); }
.woman:nth-child(5n+3) { --c: var(--gold); }
.woman:nth-child(5n+4) { --c: var(--plum); }
.woman:nth-child(5n+5) { --c: var(--navy-2); }
.woman summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.woman summary::-webkit-details-marker { display: none; }
.woman .num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 900; }
.woman:nth-child(5n+3) .num { color: var(--navy); }
.woman h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; flex: 1; }
.woman summary::after { content: "+"; font-weight: 900; font-size: 1.6rem; color: var(--c); line-height: 1; }
.woman[open] summary::after { content: "\2212"; }
.woman p { margin: 0; padding: 0 20px 22px; color: #38424f; font-size: 1rem; }
.hint { text-align: center; color: var(--muted); margin-top: 20px; font-style: italic; }

/* News */
.news { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; margin-top: 36px; }
.clipping { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; background: #fff; }
.clipping img { width: 100%; }
.news blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.3; border-left: 8px solid var(--coral); padding-left: 18px; }
.news .cite { color: var(--muted); font-size: .98rem; }

/* Presentations */
.talks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 36px 0; }
.stat { background: rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold); margin-bottom: 6px; }

/* About */
.about { display: grid; grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: center; }
.portrait { position: relative; max-width: 380px; }
.portrait img { border-radius: 50% 50% var(--radius) var(--radius) / 38% 38% var(--radius) var(--radius); box-shadow: var(--shadow); border: 8px solid var(--gold); width: 100%; }
.about p { margin: 0 0 1.1em; }
.motto { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--coral-dark); border-left: 8px solid var(--gold); padding-left: 18px; margin: 1.4rem 0 0; }

/* Contact */
.contact { text-align: center; }
.contact p { max-width: 38rem; margin-inline: auto; }
.contact .btn { margin-top: 10px; background: var(--gold); border-color: var(--gold); color: var(--navy); font-size: 1.1rem; }
.contact .btn:hover { background: #fff; border-color: #fff; color: var(--navy); }

footer { background: #0b1830; color: #aebbd0; padding: 32px 0; text-align: center; font-size: .95rem; }
footer p { margin: .2rem 0; }
footer .joke { color: var(--gold); font-weight: 700; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero .wrap, .book, .news, .about { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .cover-wrap { max-width: 280px; order: -1; }
  .praise-grid, .talks { grid-template-columns: 1fr; }
  .portrait { margin-inline: auto; max-width: 300px; }
  section { padding: 56px 0; }
  .nav .wrap { justify-content: center; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .nav li a { padding: 6px 9px; font-size: .88rem; }
  .badge { left: -6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
