:root {
  --bg: #f4f1ea;
  --ink: #17151c;
  --body: #37313c;
  --muted: #625d68;
  --violet: #6810df;
  --violet-soft: rgba(104, 16, 223, 0.62);
  --violet-deep: #5200b8;
  --lime: #b8f200;
  --surface-text: #f5f0e7;
  --surface-muted: rgba(245, 240, 231, 0.72);
  --page-x: clamp(1.35rem, 6vw, 5.4rem);
  --page-y: clamp(1.25rem, 3vw, 2.5rem);
  --content-width: 42rem;
  --art-width: min(40vw, 39rem);
  --art-gap: clamp(1.6rem, 3vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.dialog-open,
html.dialog-open body {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ink);
  background: var(--lime);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 0.18rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

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

.artwork {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 0;
  width: var(--art-width);
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
}

.artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.page-shell {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding-top: var(--page-y);
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  padding-left: var(--page-x);
  padding-right: max(var(--page-x), calc(var(--art-width) + var(--art-gap)));
}

.intro {
  width: min(100%, var(--content-width));
  text-wrap: pretty;
}

h1 {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(4rem, 6.7vw, 6.15rem);
  line-height: 0.92;
  letter-spacing: -0.068em;
  font-weight: 820;
}

h1 span + span {
  margin-left: 0.12em;
}

.role {
  margin: 1.42rem 0 0;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.22rem, 1.95vw, 1.68rem);
  line-height: 1.15;
  font-weight: 670;
  letter-spacing: -0.028em;
}

.role-part {
  white-space: nowrap;
}

.role-mobile-break {
  display: none;
}

.copy {
  margin-top: 1.88rem;
  max-width: 36rem;
  color: var(--body);
  font-size: clamp(1rem, 1.16vw, 1.1rem);
}

.copy p {
  margin: 0;
}

.copy p + p {
  margin-top: 0.82rem;
}

/* One underline system everywhere: thin violet at rest; thicker lime replaces it on hover. */
.link-label {
  position: relative;
  display: inline-block;
  text-decoration: none;
  line-height: inherit;
  background-image: linear-gradient(var(--violet-soft), var(--violet-soft));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
}

.link-label::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 190ms ease;
}

.text-link {
  text-decoration: none;
}

.text-link:hover .link-label::after,
.text-link:focus-visible .link-label::after,
.profile-links a:hover .link-label::after,
.profile-links a:focus-visible .link-label::after {
  transform: scaleX(1);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.12rem;
  margin-top: 1.42rem;
  font-size: 1rem;
  font-weight: 600;
}

.profile-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.34rem;
  color: var(--ink);
  min-height: 1.5rem;
  text-decoration: none;
}

.profile-links .link-arrow {
  color: var(--violet);
  transform: translate3d(0, 0, 0);
  transition: transform 190ms ease;
}

.profile-links a:hover .link-arrow,
.profile-links a:focus-visible .link-arrow {
  transform: translate3d(0.16em, -0.08em, 0);
}

.footer {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0 var(--page-x) var(--page-y);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  color: inherit;
  text-decoration-color: rgba(98, 93, 104, 0.42);
  text-underline-offset: 0.16em;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--violet);
}

.footer-sep {
  opacity: 0.55;
}

/* Full-screen content dialog. */
.content-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: var(--surface-text);
  background: var(--violet-deep);
}

.content-dialog[open] {
  display: block;
  animation: dialog-in 180ms ease-out both;
}

.content-dialog::backdrop {
  background: var(--violet-deep);
}

.dialog-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.content-layout {
  padding:
    clamp(4.25rem, 10vh, 7rem)
    clamp(1.35rem, 8vw, 7.5rem)
    clamp(3rem, 8vh, 6rem);
}

.dialog-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.content-content {
  width: min(100%, 45rem);
  margin: 0 auto;
  color: var(--surface-text);
}

