*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='22' viewBox='0 0 16 22'%3E%3Cpath d='M0 0 L0 18 L4.5 13.5 L7.5 20 L9.5 19 L6.5 12 L12 12 Z' fill='%234D4D4D'/%3E%3C/svg%3E") 0 0, auto;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Geist Mono', monospace;
  font-size: 16px;
  line-height: 1.6;
  color: #4D4D4D;
  background-color: #F5EBE1;
}

a {
  color: #4D4D4D;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 0.9px;
  text-decoration-color: #7A7A7A;
}

.logo:hover {
  text-decoration: none;
}

/* ── layout ── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  border-top: 1px solid #7A7A7A;
}

/* ── header / nav ── */

header {
  position: sticky;
  top: 0;
  background: #F5EBE1;
  border-bottom: 1px solid #7A7A7A;
  z-index: 100;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* ── footer ── */

footer {
  border-top: 1px solid #7A7A7A;
  padding: 24px 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer p {
  font-size: 12px;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.03em;
}

/* ── burger ── */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #4D4D4D;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── mobile menu ── */

.mobile-menu {
  display: none;
}

/* ── responsive ── */

@media (max-width: 1024px) {
  section {
    padding: 48px 0;
    scroll-margin-top: 50px;
  }

  nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F5EBE1;
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  .mobile-menu.open {
    transform: translateY(0);
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .mobile-nav a {
    font-size: 20px;
    letter-spacing: 0.04em;
    color: #4D4D4D;
  }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
