/*
Theme Name: ArcSecs V5
Theme URI: https://arcsecs.com/
Author: ArcSecs
Author URI: https://arcsecs.com/
Description: A refined ArcSecs cosmic magazine theme with a more compact header, more balanced typography, upgraded logo treatment, and richer home-page signal cards.
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arcsecs
Tags: custom-background, custom-logo, featured-images, blog, news, one-column, two-columns, wide-blocks
*/

:root {
  --bg: #020713;
  --bg-2: #060b18;
  --panel: rgba(7, 15, 32, .78);
  --panel-strong: rgba(9, 19, 42, .94);
  --panel-soft: rgba(255, 255, 255, .045);
  --text: #edf5ff;
  --muted: #a8b8cf;
  --muted-2: #71849e;
  --line: rgba(171, 204, 255, .15);
  --line-strong: rgba(210, 228, 255, .28);
  --blue: #62ccff;
  --blue-2: #9ee3ff;
  --red: #ff2a3d;
  --red-2: #ff737d;
  --gold: #ffd37b;
  --violet: #b271ff;
  --max: 1180px;
  --narrow: 860px;
  --radius: 30px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .42);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 6%, rgba(98, 204, 255, .16), transparent 30rem),
    radial-gradient(circle at 82% 10%, rgba(178, 113, 255, .16), transparent 34rem),
    radial-gradient(circle at 54% 112%, rgba(255, 42, 61, .12), transparent 38rem),
    linear-gradient(180deg, #030918 0%, #020713 54%, #01040b 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.92) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(98,204,255,.65) 0 1px, transparent 1.45px),
    linear-gradient(90deg, rgba(98,204,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(98,204,255,.03) 1px, transparent 1px);
  background-size: 92px 92px, 157px 157px, 172px 172px, 172px 172px;
  background-position: 0 0, 38px 24px, -1px -1px, -1px -1px;
  opacity: .28;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.08), transparent 40%),
    linear-gradient(180deg, rgba(2,7,19,.05), rgba(2,7,19,.94) 82%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; transition: color .18s ease, border-color .18s ease, background .18s ease, opacity .18s ease; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }
figure { margin: 2rem 0; }

.wrap { width: min(calc(100% - 42px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 42px), var(--narrow)); margin-inline: auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 12px; left: 12px; z-index: 99999;
  width: auto; height: auto; clip: auto; padding: .75rem 1rem;
  background: #fff; color: #000; border-radius: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(1, 5, 13, .76);
  border-bottom: 1px solid rgba(210, 228, 255, .11);
  transition: background .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { background: rgba(1, 5, 13, .94); box-shadow: 0 14px 50px rgba(0,0,0,.35); border-color: var(--line); }
.header-wrap {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-sigil, .footer-brand span {
  width: 46px; height: 46px;
  display: inline-grid; place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.16), transparent 32%),
    radial-gradient(circle at 35% 25%, rgba(98,204,255,.30), rgba(255,42,61,.13) 52%, rgba(0,0,0,.26));
  box-shadow: 0 0 38px rgba(98,204,255,.22), inset 0 0 16px rgba(255,255,255,.08);
  color: #fff;
  font-size: 27px;
  line-height: 1;
}
.brand-copy { display: block; min-width: 0; line-height: 1; }
.brand-word {
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 1.82rem);
  letter-spacing: .34em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 22px rgba(255,255,255,.20);
}
.brand-dot { margin-left: .34rem; font-size: .72rem; letter-spacing: .18em; color: var(--blue-2); font-weight: 800; }
.brand-copy em {
  display: block;
  margin-top: .42rem;
  max-width: 460px;
  color: var(--muted);
  font-style: normal;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.primary-nav .menu, .footer-nav .menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  display: block;
  padding: .52rem .84rem;
  border-radius: 999px;
  color: #d7e7fb;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: #fff;
  border-color: rgba(255,211,123,.42);
  background: rgba(255,211,123,.07);
}
.menu-toggle {
  display: none;
  width: 46px; height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  cursor: pointer;
}
.menu-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 4px;
}

