:root {
  color-scheme: dark;
  --bg: #111113;
  --surface: #18181b;
  --text: #f3f0e8;
  --muted: rgba(243, 240, 232, 0.72);
  --soft: rgba(243, 240, 232, 0.48);
  --accent: #f0df82;
  --line: rgba(243, 240, 232, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 22%, rgba(240, 223, 130, 0.08), transparent 28rem),
    linear-gradient(135deg, #141416 0%, #101012 58%, #171719 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  width: min(100% - 48px, 1040px);
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 30px;
  color: var(--accent);
  font-size: clamp(3.4rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 760;
}

.intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.14rem, 1.15vw + 0.92rem, 1.44rem);
  line-height: 1.68;
  letter-spacing: -0.018em;
}

strong {
  color: var(--text);
  font-weight: 650;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(240, 223, 130, 0.52);
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  margin: 0 0.03em;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: -0.32em;
}

.project-link strong {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(240, 223, 130, 0.52);
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.project-link:hover strong,
.project-link:focus-visible strong {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.app-icon {
  width: 1.32em;
  height: 1.32em;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid rgba(243, 240, 232, 0.16);
  border-radius: 24%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
  transform: translateY(-0.02em);
  transition:
    transform 260ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 260ms ease,
    border-color 260ms ease,
    filter 260ms ease;
  transform-origin: 50% 60%;
}

.project-link:hover .app-icon,
.project-link:focus-visible .app-icon {
  transform: translateY(0.015em) rotate(-2deg);
  border-color: rgba(240, 223, 130, 0.34);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.28),
    0 0 0 3px rgba(240, 223, 130, 0.055);
  filter: saturate(1.04) brightness(1.04);
}

@media (prefers-reduced-motion: reduce) {
  a,
  .app-icon,
  .project-link strong {
    transition: none;
    animation: none;
  }
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 620;
  text-decoration: none;
}

.links a:hover,
.links a:focus-visible {
  border-color: rgba(240, 223, 130, 0.44);
  background: rgba(240, 223, 130, 0.08);
}

.portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0;
  justify-self: end;
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.02);
  transform: rotate(-2deg);
}

.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 36px, 620px);
    align-items: start;
    padding: 52px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .portrait-wrap {
    order: -1;
    justify-self: start;
    width: 176px;
  }

  .portrait-wrap::before {
    inset: -12px;
    border-radius: 26px;
  }

  .portrait {
    border-radius: 20px;
  }

  h1 {
    margin-bottom: 24px;
  }

  .intro {
    font-size: 1.1rem;
    line-height: 1.62;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: min(100% - 28px, 620px);
    padding: 40px 0;
  }

  .portrait-wrap {
    width: 154px;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.1rem);
  }

  .links {
    gap: 10px;
  }

  .links a {
    min-height: 40px;
    padding: 0 14px;
  }
}
