/* =========================================
   EDITORIAL MODERNIST — bayseekerhub.com
   Design System: Newsreader + Work Sans
   ========================================= */

/* --- Google Fonts are loaded via <link> in HTML --- */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --surface: #f8f9fa;
  --surface-dim: #d9dadb;
  --surface-bright: #f8f9fa;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f4f5;
  --surface-container: #edeeef;
  --surface-container-high: #e7e8e9;
  --surface-container-highest: #e1e3e4;
  --on-surface: #191c1d;
  --on-surface-variant: #404944;
  --inverse-surface: #2e3132;
  --inverse-on-surface: #f0f1f2;
  --outline: #707974;
  --outline-variant: #bfc9c3;
  --surface-tint: #2b6954;
  --primary: #003527;
  --on-primary: #ffffff;
  --primary-container: #064e3b;
  --on-primary-container: #80bea6;
  --inverse-primary: #95d3ba;
  --secondary: #575e70;
  --on-secondary: #ffffff;
  --secondary-container: #d9dff5;
  --on-secondary-container: #5c6274;
  --background: #f8f9fa;
  --on-background: #191c1d;
  --surface-variant: #e1e3e4;
  --primary-fixed: #b0f0d6;
  --on-primary-fixed: #002117;
  --pure-white: #064e3b; /* used for accent divider */
  --milled-steel: #707974;
  --anodized-grey: #404944;

  /* Typography Scale */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Work Sans', system-ui, sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --article-width: 720px;
  --gutter: 32px;
  --section-padding: 120px;
  --stack-sm: 12px;
  --stack-md: 24px;
  --stack-lg: 48px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--on-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: disc;
}

.icon-list {
  margin-top: 24px;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'liga';
}

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-container);
  z-index: 200;
  transition: width 0.1s linear;
}

/* --- Top Bar (Advertorial Label) --- */
.top-bar {
  background-color: var(--inverse-surface);
  color: var(--inverse-on-surface);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 24px;
  width: 100%;
}

/* --- Header --- */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-container-high);
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 48px;
}

.header-logo-link {
  display: flex;
  align-items: center;
}

.header-logo {
  max-height: 44px;
  width: auto;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--primary-container);
}

.btn-primary:active {
  transform: scale(0.98);
}

.cta-section .btn-primary {
  background-color: var(--surface-container-lowest);
  color: var(--primary);
  font-weight: 600;
}

.cta-section .btn-primary:hover {
  background-color: var(--primary-fixed);
  color: var(--on-primary-fixed);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: var(--primary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border: 1px solid var(--primary);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: rgba(3, 53, 39, 0.05);
}

/* --- Main Content --- */
.main-content {
  padding-top: 48px;
}

/* --- Container & Grid --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

.mb-32 {
  margin-bottom: 80px;
}

.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.col-4 {
  grid-column: span 4;
  position: relative;
}

.col-5 {
  grid-column: span 5;
}

.col-7 {
  grid-column: span 7;
}

.col-8 {
  grid-column: span 8;
}

.col-12 {
  grid-column: span 12;
}

/* --- Typography --- */
.display-xl {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  margin-top: var(--stack-sm);
}

.display-xl em {
  font-style: italic;
  font-weight: 400;
}

.headline-lg {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--on-surface);
  margin-bottom: var(--stack-md);
}

.headline-md {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--on-surface);
  margin-bottom: var(--stack-sm);
}

.body-lg {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

.body-md {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.body-md p {
  margin-bottom: 16px;
}

.label-caps {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-container);
  display: block;
  margin-bottom: var(--stack-sm);
}

/* --- Byline --- */
.byline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--stack-md);
  color: var(--on-surface-variant);
  font-family: var(--font-sans);
}

.byline-text {
  font-size: 14px;
  font-weight: 500;
}

.byline-separator {
  width: 1px;
  height: 16px;
  background-color: var(--outline-variant);
}

/* --- Dropcap --- */
.dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 84px;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 4px;
  color: var(--on-surface);
}

/* --- Hero Image / Milled Border --- */
.milled-border {
  background-color: var(--surface-container);
  padding: 0;
  position: relative;
}

.milled-border-inner {
  aspect-ratio: 4/5;
  overflow: hidden;
  background-color: var(--surface-container-high);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.7s ease;
}

.hero-image:hover {
  filter: grayscale(0%);
}

.content-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* --- Pull Quote Card --- */
.pull-quote-card {
  position: absolute;
  bottom: -24px;
  left: -48px;
  background-color: var(--surface-container-lowest);
  padding: 32px;
  max-width: 280px;
  display: none;
}

.pull-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--primary);
}

/* --- Editorial Divider --- */
.editorial-divider {
  border: none;
  border-top: 1px solid var(--surface-container-high);
  margin: 0 48px 80px;
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--primary);
  padding: 80px 48px;
  margin: 0;
}

.cta-container {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-container .display-xl {
  color: var(--on-primary);
}

.cta-logo {
  max-width: 280px;
  background-color: white;
  height: auto;
  display: block;
  margin: 0 auto;
}

.cta-logo-link {
  display: inline-block;
  outline: 2px solid var(--inverse-primary);
  outline-offset: 6px;
  transition: outline-color 0.2s;
}

.cta-logo-link:hover {
  outline-color: var(--primary-fixed);
}

/* --- Disclaimer Section --- */
.disclaimer-section {
  background-color: var(--surface-container-low);
  padding: 32px 48px;
}

.disclaimer-text {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.7;
  color: var(--on-surface-variant);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* --- Footer --- */
.footer {
  background-color: var(--surface-container-lowest);
  border-top: 1px solid var(--surface-container-high);
  padding: 64px 48px 40px;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}

.footer-nav a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}

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

.footer-contact {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--on-surface-variant);
  line-height: 1.8;
}

.footer-contact p {
  margin: 0;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--surface-dim);
  letter-spacing: 0.05em;
  text-align: center;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .header-inner {
    padding: 16px 24px;
  }

  .container {
    padding: 0 24px;
  }

  .editorial-divider {
    margin: 0 24px 56px;
  }

  .asymmetric-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }

  .col-8 {
    grid-column: span 6;
  }

  .col-4 {
    grid-column: span 6;
  }

  .col-5 {
    grid-column: span 6;
  }

  .col-7 {
    grid-column: span 6;
  }

  .col-12 {
    grid-column: span 6;
  }

  .pull-quote-card {
    display: none !important;
  }

  .display-xl {
    font-size: clamp(2rem, 5vw, 48px);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 14px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .editorial-divider {
    margin: 0 20px 48px;
  }

  .asymmetric-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .col-4,
  .col-5,
  .col-7,
  .col-8,
  .col-12 {
    grid-column: span 1;
  }

  .main-content {
    padding-top: 24px;
  }

  .mb-32 {
    margin-bottom: 48px;
  }

  .cta-section {
    padding: 56px 24px;
  }

  .disclaimer-section {
    padding: 24px 20px;
  }

  .footer {
    padding: 48px 20px 32px;
  }

  .body-lg {
    font-size: 18px;
  }
}

@media (min-width: 1025px) {
  .pull-quote-card {
    display: block;
  }
}