.hero { position: relative; overflow: hidden; }
.hero-home {
  min-height: 620px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,7,19,.96) 0%, rgba(2,7,19,.79) 38%, rgba(2,7,19,.50) 100%),
    radial-gradient(circle at 78% 40%, rgba(98,204,255,.22), transparent 25rem),
    radial-gradient(circle at 76% 74%, rgba(255,42,61,.22), transparent 26rem),
    url('assets/images/arcsecs-hero.jpg') center / cover no-repeat;
  opacity: .98;
  transform: scale(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 47%, rgba(255,255,255,.14), transparent 2rem),
    linear-gradient(100deg, transparent 0 56%, rgba(98,204,255,.20) 56.2%, transparent 57.5%),
    linear-gradient(102deg, transparent 0 62%, rgba(255,42,61,.20) 62.2%, transparent 64%);
  mix-blend-mode: screen;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .72fr);
  gap: 46px;
  align-items: center;
  padding-block: 74px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .76rem;
  font-weight: 1000;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.hero h1, .archive-hero h1, .single-hero h1, .page-header h1, .section-heading h2, .console-large h2 {
  margin: .58rem 0 1.15rem;
  color: #fff;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.058em;
  line-height: .92;
}
.hero h1 { max-width: 760px; font-size: clamp(2.55rem, 5.6vw, 5.95rem); }
.hero p {
  max-width: 620px;
  color: #d1def0;
  font-size: clamp(.98rem, 1.25vw, 1.14rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.arcsecs-button, .search-submit, .form-submit .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .84rem 1.18rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: linear-gradient(135deg, #ff4050, #af111e);
  color: #fff !important;
  font-weight: 1000;
  letter-spacing: .04em;
  box-shadow: 0 16px 44px rgba(255,42,61,.24);
  cursor: pointer;
}
.arcsecs-button:hover, .search-submit:hover { transform: translateY(-1px); }
.arcsecs-button.ghost { background: rgba(255,255,255,.075); color: #e8f4ff !important; box-shadow: none; }

.hero-instrument {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.20), rgba(98,204,255,.12) 26%, rgba(255,42,61,.08) 52%, transparent 68%);
  filter: drop-shadow(0 32px 80px rgba(98,204,255,.18));
}
.orbital-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(211,232,255,.28); }
.ring-a { inset: 5%; box-shadow: inset 0 0 42px rgba(98,204,255,.14); }
.ring-b { inset: 18%; border-style: dashed; transform: rotate(17deg); }
.ring-c { inset: 32%; border-color: rgba(255,42,61,.44); transform: rotate(-24deg); }
.measurement-beam {
  position: absolute;
  width: 145%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(98,204,255,.72), #fff, rgba(255,42,61,.68), transparent);
  transform: rotate(-12deg);
  box-shadow: 0 0 22px rgba(98,204,255,.55);
}
.instrument-core {
  position: relative;
  z-index: 2;
  font-size: clamp(4rem, 10vw, 8.6rem);
  font-weight: 1000;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 48px rgba(98,204,255,.82), 0 0 90px rgba(255,42,61,.28);
}
.instrument-caption {
  position: absolute;
  bottom: 17%;
  color: var(--gold);
  font-size: .75rem;
  font-weight: 1000;
  letter-spacing: .22em;
}

