/* Marlow & Tide - site styles
   Fonts loaded per-page: Fraunces (display) + Source Serif 4 (text). */

:root {
  --navy: #14263f;
  --navy-deep: #0d1a2c;
  --cream: #f7f4ec;
  --paper: #fffdf7;
  --ink: #26241f;
  --muted: #7d7466;
  --accent: #c9553d;
  --gold: #b98b3e;
  --rule: #e6e0d2;
  --shadow: 0 1px 2px rgba(20, 38, 63, 0.06), 0 8px 24px rgba(20, 38, 63, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
}

a { color: var(--navy); text-decoration-color: rgba(20,38,63,0.3); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- Header ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand svg { display: block; }
.wordmark { font-size: 1.55rem; letter-spacing: 0.01em; }
.wordmark small {
  display: block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}
nav.main { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: 0.94rem; }
nav.main a {
  text-decoration: none;
  color: var(--navy);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--gold); color: var(--navy); }
nav.main a.here { border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: #e9e4d8;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 0;
}
.hero h1 { color: #f3efe4; font-size: 2.4rem; margin-bottom: 1rem; }
.hero p { font-size: 1.05rem; color: #c8c2b2; max-width: 34rem; }
.hero .art { align-self: end; }
.hero .art svg { display: block; width: 100%; height: auto; }

/* Seascape animation: three wave layers lap at different tempos,
   the boat rides the swell, the route drifts. */
.hero .art .wave { animation: lap 9s ease-in-out infinite alternate; }
.hero .art .wave-2 { animation-duration: 12s; animation-direction: alternate-reverse; }
.hero .art .wave-3 { animation-duration: 15s; }
@keyframes lap {
  from { transform: translateX(0); }
  to   { transform: translateX(60px); }
}
.hero .art .boat {
  transform-box: fill-box;
  transform-origin: 50% 85%;
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%   { transform: translateY(0) rotate(0deg); }
  30%  { transform: translateY(3px) rotate(-1.4deg); }
  65%  { transform: translateY(-2px) rotate(1.1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.hero .art .route { animation: drift 24s linear infinite; }
@keyframes drift {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -120; }
}
.hero .art .stars circle { animation: twinkle 5s ease-in-out infinite; }
.hero .art .stars circle:nth-child(2n) { animation-delay: 1.6s; }
.hero .art .stars circle:nth-child(3n) { animation-delay: 3.1s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 0.25; }
}
/* NOTE: no prefers-reduced-motion guard here, deliberately - Nicole's own
   machine has Windows animations off, which would hide the scene from the
   game master. Single-audience site; revisit only if Whitney uses reduced
   motion, in which case restore:
   @media (prefers-reduced-motion: reduce) { .hero .art * { animation: none; } } */
.hero-cta { margin-top: 1.6rem; margin-bottom: 2.5rem; }
.btn {
  display: inline-block;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.6rem 1.3rem;
  border-radius: 2px;
  text-decoration: none;
  border: none;
}
.btn:hover { background: #cf9f4f; color: var(--navy-deep); }

/* ---------- Sections ---------- */
main { padding: 3rem 0 4rem; }
main.plain h1 { font-size: 2rem; margin-bottom: 1.2rem; }
h2 { font-size: 1.35rem; margin: 2.4rem 0 0.8rem; }
p + p { margin-top: 1rem; }
em.flourish { color: var(--muted); }
.rule { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
.lede { font-size: 1.12rem; color: #4a463d; }

.notice {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  padding: 1rem 1.3rem;
  font-size: 0.95rem;
  margin: 1.8rem 0;
  box-shadow: var(--shadow);
}

/* ---------- Book shelf ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}
.book {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.3rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.book:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 4px rgba(20,38,63,0.08), 0 14px 34px rgba(20,38,63,0.12);
}
.book .cover { margin-bottom: 1rem; }
.book .cover svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(20,38,63,0.18);
}
.book h3 { font-size: 1.08rem; }
.book .author { font-size: 0.85rem; color: var(--muted); margin: 0.15rem 0 0.55rem; }
.book .blurb { font-size: 0.92rem; }

/* ---------- Team ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}
.person {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.person .portrait { margin-bottom: 1rem; }
.person .portrait svg { display: block; border-radius: 50%; }
.person .portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--rule);
}
.person h3 { font-size: 1.12rem; }
.person .role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0.2rem 0 0.7rem;
  font-family: 'Source Serif 4', Georgia, serif;
}
.person p { font-size: 0.92rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card h2 { margin: 0 0 0.6rem; font-size: 1.1rem; }
.contact-card p { font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy);
  color: #9aa7b8;
  padding: 2.2rem 0 2.6rem;
  font-size: 0.82rem;
}
footer.site .cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: flex-start;
}
footer.site .fw { font-family: 'Fraunces', Georgia, serif; color: #d8d2c2; font-size: 1.05rem; margin-bottom: 0.3rem; }
footer.site a { color: #b9c3d0; }
footer.site .hours { margin-top: 0.4rem; }
html[data-night="1"] footer.site { background: var(--navy-deep); }
html[data-night="1"] footer.site .hours { color: #d9b96a; }

/* ---------- Mobile header (hamburger) ---------- */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--navy);
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.masthead.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.masthead.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.masthead.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .masthead {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 0;
    position: relative;
  }
  .brand { flex: 1; min-width: 0; }
  .brand svg { width: 38px; height: 38px; }
  .wordmark { font-size: 1.15rem; white-space: nowrap; }
  .wordmark small { font-size: 0.56rem; letter-spacing: 0.16em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu-toggle { display: block; }
  nav.main {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule);
    padding-top: 0.4rem;
  }
  .masthead.nav-open nav.main { display: flex; }
  nav.main a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1rem;
  }
  nav.main a:last-child { border-bottom: none; }
  nav.main a.here { border-bottom: 1px solid var(--rule); color: var(--accent); }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 2.4rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero .art { max-width: 420px; }
  main { padding: 2rem 0 3rem; }
  main.plain h1 { font-size: 1.6rem; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-portrait { max-width: 340px; }
}

/* ---------- Spotlight ---------- */
.spotlight-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}
.spotlight-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.spotlight-portrait.portrait-missing { display: none; }
.portrait-caption { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; font-style: italic; }
.spotlight-bio h2:first-child { margin-top: 0; }
.book .cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(20,38,63,0.18);
}

/* Spotlight responsive (must follow the spotlight base rules above) */
@media (max-width: 760px) {
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-portrait { max-width: 340px; }
}

/* Spotlight hero: navy feature band, portrait top right (2026-08-13).
   Keep at the true end of the file so the media query wins. */
.spotlight-hero {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 2.8rem;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 6px;
  padding: 2.6rem 2.8rem;
  margin-bottom: 2.6rem;
  box-shadow: var(--shadow);
}
.spotlight-hero .hero-eyebrow {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.spotlight-hero h1 {
  color: var(--paper);
  font-size: 2.3rem;
  margin: 0 0 1rem;
}
.spotlight-hero .lede {
  color: rgba(247, 244, 236, 0.85);
  margin: 0 0 1.3rem;
  max-width: none;
}
.spotlight-hero .hero-meta {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  color: rgba(247, 244, 236, 0.6);
  border-top: 1px solid rgba(247, 244, 236, 0.18);
  padding-top: 1rem;
}
.spotlight-hero .spotlight-portrait { margin: 0; }
.spotlight-hero .spotlight-portrait img {
  border: 6px solid var(--paper);
  border-radius: 3px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.spotlight-hero .portrait-caption { color: rgba(247, 244, 236, 0.6); }
.spotlight-bio { margin-top: 2rem; }
@media (max-width: 760px) {
  .spotlight-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.8rem 1.4rem;
  }
  .spotlight-hero .spotlight-portrait { max-width: 280px; }
  .spotlight-hero h1 { font-size: 1.75rem; }
}
