
/* ── PALETTE ── */
:root {
  --brown-dk:  #2A1608;
  --brown-md:  #3A2010;
  --brown-nav: #3A2010;
  --brown-border: #584020;
  --brown-lt:  #5C3318;
  --gold:      #D5A76C;
  --gold-dim:  rgba(213,167,108,.65);
  --gold-faint:rgba(213,167,108,.15);
  --steel-lt:  #e8c99a;

  /* column width on laptop/desktop */
  --col: 480px;
}

[data-theme="light"] {
  --brown-dk:  #f0e8d8;
  --brown-md:  #e8dbc8;
  --brown-nav: #e8dbc8;
  --brown-border: #D2C5B0;
  --gold:      #7a4e1a;
  --gold-dim:  rgba(90,56,18,.7);
  --gold-faint:rgba(90,56,18,.12);
  --steel-lt:  #5c3a12;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 600 700 800;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--brown-dk); }
body {
  background: var(--brown-dk);          /* the "outside" area on desktop */
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(13px,1.05vw,15px);
  line-height: 1.75;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}
::selection { background: var(--gold); color: var(--brown-dk); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--brown-dk); }
::-webkit-scrollbar-thumb { background: var(--brown-lt); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── APP COLUMN ──
   Mobile: full width of the screen.
   Laptop/desktop: a centered column of --col width. */
#app {
  width: 100%;
  max-width: var(--col);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--brown-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .35s;
}
#app > main { flex: 1; }

@media (min-width: 681px) {
  #app { box-shadow: 0 0 60px rgba(0,0,0,.35); }
  /* match the header's side padding so the name lines up with it */
  #hero .hero-text { padding-left: clamp(1.2rem,3.5vw,3rem); padding-right: clamp(1.2rem,3.5vw,3rem); }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; z-index: 200;
  left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--col);
  padding: 1.1rem clamp(1.2rem,3.5vw,3rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--brown-nav);
  transition: background .35s;
}
.nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.nav-logo {
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(.95rem, 1.9vw, 1.2rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* theme toggle */
#theme-toggle {
  position: relative;
  width: 50px; height: 24px;
  background: rgba(213,167,108,.15);
  border: 1px solid rgba(213,167,108,.35);
  border-radius: 99px;
  cursor: pointer;
  padding: 0; flex-shrink: 0;
  transition: border-color .3s, background .3s;
  overflow: visible;
}
#theme-toggle:hover { border-color: var(--gold); }
#theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(213,167,108,.5);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s, box-shadow .3s;
}
[data-theme='light'] #theme-toggle::before {
  transform: translateX(25px);
  background: var(--brown-nav);
  box-shadow: 0 0 6px rgba(73,48,24,.4);
}
#theme-toggle .t-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
#theme-toggle .t-sun,
#theme-toggle .t-moon {
  position: absolute;
  transition: opacity .25s, transform .3s;
}
#theme-toggle .t-sun  { right: 5px; opacity: 1; }
#theme-toggle .t-moon { left: 5px;  opacity: 0; }
[data-theme='light'] #theme-toggle .t-sun  { opacity: 0; }
[data-theme='light'] #theme-toggle .t-moon { opacity: 1; }

/* hamburger */
.hamburger {
  display: flex;
  background: none; border: none; cursor: pointer;
  padding: .3rem; flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--gold);
  transition: transform .3s, opacity .3s, background .2s;
}
.hamburger:hover span { background: var(--steel-lt); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE NAV OVERLAY (kept inside the column) ── */
#mobile-nav {
  position: fixed; top: 0; bottom: 0; z-index: 190;
  left: 50%;
  width: 100%; max-width: var(--col);
  background: var(--brown-md);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 2rem;
  transform: translateX(50%);           /* closed: pushed off to the right */
  visibility: hidden;
  transition: transform .35s cubic-bezier(.77,0,.175,1), visibility 0s linear .35s;
}
#mobile-nav.open {
  transform: translateX(-50%);          /* open: centered in the column */
  visibility: visible;
  transition: transform .35s cubic-bezier(.77,0,.175,1), visibility 0s;
}

/* ── WRAP ── */
.w { width: 100% }

/* ── HERO ── */
#hero {
  width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  background: var(--brown-md);
  transition: background .35s;
  padding: 58px 0px 111px 0px;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.8rem;
}

/* ── HERO PHOTO ── */
.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
}

/* Bottom fade */
.hero-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--brown-md) 100%);
  pointer-events: none;
}

.hero-text {
  padding: 0px 20px;
}

.h-name-img {
  display: block;
  width: 100%;
  margin-bottom: .6rem;
}

/* visually hidden, but readable by Google and screen readers */
.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;
}

/* name image swaps with the theme: nameimage.png = dark, nameimage2.png = light */
.name-light { display: none; }
[data-theme="light"] .name-dark  { display: none; }
[data-theme="light"] .name-light { display: block; }

/* ── SECTION LABELS ── */
.s-label {
  font-size: .6rem; letter-spacing: .26em; text-transform: uppercase;
  margin-bottom: 3.5rem; margin-top: .5rem;
  display: block; text-align: center;
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--gold-dim);
}

/* ── FOOTER ── */
footer {
  padding: 2.75rem;
  display: flex; justify-content: center; align-items: center;
  font-size: .62rem; letter-spacing: .1em; color: var(--gold-dim);
  position: relative; z-index: 1;
  background: var(--brown-md);
  font-family: 'Montserrat', sans-serif;
}

@media(max-width:680px) {
  .hero-inner { gap: 1.5rem; }
}
