/* YNMT.org Core CSS Design System — Web Fleet Standards Compliant */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Urbanist:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

/* ==========================================================================
   1. CSS Custom Properties / Harvested Design Tokens (design_tokens.json)
   ========================================================================== */
:root {
  /* Typography Tokens */
  --font-heading: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-nav: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  /* Harvested Color Palette */
  --color-header-bg: #013e76;
  --color-marquee-bg: #013b75;
  --color-canvas-bg: #006a91;
  --color-quote-bg: #006a91;
  --color-brand-primary: #013e76;
  --color-brand-accent: #64b5f6;
  --color-brand-accent-strong: #90caf9;
  --color-brand-cerulean: #006a91;
  --color-brand-gold: #d97706;
  --color-brand-base: #0d6896;
  
  /* Background / Surface Palettes */
  --color-bg-white: #ffffff;
  --color-bg-light: #f8fafc;
  --color-bg-bright: #f0f7ff;
  --color-bg-dark: #0f172a;
  --color-bg-dark-bold: #020617;
  
  /* Text Palettes */
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #ffffff;
  --color-text-light-muted: rgba(255, 255, 255, 0.85);
  
  /* Typography Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-quote: 500;
  --font-weight-marquee: 600;
  --font-weight-heading: 700;
  --font-weight-quote-strong: 800;
  
  /* Harvested Navigation Tokens */
  --nav-font-size: 14px;
  --nav-font-weight: 400;
  --nav-letter-spacing: 0.04em;
  --nav-opacity: 0.9;
  --nav-gap: 2.2rem;
  
  /* Borders & Elevation */
  --border-header: 1px solid rgba(255, 255, 255, 0.18);
  --border-marquee: 1px solid rgba(255, 255, 255, 0.12);
  --color-border-light: rgba(1, 59, 117, 0.09);
  --color-border-dark: rgba(255, 255, 255, 0.12);
  --shadow-subtle: 0 4px 14px rgba(1, 59, 117, 0.05);
  --shadow-medium: 0 10px 30px rgba(1, 59, 117, 0.09);
  --shadow-prominent: 0 20px 48px rgba(1, 59, 117, 0.15);
  
  /* Layout & Geometry */
  --container-max: 1240px;
  --container-prose: 68ch;
  --header-height: 48px;
  --touch-target-min: 44px;
  --quote-max-width: 850px;
  --narrative-max-width: 539.7px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Zero-Overflow Reset & Chrome-Lock Foundation
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-brand-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: 4px;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   3. Global Fixed Header (60px, z-index: 1000, #013b75)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background-color: #013e76;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-sizing: border-box;
  z-index: 1001;
  display: flex;
  align-items: center;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  margin: 0;
}

.header-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 44px;
  min-width: 44px;
}

.site-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: var(--nav-gap);
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.site-nav a,
.desktop-nav .nav-link,
.nav-link {
  font-family: var(--font-nav);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffffff;
  opacity: 0.9;
  text-transform: none;
  text-shadow: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.site-nav a:hover,
.desktop-nav .nav-link:hover {
  opacity: 1;
  color: var(--color-brand-accent);
}

.nav-link.is-active {
  opacity: 1;
  color: var(--color-brand-accent);
  font-weight: 500;
}

.nav-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.hamburger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #013e76;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1rem;
  z-index: 1000;
  transform: translateY(-120%);
  transition: transform var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mobile-drawer.is-open {
  transform: translateY(0);
}

.mobile-drawer .nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   4. Hero Section: Canvas Overlay Paradigm (Synthesized from spatial_layout_map.json)
   ========================================================================== */
.hero-fullbleed-section,
.hero-section {
  position: relative;
  width: 100vw;
  min-height: 1037.6px;
  background-color: #006a91;
  background-image: none;
  overflow: hidden;
  display: block;
}

/* Artwork Canvas Container */
.hero-artwork-block,
.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 1037.6px;
  pointer-events: none;
  background-color: #006a91;
  z-index: 1;
  display: block;
}

.hero-artwork-img {
  position: absolute;
  top: 175.7px;
  left: 0;
  width: 100%;
  height: 853.3px;
  object-fit: contain;
  display: block;
}

/* Top Hero Quote Block Overlay */
.hero-quote-block,
.hero-top-quote-floating {
  position: absolute;
  top: 74.5px;
  left: 149.3px;
  width: 981.4px;
  min-height: 83.4px;
  max-width: 981.4px;
  text-align: left;
  z-index: 10;
  background-color: transparent;
  padding: 0;
  margin: 0;
  display: block;
}

