:root {
  --bg-0: #0c1210;
  --bg-1: #14201c;
  --bg-2: #1c2e28;
  --ink: #e8efe9;
  --muted: #9ab4a8;
  --accent: #c4e86b;
  --line: rgba(232, 239, 233, 0.12);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, #243d34 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 15%, #1a332c 0%, transparent 50%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top,
main,
footer {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 14vh, 8rem) 1.5rem 5rem;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 0.9s ease both;
}

.brand {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: rise 1s 0.05s ease both;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  max-width: 18ch;
  margin-bottom: 1rem;
  color: #d7e4d9;
  animation: rise 1s 0.15s ease both;
}

.lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  animation: rise 1s 0.25s ease both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 1s 0.35s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 560;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #10180f;
}

.btn.ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover {
  border-color: rgba(232, 239, 233, 0.28);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.section-lead {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.work-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.work-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  transition: background 0.25s ease;
}

.work-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.work-list li:hover {
  background: rgba(196, 232, 107, 0.04);
}

.year {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  padding-top: 0.2rem;
}

.work-list h3 {
  font-size: 1.15rem;
  font-weight: 560;
  margin-bottom: 0.25rem;
}

.work-list p {
  color: var(--muted);
  font-size: 0.95rem;
}

.mail {
  color: var(--accent);
  font-size: 1.25rem;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.mail:hover {
  border-bottom-color: var(--accent);
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  nav {
    gap: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .work-list li {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.85rem;
  }
}
