/* The Tired Generation — warm, accessible static system */
:root {
  /* Midnight Biology palette: midnight navy, moon-gold, lavender sleepwear, paper-white and a small warning-red accent. */
  --paper: #f6f1e7;
  --paper-2: #e6e4e8;
  --ink: #101727;
  --muted: #626b82;
  --line: rgba(16, 23, 39, .16);
  --green: #1b2744;
  --green-deep: #091221;
  --mint: #e9e8f2;
  --coral: #f4b931;
  --coral-deep: #b87513;
  --sun: #f4b931;
  --lavender: #b9bbd4;
  --blue: #ccd0e0;
  --red: #c7443c;
  --white: #fffdf8;
  --shadow: 0 18px 45px rgba(38, 48, 42, .11);
  --radius: 22px;
  --max: 1180px;
  --reading: 760px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; }
img { display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
::selection { background: var(--sun); color: var(--ink); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 900px); margin-inline: auto; }
.reading { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 240, 232, .92);
  backdrop-filter: blur(18px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: inline-block; position: relative; border-radius: 50%; background: var(--sun); box-shadow: inset -5px -4px 0 rgba(0,0,0,.12); }
.brand-mark::before { content: ""; position: absolute; width: 25px; height: 25px; top: -2px; left: 8px; border-radius: 50%; background: var(--paper); }
.brand-mark::after { content: "✦"; position: absolute; right: -5px; bottom: -5px; color: var(--sun); font-size: 10px; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 9px 13px; border-radius: 999px; font-size: .92rem; font-weight: 700; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--paper-2); }
.nav-links a.nav-cta { color: var(--ink); background: var(--sun); box-shadow: 0 7px 16px rgba(244,185,49,.25); }
.nav-links a.nav-cta:hover { color: var(--ink); background: #ffd35d; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 8px 11px; border-radius: 12px; }

.hero { padding: 74px 0 78px; overflow: hidden; position: relative; color: var(--white); background: radial-gradient(circle at 80% 18%, rgba(244,185,49,.22) 0 2px, transparent 3px), radial-gradient(circle at 68% 62%, rgba(185,187,212,.28) 0 1px, transparent 2px), var(--green-deep); }
.hero::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: var(--sun); opacity: .18; top: -210px; right: -100px; filter: blur(2px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; position: relative; }
.hero .eyebrow { color: var(--sun); }
.hero .lede { color: rgba(255,253,248,.78); }
.hero .btn-secondary { border-color: rgba(255,253,248,.3); color: var(--white); background: rgba(255,253,248,.06); }
.hero .btn-secondary:hover { color: var(--ink); background: var(--white); }
.eyebrow, .kicker { color: var(--coral-deep); font-size: .75rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.eyebrow { margin-bottom: 15px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.05em; line-height: 1.06; }
h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); max-width: 760px; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: 1.4rem; }
.lede { max-width: 650px; margin: 25px 0 30px; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: #45554d; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 19px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 850; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); }
.btn-secondary { border-color: var(--line); background: rgba(255,253,248,.5); color: var(--ink); }
.btn-secondary:hover { background: var(--white); }
.btn-small { padding: 8px 13px; min-height: 38px; font-size: .88rem; }

.nox-card { min-height: 410px; border-radius: 42% 58% 50% 46%; background: #17213d; border: 1px solid rgba(255,253,248,.16); display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: 0 22px 55px rgba(0,0,0,.25); transform: rotate(2deg); }
.nox-card::before { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; background: var(--sun); top: 35px; right: 25px; opacity: .95; }
.nox-card::after { content: "night / day / repeat"; position: absolute; bottom: 32px; left: 38px; color: rgba(255,253,248,.7); font-weight: 900; letter-spacing: .13em; text-transform: uppercase; font-size: .7rem; transform: rotate(-2deg); }
.nox-svg { width: min(67%, 270px); position: relative; z-index: 1; transform: rotate(-2deg); filter: drop-shadow(0 16px 14px rgba(0,0,0,.17)); }

.section { padding: 88px 0; }
.section-dark { color: var(--white); background: var(--green); }
.section-soft { background: var(--paper-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 38px; }
.section-head > p { color: var(--muted); max-width: 430px; margin: 0; }
.section-dark .section-head > p { color: rgba(255,253,248,.72); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 27px; background: rgba(255,255,255,.04); }
.stat strong { display: block; font-size: 2.15rem; letter-spacing: -.06em; }
.stat span { display: block; margin-top: 3px; color: rgba(255,255,255,.68); font-size: .9rem; }
.section-cta { margin-top: 25px; }
.section-dark .section-cta .btn-secondary { color: var(--ink); border-color: var(--sun); background: var(--sun); }
.section-dark .section-cta .btn-secondary:hover { color: var(--ink); border-color: #ffd35d; background: #ffd35d; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; min-height: 260px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; box-shadow: 0 7px 20px rgba(16,23,39,.06); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-5px); border-color: var(--sun); box-shadow: var(--shadow); }
.card .kicker { margin-bottom: 18px; }
.card h3 { margin-bottom: 13px; }
.card p { margin: 0; color: var(--muted); }
.card-link { display: inline-flex; margin-top: auto; padding-top: 22px; color: var(--coral-deep); font-weight: 850; text-decoration: none; }
.text-link { color: var(--coral-deep); font-weight: 800; }

.signal-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 28px; }
.panel p:last-child { margin-bottom: 0; }
.panel-dark { color: var(--white); background: var(--green); border-color: var(--green); }
.panel-dark p { color: rgba(255,255,255,.74); }
.inline-list { margin: 16px 0 0; padding-left: 1.2rem; }
.inline-list li + li { margin-top: 8px; }

.section-night { color: var(--white); background: #131d36; }
.section-night .section-head > p { color: rgba(255,253,248,.7); }
.night-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; }
.night-timeline::before { content: ""; position: absolute; left: 5%; right: 5%; top: 31px; border-top: 1px dashed rgba(244,185,49,.55); }
.timeline-stop { position: relative; z-index: 1; min-height: 190px; padding: 18px; border: 1px solid rgba(255,253,248,.16); border-radius: 18px; color: var(--white); background: rgba(255,253,248,.06); text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.timeline-stop:hover { transform: translateY(-5px); border-color: var(--sun); background: rgba(244,185,49,.13); }
.timeline-time { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 28px; padding: 0 9px; border-radius: 999px; color: var(--ink); background: var(--sun); font-size: .75rem; font-weight: 950; }
.timeline-stop h3 { margin: 28px 0 8px; font-size: 1.12rem; }
.timeline-stop p { margin: 0; color: rgba(255,253,248,.68); font-size: .88rem; line-height: 1.45; }

.page-hero { padding: 70px 0 50px; color: var(--white); background: var(--green-deep); border-bottom: 1px solid rgba(255,253,248,.14); }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); max-width: 880px; }
.page-hero p { max-width: 720px; margin: 20px 0 0; font-size: 1.15rem; color: rgba(255,253,248,.75); }
.breadcrumb { margin-bottom: 18px; color: var(--coral-deep); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.page-hero .breadcrumb, .article-hero .breadcrumb { color: var(--sun); }
.page-hero .breadcrumb a, .article-hero .breadcrumb a { color: inherit; }

.blog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0 34px; }
.search-wrap { position: relative; flex: 1; max-width: 420px; }
.search-wrap input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 13px 18px; background: var(--white); color: var(--ink); }
.filters { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.filter { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); background: transparent; font-size: .82rem; font-weight: 800; }
.filter:hover, .filter.is-active { color: var(--white); background: var(--green); border-color: var(--green); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { display: flex; flex-direction: column; min-height: 390px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.article-card:hover { transform: translateY(-6px); border-color: var(--sun); box-shadow: 0 22px 45px rgba(16,23,39,.16); }
.article-card-top { min-height: 58px; padding: 16px 20px 12px; display: flex; justify-content: space-between; align-items: start; color: var(--white); background: var(--green); }
.article-card-top .kicker { color: rgba(255,253,248,.86) !important; }
.article-card:nth-child(3n+2) .article-card-top { color: var(--ink); background: var(--sun); }
.article-card:nth-child(3n+2) .article-card-top .kicker { color: var(--ink) !important; }
.article-card:nth-child(3n) .article-card-top { background: #59627f; }
.article-number { font-size: 2rem; line-height: .8; font-weight: 950; letter-spacing: -.1em; opacity: .78; }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 20px 22px; }
.article-card h3 { font-size: 1.33rem; margin: 2px 0 12px; }
.article-card p { color: var(--muted); margin: 0; font-size: .94rem; }
.article-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.meta-chip { display: inline-flex; gap: 5px; align-items: center; padding: 5px 8px; border-radius: 999px; background: var(--paper-2); }
.empty-search { padding: 25px; margin: 20px 0; border-radius: var(--radius); background: var(--paper-2); color: var(--muted); }

.article-hero { padding: 64px 0 48px; color: var(--white); background: radial-gradient(circle at 88% 18%, rgba(244,185,49,.24) 0 2px, transparent 3px), var(--green-deep); border-bottom: 1px solid rgba(255,253,248,.14); }
.article-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 58px; align-items: center; }
.article-hero-copy { min-width: 0; }
.article-hero h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); max-width: 950px; }
.article-subtitle { max-width: 800px; margin: 20px 0 24px; font-size: 1.22rem; color: rgba(255,253,248,.76); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: rgba(255,253,248,.72); font-size: .86rem; font-weight: 800; }
.article-meta .meta-chip { color: var(--ink); background: var(--sun); }
.article-shell { padding: 44px 0 90px; }
.article-layout { width: min(calc(100% - 40px), calc(var(--reading) + 290px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); gap: 50px; align-items: start; justify-content: center; }
.article-content { font-family: var(--serif); font-size: 1.13rem; line-height: 1.78; }
.article-content > p:first-child { font-size: 1.28rem; line-height: 1.68; }
.article-content h2 { font-family: var(--sans); font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.08; margin: 48px 0 16px; }
.article-content h3 { font-family: var(--sans); font-size: 1.5rem; margin: 34px 0 10px; }
.article-content p { margin: 0 0 22px; }
.article-content a { color: var(--coral-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-content strong { font-family: var(--sans); font-weight: 850; }
.article-content em { font-style: italic; }
.article-content ul, .article-content ol { margin: 10px 0 26px; padding-left: 1.35rem; }
.article-content li { margin: 7px 0; padding-left: 3px; }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
.article-content code { padding: 2px 5px; border-radius: 5px; background: var(--paper-2); font-family: ui-monospace, monospace; font-size: .85em; }
.references { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 12px; font-family: var(--sans); font-size: .9rem; line-height: 1.55; color: var(--muted); }
.references h2 { font-size: 1.55rem; color: var(--ink); margin-top: 20px; }
.references ol, .references ul { padding-left: 1.4rem; }
.references li { margin-bottom: 12px; }
.article-aside { position: sticky; top: 102px; }
.aside-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.aside-card + .aside-card { margin-top: 14px; }
.aside-card h3 { font-size: 1rem; margin-bottom: 9px; }
.aside-card p { color: var(--muted); font-size: .84rem; line-height: 1.5; margin: 0; }
.aside-card a { color: var(--coral-deep); font-weight: 800; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--line); font-family: var(--sans); }
.article-nav a { display: block; padding: 17px; border: 1px solid var(--line); border-radius: 15px; text-decoration: none; background: var(--white); }
.article-nav a:last-child { text-align: right; }
.article-nav small { display: block; margin-bottom: 5px; color: var(--muted); font-weight: 800; }
.article-nav span { color: var(--coral-deep); font-weight: 850; }

.video-card { margin: 34px auto 42px; overflow: hidden; border-radius: 22px; color: var(--white); background: var(--green-deep); box-shadow: var(--shadow); }
.video-consent { min-height: 290px; padding: clamp(25px, 5vw, 48px); display: grid; place-items: center; background: radial-gradient(circle at 82% 20%, rgba(244,185,49,.18), transparent 34%), #101b31; }
.video-consent-copy { width: min(100%, 680px); }
.video-consent-copy strong { display: block; margin-bottom: 11px; color: var(--sun); font-family: var(--sans); font-size: 1.1rem; }
.video-consent-copy p { max-width: 650px; margin: 0; color: rgba(255,255,255,.78); font-family: var(--sans); font-size: .92rem; line-height: 1.6; }
.video-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 21px; }
.video-consent-link { color: rgba(255,255,255,.78); font-family: var(--sans); font-size: .86rem; font-weight: 800; }
button.video-consent-link { border: 0; padding: 0; background: transparent; cursor: pointer; }
.video-consent-link:hover { color: var(--white); }
.video-consent.is-dismissed { background: #101b31; }
.video-consent.is-loaded { min-height: 0; padding: 0; background: #050a14; }
.video-consent.is-loaded iframe { display: block; width: 100%; min-height: 420px; border: 0; }
.video-note { margin: 0; padding: 12px 18px; color: rgba(255,255,255,.68); font-family: var(--sans); font-size: .75rem; text-align: center; }

.callout { margin: 30px 0; padding: 22px 24px; border-left: 5px solid var(--coral); border-radius: 0 15px 15px 0; background: var(--paper-2); font-family: var(--sans); }
.callout p:last-child { margin-bottom: 0; }
.disclosure { padding: 15px 18px; border: 1px solid rgba(229,110,85,.35); border-radius: 13px; background: #fff7ec; color: #5d4a3a; font-size: .86rem; line-height: 1.5; }
.disclosure a { color: var(--coral-deep); font-weight: 800; }

.profile-hero { padding: 62px 0 34px; background: var(--green-deep); color: var(--white); }
.profile-hero .eyebrow { color: var(--sun); }
.profile-hero h1 { font-size: clamp(2.7rem, 6vw, 5.6rem); max-width: 880px; }
.profile-hero p { max-width: 650px; color: rgba(255,255,255,.75); font-size: 1.1rem; }
.profile-wrap { padding: 42px 0 90px; }
.profile-card { max-width: 790px; margin: 0 auto; padding: clamp(22px, 5vw, 44px); border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: var(--shadow); }
.progress-line { display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--muted); font-size: .82rem; font-weight: 850; }
.progress-track { height: 7px; margin: 13px 0 35px; overflow: hidden; border-radius: 999px; background: var(--paper-2); }
.progress-bar { width: 0; height: 100%; background: var(--coral); transition: width .25s ease; }
.profile-card h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 23px; }
.profile-option-list { display: grid; gap: 10px; }
.profile-option { width: 100%; padding: 16px 17px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--paper); text-align: left; font-weight: 750; }
.profile-option:hover, .profile-option.selected { border-color: var(--green); background: var(--mint); }
.profile-option.selected { box-shadow: inset 4px 0 var(--green); }
.profile-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 25px; }
.link-button { border: 0; padding: 8px 0; color: var(--coral-deep); background: transparent; font-weight: 850; }
.link-button[disabled] { color: var(--muted); cursor: not-allowed; opacity: .5; }
.result-eyebrow { color: var(--coral-deep); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 900; }
.result-name { font-size: clamp(2.2rem, 5vw, 4rem); margin: 8px 0 8px; }
.result-sub { color: var(--muted); font-size: 1.15rem; margin: 0 0 22px; }
.result-block { padding: 19px 0; border-top: 1px solid var(--line); }
.result-block h3 { font-size: 1rem; letter-spacing: -.02em; margin-bottom: 7px; }
.result-block p { color: #4d5c54; margin: 0; }
.result-secondary { display: inline-flex; margin: 5px 0 23px; padding: 7px 10px; border-radius: 999px; background: var(--lavender); color: var(--ink); font-size: .8rem; font-weight: 850; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 23px; }
.method-note { margin: 20px auto 0; max-width: 790px; color: var(--muted); font-size: .82rem; text-align: center; }
.email-disabled { margin-top: 32px; padding: 20px; border: 1px dashed var(--line); border-radius: 16px; background: var(--paper); }
.email-disabled h3 { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; margin-bottom: 6px; }
.email-disabled p { color: var(--muted); font-size: .88rem; margin: 0; }

/* Direct contact route — separate from the MailerLite newsletter */
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 34px; align-items: start; }
.contact-intro.prose { max-width: none; padding: 12px 0 20px; }
.contact-intro.prose h2 { margin-top: 0; }
.contact-intro.prose p { max-width: 570px; }
.contact-card { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 17px; }
.form-field { display: grid; gap: 7px; }
.form-field label { color: var(--ink); font-size: .9rem; font-weight: 850; }
.form-field label > span:not(.optional) { color: var(--coral-deep); }
.optional { color: var(--muted); font-size: .8rem; font-weight: 650; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: .98rem; }
.contact-form textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.contact-form input:not([type="checkbox"]):focus, .contact-form textarea:focus { border-color: var(--sun); outline: 3px solid rgba(244,185,49,.28); outline-offset: 1px; }
.field-help { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.contact-ack { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.contact-ack input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--sun); }
.contact-privacy { margin: -7px 0 0 27px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.contact-privacy a, .contact-fallback a { color: var(--coral-deep); font-weight: 800; text-underline-offset: 3px; }
.contact-submit { justify-self: start; border: 0; }
.contact-submit[disabled] { cursor: wait; opacity: .65; transform: none; }
.form-status { min-height: 1.55em; margin: -2px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.form-status.is-success { color: #17633c; }
.form-status.is-error { color: var(--red); }
.contact-note { max-width: 570px; margin: 27px 0; padding: 17px 18px; border-left: 4px solid var(--sun); border-radius: 0 14px 14px 0; background: var(--paper-2); }
.contact-note strong { display: block; margin-bottom: 5px; color: var(--ink); }
.contact-note p { margin: 0; color: var(--muted); font-size: .9rem; }
.contact-fallback { font-size: .92rem; }

.prose { max-width: 800px; padding: 50px 0 85px; }
.prose h2 { margin: 44px 0 13px; font-size: 2rem; }
.prose h3 { margin: 30px 0 9px; font-size: 1.3rem; letter-spacing: -.03em; }
.prose p, .prose li { color: #3f4c45; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 8px 0; }
.prose .notice { margin: 28px 0; padding: 20px; border: 1px solid rgba(229,110,85,.35); border-radius: 16px; background: #fff7ec; }
.prose .notice p:last-child { margin-bottom: 0; }
.prose code { padding: 2px 5px; border-radius: 4px; background: var(--paper-2); }
.external-list { display: grid; gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.external-list li { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.external-list strong { display: block; color: var(--ink); }
.external-list a { color: var(--coral-deep); overflow-wrap: anywhere; }

.site-footer { padding: 35px 0 43px; border-top: 1px solid var(--line); background: var(--paper-2); color: var(--muted); font-size: .86rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 15px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 45px; }
  .nox-card { min-height: 280px; width: min(100%, 520px); margin-inline: auto; }
  .cards, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { width: min(calc(100% - 40px), var(--reading)); grid-template-columns: minmax(0, 1fr); }
  .article-aside { display: none; }
  .signal-band { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .article-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 35px; }
  .night-timeline { grid-template-columns: repeat(2, 1fr); }
  .night-timeline::before { display: none; }
}

@media (max-width: 720px) {
  html { scroll-behavior: auto; }
  .container, .narrow, .reading { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 68px; }
  .menu-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 14px; right: 14px; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .hero { padding: 55px 0 58px; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.6rem); }
  .section { padding: 62px 0; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head > p { margin-top: 18px; }
  .stat-row { grid-template-columns: 1fr; }
  .cards, .article-grid { grid-template-columns: 1fr; }
  .blog-toolbar { display: block; }
  .search-wrap { max-width: none; }
  .filters { justify-content: flex-start; margin-top: 12px; }
  .page-hero { padding: 52px 0 38px; }
  .page-hero h1, .article-hero h1 { font-size: clamp(2.65rem, 13vw, 4rem); }
  .article-hero { padding: 52px 0 35px; }
  .article-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .article-shell { padding-top: 28px; }
  .article-layout { width: min(calc(100% - 36px), var(--reading)); }
  .article-content { font-size: 1.08rem; line-height: 1.72; }
  .article-content > p:first-child { font-size: 1.16rem; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a:last-child { text-align: left; }
  .footer-grid { display: block; }
  .footer-links { justify-content: flex-start; margin-top: 12px; }
  .profile-card { padding: 22px 17px; }
  .night-timeline { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* MailerLite newsletter embed — kept within the Midnight Biology system */
.newsletter-form.ml-form-embedContainer { display: block; width: 100%; margin: 20px 0 0; }
.newsletter-form .ml-form-align-center { text-align: left; }
.newsletter-form .ml-form-embedWrapper { width: 100%; max-width: none; background: transparent; border: 0; border-radius: 0; }
.newsletter-form .ml-form-embedBody,
.newsletter-form .ml-form-successBody { padding: 0; }
.newsletter-form .ml-form-embedContent { margin: 0 0 17px; text-align: left; }
.newsletter-form .ml-form-embedContent h4,
.newsletter-form .ml-form-successContent h4 { margin: 0 0 8px; color: var(--ink); font-family: var(--sans); font-size: 1.35rem; font-weight: 850; line-height: 1.08; letter-spacing: -.04em; }
.newsletter-form .ml-form-embedContent p,
.newsletter-form .ml-form-successContent p { margin: 0; color: var(--muted); font-family: var(--sans); font-size: .9rem; line-height: 1.5; }
.newsletter-form .ml-form-fieldRow { width: 100%; margin: 0 0 12px; }
.newsletter-form .ml-field-group { width: 100%; }
.newsletter-form input[type="email"] { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--white); font-family: var(--sans); font-size: .95rem; }
.newsletter-form input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.newsletter-form input[type="email"]:focus { border-color: var(--sun); outline: 3px solid rgba(244,185,49,.28); outline-offset: 1px; }
.newsletter-form .ml-form-checkboxRow { width: 100%; margin: 0 0 15px; }
.newsletter-form .ml-form-checkboxRow label { display: flex; align-items: flex-start; gap: 10px; min-height: 24px; margin: 0; padding: 0; color: var(--muted); font-family: var(--sans); font-size: .78rem; line-height: 1.45; font-weight: 500; }
.newsletter-form .ml-form-checkboxRow input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--sun); }
.newsletter-form .ml-form-checkboxRow .label-description { display: block; }
.newsletter-form .ml-privacy-link { margin: 7px 0 0 27px; color: var(--muted); font-family: var(--sans); font-size: .78rem; line-height: 1.4; }
.newsletter-form .ml-privacy-link a { color: var(--coral-deep); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.newsletter-form .ml-privacy-link a:hover { color: var(--ink); }
.newsletter-form .ml-form-embedSubmit { width: 100%; margin: 0; }
.newsletter-form .ml-form-embedSubmit button.primary { width: 100%; min-height: 46px; padding: 11px 15px; border: 0; border-radius: 999px; color: var(--ink); background: var(--sun); font-family: var(--sans); font-size: .9rem; font-weight: 900; }
.newsletter-form .ml-form-embedSubmit button.primary:hover { background: #ffd35d; }
.newsletter-form .ml-form-embedSubmit button.loading { display: none; }
.newsletter-form .ml-form-embedSubmitLoad { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(16,23,39,.25); border-top-color: var(--ink); border-radius: 50%; animation: tg-mailerlite-spin 1s linear infinite; vertical-align: middle; }
.newsletter-form .ml-error input[type="email"] { border-color: var(--red); }
.newsletter-form .ml-error .label-description,
.newsletter-form .ml-error .label-description a { color: var(--red); }
.newsletter-signup { margin-top: 34px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.newsletter-signup h3 { margin: 0 0 8px; font-size: 1.25rem; }
.newsletter-signup > p { margin: 0; color: var(--muted); font-size: .9rem; }
.panel-dark .newsletter-form .ml-form-embedContent h4,
.panel-dark .newsletter-form .ml-form-successContent h4 { color: var(--white); }
.panel-dark .newsletter-form .ml-form-embedContent p,
.panel-dark .newsletter-form .ml-form-successContent p,
.panel-dark .newsletter-form .ml-form-checkboxRow label,
.panel-dark .newsletter-form .ml-privacy-link { color: rgba(255,255,255,.78); }
.panel-dark .newsletter-form .ml-privacy-link a { color: var(--sun); }
.panel-dark .newsletter-form input[type="email"] { border-color: rgba(255,255,255,.25); }
.panel-dark .newsletter-form .ml-error .label-description,
.panel-dark .newsletter-form .ml-error .label-description a { color: #ffb4a7; }
@keyframes tg-mailerlite-spin { to { transform: rotate(360deg); } }


/* Supplied transparent Nox artwork and the no-thumbnail blog treatment */
.nox-card::before, .nox-card::after { display: none; }
.nox-card { height: 410px; min-height: 410px; }
.nox-character { height: calc(100% - 24px); width: auto; max-width: 90%; object-fit: contain; position: relative; z-index: 1; transform: rotate(-2deg); filter: drop-shadow(0 18px 14px rgba(0,0,0,.3)); }
.article-hero-note { min-height: 300px; padding: 34px; position: relative; overflow: hidden; border: 1px solid rgba(255,253,248,.2); border-radius: 28px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); background: var(--sun); box-shadow: 0 24px 55px rgba(0,0,0,.25); transform: rotate(1.5deg); }
.article-note-orbit { position: absolute; width: 245px; height: 245px; top: -70px; right: -70px; border: 1px solid rgba(16,23,39,.22); border-radius: 50%; }
.article-note-orbit::after { content: ""; position: absolute; width: 17px; height: 17px; left: 22px; bottom: 35px; border-radius: 50%; background: var(--green-deep); box-shadow: 0 0 0 8px rgba(9,18,33,.12); }
.article-note-number { position: relative; z-index: 1; font-size: clamp(5rem, 10vw, 8rem); line-height: .8; letter-spacing: -.11em; font-weight: 950; }
.article-note-label { position: relative; z-index: 1; margin-top: 28px; color: var(--green-deep); font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 950; }
.article-hero-note p { position: relative; z-index: 1; max-width: 210px; margin: 8px 0 0; color: rgba(16,23,39,.72); font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.article-card { min-height: 340px; }
.article-card-top { min-height: 94px; }

@media (max-width: 980px) {
  .article-hero-note { min-height: 260px; }
}

@media (max-width: 720px) {
  .nox-card { height: 280px; min-height: 280px; }
  .nox-character { height: calc(100% - 18px); max-width: 84%; }
  .article-hero-note { width: min(100%, 380px); min-height: 220px; margin-inline: auto; transform: rotate(0); }
  .article-note-orbit { width: 190px; height: 190px; }
  .video-consent.is-loaded iframe { min-height: 250px; }
}

/* Social-first link page: intentionally standalone and not used by the main navigation. */
.links-page { min-height: 100%; color: var(--white); background: var(--green-deep); }
.links-main { min-height: 100svh; padding: clamp(24px, 5vw, 56px) 18px 34px; background: radial-gradient(circle at 14% 4%, rgba(244,185,49,.2) 0 2px, transparent 3px), radial-gradient(circle at 88% 22%, rgba(185,187,212,.18) 0 1px, transparent 2px), var(--green-deep); }
.links-shell { width: min(100%, 620px); margin-inline: auto; }
.links-profile { text-align: center; }
.links-avatar { width: 96px; height: 96px; display: grid; place-items: center; margin: 0 auto 15px; overflow: hidden; border: 1px solid rgba(255,253,248,.25); border-radius: 50%; background: var(--sun); box-shadow: 0 16px 30px rgba(0,0,0,.24); }
.links-avatar img { width: 88px; height: 88px; object-fit: contain; transform: translateY(6px); }
.links-brand { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,253,248,.84); font-size: .86rem; font-weight: 850; letter-spacing: -.02em; }
.links-brand-mark { width: 19px; height: 19px; display: inline-block; position: relative; border-radius: 50%; background: var(--sun); box-shadow: inset -3px -2px 0 rgba(0,0,0,.12); }
.links-brand-mark::before { content: ""; position: absolute; width: 15px; height: 15px; top: -1px; left: 5px; border-radius: 50%; background: var(--green-deep); }
.links-profile h1 { max-width: none; margin: 13px auto 8px; color: var(--white); font-size: clamp(2.15rem, 8vw, 3.5rem); }
.links-profile > p { max-width: 470px; margin: 0 auto; color: rgba(255,253,248,.7); font-size: 1rem; line-height: 1.5; }
.links-quiz-card { margin-top: 29px; padding: 19px; border: 1px solid rgba(244,185,49,.45); border-radius: 23px; background: linear-gradient(135deg, rgba(244,185,49,.16), rgba(255,253,248,.05)); box-shadow: 0 20px 42px rgba(0,0,0,.16); }
.links-kicker { margin-bottom: 8px; color: var(--sun); font-size: .72rem; font-weight: 950; letter-spacing: .15em; text-transform: uppercase; }
.links-quiz-card h2 { margin-bottom: 16px; color: var(--white); font-family: var(--sans); font-size: clamp(1.35rem, 5vw, 1.8rem); letter-spacing: -.04em; }
.links-button { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 17px; border: 1px solid transparent; border-radius: 15px; text-decoration: none; font-weight: 900; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.links-button:hover { transform: translateY(-2px); }
.links-button:focus-visible, .links-social:focus-visible, .links-post:focus-visible { outline-color: var(--sun); }
.links-primary { color: var(--ink); background: var(--sun); box-shadow: 0 10px 20px rgba(244,185,49,.2); }
.links-primary:hover { color: var(--ink); background: #ffd35d; }
.links-primary > span { min-width: 0; }
.links-primary b { margin-left: 5px; font-size: 1.1em; }
.links-primary small { flex: 0 0 auto; color: rgba(16,23,39,.68); font-size: .74rem; font-weight: 850; }
.links-caption { margin: 11px 2px 0; color: rgba(255,253,248,.6); font-size: .76rem; line-height: 1.45; }
.links-section { margin-top: 29px; }
.links-section h2 { margin-bottom: 12px; color: var(--white); font-family: var(--sans); font-size: 1.15rem; letter-spacing: -.025em; }
.links-section-intro { margin: -2px 0 13px; color: rgba(255,253,248,.66); font-size: .88rem; line-height: 1.45; }
.links-social-grid, .links-post-list { display: grid; gap: 10px; }
.links-social, .links-post { min-width: 0; display: grid; align-items: center; gap: 12px; border: 1px solid rgba(255,253,248,.16); border-radius: 16px; color: var(--white); background: rgba(255,253,248,.07); text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.links-social { grid-template-columns: 44px minmax(0, 1fr) auto; min-height: 68px; padding: 11px 14px 11px 11px; }
.links-social:hover, .links-post:hover { transform: translateY(-2px); border-color: rgba(244,185,49,.65); background: rgba(244,185,49,.12); }
.links-social-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--ink); font-size: 1.05rem; font-weight: 950; }
.links-social-youtube { background: #ff6b57; }
.links-social-instagram { background: #d5b8e6; font-size: 1.65rem; line-height: 1; }
.links-social-tiktok { background: var(--sun); font-size: 1.45rem; }
.links-social-copy, .links-post-copy { min-width: 0; display: grid; gap: 2px; }
.links-social-copy strong, .links-post-copy strong { overflow-wrap: anywhere; font-size: .96rem; line-height: 1.25; }
.links-social-copy small, .links-post-copy small { color: rgba(255,253,248,.62); font-size: .78rem; line-height: 1.35; }
.links-arrow { color: var(--sun); font-size: 1.05rem; font-weight: 900; }
.links-post { grid-template-columns: 40px minmax(0, 1fr) auto; min-height: 72px; padding: 10px 14px 10px 10px; }
.links-post-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--ink); background: var(--lavender); font-size: .78rem; font-weight: 950; }
.links-post:nth-child(2) .links-post-number { background: var(--sun); }
.links-post:nth-child(3) .links-post-number { background: #ff9f8f; }
.links-secondary { justify-content: center; margin-top: 12px; border-color: rgba(255,253,248,.22); color: var(--white); background: transparent; }
.links-secondary:hover { color: var(--ink); border-color: var(--white); background: var(--white); }
.links-footnote { margin: 32px 0 0; color: rgba(255,253,248,.45); font-size: .76rem; line-height: 1.45; text-align: center; }

@media (max-width: 390px) {
  .links-main { padding-inline: 13px; }
  .links-quiz-card { padding: 16px; }
  .links-button { padding-inline: 14px; }
  .links-primary { align-items: flex-start; flex-direction: column; gap: 4px; }
  .links-primary small { font-size: .72rem; }
}
