:root {
  color-scheme: dark;
  --bg: #111412;
  --ink: #eceee9;
  --muted: #929991;
  --line: #2a2f2b;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html,
body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: #59605a;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }

.skip {
  position: fixed;
  top: -5rem;
  left: 1.5rem;
  z-index: 2;
  padding: .6rem .8rem;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus { top: 1rem; }

.page {
  width: min(100% - 3rem, 72rem);
  height: 100vh;
  height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .02em;
}

header {
  padding-block: clamp(1.2rem, 4vh, 2rem);
  border-bottom: 1px solid var(--line);
}

.monogram {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

main {
  display: flex;
  align-items: center;
  padding-block: clamp(2rem, 8vh, 5rem);
}

.intro { max-width: 46rem; }

.home main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(7rem, 26vw, 21rem);
  column-gap: clamp(1rem, 7vw, 6rem);
  row-gap: 0;
}

.portrait {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  margin: 0;
  justify-self: end;
}

.portrait img {
  display: block;
  width: 100%;
  max-height: min(58vh, 36rem);
  aspect-ratio: 685 / 1000;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(.96);
}

.eyebrow {
  margin: 0 0 clamp(1rem, 3vh, 1.75rem);
  color: var(--muted);
  font-size: clamp(.7rem, 1.5vw, .8rem);
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .95;
}

.summary {
  max-width: 39rem;
  margin: clamp(1.4rem, 4vh, 2.5rem) 0 0;
  color: #b6bbb5;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.details { grid-column: 1; }

.details .context {
  max-width: 39rem;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.links {
  display: flex;
  gap: 1.5rem;
  margin-top: clamp(1.4rem, 4vh, 2.25rem);
  font-size: .88rem;
}

footer {
  padding-block: clamp(1rem, 3vh, 1.6rem);
  border-top: 1px solid var(--line);
}

.not-found h1 { font-size: clamp(3rem, 9vw, 7rem); }
.not-found .summary { margin-bottom: 1.5rem; }

@media (max-width: 48rem) {
  body { overflow-y: auto; }

  .page {
    width: min(100% - 2rem, 72rem);
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }

  .home main {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .portrait {
    grid-column: 1;
    grid-row: 1;
    width: clamp(9rem, 42vw, 13rem);
    justify-self: center;
    margin-bottom: .5rem;
  }

  .portrait img {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .intro {
    grid-column: 1;
    grid-row: 2;
  }

  .details {
    grid-column: 1;
    grid-row: 3;
  }

  .summary { font-size: .95rem; }
  .details .context { font-size: .82rem; line-height: 1.5; }
  header span { display: none; }
  footer { font-size: .7rem; }
}

@media (max-height: 34rem) {
  .summary { line-height: 1.45; }
  header, footer { padding-block: .65rem; }
  main { padding-block: 1rem; }
}
