/* site.css — shell styles: base typography, header/navigation, hero, footer, lightbox.
   Page-body patterns live in content.css. Colours and fonts are declared once here. */

:root {
  --ink: #EDE4D2;          /* primary text */
  --ink-2: #A2957D;        /* body text, muted */
  --ink-3: #8A7F6B;        /* captions */
  --ink-4: #6E6555;        /* legal line */
  --gold: #C68A2C;
  --gold-light: #E3AE52;
  --bg: #0D0B08;
  --bg-2: #161209;
  --bg-3: #1F1A11;
  --line: rgba(237, 228, 210, .13);
  --line-strong: rgba(237, 228, 210, .28);
  --serif: 'Spectral', Georgia, serif;
  --display: 'Cinzel', Didot, 'Times New Roman', serif;
  --sans: 'Archivo Narrow', Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(16.5px, .55vw + 15px, 18.5px);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
table { border-collapse: collapse; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg-2); color: var(--ink); padding: .8rem 1.2rem;
  font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header + navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(13, 11, 8, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: stretch; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-logo { display: flex; align-items: center; padding: 12px 0; }
.site-logo img { height: 76px; width: auto; display: block; }

.nav {
  display: flex; align-items: stretch; gap: clamp(2px, 1.2vw, 14px);
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  letter-spacing: .09em; text-transform: uppercase; flex-wrap: wrap;
}
.nav__item { position: relative; display: flex; }
.nav__link {
  padding: 0 12px; display: flex; align-items: center; white-space: nowrap;
  letter-spacing: .09em; color: var(--ink);
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 7px; text-decoration-thickness: 1px;
  transition: color .2s, text-decoration-color .2s;
}
.nav__link:hover,
.nav__item:hover > .nav__link,
.nav__item.is-open > .nav__link { color: var(--gold-light); text-decoration-color: var(--gold); }
.nav__link[aria-current] { color: var(--gold-light); text-decoration-color: var(--gold); }

.nav__menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 266px;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .55); padding: 6px 0;
}
.nav__item:hover .nav__menu,
.nav__item.is-open .nav__menu { display: block; }
.nav__menu a {
  display: block; width: 100%; padding: 11px 20px;
  font-weight: 500; font-size: .94rem; letter-spacing: .05em; color: #D6C9B2;
}
.nav__menu a:hover { color: var(--gold-light); background: var(--bg-3); }
.nav__menu a[aria-current] { color: var(--gold-light); }

.burger {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; align-self: center;
  border: 1px solid var(--line-strong); color: var(--ink);
}
.burger:hover { border-color: var(--gold); color: var(--gold-light); }
.burger span { display: flex; flex-direction: column; gap: 5px; width: 20px; }
.burger i { height: 1px; background: currentColor; }

.mobile-nav { display: none; border-top: 1px solid var(--line); max-height: 70vh; overflow: auto; }
.mobile-nav.is-open { display: block; }
.mobile-nav__inner { max-width: var(--wrap); margin: 0 auto; padding: .5rem var(--gutter) 1.5rem; }
.mobile-nav__group { border-bottom: 1px solid var(--line); }
.mobile-nav__head {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px;
  padding: 1rem 0; min-height: 48px; font-family: var(--display); font-weight: 600;
  font-size: .98rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink);
}
.mobile-nav__head .sign { font-family: var(--sans); color: var(--gold); font-size: 1rem; }
.mobile-nav__sub { display: none; flex-direction: column; padding: 0 0 .8rem; }
.mobile-nav__group.is-open .mobile-nav__sub { display: flex; }
.mobile-nav__sub a {
  display: block; padding: .8rem 0 .8rem 1rem; min-height: 46px;
  font-family: var(--serif); font-weight: 400; font-size: 1.02rem;
  color: #D6C9B2; border-left: 1px solid rgba(198, 138, 44, .4);
}
.mobile-nav__sub a:hover { color: var(--gold-light); }

@media (max-width: 1039px) {
  .nav { display: none; }
  .burger { display: flex; }
  .site-logo img { height: 54px; }
}

/* ---------- hero ---------- */

.hero { position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); }
.hero__media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1);
  transition: opacity 1.6s ease-in-out, transform 9s ease-out;
}
.hero-slide.is-on { opacity: 1; transform: scale(1.06); }
.hero-dots { position: absolute; left: var(--gutter); bottom: .6rem; display: flex; gap: 4px; z-index: 3; }
.hero-dots button { width: 48px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; }
.hero-dots span { width: 34px; height: 2px; display: block; background: rgba(237, 228, 210, .35); transition: background .3s; }
.hero-dots button[aria-current] span { background: var(--gold); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line-strong); padding: 2.2rem 0 3rem; }
.site-footer__inner { display: flex; flex-direction: column; gap: 1.1rem; }
.site-footer__note {
  margin: 0; max-width: 80ch; font-family: var(--serif); font-weight: 300;
  font-size: .88rem; line-height: 1.62; color: var(--ink-3);
}
.site-footer__meta {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4);
}
.site-footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer__links a { color: var(--ink-2); }
.site-footer__links a:hover { color: var(--gold-light); }

/* ---------- lightbox ---------- */

figure img { cursor: zoom-in; transition: opacity .25s; }
figure img:hover { opacity: .82; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(8, 7, 5, .94);
  padding: clamp(12px, 3vw, 40px); overflow: auto;
}
.lightbox[hidden] { display: none; }
.lightbox__frame { max-width: 1400px; margin: 0 auto; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; display: block; border: 1px solid rgba(237, 228, 210, .2); }
.lightbox__caption {
  font-family: var(--sans); font-size: .84rem; line-height: 1.5; color: var(--ink-2);
  margin: 1rem auto 0; max-width: 80ch; text-align: center;
}
.lightbox__close {
  position: fixed; top: 14px; right: 18px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1.5rem; color: var(--ink);
  border: 1px solid var(--line-strong); background: rgba(13, 11, 8, .8);
}
.lightbox__close:hover { color: var(--gold-light); border-color: var(--gold); }

/* ---------- print ---------- */

@media print {
  .site-header, .mobile-nav, .hero-dots, .lightbox, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