.hero-quote-container {
  width: 100%;
  max-width: 981.4px;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-quote-block blockquote,
.hero-top-quote-floating blockquote {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 21.7px;
  font-weight: 400;
  font-style: normal;
  color: #ffffff;
  text-shadow: none;
  margin: 0 0 6px 0;
  padding: 0;
  text-align: left;
}

.hero-quote-block blockquote strong,
.hero-top-quote-floating blockquote strong {
  font-weight: 700;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-quote-attribution {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: none;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* Lower Narrative Text inside Canvas Overlay (Protected Zone) */
.hero-narrative-block,
.hero-lower-narrative-floating {
  position: absolute;
  top: 757.9px;
  left: 51.2px;
  width: 539.7px; min-height: 216px;
  max-width: 539.7px; min-height: 216px;
  text-align: left;
  z-index: 10;
  line-height: 1.55;
  color: #ffffff;
  text-shadow: none;
  margin: 0;
  padding: 0;
  display: block;
}

.hero-narrative-block p,
.hero-lower-narrative-floating p {
  font-family: var(--font-body);
  font-size: 16px; line-height: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0.4rem;
  text-shadow: none;
  text-align: left;
}

.hero-narrative-block p:last-child,
.hero-lower-narrative-floating p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-fullbleed-section,
  .hero-section,
  .hero-unified {
    position: relative;
    width: 100vw;
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 54px;
    padding-bottom: 2rem;
    background-color: #006a91;
    overflow: hidden;
  }

  /* 1. Top Quote Block (order: 1, centered padding) */
  .hero-quote-block,
  .hero-top-quote-floating {
    position: static;
    order: 1;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 1.25rem 1.25rem 0.75rem;
    margin: 0 auto;
    text-align: center;
    background-color: transparent;
    z-index: 2;
  }

  .hero-quote-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-quote-block blockquote,
  .hero-top-quote-floating blockquote {
    font-family: var(--font-body);
    font-size: clamp(1.0rem, 3.8vw, 1.2rem);
    line-height: 1.45;
    text-align: center;
    margin: 0 auto 0.5rem;
    color: #ffffff;
  }

  .hero-quote-attribution {
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: center;
    color: #ffffff;
  }

  /* 2. Artwork Canvas/Image (order: 2, 100vw responsive display) */
  .hero-artwork-block,
  .hero-bg-canvas {
    position: relative;
    order: 2;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    margin: 0 auto;
    z-index: 1;
  }

  .hero-artwork-img {
    position: static;
    width: 100vw;
    max-width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  /* 3. Lower Narrative Text Block (order: 3, below artwork) */
  .hero-narrative-block,
  .hero-lower-narrative-floating {
    position: relative;
    order: 3;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 1.25rem 1.5rem 0.5rem;
    margin: 0 auto;
    text-align: left;
    background-color: transparent;
    z-index: 2;
  }

  .hero-narrative-block p,
  .hero-lower-narrative-floating p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
  }
}

/* ==========================================================================
   5. Scarcity to Abundance Marquee Banner (#013b75)
   ========================================================================== */
.marquee-section {
  width: 100%;
  background-color: #013e76;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 0;
  overflow: hidden;
  display: flex;
  user-select: none;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.01em;
  text-transform: none;
}

.marquee-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-brand-accent);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   6. Content Pillars & Section Styles
   ========================================================================== */
.section {
  width: 100%;
  padding: 5rem 1.5rem;
}

.theme-white {
  background-color: var(--color-bg-white);
  color: var(--color-text-main);
}

.theme-dark {
  background-color: var(--color-bg-dark);
  color: #ffffff;
}

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

.prose-container {
  max-width: 800px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: 1fr 1.6fr;
  }
}

.pillar-icon-wrap {
  display: flex;
  justify-content: center;
}

.pillar-icon-wrap img {
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.08));
}

.pillar-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.pillar-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.pillar-text p:last-child {
  margin-bottom: 0;
}

.theme-dark .pillar-text p {
  color: rgba(255, 255, 255, 0.9);
}

/* Subpage Hero */
.subpage-hero {
  background: linear-gradient(180deg, #013b75 0%, #0d6896 100%);
  color: #ffffff;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.subpage-hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.subpage-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.subpage-hero .lead-text {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* ==========================================================================
   7. Global Site Footer
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: #013e76;
  color: #ffffff;
  padding: 1.2rem 1.5rem max(1.2rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.footer-nav a {
  font-family: var(--font-nav);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
}

.footer-nav a:hover {
  color: var(--color-brand-accent);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
}

.pillar-text {
  width: 533.8px; min-width: 533.8px;
  width: 100%;
}
.pillar-text p {
  font-size: 14.5px;
  line-height: 21.7px;
  margin-bottom: 16px;
}

main {
  min-height: 2736.6px;
}
