:root{
  --paper:#d7b56c;
  --ink:#1a1208;           /* darker ink */
  --shadow:rgba(0,0,0,.35);
  --maxw: 1200px;
}

/* ==== NAVIGATION ==== */
nav {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

nav li {
  position: relative;
}

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-family: "Gill Sans MT Ext Condensed Bold", "Gill Sans MT Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: url('assets/button.png') center/100% 100% no-repeat;
  min-width: 130px;
  height: 75px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 1px 3px rgba(0,0,0,0.25);
  filter: drop-shadow(0 4px 6px var(--shadow));
  transition: transform 0.2s ease, filter 0.2s ease;
}

nav a:hover {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 6px 8px var(--shadow));
}

nav a:active {
  transform: translateY(0) scale(0.98);
}


/* ---- Hero base ---- */
.hero{
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  color: var(--ink);
  overflow: clip;
  background: var(--paper);
  isolation: isolate;
}
.hero__bg{
  position: absolute; inset: 0;
  background: url('assets/hero.png') center/cover no-repeat;
  filter: saturate(.95) contrast(.95);
  z-index: -2;
}

/* subtle readable overlay */
.hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.22) 0%,
    rgba(0,0,0,.30) 45%,
    rgba(0,0,0,.36) 100%
  );
  z-index:-1;
}

.hero__content{
  width: min(92vw, var(--maxw));
  padding: clamp(16px, 4vw, 32px);
  text-shadow: 0 1px 0 rgba(255,255,255,.35), 0 2px 6px var(--shadow);
}

/* Headline with image drop cap */
.hero__headline{
  display: flex;
  align-items: flex-end;
  gap: clamp(8px, 1.2vw, 16px);
  margin: 0 0 .5rem 0;
  font-family: "Gill Sans MT Ext Condensed Bold", "Gill Sans MT Condensed",
               "League Gothic", "Oswald", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
  line-height: .9;
  font-size: clamp(2rem, 6vw, 4.25rem);
}
.dropcap{
  width: clamp(64px, 10vw, 140px);
  height: auto;
  flex: 0 0 auto;
  display: block;
}
.headline-rest{
  display: inline-block;
  transform: translateY(6%);
}

.hero__tag{
  margin: 0 0 .4rem 0;
  font-weight: 800;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.hero__copy{
  max-width: 68ch;
  line-height: 1.55;
  font-size: clamp(1rem,2.3vw,1.12rem);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

/* CTA button using your parchment image */
.hero__cta{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
}
.hero__cta img{
  width: clamp(180px, 32vw, 260px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 10px var(--shadow));
  transition: transform .25s ease, filter .25s ease;
}
.hero__cta span{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero__cta:hover img{ transform: translateY(-2px) scale(1.02); }
.hero__cta:active img{ transform: translateY(0) scale(.99); }

/* Gabe: slide-in */
.hero__gabe{
  height: auto;
  translate: 0 40px;
  opacity: 0;
  animation: gabeIn .9s .35s ease-out forwards;
  filter: drop-shadow(0 10px 16px var(--shadow));
    position: absolute;
  right: clamp(3vw, 40px, 80px);
  bottom: 0;  
  width: clamp(180px, 26vw, 420px);
}
@keyframes gabeIn{
  to{ translate: 0 0; opacity: 1; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero__gabe, .hero__cta img{ animation: none; transition: none; translate: 0; opacity: 1; }
}

/* Mobile text legibility */
@media (max-width: 720px){
  .hero{ padding-bottom: 80px; }
  .hero__content{ text-shadow: 0 1px 0 rgba(255,255,255,.4), 0 1px 8px rgba(0,0,0,.25); }
}

.hero__panel{
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: .5rem;
  padding: clamp(14px,2.8vw,22px) clamp(18px,3.4vw,30px);
  border-radius: 18px;
  background: rgba(215,181,108,.92);               /* parchment tint */
  border: 1px solid rgba(120,84,35,.38);
  box-shadow:
    0 10px 18px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -2px 6px rgba(0,0,0,.12);
  backdrop-filter: blur(.8px);
}

/* ==== NAVIGATION (CLEAN) ==== */

/* base (desktop-first) */
header { position: relative; z-index: 1000; }

nav {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

nav li { position: relative; }

nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-family: "Gill Sans MT Ext Condensed Bold", "Gill Sans MT Condensed", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: url('assets/button.png') center/100% 100% no-repeat;
  min-width: 130px;
  height: 75px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 1px 3px rgba(0,0,0,0.25);
  filter: drop-shadow(0 4px 6px var(--shadow));
  transition: transform 0.2s ease, filter 0.2s ease;
}
nav a:hover { transform: translateY(-2px) scale(1.03); filter: drop-shadow(0 6px 8px var(--shadow)); }
nav a:active { transform: translateY(0) scale(0.98); }

/* A11y helper */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Burger hidden on desktop by default */
.nav-toggle { display: none; }

/* ---------- MOBILE (<=820px) ---------- */
@media (max-width: 820px){
  /* show burger; position over header */
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    position: absolute;
    left: 10px;
    top: 10px;
    width: 54px;
    height: 46px;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ink);
    background: url('assets/button.png') center/100% 100% no-repeat;
    border: 0;
    cursor: pointer;
    filter: drop-shadow(0 4px 6px var(--shadow));
    z-index: 1100;
  }

  /* turn the nav into a dropdown panel under the header */
  header nav{
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: linear-gradient(rgba(215,181,108,.97), rgba(215,181,108,.95));
    border-bottom: 1px solid rgba(120,84,35,.35);
    box-shadow: 0 12px 18px var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease, visibility 0s linear .18s;
  }

  /* vertical list, big tap targets */
  header nav ul{
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin: 0;
    padding: .5rem;
  }

  header nav a{
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: .45rem .75rem;
    font-size: 1.05rem;
    background-size: 100% 100%;
    justify-content: center;
  }

  /* reveal when JS adds .nav-open to <header> */
  header.nav-open nav{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  /* lock background scroll while open */
  body.no-scroll { overflow: hidden; }
}

/* ---------- DESKTOP (>=768px) ---------- */
@media (min-width: 768px){
  .nav-toggle { display: none; }
  header nav{
    position: static;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  header nav ul{
    flex-direction: row;
    gap: 1.2rem;
    padding: 0;
  }
  header nav a{ padding: .6rem 0; }
}
