/* ===================================================
   Siberian Storm Hub — E-Ink / Paper Theme
   Target: ≤40KB | System font fallbacks + Poppins/Open Sans
   =================================================== */


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

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background-color: #fdfbf7;
  color: #1a1a1a;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  transition: none;
  overflow-x: hidden;
  max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}

h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 0.4rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }

p { margin-bottom: 1rem; }

a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { text-decoration: none; }

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

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fdfbf7;
  border-bottom: 1px solid #d4d0c8;
  width: 100%;
}

.header-brand-row {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.header-nav-row {
  background-color: #f5f5f5;
  border-top: 1px solid #e0ddd5;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.header-nav-row nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.header-nav-row nav ol {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  margin: 0;
}

.header-nav-row nav ol li a {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid #e0ddd5;
  letter-spacing: 0.01em;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.header-nav-row nav ol li:first-child a { border-left: 1px solid #e0ddd5; }
.header-nav-row nav ol li a:hover { background-color: #ede9e0; }

/* ---- CTA Buttons ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0 0.75rem;
  min-height: 44px;
  border-radius: 2px;
  text-decoration: none;
  transition: none;
  cursor: pointer;
  white-space: nowrap;
}

.cta-signup {
  background-color: #1a1a1a;
  color: #fdfbf7;
  border: 1.5px solid #1a1a1a;
}
.cta-signup:hover { background-color: #333; border-color: #333; color: #fdfbf7; }

.cta-login {
  background-color: transparent;
  color: #1a1a1a;
  border: 1.5px solid #1a1a1a;
}
.cta-login:hover { background-color: #f0ede6; }

/* ---- Menu Toggle ---- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: transparent;
  border: 1.5px solid #1a1a1a;
  border-radius: 2px;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #1a1a1a;
}

/* ---- Nav Overlay ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: #fdfbf7;
  z-index: 200;
  flex-direction: column;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.nav-overlay.is-open {
  display: flex;
}

.overlay-close {
  align-self: flex-end;
  background: transparent;
  border: 1.5px solid #1a1a1a;
  font-size: 1.5rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
  margin-bottom: 2rem;
  border-radius: 2px;
}

.nav-overlay nav ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-overlay nav ol li {
  border-bottom: 1px solid #e0ddd5;
}

.nav-overlay nav ol li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  min-height: 44px;
}

.nav-overlay nav ol li a:hover {
  background-color: #f5f5f5;
}

/* ---- Hero ---- */
.hero-section {
  border-bottom: 1px solid #d4d0c8;
  background-color: #fdfbf7;
  min-height: 45vh;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.hero-eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  border-left: 3px solid #1a1a1a;
  padding-left: 0.6rem;
}

.hero-copy h1 {
  margin-bottom: 0;
}

.hero-lead {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0;
  line-height: 1.7;
}

.hero-cta {
  align-self: flex-start;
}

.hero-media {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.dot-matrix-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4/3;
  border: 1.5px solid #c8c4bb;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f5f5f5;
  background-image: radial-gradient(circle, #c8c4bb 1px, transparent 1px);
  background-size: 16px 16px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.tiger-stripe-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -25deg,
    transparent 0px,
    transparent 18px,
    rgba(26,26,26,0.06) 18px,
    rgba(26,26,26,0.06) 24px
  );
}

/* ---- Main Content Layout ---- */
main {
  padding: 2rem 0 3rem;
  width: 100%;
}

main > .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

main > .wrap > section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

main > .wrap > section > article {
  min-width: 0;
}

/* ---- Article Header ---- */
.article-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e0ddd5;
}

.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e0ddd5;
}

.eyebrow-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.5rem;
}

.stage-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  margin-bottom: 0.6rem;
  color: #1a1a1a;
}

.article-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e0ddd5;
  margin-top: 1rem;
  display: block;
}

/* ---- Byline ---- */
.byline {
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 0.25rem;
  font-style: italic;
}

.byline time {
  font-style: normal;
}

/* ---- Content Body ---- */
.content-body {
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a1a;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e0ddd5;
}

