:root {
  --ink: #18332d;
  --green: #285f50;
  --green-soft: #dce9df;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --rust: #c97952;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.7rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(24, 51, 45, 0.12);
  border-radius: 1rem;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 30px rgba(35, 62, 54, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.desktop-nav {
  display: flex;
  gap: 0.4rem;
}

.desktop-nav a {
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.92rem;
  font-weight: 650;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  background: var(--green-soft);
  outline: none;
}

.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  min-height: calc(100vh - 5rem);
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.eyebrow,
.section-kicker {
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, serif;
}

h1 {
  max-width: 680px;
  margin: 1rem 0 1.4rem;
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--green);
}

.hero-intro {
  max-width: 580px;
  margin: 0 0 2rem;
  color: #46645c;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.8rem;
  background: var(--ink);
  color: white;
  font-weight: 750;
}

.primary-link:hover,
.primary-link:focus-visible {
  background: var(--green);
  outline: 3px solid rgba(40, 95, 80, 0.25);
  outline-offset: 3px;
}

.portrait-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  aspect-ratio: 4 / 5;
}

.portrait-accent {
  position: absolute;
  inset: 8% -4% -4% 10%;
  border-radius: 45% 45% 1.5rem 1.5rem;
  background: var(--green-soft);
  transform: rotate(3deg);
}

.portrait {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0.45rem solid var(--paper);
  border-radius: 45% 45% 1.5rem 1.5rem;
  object-fit: cover;
  object-position: center 22%;
  box-shadow: 0 24px 60px rgba(28, 63, 53, 0.2);
}

.age-badge {
  position: absolute;
  right: -1rem;
  bottom: 2rem;
  width: 5.4rem;
  height: 5.4rem;
  display: grid;
  place-content: center;
  border: 0.3rem solid var(--cream);
  border-radius: 50%;
  background: var(--rust);
  color: white;
  text-align: center;
  transform: rotate(5deg);
}

.age-badge strong {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
}

.age-badge span {
  font-size: 0.72rem;
  font-weight: 700;
}

.section-shell {
  padding: clamp(5rem, 10vw, 9rem) max(1rem, calc((100% - 1120px) / 2));
}

