/* Tokens & Foundations */
:root{
  --bg: #0b0b14;
  --bg-2: #0e111a;
  --text: #e9f0f7;
  --muted: #a6b3c8;
  --accent: #b4a86e;
  --accent-2: #cbd27a;
  --card: rgba(255,255,255,.08);
  --card-2: rgba(255,255,255,.12);
  --border: rgba(180,160,90,.4);
  --shadow: 0 6px 22px rgba(0,0,0,.28);
}

/* Section: Base reset & typography */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif; font-size: clamp(14px, 0.8vw + 12px, 16px); }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(circle at 20% 0%, rgba(120,110,80,.20), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(40,42,60,.20), transparent 25%),
    linear-gradient(135deg, #06070b 0%, #0b0f14 60%, #0a0b12 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  isolation: isolate;
}
@supports not (backdrop-filter: blur(12px)) {
  body { background: linear-gradient(135deg, #05060a 0%, #0a0f15 60%, #0a0c12 100%); }
}

/* Section: Layered chrome/noise (pure CSS) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, rgba(0,0,0,.03) 1px 2px),
    linear-gradient(to bottom right, rgba(0,0,0,.0), rgba(0,0,0,.15) 60%, rgba(0,0,0,.0) 100%);
  mix-blend-mode: overlay;
  opacity: .25;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 60% 20%, rgba(120,110,70,.20), transparent 40%);
  mix-blend-mode: overlay;
  opacity: .25;
  z-index: 0;
}

/* Section: Layout utilities */
.container {
  width: min(92%, 1100px);
  margin-inline: auto;
  padding-inline: .5rem;
  position: relative;
  z-index: 1;
}
.grid { display: grid; gap: 1rem; }

/* Section: Typography (hero hierarchy) */
h1, h2 { color: var(--text); margin: .25rem 0 .25rem; }
h1 { font-size: clamp(1.8rem, 2.6vw + 1rem, 4rem); line-height: 1.05; letter-spacing: .2px; }
h2 { font-size: clamp(1.25rem, 1.2vw + .8rem, 2.25rem); }
p { color: var(--muted); margin: .5rem 0 1rem; }
blockquote {
  border-left: 3px solid rgba(180,160,90,.6);
  padding: .25rem 0 .25rem .75rem;
  color: var(--text);
  margin: .5rem 0;
  font-style: italic;
}
ul { margin: .5rem 0 1rem 1.1rem; color: var(--muted); }
li { margin: .25rem 0; }

/* Section: Components */
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  background: #000;
}
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content { padding: .25rem 0; }

/* Section: Glass panels (native selectors) */
header, main, article, footer, aside {
  /* Glassy surfaces with fallback handled below for backdrop-filter */
  background: rgba(8,8,12,.28);
  border: 1px solid rgba(120,110,70,.4);
  border-radius: 14px;
  padding: .75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, article, footer, aside {
    background: rgba(8,8,12,.68);
    border-color: rgba(120,110,70,.66);
  }
}

/* Section: Structural layout */
header { padding: 1.75rem; text-align: left; }
main { padding: 1rem; }
article { padding: 1rem; }

/* Section: Navigation & links */
nav { display: none; } /* present in page structure, hidden for minimal footprint */
a { color: #e8f0f7; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* Section: Buttons & CTAs */
button, .btn, .cta {
  display: inline-block;
  border-radius: 8px;
  padding: .6rem .92rem;
  border: 1px solid rgba(180,160,90,.5);
  background: rgba(180,160,90,.25);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn.primary, .cta { background: rgba(180,160,90,.36); border-color: rgba(180,160,90,.6); }
button:hover, .btn:hover, .cta:hover { transform: translateY(-1px); }
button:active, .btn:active, .cta:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  a.btn, a.cta { text-decoration: none; }
}

/* Section: Lists & cards (utilities) */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(180,160,90,.32);
  color: #f5f0cf;
  border: 1px solid rgba(180,160,90,.55);
}

/* Section: Layout helpers (layout-specific utilities) */
.main-constraint { max-width: 72ch; }

/* Section: Decorative blocks (for hero emphasis) */
.hero {
  display: grid;
  gap: .75rem;
}
.hero h1 { margin-bottom: .25rem; }

/* Section: Print (readability) */
@media print {
  body { background: #fff; color: #000; }
  header, main, article, footer { background: transparent; border: none; box-shadow: none; }
}
  
/* Section: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}