@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f5e6c8;
  --gold:  #d4a574;
  --dark:  #262117;
  --dark2: #3a3020;
  --dark3: #1a1610;
  --gold-light: #e8c49a;
  --text-muted: #7a6a52;
  --font: 'Space Mono', 'Courier New', Courier, monospace;
  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--cream);
  font-family: var(--font);
}

body {
  overflow-x: hidden;
  background: var(--cream);
  position: relative;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--dark); text-decoration: none; }
a:hover { color: var(--gold); }
ul, ol { list-style: none; }
h1,h2,h3,h4 { line-height: 1.25; font-family: var(--font); font-weight: 700; }

/* ── Grain overlay ── */
.grain-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: multiply;
  animation: grain-shift 0.15s steps(1) infinite;
}
@keyframes grain-shift {
  0%   { background-position: 0 0; }
  20%  { background-position: -30px 20px; }
  40%  { background-position: 15px -10px; }
  60%  { background-position: -20px 30px; }
  80%  { background-position: 25px -15px; }
  100% { background-position: -10px 10px; }
}

/* ── Light leak ── */
.light-leak {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 45vh;
  z-index: 999;
  background: radial-gradient(ellipse at 80% 0%, rgba(212,165,116,0.22) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 100%, rgba(245,230,200,0.12) 0%, transparent 50%);
  animation: leak-pulse 8s ease-in-out infinite alternate;
}
@keyframes leak-pulse {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

/* ── VHS bar ── */
.vhs-bar {
  pointer-events: none;
  position: fixed;
  left: 0; right: 0;
  height: 3px;
  background: rgba(212,165,116,0.55);
  z-index: 1001;
  animation: vhs-scan 6s linear infinite;
  box-shadow: 0 0 8px rgba(212,165,116,0.8);
}
@keyframes vhs-scan {
  0%   { top: -4px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.6; }
  100% { top: 100vh; opacity: 0; }
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--dark3);
  border-bottom: 2px solid var(--gold);
  height: var(--nav-h);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo-mark { height: 38px; width: auto; }

/* ── Primary nav ── */
.primary-nav {
  flex: 1;
}
.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-wrap: wrap;
}
.primary-nav__list dt {
  display: block;
}
.primary-nav__list dt a {
  display: block;
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.75rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.primary-nav__list dt a:hover {
  background: rgba(212,165,116,0.18);
  color: var(--cream);
}

/* ── Header contact ── */
.site-header__contact {
  flex-shrink: 0;
  margin-left: auto;
}
.contact-label {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  border: 1px solid var(--gold);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
}

/* ── Nav toggle (mobile) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.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); }

/* ── scroll margin for sticky nav ── */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* ── Hero ── */
.hero-band {
  position: relative;
  min-height: 45vh;
  background: var(--dark2);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-band__clip {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 45%;
  height: 110%;
  background: var(--dark);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}
.hero-band::after {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--cream) 50%, var(--gold) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}
.hero-text { max-width: 520px; }
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--cream);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.hero-sub {
  font-size: 0.92rem;
  color: var(--gold-light);
  line-height: 1.8;
}

/* ── Hero collage ── */
.hero-collage {
  position: relative;
  height: 280px;
}
.hero-img {
  position: absolute;
  object-fit: cover;
  filter: sepia(0.4) contrast(1.1) saturate(0.75);
  border: 4px solid var(--cream);
  box-shadow: 4px 4px 20px rgba(0,0,0,0.5);
}
.hero-img--a {
  width: 55%;
  height: 70%;
  top: 0; left: 0;
  z-index: 2;
  transform: rotate(-2deg);
}
.hero-img--b {
  width: 52%;
  height: 65%;
  bottom: 0; right: 0;
  z-index: 3;
  transform: rotate(1.5deg);
}
.polaroid-frame {
  position: absolute;
  width: 48%;
  height: 60%;
  bottom: 15%;
  left: 20%;
  border: 6px solid rgba(245,230,200,0.25);
  border-bottom-width: 22px;
  z-index: 1;
  transform: rotate(-0.5deg);
}

/* ── Main content layout ── */
main { padding: 3rem 0 4rem; }
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.content-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.content-article { min-width: 0; }
.content-body { min-width: 0; }

