@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --paper: #f9faf8;
  --ink: #1c2321;
  --soft-ink: #48514e;
  --line: #e0e4e2;
  --forest: #1e352f;
  --blue: #2a4858;
  --rose: #8f3b4f;
  --gold: #b38628;
  --white: #ffffff;
  --mist: #f0f3f1;
  --shadow: 0 12px 30px rgba(28, 35, 33, 0.04);
  --shadow-hover: 0 20px 40px rgba(28, 35, 33, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: var(--transition);
}

a:hover {
  color: var(--rose);
  text-underline-offset: 5px;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(249, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.site-nav strong {
  color: var(--forest);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: flex-end;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--soft-ink);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--forest);
}

.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #121917;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 25, 23, 0.9) 0%, rgba(18, 25, 23, 0.6) 50%, rgba(18, 25, 23, 0.3) 100%),
    linear-gradient(180deg, rgba(18, 25, 23, 0.1) 0%, rgba(18, 25, 23, 0.8) 100%),
    url("assets/photos/photo-08-jerry-ty-tahoe.jpg") center 34% / cover no-repeat;
  transform: scale(1.02);
  transition: transform 6s ease-out;
}

.hero:hover::before {
  transform: scale(1.05);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(42px, 8vh, 76px);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero p {
  max-width: 760px;
  margin: 24px 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-rail {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 160px));
  gap: 16px;
}

.hero-rail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.hero-rail img:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.band {
  padding: clamp(60px, 8vw, 110px) clamp(18px, 4vw, 52px);
}

.band.alt {
  background: var(--white);
}

.band.deep {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest), #162622 70%, #2f1d24);
}

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.deep .section-kicker {
  color: #f3cf7a;
}

h2 {
  margin: 0 0 24px;
  max-width: 850px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
}

.lede {
  max-width: 900px;
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--soft-ink);
  line-height: 1.6;
}

.deep .lede,
.deep p {
  color: rgba(255, 255, 255, 0.88);
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 6vw, 68px);
  align-items: center;
}

.text-flow p {
  margin: 0 0 20px;
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card,
.note-card,
.source-row,
.gallery-item,
.timeline li {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  transition: var(--transition);
}

.feature-card {
  padding: 24px;
  min-height: 180px;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rose);
}

.feature-card b {
  color: var(--forest);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.photo-frame {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.photo-frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: var(--transition);
}

.photo-frame:hover img {
  transform: scale(1.02);
}

.photo-frame.tall img {
  aspect-ratio: 3 / 4;
}

.photo-frame figcaption,
.gallery-item figcaption {
  padding: 14px 16px;
  color: var(--soft-ink);
  font-size: 0.9rem;
  background: var(--white);
}

.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.01);
  transition: var(--transition);
}

.source-pill:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}

.source-pill.muted {
  color: var(--soft-ink);
}

.source-pill.muted:hover {
  background: var(--soft-ink);
  border-color: var(--soft-ink);
  color: var(--white);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 12px;
}

.timeline li {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--line);
  transition: var(--transition);
}

.timeline li.era-childhood { border-left-color: #d4af37; }
.timeline li.era-mission { border-left-color: #2d6a4f; }
.timeline li.era-marriage { border-left-color: #9a3b49; }
.timeline li.era-professional { border-left-color: #274c77; }
.timeline li.era-later-years { border-left-color: #38b000; }

.timeline li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.timeline time {
  font-weight: 800;
  font-size: 1.15rem;
  font-family: 'Playfair Display', Georgia, serif;
}

.timeline li.era-childhood time { color: #d4af37; }
.timeline li.era-mission time { color: #2d6a4f; }
.timeline li.era-marriage time { color: #9a3b49; }
.timeline li.era-professional time { color: #274c77; }
.timeline li.era-later-years time { color: #38b000; }

.timeline span {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--soft-ink);
}

.note-card {
  padding: 28px;
  background: var(--mist);
  border-color: var(--line);
}

.chapter {
  margin-top: 40px;
  padding-left: clamp(20px, 4vw, 36px);
  border-left: 4px solid var(--gold);
}

.chapter h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--forest);
}

.chapter p {
  max-width: 880px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  color: var(--soft-ink);
  font-style: italic;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.gallery-item {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--rose);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--mist);
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 84px;
}

.gallery-item figcaption span {
  font-weight: 500;
  color: var(--ink);
}

.gallery-item small {
  color: var(--rose);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.source-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  gap: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.source-row:hover {
  border-color: var(--blue);
}

.source-row h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  color: var(--forest);
  font-family: 'Playfair Display', Georgia, serif;
}

.source-row h3 a {
  text-decoration: none;
  color: var(--blue);
}

.source-row h3 a:hover {
  color: var(--rose);
}

.source-row p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 0.88rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.source-row dl {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.source-row dl div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
}

.source-row dt {
  color: var(--rose);
  font-weight: 700;
}

.source-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--soft-ink);
  font-family: monospace;
  font-size: 0.82rem;
  background: var(--mist);
  padding: 2px 6px;
  border-radius: 4px;
}

.archive-notes {
  margin-top: 36px;
  display: grid;
  gap: 16px;
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

details[open] {
  border-color: var(--forest);
}

summary {
  cursor: pointer;
  color: var(--forest);
  font-weight: 700;
  font-size: 1.05rem;
  outline: none;
  font-family: 'Playfair Display', Georgia, serif;
}

details p {
  margin: 12px 0 0;
  color: var(--soft-ink);
  font-size: 0.98rem;
  line-height: 1.55;
}

footer {
  padding: 36px clamp(18px, 4vw, 52px);
  color: var(--soft-ink);
  background: #f0f3f1;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  text-align: center;
}

@media (max-width: 900px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
    gap: 16px;
  }

  .site-nav div {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .grid-two,
  .source-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-list,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 78vh;
  }

  .hero-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .feature-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }

  .timeline time {
    font-size: 1.1rem;
  }
}
