:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(15, 23, 42, 0.02);
  --text: #ccd6f6;
  --text-soft: #94a3b8;
  --text-faint: #64748b;
  --line: rgba(148, 163, 184, 0.12);
  --hover: rgba(30, 41, 59, 0.55);
  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.1);
  --max-width: 1180px;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 50;
  transform: translateX(-110%);
  padding: 0.85rem 1rem;
  background: #fbbf24;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 180ms linear;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.16fr);
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--max-width);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  max-height: 100vh;
  align-items: flex-start;
  padding: 6rem 0;
}

.site-header__inner {
  display: flex;
  min-height: calc(100vh - 12rem);
  flex-direction: column;
  justify-content: space-between;
  max-width: 27.5rem;
}

.site-header__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1 a,
h2,
h3,
h4,
.text-link,
.inline-highlight {
  color: var(--text);
}

h1 {
  font-size: clamp(1.5066rem, 1.9845vw, 1.8468rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
  white-space: nowrap;
}

h2 {
  margin-top: 0.85rem;
  max-width: 92%;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.4;
  font-weight: 600;
}

.site-header__summary {
  margin: 1.25rem 0 0;
  max-width: 92%;
  font-size: 1rem;
}

.site-header__portrait {
  margin-top: 1.4rem;
  width: 74.52%;
}

.site-header__portrait-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 2px solid rgba(148, 163, 184, 0.1);
  object-fit: cover;
  object-position: center center;
  box-shadow: 0 14px 36px rgba(2, 8, 23, 0.28);
}

.site-nav {
  margin-top: 3rem;
}

.site-nav ul,
.social-links,
.entry-list,
.pill-list,
.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0.15rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 180ms ease;
}

.site-nav__indicator {
  width: 2rem;
  height: 1px;
  background: rgba(148, 163, 184, 0.36);
  transition: width 180ms ease, background 180ms ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.active {
  color: var(--text);
}

.site-nav__link:hover .site-nav__indicator,
.site-nav__link:focus-visible .site-nav__indicator,
.site-nav__link.active .site-nav__indicator {
  width: 4rem;
  background: var(--text);
}

.social-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.social-links a {
  color: var(--text-soft);
  transition: color 180ms ease, transform 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-links svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.site-main {
  padding: 6rem 0;
}

.content-section {
  margin-bottom: 6rem;
  scroll-margin-top: 6rem;
}

.mobile-section-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -1.5rem 1.5rem;
  padding: 1.1rem 1.5rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(12px);
}

.mobile-section-header h3 {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prose p {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.inline-highlight {
  font-weight: 500;
}

.entry-list {
  display: grid;
  gap: 0.7rem;
}

.entry-card,
.project-card {
  position: relative;
  display: grid;
  gap: 1.2rem;
  padding: 1.25rem 1.25rem 1.15rem;
  border-radius: var(--radius);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.entry-card {
  grid-template-columns: 8.5rem minmax(0, 1fr);
}

.entry-card:hover,
.project-card:hover {
  background: var(--hover);
  box-shadow: inset 0 1px 0 0 rgba(148, 163, 184, 0.08);
}

.entry-card__period {
  margin-top: 0.2rem;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-card__body h4,
.project-card__content h4 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

.entry-card__body h4 span {
  color: var(--text-soft);
}

.entry-card__body p,
.project-card__content p,
.contact-block p,
.site-footer p {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.pill-list li {
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}

.project-list {
  display: grid;
  gap: 0.8rem;
}

.project-card {
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: start;
}

.project-card__image {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 6px;
  border: 2px solid rgba(148, 163, 184, 0.08);
  object-fit: cover;
}

.contact-block {
  max-width: 36rem;
}

.contact-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
}

.text-link {
  font-weight: 600;
}

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

.contact-block__note {
  color: var(--text-faint);
}

.skills-summary {
  max-width: 44rem;
}

.skills-summary__intro {
  margin: 0 0 1.4rem;
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skills-group {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.skills-group h4 {
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.skills-group ul {
  margin: 0;
  padding-left: 1.1rem;
}

.skills-group li {
  margin: 0.32rem 0;
}

.site-footer {
  padding-bottom: 2rem;
  color: var(--text-faint);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .site-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-header {
    position: relative;
    max-height: none;
    padding: 6rem 0 2rem;
  }

  .site-header__inner {
    min-height: auto;
    max-width: none;
    gap: 2rem;
  }

  .site-header__summary {
    max-width: 24rem;
  }

  .site-main {
    padding-top: 1rem;
  }
}

@media (max-width: 768px) {
  .site-shell {
    padding: 0 1rem;
  }

  .site-header {
    padding: 4.5rem 0 1.5rem;
  }

  h1 {
    white-space: normal;
  }

  .site-nav {
    display: none;
  }

  .mobile-section-header {
    display: block;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .entry-card,
  .project-card {
    grid-template-columns: 1fr;
  }

  .skills-groups {
    grid-template-columns: 1fr;
  }

  .entry-card__period {
    margin-top: 0;
  }

  .content-section {
    margin-bottom: 4.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