/* ── Content body typography ── */
.content-body h2 {
  font-size: 1.35rem;
  color: var(--dark);
  margin: 2.5rem 0 0;
  letter-spacing: 0.05em;
  border-left: 4px solid var(--gold);
  padding-left: 0.85rem;
}
.content-body h2 + hr {
  border: none;
  border-top: 1px solid var(--gold);
  margin: 0.6rem 0 1.2rem;
  opacity: 0.5;
}
.content-body h3 {
  font-size: 1.1rem;
  color: var(--dark2);
  margin: 1.8rem 0 0.5rem;
  letter-spacing: 0.04em;
}
.content-body h3 + hr {
  border: none;
  border-top: 1px dashed var(--gold);
  margin: 0.4rem 0 1rem;
  opacity: 0.4;
}
.content-body p {
  margin: 0.9rem 0;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--dark2);
}
.content-body a {
  color: var(--dark);
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s;
}
.content-body a:hover { color: var(--gold); }
.content-body ul, .content-body ol {
  margin: 0.8rem 0 0.8rem 1.5rem;
}
.content-body ul { list-style: square; }
.content-body ol { list-style: decimal; }
.content-body li { margin: 0.4rem 0; line-height: 1.75; }
.content-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 0.7rem 1.2rem;
  margin: 1.2rem 0;
  background: rgba(212,165,116,0.1);
  font-style: italic;
  color: var(--dark2);
}
.content-body article {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(38,33,23,0.12);
}
.content-body article:last-child { border-bottom: none; }
.content-body time {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* ── Aside ── */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.aside-inner {
  background: var(--dark);
  color: var(--cream);
  padding: 1.5rem;
  border-radius: 28px;
  border-bottom: 4px solid var(--gold);
}
.aside-title {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.aside-inner > hr {
  border: none;
  border-top: 1px solid rgba(212,165,116,0.4);
  margin-bottom: 1rem;
}
.aside-nav { display: block; }
.aside-nav dt {
  display: block;
  margin: 0.3rem 0;
}
.aside-link {
  display: block;
  font-size: 0.8rem;
  color: var(--gold-light);
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
  line-height: 1.3;
}
.aside-link:hover {
  background: rgba(212,165,116,0.2);
  color: var(--cream);
}
.aside-stamp {
  margin-top: 1.5rem;
  border: 2px solid rgba(212,165,116,0.3);
  padding: 0.6rem;
  text-align: center;
  border-radius: 4px;
}
.aside-stamp span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(212,165,116,0.5);
  text-transform: uppercase;
}

/* ── Footer ── */
.site-footer {
  background: var(--dark3);
  color: var(--cream);
  border-top: 3px solid var(--gold);
}

/* Footer CTA */
.footer-cta {
  background: var(--dark2);
  border-bottom: 1px solid rgba(212,165,116,0.3);
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-cta__text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cream);
}
.footer-cta__btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  border-radius: 3px;
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.footer-cta__btn:hover {
  background: var(--cream);
  color: var(--dark3);
}

/* Footer body — three dl columns */
.footer-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-col { display: block; }
.footer-col__heading {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}
.footer-col__heading--sm {
  font-size: 0.68rem;
  margin-top: 1.2rem;
}
.footer-col__desc {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(245,230,200,0.7);
  margin-bottom: 0.5rem;
  display: block;
}
.footer-col__tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.6;
  display: block;
}
.footer-col__spacer { height: 0.5rem; display: block; }
.footer-col dd {
  display: block;
  margin: 0.25rem 0;
}
.footer-col dd a {
  font-size: 0.82rem;
  color: rgba(245,230,200,0.65);
  letter-spacing: 0.05em;
  padding: 0.35rem 0;
  display: block;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-col dd a:hover { color: var(--cream); }

/* Footer bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(212,165,116,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(245,230,200,0.45);
  letter-spacing: 0.06em;
}
.footer-bottom__nav {
  display: flex;
  gap: 0.1rem;
  flex-wrap: wrap;
}
.footer-bottom__nav dt { display: block; }
.footer-bottom__nav dt a {
  font-size: 0.75rem;
  color: rgba(245,230,200,0.45);
  padding: 0.4rem 0.6rem;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-bottom__nav dt a:hover { color: var(--cream); }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay { transition-delay: 0.18s; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grain-overlay, .light-leak, .vhs-bar { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-collage { height: 200px; }
  .content-section {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    order: -1;
  }
  .aside-inner { border-radius: 12px; }
  .footer-body {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col--brand { grid-column: 1 / -1; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  :root { --nav-h: 58px; }
  html { font-size: 16px; }

  .site-header__inner { flex-wrap: wrap; padding: 0 1rem; }
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--dark3);
    border-bottom: 2px solid var(--gold);
    padding: 1rem;
    z-index: 300;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; gap: 0; }
  .primary-nav__list dt a {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    min-height: 48px;
    border-bottom: 1px solid rgba(212,165,116,0.15);
  }
  .site-header__contact { display: none; }

  .hero-band { min-height: auto; }
  .hero-content { padding: 2rem 1rem; }
  .hero-h1 { font-size: 1.6rem; }
  .hero-collage { height: 180px; }
  .hero-band__clip { width: 35%; }

  .wrap { padding: 0 1rem; }
  main { padding: 2rem 0 3rem; }

  .footer-cta { flex-direction: column; align-items: flex-start; padding: 2rem 1rem; }
  .footer-body { grid-template-columns: 1fr; padding: 2rem 1rem; gap: 1.5rem; }
  .footer-col--brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1rem; }
  .footer-cta__btn { min-height: 48px; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
