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

:root {
  --bg: #08080d;
  --surface: #12121a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8ef;
  --muted: #8b8b9e;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.12);
  --glow: rgba(94, 234, 212, 0.35);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max-width: 1100px;
  --prose-width: 52ch;
  --header-height: 4.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--glow), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(124, 58, 237, 0.15), transparent),
    var(--bg);
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 1.5rem;
  max-width: calc(var(--max-width) + 3rem);
  margin: 0 auto;
  backdrop-filter: blur(12px);
  background: rgba(8, 8, 13, 0.75);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  opacity: 1;
}

.site-header nav a[aria-current="page"] {
  color: var(--accent);
}

.theme-code {
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.12);
  --glow: rgba(94, 234, 212, 0.35);
}

.theme-writing {
  --accent: #c4b5fd;
  --accent-dim: rgba(196, 181, 253, 0.12);
  --glow: rgba(196, 181, 253, 0.3);
}

.theme-art {
  --accent: #fb7185;
  --accent-dim: rgba(251, 113, 133, 0.12);
  --glow: rgba(251, 113, 133, 0.3);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  padding: 5rem 0 4rem;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero .lead {
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.accent {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.375rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent-dim);
}

.btn-primary:hover {
  box-shadow: 0 0 32px var(--glow);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section > p {
  color: var(--muted);
  max-width: var(--prose-width);
}

.section-row {
  /* Wrapper for side-by-side sections on desktop */
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.lane-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.lane-card {
  display: block;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.lane-card:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.lane-card--code:hover {
  border-color: rgba(94, 234, 212, 0.35);
}

.lane-card--writing:hover {
  border-color: rgba(196, 181, 253, 0.35);
}

.lane-card--art:hover {
  border-color: rgba(251, 113, 133, 0.35);
}

.lane-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lane-card--code .lane-label {
  color: #5eead4;
}

.lane-card--writing .lane-label {
  color: #c4b5fd;
}

.lane-card--art .lane-label {
  color: #fb7185;
}

.lane-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lane-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.lane-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.lane-card:hover .lane-link {
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.badge--open {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
}

.item-list,
.process-list {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.item-list li + li,
.process-list li + li {
  margin-top: 0.5rem;
}

.process-list li::marker {
  color: var(--accent);
  font-weight: 600;
}

.portfolio-list {
  list-style: none;
  margin-top: 1rem;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.project-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-status {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.3rem 0.65rem;
  background: var(--accent-dim);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
}

.project-tech {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-description,
.project-note {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: var(--prose-width);
}

.project-description {
  margin-bottom: 1rem;
}

.project-description code,
.project-note code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--bg);
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
}

.project-note {
  margin-bottom: 1.25rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portfolio-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.portfolio-list li:first-child {
  padding-top: 0;
}

.portfolio-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.portfolio-list span {
  font-size: 0.9375rem;
  color: var(--muted);
}

.platform-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 500;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1rem;
}

.tag-list li {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.cta-section {
  padding-bottom: 1rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.card a {
  font-size: 0.875rem;
  font-weight: 500;
}

.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin-top: 1.5rem;
}

.social-links a {
  font-weight: 500;
}

.social-handle {
  color: var(--muted);
  font-size: 0.9375rem;
}

.social-handle code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--surface);
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 540px) {
  .site-header nav {
    gap: 1rem;
  }

  .site-header nav a {
    font-size: 0.875rem;
  }

  .hero {
    padding-top: 3.5rem;
  }
}

@media (min-width: 768px) {
  .hero,
  .page-hero {
    padding-top: 4.5rem;
  }

  .lead {
    max-width: 42ch;
  }

  .section > p,
  .project-description,
  .project-note,
  .lane-card p,
  .item-list,
  .process-list {
    text-align: left;
  }

  .lane-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .portfolio-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .portfolio-list li:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .section-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
  }

  .section-row > .section {
    padding: 0;
    border-top: none;
  }

  .cta-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 2rem;
    row-gap: 0.75rem;
  }

  .cta-section h2 {
    grid-column: 1;
    grid-row: 1;
  }

  .cta-section > p {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }

  .cta-section .hero-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-content: flex-end;
    max-width: 18rem;
  }

  .home-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
  }

  .home-split > .section {
    padding: 0;
    border-top: none;
  }
}

@media (min-width: 1024px) {
  .hero h1,
  .page-hero h1 {
    font-size: 3.75rem;
  }

  .tag-list {
    gap: 0.65rem;
  }
}
