:root {
  --font: 'Funnel Display', sans-serif;
  --color-text: rgba(0, 0, 0, 0.85);
  --color-heading: #242424;
  --color-muted: rgba(0, 0, 0, 0.68);
  --color-year: rgba(0, 0, 0, 0.45);
  --color-rule: rgba(0, 0, 0, 0.08);
  --color-accent: #FC466B;
  --spacing: 1.5rem;
  --bio-width: 30rem;
  --photo-width: 25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff radial-gradient(circle, rgba(255, 255, 255, 1) 50%, rgba(217, 240, 255, 1) 100%) fixed;
  color: var(--color-text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.45;
}

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

/* Desktop: intro and details in the left column, photo on the right.
   Mobile: intro, then photo, then details (see media query below). */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, var(--bio-width)) minmax(16rem, var(--photo-width));
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "intro   photo"
    "details photo"
    "footer  footer";
  column-gap: 3rem;
  justify-content: center;
  padding: 18vh var(--spacing) var(--spacing);
}
.intro   { grid-area: intro; }
.details { grid-area: details; }
.photo   { grid-area: photo; margin: 0; align-self: start; }
footer   { grid-area: footer; }

.photo img { width: 100%; border-radius: 4px; }

h1, h2 { color: var(--color-heading); font-family: var(--font); }
h1 { font-size: 3rem; font-weight: 300; line-height: 1.1; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; font-weight: 300; margin: 2rem 0 0.75rem; }
p  { margin: 0 0 1rem; }
b, strong { font-weight: 450; }

a {
  color: var(--color-heading);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.25s ease;
}
a:hover, a:focus-visible { color: var(--color-accent); }

.socials { display: inline-flex; gap: 0.6rem; vertical-align: middle; margin-left: 0.25rem; }
.socials svg { width: 1.25rem; height: 1.25rem; fill: currentColor; display: block; }

table { width: 100%; border-collapse: collapse; }
tr { border-bottom: 1px solid var(--color-rule); }
tr:last-child { border-bottom: none; }
td { vertical-align: top; padding: 0.6rem 0; }
td.year {
  width: 5.5rem;
  padding-right: 1rem;
  font-size: 1rem;
  color: var(--color-year);
  white-space: nowrap;
}
.description {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-rule);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
}

@media (max-width: 860px) {
  .wrap {
    grid-template-columns: minmax(0, 36rem);
    grid-template-rows: auto;
    grid-template-areas: "intro" "photo" "details" "footer";
    padding-top: 3rem;
  }
  .photo { margin: 0.5rem 0 1rem; }
  .photo img { max-height: 80vh; object-fit: cover; }
  h1 { font-size: 2.5rem; }
  td.year { width: 4.5rem; font-size: 0.9rem; }
}
