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

:root {
  --ink: #1a1612;
  --ink-muted: #6b5f54;
  --ink-faint: #c4b8ac;
  --cream: #f5f0e8;
  --cream-dark: #ede5d8;
  --cream-darker: #ddd3c4;
  --groove: #2a221c;
  --groove-mid: #3d3028;
  --accent: #c0392b;
  --accent-warm: #d4580a;
  --vinyl: #111;
  --label-yellow: #f0d060;
  --label-bg: #fef9ec;
}

body {
  background-color: var(--groove);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

/* Subtle grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ─── Header ─── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.header-logo {
  display: block;
  line-height: 0;
}

.header-logo img {
  height: 140px;
  width: auto;
}

/* ─── Nav ─── */
nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--label-yellow);
}

.nav-link--feed {
  color: #f26522;
  border: 1px solid #f26522;
  border-radius: 3px;
  padding: 0.15em 0.5em;
  line-height: 1;
}

.nav-link--feed:hover {
  color: #fff;
  background: #f26522;
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.footer-copyright {
  margin-top: 0.5rem;
}

.footer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

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

/* ─── Hamburger toggle ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 600px) {
  header {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }
  .header-logo img {
    height: 90px;
  }
  .nav-toggle {
    display: flex;
  }
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.25rem 0;
    order: 3;
  }
  nav.open {
    display: flex;
  }
  .nav-link {
    padding: 0.75rem 1rem;
  }
}

/* ─── Shared page layout (about, contact, and similar pages) ─── */
.page-content {
  max-width: 680px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--label-yellow);
  margin-bottom: 2rem;
  line-height: 1.1;
}

.page-body {
  color: var(--cream-dark);
  line-height: 1.8;
  font-size: 1rem;
  font-weight: 300;
}

.page-body p + p {
  margin-top: 1.2rem;
}

@media (max-width: 600px) {
  .page-content { margin: 2.5rem auto; }
}
