:root {
  color-scheme: dark;
  --ink: #fff3df;
  --muted: rgba(255, 243, 223, 0.7);
  --paper: #111313;
  --panel: #191c1d;
  --line: rgba(255, 243, 223, 0.16);
  --line-strong: rgba(255, 243, 223, 0.28);
  --gold: #d9a23b;
  --amber: #f0b466;
  --teal: #43b2b8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 5%, rgba(217, 162, 59, 0.12), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(67, 178, 184, 0.09), transparent 32%),
    linear-gradient(180deg, #111313, #151818 58%, #0b0c0c);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 19, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 950;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

nav a:hover,
nav a.active,
footer a:hover {
  color: var(--gold);
}

main {
  overflow: hidden;
}

.profile-hero,
.content-section,
.public-links {
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.58fr);
  align-items: center;
  gap: clamp(44px, 7vw, 110px);
  min-height: calc(100vh - 69px);
  padding: clamp(70px, 10vw, 150px) 0;
}

.profile-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 7.2vw, 7.6rem);
  line-height: 0.89;
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 0.98;
}

h3 {
  margin: 0;
  font-size: 1.32rem;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 820px;
  margin: 34px 0 0;
  color: var(--ink);
  font-size: clamp(1.22rem, 2.2vw, 1.7rem);
}

.profile-copy > p:last-child {
  max-width: 760px;
  font-size: 1.05rem;
}

.profile-portrait {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 22px 28px 0 rgba(217, 162, 59, 0.1), 0 34px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(1.5deg);
}

.profile-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.profile-portrait figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.identity-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: rgba(255, 243, 223, 0.04);
}

.identity-band span {
  padding: 25px clamp(18px, 3vw, 48px);
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 850;
  text-align: center;
}

.identity-band span:last-child {
  border-right: 0;
}

.content-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(44px, 8vw, 130px);
  padding: clamp(84px, 10vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}

.section-label {
  max-width: 590px;
}

.prose {
  max-width: 760px;
}

.prose p {
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.text-link,
.work-grid a {
  display: inline-flex;
  gap: 10px;
  color: var(--gold);
  font-weight: 900;
}

.text-link:hover,
.work-grid a:hover {
  color: var(--amber);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-grid article {
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(217, 162, 59, 0.09), transparent 55%),
    var(--panel);
}

.work-grid p {
  flex: 1;
}

.number {
  margin-bottom: 36px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.public-links {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(44px, 8vw, 130px);
  padding: clamp(84px, 10vw, 150px) 0;
}

.link-list {
  border-top: 1px solid var(--line);
}

.link-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.link-list a:hover span {
  color: var(--gold);
}

.link-list strong {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 6vw, 84px);
  border-top: 1px solid var(--line);
  background: #080909;
  color: var(--muted);
  font-size: 0.92rem;
}

footer p {
  margin: 0;
}

footer a {
  font-weight: 850;
}

@media (max-width: 900px) {
  .profile-hero,
  .content-section,
  .public-links {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    padding-top: 76px;
  }

  .profile-portrait {
    width: min(100%, 520px);
    margin-inline: auto;
    transform: none;
  }

  .identity-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-band span:nth-child(2) {
    border-right: 0;
  }

  .identity-band span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    gap: 6px 12px;
    font-size: 0.83rem;
  }

  .profile-hero,
  .content-section,
  .public-links {
    width: min(100% - 28px, 1440px);
  }

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

  .identity-band {
    grid-template-columns: 1fr;
  }

  .identity-band span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .identity-band span:last-child {
    border-bottom: 0;
  }

  .link-list a {
    align-items: flex-start;
    flex-direction: column;
  }

  .link-list strong {
    text-align: left;
  }

  footer {
    flex-direction: column;
  }
}
