/* Deep blue research journal. A single deliberate dark theme. */
:root {
  color-scheme: dark;
  --night: #080f1c;
  --panel: #101c2e;
  --silver: #edf4ff;
  --muted: #a1b2ca;
  --ice: #78d5f7;
  --line: #293b55;
  --sans:
    "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--silver);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 6px;
}
::selection {
  background: var(--ice);
  color: var(--night);
}
.shell {
  inline-size: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  inset: 10px auto auto 20px;
  padding: 12px 20px;
  z-index: 10;
  background: var(--silver);
  color: var(--night);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.site-nav {
  min-block-size: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-block-end: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.16em;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.12em;
  color: var(--ice);
}
.brand-mark span {
  align-self: flex-start;
  font-size: 16px;
}
.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  font-size: 13px;
  color: var(--muted);
}
.site-nav nav a {
  padding-block: 12px;
}
.site-nav nav a:hover {
  color: var(--silver);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding-block: 72px 64px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  min-inline-size: 0;
}
.eyebrow {
  margin: 0;
  color: var(--ice);
  font: 11px/1.7 var(--mono);
  letter-spacing: 0.16em;
}
.signal-dot {
  display: inline-block;
  inline-size: 6px;
  block-size: 6px;
  background: var(--ice);
  border-radius: 50%;
  margin-inline-end: 8px;
  box-shadow: 0 0 12px #78d5f755;
}
h1 {
  margin: 22px 0 26px;
  font-size: clamp(64px, 7.5vw, 108px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.065em;
}
h1 > span {
  display: block;
  margin-block-start: 27px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.35;
  letter-spacing: -0.045em;
}
h1 em {
  font-style: normal;
  color: var(--ice);
}
.hero-description {
  max-inline-size: 25em;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.explore {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 46px;
  padding: 14px 20px;
  margin-block-start: 30px;
  background: var(--silver);
  color: var(--night);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.explore:hover {
  background: var(--ice);
}
.explore span {
  font-size: 20px;
}
.hero-art {
  position: relative;
  min-inline-size: 0;
  aspect-ratio: 1;
  background: radial-gradient(ellipse at 50% 50%, #173b6433, transparent 68%);
}
.hero-art canvas {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
}
.art-label {
  position: absolute;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.18em;
}
.label-top {
  inset: 3% 0 auto auto;
}
.label-bottom {
  inset: auto auto 3% 0;
}
.art-cross {
  position: absolute;
  color: var(--line);
  font: 24px var(--mono);
}
.cross-top {
  inset: 0 auto auto 0;
}
.cross-bottom {
  inset: auto 0 0 auto;
}
.orbit-fallback {
  position: absolute;
  inset: 19%;
  border: 1px solid var(--ice);
  border-radius: 50%;
  box-shadow:
    inset 0 0 60px #78d5f711,
    0 0 65px #78d5f711;
}
.orbit-fallback::before,
.orbit-fallback::after {
  content: "";
  position: absolute;
  inset: 10% -25%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: rotate(-35deg);
}
.orbit-fallback::after {
  transform: rotate(40deg);
}
.hero-art.is-rendered .orbit-fallback {
  display: none;
}
.edition {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
  font: 11px/1.7 var(--mono);
  color: var(--muted);
}
.edition-slash {
  padding-inline: 14px;
  color: var(--line);
}
.archive {
  padding-block: 62px 80px;
  scroll-margin-block-start: 24px;
}
.archive-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 30px;
}
h2 {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.archive-heading > p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.story {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-inline-size: 0;
  border: 1px solid var(--line);
  padding: 30px;
  background: linear-gradient(135deg, #13213877, #0e1828);
  transition:
    border-color 0.2s,
    background-color 0.2s;
}
.story:hover,
.story:focus-within {
  border-color: var(--ice);
  background-color: var(--panel);
}
.story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  inline-size: 100%;
  font: 11px/1.5 var(--mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.story-arrow {
  margin-inline-start: auto;
  color: var(--ice);
  font-size: 23px;
}
.latest {
  color: var(--ice);
  font-family: var(--sans);
}
.story h3 {
  font-size: 23px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 24px 0 16px;
  text-wrap: pretty;
}
.story h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.story h3 a:focus-visible {
  outline: none;
}
.story:has(a:focus-visible) {
  outline: 2px solid var(--ice);
  outline-offset: 4px;
}
.story-summary {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.story-read {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-start: auto;
  padding-block-start: 12px;
  color: var(--ice);
  font-size: 12px;
}
.story-featured {
  border-color: #4e7297;
  background:
    radial-gradient(ellipse at 100% 0, #245a7e44, transparent 75%), var(--panel);
}
.story-featured h3 {
  color: #d2efff;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-block: 42px 55px;
  border-block-start: 1px solid var(--line);
}
.footer-wordmark {
  font-size: clamp(28px, 6vw, 70px);
  font-weight: 650;
  letter-spacing: -0.06em;
  color: #8095b1;
}
.footer-wordmark span {
  color: var(--ice);
  margin-inline-start: 15px;
}
.site-footer p {
  margin: 0 0 10px;
  font-size: 14px;
}
.site-footer div > a {
  color: var(--muted);
  font-size: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: arrive 0.7s ease-out both;
  }
  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
@media (max-width: 900px) {
  .shell {
    inline-size: calc(100% - 48px);
  }
  .hero {
    padding-block: 52px;
  }
  .hero-art {
    align-self: center;
  }
  h1 {
    font-size: 72px;
  }
  h1 > span {
    font-size: 38px;
  }
  .story {
    padding: 24px;
  }
  .story h3 {
    font-size: 21px;
  }
}
@media (max-width: 600px) {
  .shell {
    inline-size: calc(100% - 40px);
  }
  .site-nav {
    min-block-size: 76px;
    gap: 12px;
  }
  .brand {
    font-size: 12px;
    letter-spacing: 0.1em;
    gap: 9px;
  }
  .site-nav nav {
    gap: 14px;
    font-size: 11px;
  }
  .site-nav nav a:first-child {
    display: none;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 45px 28px;
  }
  h1 {
    font-size: clamp(62px, 16vw, 90px);
  }
  h1 > span {
    font-size: 40px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-art {
    inline-size: min(100%, 380px);
    justify-self: center;
  }
  .edition {
    font-size: 10px;
  }
  .edition-slash {
    padding-inline: 8px;
  }
  .archive {
    padding-block: 40px 48px;
  }
  .archive-heading {
    align-items: start;
    gap: 14px;
  }
  h2 {
    font-size: 28px;
  }
  .article-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .story {
    padding: 22px;
  }
  .story h3 {
    margin-block-start: 18px;
  }
  .site-footer {
    padding-block: 30px;
  }
}
@media print {
  :root {
    color-scheme: light;
    --night: #fff;
    --silver: #172437;
    --muted: #40516b;
    --ice: #175581;
    --line: #ccd5e0;
  }
  .hero-art,
  .explore,
  .skip-link {
    display: none;
  }
  .hero {
    display: block;
  }
  .story {
    break-inside: avoid;
    background: #fff;
  }
  .story-featured h3 {
    color: var(--silver);
  }
}
