:root {
  color-scheme: dark;
  --background: #141414;
  --foreground: #eeede9;
  --muted: #bab9b3;
  --line: #383837;
  --accent: #ef805a;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

:root[data-theme='light'] {
  color-scheme: light;
  --background: #f6f6f3;
  --foreground: #1c1c1c;
  --muted: #656560;
  --line: #d6d6d0;
  --accent: #ae431f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: 24px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
[hidden] { display: none !important; }

.homepage {
  width: min(1080px, calc(100% - 112px));
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--foreground);
  color: var(--background);
  transform: translateY(-160%);
  z-index: 2;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 34px;
}

.monogram { font-size: 25px; font-weight: 500; letter-spacing: -2px; }
.monogram span { color: var(--accent); margin-inline: 4px; font-weight: 300; }
.header-actions { display: flex; align-items: center; gap: 27px; }
.header-nav { display: flex; align-items: center; gap: 25px; }
.header-nav a { font-size: 14px; padding-block: 12px; transition: color 180ms ease; }
.header-nav a:hover, .header-nav a:active { color: var(--accent); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  position: relative;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease;
}
.theme-toggle::before { content: ""; position: absolute; inset: 5px; border: .75px solid var(--line); border-radius: 50%; transition: border-color 180ms ease; }
.theme-toggle svg { width: 17px; height: 17px; transition: transform 250ms ease; }
.theme-toggle:hover { color: var(--foreground); }
.theme-toggle:hover::before { border-color: var(--muted); }
.theme-toggle:hover svg { transform: rotate(25deg); }

main {
  align-self: center;
  padding-block: clamp(28px, 5vh, 66px) clamp(44px, 7vh, 82px);
}

.intro-label {
  margin: 0 0 25px 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .025em;
}

.wordmark {
  display: flex;
  align-items: baseline;
  width: fit-content;
  margin: 0 0 42px;
  font-size: clamp(80px, 20vw, 216px);
  line-height: 1.02;
  letter-spacing: -.075em;
  font-weight: 500;
  animation: arrive 750ms cubic-bezier(.2, .7, .25, 1) both;
}

.wordmark em {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.085em;
  margin-left: .035em;
}

.signature-stroke {
  align-self: center;
  width: 2px;
  height: .52em;
  margin-left: .22em;
  background: var(--accent);
  transform: rotate(19deg);
  transition: transform 450ms cubic-bezier(.2, .7, .25, 1);
  animation: slash-in 850ms 200ms cubic-bezier(.2, .7, .25, 1) backwards;
}
.wordmark:hover .signature-stroke { transform: rotate(0deg); }

.introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 29px;
  animation: arrive 750ms 80ms cubic-bezier(.2, .7, .25, 1) both;
}

.role {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.035em;
}

.bio {
  max-width: 365px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.site-footer {
  display: grid;
  gap: 27px;
  border-top: 1px solid var(--line);
  padding-block: 28px 34px;
}

.contacts { display: flex; flex-wrap: wrap; gap: 26px 62px; }
.contacts a { display: block; padding-block: 3px; min-width: 0; }
.contact-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.contact-value { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: transparent; transition: text-decoration-color 180ms ease; }
.contacts a:hover .contact-value, .contacts a:focus-visible .contact-value, .contacts a:active .contact-value { text-decoration-color: var(--accent); }
.contact-arrow { display: inline-block; transition: transform 180ms ease, color 180ms ease; }
.contacts a:hover .contact-arrow, .contacts a:focus-visible .contact-arrow, .contacts a:active .contact-arrow { color: var(--accent); transform: translate(2px, -2px); }
.colophon { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }

@keyframes slash-in {
  from { transform: rotate(0deg); opacity: 0; }
  to { transform: rotate(19deg); opacity: 1; }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .homepage { width: calc(100% - 56px); }
  .site-header { padding-block: 24px; }
  main { padding-block: 28px 45px; }
  .intro-label { margin-left: 3px; margin-bottom: 27px; }
  .wordmark { font-size: 17.6vw; margin-bottom: 36px; }
  .introduction { gap: 30px; padding-top: 24px; }
  .role { font-size: 27px; }
  .bio { font-size: 15px; }
  .site-footer { align-items: flex-start; padding-block: 24px; }
  .contacts { gap: 23px 32px; }
}

@media (max-width: 520px) {
  .homepage { width: calc(100% - 44px); }
  .site-header { padding-block: 19px; }
  .header-actions { gap: 12px; }
  .header-nav { gap: 18px; }
  main { padding-block: 22px 36px; }
  .intro-label { font-size: 12px; margin-bottom: 24px; }
  .wordmark { font-size: 18.5vw; margin-bottom: 33px; }
  .introduction { grid-template-columns: 1fr; gap: 21px; padding-top: 24px; }
  .role { font-size: 27px; }
  .bio { max-width: 340px; font-size: 16px; line-height: 1.65; }
  .contacts { gap: 20px; flex-direction: column; }
  .contact-label { margin-bottom: 3px; }
  .site-footer { padding-block: 21px 25px; gap: 24px; }
  .colophon { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
