:root {
  --gold: #f0c57a;
  --gold-glow: #f0c57a66;
  --cream: #fff6ea;
  --muted: #f0e2cc;
  --line: rgba(255, 236, 205, 0.4);
  --pond: #0f1c16;
  --glass: rgba(8, 16, 12, 0.35);
  --glass-dark: rgba(8, 16, 12, 0.65);
  --nav: rgba(8, 16, 12, 0.85);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--cream);
  background-color: var(--pond);
  background-image: url("/images/background.jpg");
  background-position: center 42%;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* --- Subtle grain overlay --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.5;
}

/* --- HERO GRID --- */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr minmax(220px, 300px);
  grid-template-areas:
    "nav nav nav"
    "top top-right top-right"
    "left main right"
    "doors doors doors"
    "bottom bottom bottom";
  gap: 0.85rem;
  padding: 1rem clamp(0.8rem, 2.5vw, 2rem) 1.25rem;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(8, 16, 12, 0.45) 100%);
  z-index: 0;
}

/* --- SITE NAV - Title Centered --- */
.site-nav {
  grid-area: nav;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem 1rem;
  padding: 0.75rem 1rem 0.9rem;
  background: var(--nav);
  border: 1px solid rgba(240, 197, 122, 0.55);
  box-shadow: var(--shadow);
}

.site-title {
  width: 100%;
  text-align: center;
  margin: 0 0 0.3rem 0;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(240, 197, 122, 0.45);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1rem;
  width: 100%;
}

.site-nav a {
  color: #ffe9b8;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  transition: color 0.2s ease, border-color 0.2s ease;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}

.site-nav a.is-here {
  color: #fff;
  border-bottom: 2px solid var(--gold);
}

/* --- PAGE MARK (giant faded number) --- */
.page-mark {
  grid-area: main;
  align-self: center;
  justify-self: center;
  z-index: 0;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  color: rgba(255, 246, 234, 0.12);
  pointer-events: none;
  text-shadow: 0 0 60px rgba(240, 197, 122, 0.05);
  user-select: none;
}

/* --- BOXES - No Blur --- */
.box {
  background: var(--glass);
  border: 1px solid rgba(240, 197, 122, 0.2);
  border-top: 1px solid rgba(240, 197, 122, 0.55);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.box:hover {
  border-color: rgba(240, 197, 122, 0.4);
}

/* --- TOP BOX --- */
.box-top {
  grid-area: top;
  max-width: 36rem;
}

/* --- TOP-RIGHT BOX --- */
.box-top-right {
  grid-area: top-right;
  align-self: start;
  max-width: 18rem;
  justify-self: end;
  background: var(--glass);
  border: 1px solid rgba(240, 197, 122, 0.25);
  border-top: 1px solid rgba(240, 197, 122, 0.55);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease;
}

.box-top-right:hover {
  border-color: rgba(240, 197, 122, 0.4);
}

/* --- LEFT & RIGHT BOXES --- */
.box-left {
  grid-area: left;
  align-self: start;
}

.box-right {
  grid-area: right;
  align-self: start;
}

.box-bottom {
  grid-area: bottom;
}

/* --- TYPOGRAPHY --- */
.kicker {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  font-weight: 400;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* --- BOX TITLES - CENTERED --- */
h2 {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-weight: 500;
  text-align: center;
}

/* --- LISTS WITH GOLD DIAMOND BULLETS --- */
.box-left ul {
  list-style: none;
}

.box-left li {
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
  font-size: 0.92rem;
  color: var(--muted);
}

.box-left li::before {
  content: "◆";
  color: var(--gold);
  position: absolute;
  left: 0;
  font-size: 0.5rem;
  top: 0.35rem;
}

.box-left li + li {
  margin-top: 0.5rem;
}

/* --- PARAGRAPHS --- */
.box-right p,
.box-bottom p,
.box-top-right p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.box-right p strong {
  color: var(--gold);
  font-weight: 500;
}

/* --- DOORS (navigation cards) --- */
.doors {
  grid-area: doors;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.door {
  display: block;
  padding: 0.85rem 0.95rem;
  color: var(--cream);
  text-decoration: none;
  background: var(--glass);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  text-align: center;
}

.door:hover {
  background: var(--glass-dark);
  border-color: rgba(240, 197, 122, 0.4);
  border-left-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.door span {
  display: block;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

/* --- LINKS --- */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

/* --- SELECTION --- */
::selection {
  background: #c4893f;
  color: #fff6ea;
}

/* --- SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
  background: var(--pond);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-glow);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "nav"
      "top"
      "top-right"
      "left"
      "right"
      "doors"
      "bottom";
  }

  .box-top {
    max-width: none;
  }

  .box-top-right {
    max-width: none;
    justify-self: stretch;
  }

  .page-mark {
    display: none;
  }

  .doors {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    font-size: 0.85rem;
  }
}