/* Fundamental Science Journal: homepage
   White, electric blue #0071DC, deep blue #004C91, yellow #FFC220 */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --blue: #0071DC; --blue-ink: #0062BE; --deep: #004C91; --navy: #0E2340;
  --yellow: #FFC220; --yellow-hi: #FFD45C; --on-yellow: #00305C;
  --text: #1B2A41; --muted: #4A5A70; --line: #E3EAF3; --tint: #F2F7FD; --tint-2: #E8F2FD; --cream: #FFF6DB;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--body); color: var(--text); background: #FFFFFF; font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 90px; }

/* bilingual text */
[data-l="es"] { display: none !important; }
html[data-lang="es"] [data-l="es"] { display: revert !important; }
html[data-lang="es"] [data-l="en"] { display: none !important; }

.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #FFFFFF; padding: 10px 16px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 8px; font-family: var(--body); font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-yellow { background: var(--yellow); color: var(--on-yellow); }
.btn-yellow:hover { background: var(--yellow-hi); color: var(--on-yellow); }
.btn-outline-white { color: #FFFFFF; border-color: #FFFFFF; }
.btn-outline-white:hover { background: #FFFFFF; color: var(--deep); }
.btn-outline-blue { color: var(--blue-ink); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #FFFFFF; }
.btn-deep { background: var(--deep); color: #FFFFFF; }
.btn-deep:hover { background: var(--navy); color: #FFFFFF; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-row { display: flex; align-items: center; gap: 16px 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--deep); flex: none; }
.brand span { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 20px; line-height: 1.05; }
.nav { display: flex; align-items: center; gap: 6px 24px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--blue-ink); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-btn { font-family: var(--body); font-weight: 700; font-size: 14px; color: var(--blue-ink); background: #FFFFFF; border: 1.5px solid var(--blue); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
.lang-btn:hover { background: var(--tint); }
.menu-btn { display: none; font: inherit; font-weight: 700; font-size: 15px; background: #FFFFFF; color: var(--text); border: 1.5px solid #B9C6D8; border-radius: 8px; padding: 8px 12px; min-height: 44px; cursor: pointer; }

/* hero */
.hero { background: var(--blue); color: #FFFFFF; overflow: hidden; }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 88px 0 96px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.kicker { margin: 0 0 16px; font-weight: 700; font-size: 16px; color: #FFE08A; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -0.01em; }
.hero-lead { margin: 24px 0 0; font-size: 20px; line-height: 1.55; max-width: 34em; color: #EAF3FF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-art { flex: 1 1 340px; display: flex; justify-content: center; }
.hero-art svg { width: min(380px, 100%); height: auto; }
.hero-art .orbit { transform-origin: 120px 120px; animation: orbit-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes orbit-in { from { opacity: 0; transform: rotate(-18deg) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .hero-art .orbit { animation: none; } }

/* disciplines */
.disciplines { border-bottom: 1px solid var(--line); }
.disc-row { display: flex; flex-wrap: wrap; gap: 24px; padding: 40px 0; }
.disc { flex: 1 1 240px; display: flex; gap: 16px; align-items: flex-start; }
.disc h2 { margin: 0; font-family: var(--display); font-size: 22px; color: var(--deep); }
.disc p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }

/* sections */
.section { padding: 88px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-title { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); line-height: 1.1; color: var(--navy); }
.section-sub { margin: 10px 0 0; font-size: 18px; color: var(--muted); max-width: 38em; }

/* explainer cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 320px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #FFFFFF; display: flex; flex-direction: column; }
.card-art { height: 180px; display: flex; align-items: center; justify-content: center; }
.card-art.blue { background: var(--tint-2); }
.card-art.cream { background: var(--cream); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tag { margin: 0; font-size: 13px; font-weight: 700; color: var(--blue-ink); }
.card h3 { margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.2; color: var(--navy); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p.card-text { margin: 0; font-size: 16px; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; }
.soon { display: inline-block; background: var(--cream); color: #6B4E00; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; }

/* journal list */
.journal-list { border-top: 2px solid var(--navy); }
.journal-item { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.journal-item .ji-main { flex: 1 1 520px; min-width: 0; }
.journal-item .ji-tag { margin: 0; font-size: 13px; font-weight: 700; color: var(--blue-ink); }
.journal-item h3 { margin: 4px 0 2px; font-size: 21px; line-height: 1.3; color: var(--navy); }
.journal-item .ji-authors { margin: 0; font-size: 15px; color: var(--muted); }
.journal-empty { padding: 28px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--muted); }
.journal-empty a { font-weight: 700; }
.journal-more { margin-top: 20px; font-weight: 700; }

/* steps */
.publish { background: var(--tint); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.steps li { flex: 1 1 300px; background: #FFFFFF; border-radius: 12px; padding: 28px; }
.steps .step-num { margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--blue); line-height: 1; }
.steps h3 { margin: 12px 0 6px; font-size: 21px; color: var(--navy); }
.steps p { margin: 0; font-size: 16px; color: var(--muted); }
.publish-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* call for papers */
.cfp { background: var(--yellow); }
.cfp-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 48px 0; }
.cfp h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--on-yellow); }
.cfp p { margin: 6px 0 0; font-size: 17px; color: #2B2200; }

/* footer */
.site-footer { background: var(--deep); color: #DCE9F8; }
.footer-row { display: flex; flex-wrap: wrap; gap: 40px; padding: 56px 0 40px; }
.footer-row > div, .footer-row > nav { flex: 1 1 220px; }
.footer-brand { flex: 2 1 340px !important; }
.footer-name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; color: #FFFFFF; }
.footer-row p { margin: 10px 0 0; font-size: 15px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-links a, .site-footer a { color: var(--yellow); text-decoration: none; }
.footer-links a:hover, .site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 18px 0 26px; font-size: 14px; }

/* phones */
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .header-row { flex-wrap: wrap; }
  .nav { order: 5; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 4px 0 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-actions { margin-left: auto; }
  .header-actions .btn-small { display: none; }
  .hero-row { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
}

/* ---------- Science explained: article pages ---------- */
.article-wrap { width: min(100% - 2.5rem, 760px); margin-inline: auto; padding: 48px 0 24px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.crumbs a { font-weight: 600; }
.article-head h1 { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1.07; letter-spacing: -0.01em; color: var(--navy); }
.dek { margin: 18px 0 0; font-size: 21px; line-height: 1.5; color: var(--muted); }
.byline { margin: 24px 0 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.article-art { margin: 32px 0 8px; height: 260px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--tint-2); }
.article-art.cream { background: var(--cream); }
.article-art svg { width: 300px; height: auto; }
.prose { font-size: 19px; line-height: 1.75; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { margin: 1.8em 0 0.5em; font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 28px; line-height: 1.2; color: var(--deep); }
.prose .formula { margin: 1.2em 0; padding: 18px; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 26px; background: var(--tint); border-radius: 10px; color: var(--navy); }
.prose sup { font-size: 0.7em; line-height: 0; }
.key-ideas { margin: 40px 0; padding: 26px 30px; background: var(--tint); border-radius: 14px; }
.key-ideas h2 { margin: 0 0 12px; font-family: var(--display); font-size: 22px; color: var(--deep); }
.key-ideas ul { margin: 0; padding-left: 1.2em; }
.key-ideas li { margin: 0 0 8px; font-size: 17px; }
.key-ideas li::marker { color: var(--blue); }
.refs h2 { margin: 0 0 10px; font-family: var(--display); font-size: 22px; color: var(--deep); }
.refs ol { margin: 0; padding-left: 1.3em; font-size: 16px; color: var(--text); }
.refs li { margin: 0 0 8px; }
.cta-box { margin: 48px 0 8px; padding: 32px; border-radius: 16px; background: var(--blue); color: #FFFFFF; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-box h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; }
.cta-box p { margin: 6px 0 0; color: #EAF3FF; font-size: 17px; max-width: 30em; }
.more { padding: 56px 0 88px; }
