:root {
  --ink: #17212b;
  --muted: #65707a;
  --paper: #f1eee7;
  --blue: #145fc5;
  --line: rgba(23, 33, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.82), transparent 34rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.page-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(22rem, 0.82fr) minmax(32rem, 1.18fr);
  gap: clamp(1rem, 3vw, 3.25rem);
  padding: clamp(0.8rem, 1.8vw, 1.75rem);
}

.intro {
  min-height: calc(100svh - clamp(1.6rem, 3.6vw, 3.5rem));
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 3.2vw, 3.5rem) clamp(0.6rem, 2.4vw, 2.5rem);
}

.wordmark {
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.45rem;
  background: var(--blue);
  transform-origin: left;
  transition: transform 180ms ease;
}

.wordmark:hover::after,
.wordmark:focus-visible::after {
  transform: scaleX(0.58);
}

.intro__content {
  width: min(100%, 37rem);
  margin: auto 0;
  padding: clamp(4rem, 11vh, 7rem) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(1.3rem, 3vh, 2.2rem);
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
}

h1 {
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(4.4rem, 8.6vw, 8.6rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.78;
}

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

.bio {
  max-width: 34rem;
  margin: clamp(2.7rem, 6vh, 4.6rem) 0 0;
  color: #36434e;
  font-size: clamp(1rem, 1.22vw, 1.2rem);
  line-height: 1.72;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.7rem;
  margin-top: clamp(2rem, 4.5vh, 3rem);
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.links a::after {
  content: "\2197";
  color: var(--blue);
}

.links a:hover,
.links a:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.intro__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait {
  position: relative;
  min-height: calc(100svh - clamp(1.6rem, 3.6vw, 3.5rem));
  margin: 0;
  overflow: hidden;
  background: #7b93a9;
  border-radius: clamp(1rem, 2vw, 2rem);
  isolation: isolate;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 66%, rgba(5, 17, 25, 0.2));
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% center;
  transform: scale(1.002);
}

.portrait figcaption {
  position: absolute;
  right: 1.4rem;
  bottom: 1.25rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (max-width: 860px) {
  .page-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .intro {
    min-height: min(44rem, 78svh);
    padding: 1.25rem 1rem 1rem;
  }

  .intro__content {
    padding: 4rem 0;
  }

  h1 {
    font-size: clamp(4.6rem, 23vw, 7.5rem);
  }

  .bio {
    max-width: 31rem;
  }

  .portrait {
    min-height: 72svh;
    border-radius: 1.15rem;
  }

  .portrait img {
    object-position: 68% center;
  }
}

@media (max-width: 460px) {
  .page-shell {
    padding: 0.55rem;
  }

  .intro {
    min-height: calc(100svh - 1.1rem);
    padding-inline: 0.85rem;
  }

  .intro__footer {
    align-items: flex-end;
  }

  .intro__footer span:last-child {
    max-width: 9rem;
    text-align: right;
  }

  .portrait {
    min-height: 65svh;
  }
}

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

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