:root {
  --max: 980px;
  --pad: 20px;

  --block: #0b1020;     /* background + dark section color */
  --fadeStart: 78%;
  --fadeEnd: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111;

  /* base page color below the intro image */
  background: var(--block);
}

a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

main { padding: 0; }

/* Sticky footer layout */
html, body {
  height: 100%;
}

body.layout {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* pushes footer to bottom */
}

/* ------------------------------------------------------------------
   Header (fixed glass)
------------------------------------------------------------------ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  padding: 0 1rem;

  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);

  background: rgba(20, 24, 32, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 0;
  gap: 16px;
}

.brand {
  font-weight: 900;
  text-decoration: none;
}

header .brand,
header nav a {
  color: rgba(255, 255, 255, 0.92);
}

nav a {
  margin-left: 14px;
  text-decoration: none;
  opacity: 0.85;
}

nav a:hover {
  opacity: 1;
  color: #fff;
  text-decoration: underline;
}

/* ------------------------------------------------------------------
   Footer (glass)
------------------------------------------------------------------ */

footer {
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);

  background: rgba(20, 25, 35, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(155, 155, 155, 0.15);

  color: rgba(255, 255, 255, 0.85);
  padding: 12px 0;
}

footer .container {
  font-size: 0.8rem;
  color: #ffffff99;
  text-align: center;
}

/* ------------------------------------------------------------------
   Intro (scrolling image with fade)
------------------------------------------------------------------ */

.intro {
  min-height: 100svh; /* avoids mobile address bar issues */
  display: flex;
  justify-content: center;
  text-align: center;

  /* you’re centering visually using padding-top */
  padding: 56px 20px;
  padding-top: 25vh;

  background-image: var(--intro-image);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;

  position: relative;
  overflow: hidden;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(11, 16, 32, 0) 0%,
    rgba(11, 16, 32, 0) var(--fadeStart),
    var(--block) var(--fadeEnd)
  );
}

.glass-title {
  margin: 0;
  /* NOTE: your clamp had min > max; keeping your “big title” intent but making it valid */
  font-size: clamp(4.2rem, 5vw, 4.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;

  color: #fff;
  text-shadow:
    0 1px 1px rgba(0, 0, 0, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.10);
}

@supports (-webkit-text-stroke: 1px rgba(255,255,255,0.2)) {
  .glass-title { -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.20); }
}

/* Normal lead text */
.lead {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.75;
}

/* ------------------------------------------------------------------
   Sub sections (full-width alternating blocks)
------------------------------------------------------------------ */

.sub {
  width: 100%;
  margin: 0;
  padding: 56px 20px;
  position: relative; /* allows shadow layering */
}

/* Center + constrain only the CONTENT, not the section */
.sub > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Optional: if you want the FIRST sub to have tighter padding like before */
main > .sub:nth-of-type(1) {
  padding: 18px 20px;
}

/* Alternation: odd = white, even = dark */
main > .sub:nth-of-type(odd) {
  background: #fff;
  color: var(--block);
}

main > .sub:nth-of-type(even) {
  background: var(--block);
  color: rgba(255, 255, 255, 0.9);

  /* shadow BETWEEN sections (top + bottom) */
  box-shadow:
    0 -14px 28px rgba(0, 0, 0, 0.18),
    0  14px 28px rgba(0, 0, 0, 0.18);

  z-index: 1; /* ensures the shadow sits above neighbors */
}

/* Links/headings inherit correctly */
main > .sub:nth-of-type(odd) a,
main > .sub:nth-of-type(odd) li,
main > .sub:nth-of-type(odd) h3 {
  color: var(--block);
}

main > .sub:nth-of-type(even) a,
main > .sub:nth-of-type(even) li,
main > .sub:nth-of-type(even) h3 {
  color: #fff;
}

/* ------------------------------------------------------------------
   H3 dash prefix
------------------------------------------------------------------ */