.section-heading h2 {
  max-width: 800px;
  margin: 1rem 0 0;
  font-size: clamp(2.6rem, 5.8vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-intro {
  max-width: 620px;
  margin: 1.5rem 0 0;
  color: #587069;
  font-size: 1.08rem;
  line-height: 1.75;
}

.about {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(3rem, 8vw, 8rem);
  background: var(--paper);
}

.about-copy {
  align-self: end;
  color: #526b64;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-lead {
  margin-top: 0;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.45;
}

.quick-facts {
  margin: 2.5rem 0 0;
  border-top: 1px solid rgba(24, 51, 45, 0.16);
}

.quick-facts div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(24, 51, 45, 0.16);
}

.quick-facts dt {
  color: #71847f;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.education {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(3rem, 8vw, 8rem);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 0.35rem;
  width: 1px;
  background: #acc2b9;
  content: "";
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.5fr auto;
  gap: 1.2rem;
  padding: 0.2rem 0 2.6rem 2.3rem;
}

.timeline-dot {
  position: absolute;
  top: 0.45rem;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  border: 0.18rem solid var(--cream);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.timeline time {
  color: var(--rust);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.timeline p {
  margin: 0.45rem 0 0;
  color: #62766f;
  line-height: 1.55;
}

.timeline .is-current {
  margin-top: 0.2rem;
  padding-top: 1.3rem;
  padding-right: 1rem;
  border-radius: 1rem;
  background: var(--green-soft);
}

.timeline .is-current .timeline-dot {
  top: 1.55rem;
}

.current-label {
  align-self: start;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hobbies {
  background: var(--ink);
  color: white;
}

.hobbies .section-kicker {
  color: #efaa80;
}

.hobbies .section-intro {
  color: #baccc6;
}

.hobby-heading {
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

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

.hobby-card {
  position: relative;
  min-height: 270px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  border-radius: 1.4rem;
  overflow: hidden;
  transition: transform 180ms ease;
}

.hobby-card:hover {
  transform: translateY(-5px);
}

.hobby-card::after {
  position: absolute;
  right: -2.5rem;
  bottom: -3.5rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.14;
  content: "";
}

.hobby-chess,
.hobby-drawing {
  grid-column: span 7;
}

.hobby-baking,
.hobby-tennis {
  grid-column: span 5;
}

.hobby-chess {
  background: #d9e8de;
  color: var(--ink);
}

.hobby-baking {
  background: #cf8058;
}

.hobby-tennis {
  background: #f1e8cb;
  color: var(--ink);
}

.hobby-drawing {
  background: #6f8f83;
}

.hobby-number {
  align-self: flex-end;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.65;
}

.hobby-icon {
  margin: auto 0 1.2rem;
  font-family: Georgia, serif;
  font-size: 4.2rem;
  line-height: 1;
}

.tennis-ball {
  width: 3.8rem;
  height: 3.8rem;
  display: block;
  border: 0.18rem solid currentColor;
  border-radius: 50%;
}

.tennis-ball::after {
  width: 2.8rem;
  height: 3.8rem;
  display: block;
  border-right: 0.14rem solid currentColor;
  border-radius: 50%;
  content: "";
  transform: rotate(35deg);
}

.hobby-card h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.7rem;
}

.hobby-card p {
  max-width: 430px;
  margin: 0.65rem 0 0;
  line-height: 1.6;
  opacity: 0.8;
}

footer {
  padding: 2.2rem max(1rem, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: #112620;
  color: #b9cbc5;
  font-size: 0.85rem;
}

footer p {
  margin: 0.2rem 0;
}

.footer-name {
  color: white;
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

footer a {
  padding: 0.7rem 0;
  color: white;
  font-weight: 750;
}

@media (max-width: 800px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    width: 2.8rem;
    height: 2.8rem;
    padding: 0.7rem;
    display: grid;
    align-content: center;
    gap: 0.28rem;
    border: 0;
    border-radius: 0.75rem;
    background: var(--ink);
    cursor: pointer;
  }

  .menu-button span {
    height: 2px;
    display: block;
    border-radius: 1px;
    background: white;
  }

  .menu-button:focus-visible {
    outline: 3px solid rgba(40, 95, 80, 0.35);
    outline-offset: 3px;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: min(19rem, calc(100vw - 2rem));
    padding: 0.65rem;
    display: grid;
    border: 1px solid rgba(24, 51, 45, 0.12);
    border-radius: 1rem;
    background: var(--paper);
    box-shadow: 0 18px 45px rgba(24, 51, 45, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 0.9rem;
    display: flex;
    gap: 1rem;
    border-radius: 0.7rem;
    font-family: Georgia, serif;
    font-size: 1.15rem;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    background: var(--green-soft);
    outline: none;
  }

  .mobile-menu a span {
    color: var(--rust);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
  }

  .hero {
    padding-top: 3rem;
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    justify-self: center;
    width: min(88%, 420px);
  }

  .about,
  .education {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 0.8fr 1.6fr auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 0.5rem;
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .brand > span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

  .hero {
    width: calc(100% - 2rem);
    padding-bottom: 5rem;
  }

  .age-badge {
    right: -0.5rem;
    bottom: 1rem;
  }

  .quick-facts div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .timeline .current-label {
    position: absolute;
    top: 1rem;
    right: 0.8rem;
  }

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

  .hobby-card,
  .hobby-chess,
  .hobby-baking,
  .hobby-tennis,
  .hobby-drawing {
    grid-column: 1;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .hobby-card,
  .mobile-menu {
    transition: none;
  }
}
