:root {
  color-scheme: light;
  --ink: #122124;
  --muted: #5b6a6a;
  --paper: #f8f4ec;
  --surface: #ffffff;
  --line: #d7ded8;
  --teal: #1f6f68;
  --teal-dark: #164f4b;
  --amber: #d59332;
  --sage: #dfe9dd;
  --shadow: 0 20px 70px rgba(20, 33, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 24px 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
.site-footer a {
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover {
  color: var(--teal-dark);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 48px;
  align-items: center;
  padding: 34px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 7vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-text,
.project-hero p,
.split p {
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

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

.hero-visual {
  position: relative;
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 111, 104, 0.16), rgba(213, 147, 50, 0.2)),
    radial-gradient(circle at 78% 20%, rgba(213, 147, 50, 0.35), transparent 30%),
    var(--sage);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto;
  background: rgba(255, 255, 255, 0.54);
  transform: rotate(-14deg);
}

.hero-visual::before {
  width: 210px;
  height: 280px;
  left: -32px;
  bottom: 28px;
}

.hero-visual::after {
  width: 260px;
  height: 140px;
  right: -42px;
  top: 62px;
}

.browser-shell {
  position: absolute;
  inset: 74px 34px 42px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(18, 33, 36, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 45px rgba(18, 33, 36, 0.18);
  backdrop-filter: blur(12px);
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
}

.browser-bar span:nth-child(2) {
  background: var(--teal);
}

.browser-bar span:nth-child(3) {
  background: var(--muted);
}

.browser-body {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 14px;
  padding: 18px;
}

.panel,
.line,
.chips span {
  border-radius: 8px;
}

.panel {
  min-height: 92px;
  background: var(--sage);
}

.panel.large {
  min-height: 150px;
  background: var(--teal);
}

.panel.stack {
  background: #20373a;
}

.panel.small {
  grid-column: span 2;
  min-height: 58px;
  background: rgba(213, 147, 50, 0.28);
}

.line {
  height: 10px;
  background: var(--line);
}

.line.wide {
  grid-column: span 2;
  width: 82%;
}

.chips {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 7px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
}

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

.split {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 48px;
  align-items: start;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.resume-grid,
.project-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resume-grid article,
.project-board article,
.project-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.resume-grid article,
.project-board article {
  padding: 20px;
}

.resume-grid p,
.project-board p,
.project-link small {
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-link {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  text-decoration: none;
}

.project-link strong,
.project-link small {
  display: block;
}

.project-link:hover {
  border-color: var(--teal);
}

.project-link.muted {
  opacity: 0.74;
}

.project-hero {
  padding: 86px 0 54px;
  max-width: 840px;
}

.project-hero h1 {
  margin-bottom: 18px;
}

.status {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split,
  .resume-grid,
  .project-board {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
    padding-top: 20px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .browser-shell {
    inset: 52px 20px 30px;
  }
}

@media (max-width: 520px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  nav {
    gap: 11px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 290px;
  }

  .browser-body {
    grid-template-columns: 1fr;
  }

  .panel.small,
  .line.wide,
  .chips {
    grid-column: auto;
  }
}
