:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #202124;
  --muted: #68635d;
  --line: #ded7ca;
  --teal: #0f766e;
  --coral: #c2513f;
  --gold: #b7791f;
  --shadow: 0 22px 60px rgba(42, 38, 30, 0.14);
}

:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #171717;
  --surface: #22201c;
  --surface-strong: #2b2924;
  --ink: #f4efe5;
  --muted: #bdb5a8;
  --line: #413d35;
  --teal: #5eead4;
  --coral: #f08a72;
  --gold: #f4c76a;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 32%),
    linear-gradient(315deg, rgba(194, 81, 63, 0.1), transparent 36%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.hero {
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  padding: 24px 0 42px;
}

.nav,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.nav-actions a,
.button,
.theme-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-weight: 700;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(32px, 7vw, 86px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.5rem);
  line-height: 1.75;
}

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

.button {
  min-width: 124px;
}

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

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

.profile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-strong);
}

.profile div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
}

.profile span {
  color: var(--muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: -18px 0 80px;
}

.metrics div,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(14px);
}

:root[data-theme="night"] .metrics div,
:root[data-theme="night"] .project-card,
:root[data-theme="night"] .nav-actions a,
:root[data-theme="night"] .button.secondary,
:root[data-theme="night"] .theme-toggle {
  background: rgba(34, 32, 28, 0.82);
}

.metrics div {
  padding: 20px;
}

.metric-value {
  display: block;
  color: var(--teal);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: var(--muted);
  font-weight: 700;
}

.projects {
  padding: 0 0 90px;
}

.section-head {
  margin-bottom: 28px;
}

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

.project-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.project-card p {
  color: var(--muted);
  line-height: 1.65;
}

.project-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--teal);
  font-weight: 900;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.project-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card.private .project-meta span:first-child {
  border-color: rgba(183, 121, 31, 0.45);
  color: var(--gold);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  color: var(--muted);
}

.theme-toggle {
  width: 42px;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  .nav {
    align-items: flex-start;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-grid,
  .metrics,
  .project-list {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 56px;
  }

  .profile {
    max-width: 360px;
  }

  .metrics {
    margin: 18px 0 58px;
  }
}
