/* Elegant, lightweight, dependency-free styling for Cloudflare Pages */

:root {
  --ink: #24323d;
  --ink-soft: #53616c;
  --paper: #f8f5ef;
  --paper-deep: #eee7dc;
  --surface: rgba(255, 255, 255, 0.82);
  --accent: #c7795b;
  --accent-soft: #e7b7a5;
  --gold: #d8b36a;
  --line: rgba(36, 50, 61, 0.12);
  --shadow: 0 24px 80px rgba(36, 50, 61, 0.13);
  --radius-lg: 30px;
  --radius-md: 20px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(231, 183, 165, 0.19), transparent 28rem),
    radial-gradient(circle at 90% 35%, rgba(216, 179, 106, 0.11), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 0.6rem;
}

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

.hero {
  position: relative;
  display: grid;
  min-height: 76vh;
  place-items: center;
  overflow: hidden;
  padding: 6rem 1.5rem 8rem;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(29, 43, 53, 0.96), rgba(41, 56, 67, 0.88)),
    var(--ink);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.hero__glow {
  position: absolute;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
}

.hero__glow--one {
  top: -12rem;
  left: -8rem;
  background: radial-gradient(circle, var(--accent), transparent 68%);
}

.hero__glow--two {
  right: -10rem;
  bottom: -15rem;
  background: radial-gradient(circle, var(--gold), transparent 68%);
}


.family-tree {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4rem, 12vw, 8rem);
  margin: 0 auto 2.1rem;
}

.family-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.55rem;
  width: 1px;
  height: 1.55rem;
  background: rgba(255, 255, 255, 0.34);
}

.family-tree__branch {
  position: absolute;
  top: 2.8rem;
  left: 50%;
  width: clamp(4rem, 12vw, 8rem);
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
  transform: translateX(-50%);
}

.family-tree__branch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 1.6rem;
  background: rgba(255, 255, 255, 0.34);
}

.family-member {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.family-member__portrait {
  display: grid;
  width: clamp(4.8rem, 12vw, 6.4rem);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.family-member__name {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.family-member:hover .family-member__portrait,
.family-member:focus-visible .family-member__portrait {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
}

.family-member:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 0.45rem;
  border-radius: 999px;
}

@media (max-width: 520px) {
  .family-tree {
    gap: 4rem;
  }

  .family-tree__branch {
    width: 4rem;
  }
}

.hero__content {
  width: min(100%, 860px);
}

.eyebrow,
.section-kicker,
.intro-card__label {
  margin: 0 0 0.9rem;
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 12vw, 8.8rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.hero h1 span {
  color: var(--accent-soft);
}

.tagline {
  max-width: 680px;
  margin: 1.7rem auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2.3rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero__link:hover,
.hero__link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

main {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: -5rem auto 0;
  position: relative;
}

.intro-card {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intro-card__label {
  color: var(--accent);
}

.intro-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.story-copy p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.quote {
  max-width: 840px;
  margin: clamp(4rem, 8vw, 7rem) auto;
  text-align: center;
}

.quote p {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.2;
}

.timeline-section,
.interests {
  padding: 1rem 0 5.5rem;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2.2rem;
}

.section-kicker {
  color: var(--accent);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.timeline__item {
  position: relative;
  min-height: 250px;
  padding: 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.timeline__marker {
  position: absolute;
  right: 1.1rem;
  top: 0.6rem;
  color: rgba(36, 50, 61, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.2rem;
  line-height: 1;
}

.timeline__content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: flex-end;
}

.year {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h3 {
  margin: 0.35rem 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.timeline p,
.interest-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.interest-grid article {
  padding: 1.4rem;
  background: rgba(255,255,255,0.52);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.interest-grid span {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--accent);
  background: rgba(199, 121, 91, 0.1);
  border-radius: 50%;
  font-size: 1.1rem;
}

.interest-grid h3 {
  margin-top: 1rem;
}

footer {
  margin-top: 1rem;
  padding: 4rem 1.5rem;
  color: rgba(255,255,255,0.72);
  background: var(--ink);
  text-align: center;
}

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

footer strong {
  display: block;
  margin-bottom: 0.6rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

footer p,
footer small {
  margin: 0;
}

footer small {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(255,255,255,0.45);
}

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

  .intro-card__grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline__item {
    min-height: 190px;
  }

  .timeline__content {
    min-height: 150px;
  }

  .interest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 64vh;
    padding-bottom: 6.5rem;
  }

  main {
    margin-top: -3.5rem;
  }

  .intro-card {
    padding: 1.5rem;
    border-radius: 22px;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