.content-intro-heading {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.content-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.content-body p { margin-bottom: 1rem; }

.content-body a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body ul,
.content-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.content-body li { margin-bottom: 0.4rem; }

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-body table th,
.content-body table td {
  border: 1px solid #d4d0c8;
  padding: 0.55rem 0.75rem;
  text-align: left;
  white-space: nowrap;
}

.content-body table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.content-body table tr:nth-child(even) {
  background-color: #faf9f6;
}

/* ---- Subtitle / Subheading ---- */
.subtitle {
  font-size: 0.92rem;
  color: #555;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.5;
  font-style: italic;
}

/* ---- Sidebar ---- */
.sidebar {
  position: sticky;
  top: 120px;
  min-width: 0;
}

.sidebar-inner {
  border: 1px solid #d4d0c8;
  border-radius: 4px;
  padding: 1.25rem;
  background-color: #faf9f6;
  border-bottom: 3px solid #1a1a1a;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.sidebar-inner h2 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  border-top: none;
  padding-top: 0;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  counter-reset: sidebar-counter;
}

.sidebar-links li {
  counter-increment: sidebar-counter;
  border-bottom: 1px solid #e8e5de;
}

.sidebar-links li:last-child { border-bottom: none; }

.sidebar-links li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  min-height: 44px;
  word-break: break-word;
}

.sidebar-links li a::before {
  content: counter(sidebar-counter, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 700;
  color: #999;
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
}

.sidebar-links li a:hover { text-decoration: underline; }

.sidebar-cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e0ddd5;
}

.sidebar-cta p {
  font-size: 0.82rem;
  margin-bottom: 0.6rem;
  color: #555;
}

.sidebar-cta .cta {
  width: 100%;
  font-size: 0.78rem;
}

/* ---- Author Section ---- */
.author-section {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid #d4d0c8;
  border-radius: 4px;
  border-bottom: 3px solid #1a1a1a;
  background-color: #faf9f6;
}

.author-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  border-top: none;
  padding-top: 0;
}

.author-bio {
  margin-top: 0.75rem;
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- Child Pages (Home + About) ---- */
.child-pages,
.about-child-pages {
  max-width: 1120px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem 0;
  border-top: 1px solid #e0ddd5;
  width: 100%;
}

.child-pages > h2,
.about-child-pages > h2 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card-list dt {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.card-list dt a {
  text-decoration: none;
  color: #1a1a1a;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.card-list dt a:hover { text-decoration: underline; }

.card-list dd {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  border: 1px solid #d4d0c8;
  border-radius: 4px;
  border-bottom: 3px solid #1a1a1a;
  padding: 0.75rem;
  background: #faf9f6;
}

.card-date {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.35rem;
}

/* ---- Footer ---- */
footer {
  background-color: #f5f5f5;
  border-top: 1px solid #d4d0c8;
  padding: 2rem 1rem;
  max-width: 100%;
  width: 100%;
}

footer p,
footer small {
  display: block;
  max-width: 1120px;
  margin: 0 auto 0.6rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-brand {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'Poppins', sans-serif;
}

.footer-trust {
  font-size: 0.8rem;
  color: #555;
  display: block;
  max-width: 1120px;
  margin: 0 auto 0.6rem;
}

.footer-trust small {
  display: inline;
  margin: 0;
  font-size: inherit;
}

.footer-trust small a {
  color: #1a1a1a;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

.footer-trust small a:hover { text-decoration: none; }

.rg-notice {
  display: block;
  max-width: 1120px;
  margin: 0.5rem auto 0;
  font-size: 0.75rem;
  color: #777;
  line-height: 1.5;
  border-top: 1px solid #e0ddd5;
  padding-top: 0.75rem;
}

/* ---- FAQ-specific ---- */
.faq-body details {
  border-bottom: 1px solid #e0ddd5;
  padding: 0.75rem 0;
}

.faq-body summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding: 0.25rem 0;
}

.faq-body summary::-webkit-details-marker { display: none; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .header-nav-row {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .hero-media {
    order: -1;
  }

  .dot-matrix-frame {
    max-width: 100%;
    aspect-ratio: 16/9;
  }

  main > .wrap > article {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .header-brand-row {
    padding: 0.4rem 0.75rem;
  }

  .cta {
    padding: 0 0.6rem;
    font-size: 0.72rem;
    min-height: 44px;
  }

  h1 { font-size: clamp(1.3rem, 5vw, 1.75rem); }
  h2 { font-size: clamp(1.1rem, 4vw, 1.35rem); }

  .footer-trust small a {
    padding: 0.65rem 0;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-eyebrow { font-size: 0.68rem; }
  .hero-lead { font-size: 0.9rem; }
  .content-body { font-size: 0.97rem; }

  .brand {
    font-size: 0.85rem;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}