:root {
  color-scheme: dark;
  --font-body: "Manrope", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --bg: #08131f;
  --bg-alt: #0c1b2c;
  --surface: rgba(11, 24, 39, 0.94);
  --surface-soft: rgba(16, 31, 49, 0.92);
  --surface-strong: rgba(19, 37, 58, 0.98);
  --text: #ecf1f7;
  --text-muted: #a3b0c3;
  --line: rgba(180, 194, 214, 0.16);
  --accent: #ff8a2a;
  --accent-soft: rgba(255, 138, 42, 0.16);
  --accent-strong: #ffd2ae;
  --shadow: 0 28px 70px rgba(1, 7, 15, 0.34);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --bg-alt: #e8edf2;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(248, 250, 252, 0.98);
  --surface-strong: rgba(255, 255, 255, 1);
  --text: #142133;
  --text-muted: #58667a;
  --line: rgba(20, 33, 51, 0.12);
  --accent: #d96811;
  --accent-soft: rgba(217, 104, 17, 0.12);
  --accent-strong: #7b3400;
  --shadow: 0 18px 40px rgba(25, 41, 62, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

body::before {
  display: none;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 19, 31, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

:root[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.86);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.site-nav a + a {
  padding-left: 1rem;
}

.site-nav a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 0.95rem;
  background: var(--line);
  transform: translateY(-50%);
}

.wordmark:hover,
.wordmark:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

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

.theme-toggle,
.button,
.simple-link-list a {
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.theme-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--accent);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.theme-toggle svg {
  width: 1.3rem;
  height: 1.3rem;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.button:hover,
.button:focus-visible,
.simple-link-list a:hover,
.simple-link-list a:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.home-main,
.resume-layout {
  padding-top: 2.5rem;
}

.home-hero {
  padding-top: 1rem;
}

.home-simple {
  display: grid;
  gap: 0.8rem;
  padding: 2.5rem 0 0;
  justify-items: center;
  text-align: center;
}

.hero-copy,
.content-card,
.resume-header,
.resume-section,
.link-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 28px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
}

.lede,
.hero-copy p,
.resume-section p,
.resume-section li,
.resume-contact,
.site-footer,
.footer-links {
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 1rem;
}

.link-section {
  padding-top: 3.25rem;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.simple-link-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.simple-link-list a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.simple-link-list a:hover,
.simple-link-list a:focus-visible {
  color: var(--accent-strong);
}

.home-simple h1 {
  color: var(--text);
}

.link-section h2 {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #111111;
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
}

.button-secondary {
  background: var(--surface-soft);
  color: var(--text);
}

:root[data-theme="light"] .button-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
}

.resume-page-bar,
.resume-header,
.resume-section {
  padding: 1.6rem;
  border-radius: 24px;
}

.resume-layout {
  display: grid;
  gap: 1.15rem;
  padding-top: 1.5rem;
}

.resume-page-bar {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.resume-role + .resume-role {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.resume-role-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: start;
}

.resume-role h3 {
  margin-bottom: 0.3rem;
}

.resume-role-header p {
  margin: 0;
  color: var(--text-muted);
}

.resume-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.resume-section li {
  position: relative;
  padding-left: 1.15rem;
}

.resume-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--accent);
}

.resume-skill-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  padding: 1rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .resume-header,
  .resume-page-bar,
  .resume-role-header {
    flex-direction: column;
  }

}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1rem, 1080px);
  }

  .site-header {
    top: 0.5rem;
    padding: 1rem;
    border-radius: 18px;
  }

  .site-nav {
    gap: 0.75rem;
  }

  .site-nav a + a {
    padding-left: 0.75rem;
  }

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

  .site-nav a + a::before {
    height: 0.8rem;
  }

  .theme-toggle {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .resume-skill-list {
    grid-template-columns: 1fr;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .theme-toggle,
  .resume-actions {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .resume-layout {
    padding-top: 0;
  }

  .resume-header,
  .resume-section {
    box-shadow: none;
    border: 1px solid #d6dbe2;
    background: white;
    break-inside: avoid;
  }
}
