@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=DM+Mono:wght@400;500&display=swap');

:root {
  --teal: #008f78;
  --teal-dim: rgba(0,143,120,0.10);
  --teal-mid: rgba(0,143,120,0.28);
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --card: rgba(255,253,248,0.82);
  --card2: #ebe4d8;
  --border: rgba(32,42,36,0.14);
  --border2: rgba(32,42,36,0.28);
  --text: #17231e;
  --text-dim: rgba(23,35,30,0.64);
  --text-faint: rgba(23,35,30,0.38);
  --shadow: 0 24px 70px rgba(25,31,27,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(23,35,30,0.022) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

a { color: inherit; }

.site-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 4vw, 52px);
}

.site-nav.is-solid {
  position: relative;
  background: rgba(244,241,234,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav:not(.is-solid) .nav-name { color: #fffdf8; }
.nav-name em { color: var(--teal); font-style: normal; }

.nav-links {
  display: flex;
  gap: clamp(12px, 2.8vw, 28px);
  align-items: center;
}

.nav-link {
  position: relative;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav:not(.is-solid) .nav-link { color: rgba(255,253,248,0.72); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active { color: var(--teal); }

.site-nav:not(.is-solid) .nav-link:hover,
.site-nav:not(.is-solid) .nav-link.is-active { color: #fffdf8; }

.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.section-label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 34px 0 18px;
}

.section-label span {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-label::after {
  content: "";
  height: 1px;
  background: var(--border);
}

.footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.footer-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 17px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
}

.footer-link {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

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

.footer-legal {
  margin-top: 12px;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  line-height: 1.5;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .site-nav {
    align-items: flex-start;
    padding: 16px 18px;
  }

  .nav-links {
    gap: 12px;
    padding-top: 3px;
  }

  .nav-link {
    font-size: 9px;
    letter-spacing: 0.09em;
  }
}