.content-kicker {
  margin: 0 0 1.25rem;
  color: var(--surface-muted);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.content-content h1 {
  margin: 0;
  white-space: normal;
  font-size: clamp(2.8rem, 5.4vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 820;
}

.content-content h2 {
  margin: 2.5rem 0 0.55rem;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.25;
}

.content-content p,
.content-content li {
  color: var(--surface-text);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.content-content p {
  margin: 0.7rem 0 0;
}

.content-content a {
  color: var(--lime);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.dialog-close {
  position: fixed;
  z-index: 3;
  top: clamp(1rem, 2.5vw, 1.75rem);
  right: clamp(1rem, 2.5vw, 1.75rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--surface-text);
  background: transparent;
  font: inherit;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--lime);
  background: transparent;
}

.content-loading {
  margin: 0;
  color: var(--surface-muted) !important;
  font-size: 1rem !important;
}

.content-updated {
  margin-top: 2.5rem !important;
  color: var(--surface-muted) !important;
  font-size: 0.92rem !important;
}

@keyframes dialog-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.vita-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vita-list li {
  margin: 0;
}

@media (max-width: 1120px) {
  :root {
    --art-width: min(35vw, 31rem);
    --art-gap: 1.75rem;
    --content-width: 39rem;
  }

  h1 {
    font-size: clamp(3.7rem, 6.7vw, 5.35rem);
  }

  .role {
    font-size: clamp(1.13rem, 1.95vw, 1.46rem);
  }
}

@media (max-width: 900px) {
  .content-content h1 {
    font-size: clamp(2.7rem, 7vw, 4.5rem);
  }

  :root {
    --page-x: clamp(1.25rem, 5vw, 2.75rem);
    --content-width: 100%;
  }

  .artwork {
    position: relative;
    inset: auto;
    z-index: 0;
    flex: 0 0 auto;
    width: 100%;
    height: clamp(8.8rem, 21vw, 11rem);
  }

  .artwork img {
    object-fit: cover;
    object-position: center top;
  }

  .page-shell {
    align-items: flex-start;
    padding: clamp(1.8rem, 4vw, 2.5rem) var(--page-x) 2.6rem;
  }

  h1 {
    font-size: clamp(3.55rem, 8.3vw, 4.9rem);
  }

  .role {
    font-size: clamp(1.14rem, 2.8vw, 1.42rem);
  }

  .copy {
    max-width: 36rem;
  }
}

@media (max-width: 520px) {
  :root {
    --page-x: 1.2rem;
    --page-y: 1.1rem;
  }

  .artwork {
    height: clamp(8.6rem, 37vw, 10rem);
  }

  .page-shell {
    padding-top: 2rem;
  }

  h1 {
    white-space: nowrap;
    font-size: clamp(2.72rem, 11vw, 3.55rem);
  }

  h1 span {
    display: inline;
  }

  h1 span + span {
    margin-left: 0.12em;
  }

  .role {
    white-space: normal;
    max-width: none;
    font-size: clamp(1.14rem, 5vw, 1.4rem);
  }

  .role-mobile-break {
    display: block;
  }

  .role .sep {
    white-space: normal;
  }

  .copy {
    font-size: 0.985rem;
  }

  .profile-links {
    display: grid;
    grid-template-columns: max-content max-content;
    justify-content: start;
    gap: 0.32rem 1.2rem;
    margin-top: 1.08rem;
    font-size: 0.98rem;
  }

  .footer {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .content-layout {
    padding: 5.4rem 1.35rem 3rem;
  }

  .content-content h1 {
    font-size: clamp(2.5rem, 12vw, 3.2rem);
  }
}

@media (max-width: 360px) {
  h1 {
    white-space: normal;
    font-size: clamp(2.85rem, 14.5vw, 3.15rem);
  }

  h1 span {
    display: block;
  }

  h1 span + span {
    margin-left: 0;
  }

  .profile-links {
    column-gap: 0.9rem;
    font-size: 0.95rem;
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Minimal 404 page: same type, colors and link language, deliberately without artwork. */
.not-found-page {
  min-height: 100vh;
  min-height: 100svh;
}

.not-found-shell {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: var(--page-y) var(--page-x);
}

.not-found-content h1 {
  margin: 0;
  white-space: normal;
}

.not-found-content p {
  margin: 1.4rem 0 0;
  color: var(--body);
  font-size: clamp(1rem, 1.16vw, 1.1rem);
}

.not-found-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.34rem;
  min-height: 1.5rem;
  margin-top: 1.35rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.not-found-link .link-arrow {
  color: var(--violet);
  transform: translate3d(0, 0, 0);
  transition: transform 190ms ease;
}

.not-found-link:hover .link-label::after,
.not-found-link:focus-visible .link-label::after {
  transform: scaleX(1);
}

.not-found-link:hover .link-arrow,
.not-found-link:focus-visible .link-arrow {
  transform: translate3d(0.16em, -0.08em, 0);
}

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

  .link-label::after,
  .profile-links .link-arrow,
  .not-found-link .link-arrow,
  .dialog-close {
    transition: none;
  }

  .content-dialog[open] {
    animation: none;
  }
}

@media (forced-colors: active) {
  .artwork {
    display: none;
  }

  .link-label {
    background: none;
    text-decoration: underline;
  }

  .link-label::after {
    display: none;
  }
}

/* Direct content pages use the same visual surface as the content dialog. */
body.content-page {
  display: block;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--surface-text);
  background: var(--violet-deep);
}

.content-page-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.content-home {
  position: fixed;
  z-index: 3;
  top: clamp(1rem, 2.5vw, 1.75rem);
  right: clamp(1rem, 2.5vw, 1.75rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--surface-text);
  background: transparent;
  text-decoration: none;
  font-size: 2.2rem;
  line-height: 1;
  transition: color 160ms ease;
}

.content-home:hover,
.content-home:focus-visible {
  color: var(--lime);
  background: transparent;
}