.sub h3, article h2 {
  position: relative;
  margin-top: 0;
  letter-spacing: -0.01em;

  /* 1rem left padding + 3rem dash + 1rem gap ≈ 5rem */
  padding-left: 5rem;
}

.sub h3::before, article h2::before {
  content: "";
  position: absolute;

  left: 1rem;
  top: 50%;
  transform: translateY(-50%);

  width: 3rem;
  height: 2px;

  background: currentColor;
  opacity: 0.9;
}

/* Default for homepage if you want it bigger */
.intro {
  /* your existing intro styles can stay */
}

/* Smaller intro for non-home pages */
.intro--page {
  min-height: 45svh;     /* ~40–50% of viewport height */
  padding-top: 14vh;     /* vertical placement of title */
  background-image: var(--intro-image);
  background-position: var(--intro-pos);
}

/* Keep these (fade overlay + cover) */
.intro {
  background-image: var(--intro-image);
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(11, 16, 32, 0) 0%,
    rgba(11, 16, 32, 0) 40%,
    rgba(11, 16, 32, 1) 97%
  );
}

/* Ensure title is above fade overlay */
.glass-title {
  position: relative;
  z-index: 1;
}

article {
	color: white;
	margin-bottom: 5rem;
}

article h2 {
	margin-top: 3rem;
}

body.home main > .sub:nth-of-type(2) {
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.14);
}

div.meta {
	text-decoration: none!important;
	opacity: 0.7;
}

.glass-title {
  margin: 0;
  font-size: clamp(4.2rem, 5vw, 4.6rem);
  font-weight: 750;
  letter-spacing: -0.03em;

  color: #fff;

  /* subtle inset-style layering */
  text-shadow:
    0 -1px 0 rgba(255,255,255,0.25),   /* top inner highlight */
    0  1px 2px rgba(0,0,0,0.25),       /* lower depth */
    0 10px 30px rgba(0,0,0,0.10);      /* soft ambient */
}
.glass-title{
  position: relative;
  z-index: 1;

  /* a gentle halo that works almost everywhere */
  text-shadow:
    0 0 2px rgba(0,0,0,0.55),
    0 0 10px rgba(0,0,0,0.25),
    0 18px 40px rgba(0,0,0,0.25);
}

/* soft contrast “cloud” behind the letters (not a box) */
.glass-title::before{
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);

  width: min(85vw, 980px);
  height: 1.15em;              /* roughly the text height */
  border-radius: 999px;

  background: radial-gradient(
    ellipse at center,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.28) 45%,
    rgba(0,0,0,0.00) 75%
  );

  filter: blur(18px);
  opacity: 0.85;
  pointer-events: none;
}

/* --- Responsive nav (burger) --- */

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  margin: 0;
  cursor: pointer;
  border-radius: 10px;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,0.55);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  margin: 5px 0;
  border-radius: 999px;
}

/* Desktop nav stays inline */
.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile breakpoint */
@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* turn the nav into a dropdown panel */
  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;

    display: none;            /* hidden by default */
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    min-width: 220px;
    padding: 10px;

    background: rgba(20, 24, 32, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);

    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 14px;

    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  }

  .site-nav a {
    margin: 0;               /* override your desktop margin-left */
    padding: 10px 12px;
    border-radius: 10px;
    opacity: 0.95;
    text-decoration: none;
  }

  .site-nav a:hover {
    background: rgba(255,255,255,0.08);
    text-decoration: none;
    opacity: 1;
  }

  /* Open state */
  .site-nav[data-open="true"] {
    display: flex;
  }

  /* Ensure header-inner can position the dropdown */
  .header-inner {
    position: relative;
  }
.nav-toggle {
  display: none; /* desktop default */
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;   /* <-- THIS is the fix */
    justify-content: center;
    align-items: center;
    gap: 4px;                 /* cleaner than margin on bars */
  }

  .nav-toggle__bar {
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.92);
    border-radius: 999px;
  }
}}
