:root {
  --bg: #f2efe8;
  --surface: #fffbf4;
  --ink: #1b1a18;
  --muted: #605b54;
  --brand: #0d6e6e;
  --brand-strong: #0a5151;
  --line: #ddd4c3;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(22, 24, 26, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, #fff9eb 0 18%, transparent 45%),
    radial-gradient(circle at 85% 22%, #e8f8f8 0 16%, transparent 42%),
    var(--bg);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.6;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.7rem;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
}

h3 {
  font-size: 1.35rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}

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

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  font: inherit;
}

.hero {
  padding-top: 6.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hero-copy,
.section-copy {
  color: var(--muted);
  max-width: 65ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--brand-strong);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.hero-panel,
.project-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1.4rem;
}

.hero-panel .panel-title {
  font-weight: 700;
  margin-top: 0;
}

.hero-panel ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
}

.section-head {
  margin-bottom: 1.25rem;
}

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

.project-card {
  padding: 1.2rem;
}

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

.project-card a {
  color: var(--brand-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.skill-list li {
  padding: 0.8rem 1rem;
  background: color-mix(in srgb, var(--surface) 90%, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-card {
  padding: 2rem;
}

.contact-card p {
  color: var(--muted);
}

.site-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.65s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }
.reveal:nth-child(6) { animation-delay: 0.4s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .project-grid,
  .skill-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    padding: 0.95rem 1rem;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

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

  .hero {
    padding-top: 5rem;
  }

  .section {
    padding: 4.25rem 0;
  }
}