.concept-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -42px;
}
.concept-strip article, .post-card, .console-panel, .signal-box, .widget, .comment-respond, .comment-list .comment, .page-article {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(12, 29, 60, .86), rgba(5, 12, 27, .80));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.concept-strip article { padding: 1.45rem; min-height: 170px; }
.concept-strip span { color: var(--red-2); font-weight: 1000; letter-spacing: .12em; }
.concept-strip strong { display: block; margin-top: .7rem; font-size: 1.22rem; color: #fff; }
.concept-strip p { color: var(--muted); margin: .45rem 0 0; }

.mission-console {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 18px;
  padding-top: 46px;
}
.console-panel { padding: 1.28rem; position: relative; overflow: hidden; }
.console-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% 30%;
  height: 110px;
  background: radial-gradient(circle, rgba(98,204,255,.20), transparent 70%);
}
.console-large h2 { font-size: clamp(1.55rem, 2.5vw, 2.55rem); }
.console-large p, .console-panel span { color: var(--muted); }
.console-panel strong { display: block; color: #fff; margin-bottom: .4rem; font-size: .98rem; }

.latest-section { padding-block: 86px 96px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 30px;
}
.section-heading h2 { font-size: clamp(1.8rem, 4vw, 3.6rem); }
.section-heading p { max-width: 470px; margin: 0; color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.post-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.34); box-shadow: 0 34px 100px rgba(0,0,0,.54); }
.post-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.26), rgba(98,204,255,.22) 20%, rgba(255,42,61,.13) 48%, rgba(1,5,13,1));
}
.post-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease, filter .32s ease; }
.post-card:hover img { transform: scale(1.055); filter: saturate(1.1); }
.post-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(2,7,19,.68)); }
.post-card-orbit { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; color: rgba(255,255,255,.62); }
.post-card-body { padding: 1.18rem; display: flex; flex-direction: column; flex: 1; }
.post-card-meta, .article-kicker, .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted-2);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 1000;
}
.post-card h2 { margin: .68rem 0 .56rem; font-size: clamp(1.12rem, 1.7vw, 1.55rem); line-height: 1.06; letter-spacing: -.03em; }
.post-card h2 a { color: #fff; }
.post-card p { margin: 0 0 1rem; color: var(--muted); }
.read-more { margin-top: auto; color: var(--blue); font-weight: 1000; }

.archive-hero, .single-hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 78px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 48% 5%, rgba(98,204,255,.16), transparent 28rem),
    radial-gradient(circle at 80% 18%, rgba(255,42,61,.14), transparent 24rem),
    rgba(2,7,19,.34);
}
.blog-hero {
  background-image:
    linear-gradient(180deg, rgba(2,7,19,.54), rgba(2,7,19,.9)),
    url('assets/images/arcsecs-hero.jpg');
  background-size: cover;
  background-position: center;
}
.archive-hero h1 { font-size: clamp(2.4rem, 5vw, 5.2rem); max-width: 950px; }
.archive-hero p { color: #c7d8ed; font-size: 1.12rem; max-width: 720px; }
.archive-grid { padding-block: 68px 84px; }
.pagination-wrap { padding: 42px 0 0; text-align: center; }
.nav-links, .pagination-wrap .page-numbers { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links a, .nav-links span, .pagination-wrap .page-numbers {
  padding: .64rem .86rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #dcecff;
}
.nav-links .current, .pagination-wrap .current { background: var(--red); border-color: var(--red); color: #fff; }

.single-hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  padding-bottom: 84px;
  background-image:
    linear-gradient(180deg, rgba(2,7,19,.28), rgba(2,7,19,.96) 84%),
    url('assets/images/arcsecs-hero.jpg');
  background-size: cover;
  background-position: center;
}
.single-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(255,42,61,.18), transparent 28rem),
    radial-gradient(circle at 20% 26%, rgba(98,204,255,.15), transparent 22rem);
  pointer-events: none;
}
.single-hero-content { position: relative; z-index: 1; }
.article-kicker a { color: var(--blue); }
.single-hero h1 { font-size: clamp(2.1rem, 4.8vw, 4.9rem); max-width: 980px; }
.article-excerpt { max-width: 880px; color: #d6e6f8; font-size: clamp(1.05rem, 1.55vw, 1.34rem); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 58px;
  align-items: start;
  padding-block: 76px;
}
.article-content {
  color: #dce8f7;
  font-family: Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  line-height: 1.86;
}
.article-content > * { margin-top: 0; margin-bottom: 1.48rem; }
.article-content h2, .article-content h3, .article-content h4 {
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.045em;
  line-height: 1.06;
  margin-top: 3rem;
}
.article-content h2 { font-size: clamp(1.9rem, 3vw, 2.9rem); }
.article-content h3 { font-size: clamp(1.45rem, 2.2vw, 2.05rem); }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.article-content .arcsecs-lede, .arcsecs-lede {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.58;
  color: #f3f8ff;
  font-weight: 700;
}
.article-content blockquote {
  margin: 2.1rem 0;
  padding: 1.35rem 1.6rem;
  border-left: 5px solid var(--red);
  border-radius: 0 24px 24px 0;
  background: linear-gradient(90deg, rgba(255,42,61,.18), rgba(98,204,255,.06));
  color: #fff;
}
.article-content ul, .article-content ol { padding-left: 1.38rem; }
.article-content li { margin-bottom: .66rem; }
.article-content hr { border: 0; height: 1px; background: var(--line); margin: 2.2rem 0; }
.article-content table { width: 100%; border-collapse: collapse; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .95rem; line-height: 1.45; overflow: hidden; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: .86rem; vertical-align: top; }
.article-content th { color: #fff; background: rgba(98,204,255,.12); }
.article-content td { color: #dce8f7; background: rgba(255,255,255,.035); }
.wp-block-table { overflow-x: auto; }
.dark-sector-intro, .dark-sector-toc, .wp-math.math-display, .article-content .wp-block-code {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 20px 70px rgba(0,0,0,.22);
}
.dark-sector-toc ol { margin-bottom: 0; }
.wp-math.math-display { color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; }
.wp-math.math-inline { color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.citation a { color: var(--gold); text-decoration: none; }
.works-cited { font-size: .95rem; word-break: break-word; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.15; }
.frac > span:first-child { border-bottom: 1px solid currentColor; padding-inline: .15em; }

.article-sidebar { position: sticky; top: 108px; display: grid; gap: 18px; }
.admin-bar .article-sidebar { top: 140px; }
.signal-box, .widget { padding: 1.2rem; }
.signal-box strong, .widget-title { display: block; color: #fff; font-size: 1.05rem; margin: 0 0 .48rem; }
.signal-box p, .widget p, .widget li { color: var(--muted); }
.widget ul { margin: 0; padding-left: 1.1rem; }
.widget a { color: #d8eaff; }
.tag-box { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-box strong { flex: 0 0 100%; }
.tag-box a, .tag-box span {
  display: inline-flex;
  padding: .42rem .62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #d5e7ff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 900;
  text-decoration: none;
}
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 56px; }
.post-nav div:last-child { text-align: right; }
.post-nav a { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.055); color: #d8e8ff; font-weight: 900; }

.page-wrap { padding-block: 72px; }
.page-article { padding: clamp(1.4rem, 4vw, 3rem); }
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: clamp(2.4rem, 5vw, 5rem); }
.page-content:empty::before { content: "This page is ready for content."; color: var(--muted); }

.search-form { display: flex; gap: 10px; max-width: 640px; }
.search-form label { flex: 1; }
.search-field {
  width: 100%; min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 0 1rem;
  outline: none;
}
.search-field:focus { border-color: rgba(98,204,255,.65); box-shadow: 0 0 0 4px rgba(98,204,255,.12); }
.no-results { padding-block: 72px; }

.comments-area { padding-bottom: 70px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment { padding: 1rem; margin-bottom: 1rem; }
.comment-respond { padding: 1.25rem; }
.comment-form input:not([type="submit"]), .comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.065);
  color: #fff;
  padding: .85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(1, 5, 13, .90);
  padding: 44px 0;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 28px; align-items: start; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: .8rem; }
.footer-brand strong { font-family: Georgia, Cambria, "Times New Roman", serif; font-size: 1.25rem; letter-spacing: .22em; }
.site-footer p { color: var(--muted); margin: .2rem 0; }
.footer-nav .menu { align-items: flex-start; flex-direction: column; }
.footer-nav a { color: #dcecff; font-weight: 900; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-meta { text-align: right; }

@media (max-width: 1100px) {
  .mission-console { grid-template-columns: 1fr 1fr; }
  .console-large { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .hero-grid, .article-layout, .footer-grid { grid-template-columns: 1fr; }
  .hero-instrument { max-width: 340px; }
  .post-grid, .concept-strip { grid-template-columns: repeat(2, 1fr); }
  .article-sidebar { position: static; }
  .footer-meta { text-align: left; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 720px) {
  .wrap, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .header-wrap { min-height: 68px; }
  .brand-copy em, .brand-dot { display: none; }
  .brand-word { font-size: 1.25rem; letter-spacing: .22em; }
  .brand-sigil { width: 40px; height: 40px; }
  .menu-toggle { display: block; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    padding: .75rem;
    background: rgba(4, 12, 27, .97);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav .menu { flex-direction: column; align-items: stretch; }
  .primary-nav a { border-radius: 14px; }
  .hero-home { min-height: auto; }
  .hero-grid { padding-block: 76px; gap: 32px; }
  .hero h1, .archive-hero h1, .single-hero h1 { letter-spacing: -.045em; }
  .concept-strip { margin-top: 22px; grid-template-columns: 1fr; }
  .post-grid, .mission-console { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .article-layout { padding-block: 44px; }
  .page-article { padding: 1.28rem; }
  .search-form { flex-direction: column; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav div:last-child { text-align: left; }
}

/* V4 refined image brand */
.brand-image {
  gap: 18px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.brand-logo-img {
  display: block;
  width: min(330px, 48vw);
  height: auto;
  filter: drop-shadow(0 0 18px rgba(158,227,255,.17));
}
.brand-tagline {
  display: block;
  margin-left: 2px;
  margin-top: -9px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1;
  letter-spacing: .32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-brand-image img {
  width: 210px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(158,227,255,.14));
}
.footer-brand-image { margin-bottom: .6rem; }
@media (max-width: 760px) {
  .brand-logo-img { width: min(260px, 68vw); }
  .brand-tagline { display: none; }
  .header-wrap { min-height: 70px; }
}
@media (max-width: 480px) {
  .brand-logo-img { width: min(220px, 65vw); }
}

/* V5 final refinements */
.brand-image {
  gap: 12px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
.brand-logo-img {
  display: block;
  width: min(220px, 26vw);
  height: auto;
  filter: drop-shadow(0 0 12px rgba(158,227,255,.16));
}
.brand-tagline {
  display: none;
}
.console-large::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 92px;
  height: 92px;
  background: url('assets/images/arcsecs-compass-mark-refined.png') center/contain no-repeat;
  opacity: .15;
  filter: drop-shadow(0 0 12px rgba(158,227,255,.18));
}
.console-card {
  min-height: 196px;
  display: flex;
  flex-direction: column;
}
.console-card .panel-visual {
  margin-top: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid rgba(171,204,255,.18);
  background-color: rgba(2,7,19,.7);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  overflow: hidden;
}
.console-card .panel-visual::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(2,7,19,.08), rgba(2,7,19,.56));
}
.console-redshift .panel-visual { background-image: url('assets/images/redshift-card.png'); }
.console-photon .panel-visual { background-image: url('assets/images/photon-mass-card.png'); }
.console-dark-sector .panel-visual { background-image: url('assets/images/dark-sector-card.png'); }

@media (max-width: 760px) {
  .brand-logo-img { width: min(190px, 58vw); }
  .header-wrap { min-height: 58px; }
}
@media (max-width: 720px) {
  .header-wrap { min-height: 58px; }
  .primary-nav { top: 58px; }
  .hero-grid { padding-block: 56px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 4rem); }
}
@media (max-width: 480px) {
  .brand-logo-img { width: min(170px, 58vw); }
}
