/* ==========================================================================
   ATLAS — bold editorial print.
   Warm white ground, heavy ink rules, crimson accent, grotesk display,
   hard shadows. A manifesto that happens to be a website.
   ========================================================================== */

.theme-atlas {
  --paper:        #fdfcf8;
  --paper-2:      #f4f2ea;
  --paper-3:      #e9e6da;
  --dark:         #16150f;
  --dark-2:       #211f17;
  --dark-3:       #2b291f;
  --ink:          #16150f;
  --ink-2:        #3d3b30;
  --muted:        #8a877a;
  --muted-dark:   #a5a294;
  --clay:         #e11d48;
  --clay-deep:    #be123c;
  --clay-soft:    #fecdd3;
  --sky:          #16150f;
  --sage:         #4d7c0f;
  --line:         rgba(22, 21, 15, 0.18);
  --line-strong:  rgba(22, 21, 15, 0.45);
  --line-dark:    rgba(253, 252, 248, 0.16);
  --r-xs: 0;
  --r-sm: 0;
  --r:    0;
  --r-lg: 0;
  --r-xl: 0;
  --r-pill: 0;
  --serif: "Space Grotesk", "Inter", sans-serif;
  --sans:  "Inter", sans-serif;
}

.theme-atlas ::selection { background: var(--clay); color: #fff; }
.theme-atlas :focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---- chrome ---------------------------------------------------------- */

.theme-atlas .site-header {
  background: rgba(253, 252, 248, 0.92);
  border-bottom: 2px solid var(--ink);
}
.theme-atlas .promo { background: var(--ink); }
.theme-atlas .promo a:hover { color: var(--clay-soft); }

.theme-atlas .brand-mark { color: var(--clay); }
.theme-atlas .brand { font-family: var(--serif); font-weight: 700; letter-spacing: 0; }

.theme-atlas .nav-link, .theme-atlas .nav-trigger {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0;
}
.theme-atlas .nav-link:hover, .theme-atlas .nav-trigger:hover {
  background: var(--ink); color: var(--paper);
}

.theme-atlas .mega { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); box-shadow: 10px 10px 0 rgba(22, 21, 15, 0.9); }
.theme-atlas .mega__link:hover { background: var(--paper-2); color: var(--clay-deep); }
.theme-atlas .drawer { background: var(--paper); }

/* ---- buttons & links -------------------------------------------------- */

.theme-atlas .btn {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0;
}
.theme-atlas .btn--primary { background: var(--ink); color: var(--paper); }
.theme-atlas .btn--primary:hover { background: var(--clay); }
.theme-atlas .btn--clay { background: var(--clay); color: #fff; }
.theme-atlas .btn--clay:hover { background: var(--clay-deep); }
.theme-atlas .btn--outline { border: 2px solid var(--ink); }
.theme-atlas .btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.theme-atlas .arrow-link { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--clay); padding-bottom: 1px; }
.theme-atlas .arrow-link:hover { color: var(--clay-deep); }
.theme-atlas .hub-link, .theme-atlas .lang-toggle { border-width: 2px; font-family: var(--serif); font-weight: 600; letter-spacing: 0.05em; }
.theme-atlas .hub-link:hover, .theme-atlas .lang-toggle:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- type ------------------------------------------------------------- */

.theme-atlas .hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.98;
}
.theme-atlas .hero h1 a { color: var(--clay); text-decoration: none; box-shadow: inset 0 -0.14em 0 var(--clay); }
.theme-atlas .page-hero h1 { font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: -0.015em; }
.theme-atlas .section-head h2,
.theme-atlas .callout__copy h2,
.theme-atlas .card h3,
.theme-atlas .tile__title,
.theme-atlas .release__title,
.theme-atlas .timeline__item h3 {
  font-family: var(--serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.theme-atlas .eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px;
  letter-spacing: 0.18em;
}
.theme-atlas .eyebrow--clay { background: var(--clay); color: #fff; }
.theme-atlas .mission p { font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.theme-atlas .mission em { color: var(--clay); font-style: normal; box-shadow: inset 0 -0.16em 0 var(--clay); }
.theme-atlas .prose blockquote { border-left: 8px solid var(--ink); font-family: var(--serif); font-weight: 700; }
.theme-atlas .prose ul li::before { background: var(--clay); }
.theme-atlas .chip { border: 1.5px solid var(--ink); font-weight: 600; }
.theme-atlas .chip--clay { background: var(--clay); color: #fff; border-color: var(--clay); }

/* ---- surfaces --------------------------------------------------------- */

.theme-atlas .hero__glow { background: radial-gradient(closest-side at 70% 20%, rgba(225, 29, 72, 0.10), transparent 70%); }

.theme-atlas .card { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.theme-atlas .card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--ink);
  border-color: var(--ink);
}
.theme-atlas .card--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.theme-atlas .tiles { border: 2px solid var(--ink); background: var(--ink); }
.theme-atlas .tile:hover { background: var(--paper-2); }
.theme-atlas .tile__arrow { color: var(--clay); }

.theme-atlas .callout { border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); border-radius: 0; }
.theme-atlas .callout__viz {
  background:
    radial-gradient(120% 90% at 80% 15%, rgba(225, 29, 72, 0.5), transparent 60%),
    var(--paper-3);
  border-left: 2px solid var(--ink);
}

.theme-atlas .table-wrap { border: 2px solid var(--ink); }
.theme-atlas .table thead th { background: var(--ink); color: var(--paper); }
.theme-atlas .table tbody tr:hover { background: var(--paper-2); }
.theme-atlas .tier { background: var(--clay); }

.theme-atlas .note { border: 2px solid var(--ink); border-left: 8px solid var(--clay); }
.theme-atlas .codeblock { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }

.theme-atlas .stat { border-block: none; }
.theme-atlas .stats { border-block: 2px solid var(--ink); }
.theme-atlas .stat dd { color: var(--ink); }
.theme-atlas .section--paper2 { background: var(--paper-2); }
.theme-atlas .timeline__item { border-top: 2px solid var(--ink); }
.theme-atlas .timeline__item:last-child { border-bottom: 2px solid var(--ink); }
.theme-atlas .timeline__year { color: var(--clay); font-weight: 700; }
.theme-atlas .job { border-top: 2px solid var(--line); }
.theme-atlas .job:hover { color: var(--clay-deep); }

/* ---- forms ------------------------------------------------------------ */

.theme-atlas .field input, .theme-atlas .field select, .theme-atlas .field textarea, .theme-atlas .subscribe input {
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
}
.theme-atlas .field input:focus, .theme-atlas .field textarea:focus, .theme-atlas .subscribe input:focus {
  border-color: var(--clay);
  box-shadow: 4px 4px 0 var(--clay);
}
.theme-atlas .filter { border: 2px solid var(--ink); border-radius: 0; font-weight: 600; font-size: 14px; }
.theme-atlas .filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---- footer ----------------------------------------------------------- */

.theme-atlas .site-footer { background: var(--ink); border-top: 6px solid var(--clay); }
.theme-atlas .footer__brand .brand-mark { color: var(--clay); }
.theme-atlas .footer__social a { border-radius: 0; }
.theme-atlas .footer__social a:hover { background: var(--clay); border-color: var(--clay); }

/* CJK: uppercase tracking needs air on Chinese glyphs */
html[lang^="zh"] .theme-atlas .hero h1,
html[lang^="zh"] .theme-atlas .page-hero h1 { line-height: 1.2; }
html[lang^="zh"] .theme-atlas .eyebrow,
html[lang^="zh"] .theme-atlas .btn { text-transform: none; letter-spacing: 0.12em; }

/* ==========================================================================
   ATLAS home — magazine cover architecture.
   ========================================================================== */

.at-masthead { max-width: 1240px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 28px; text-align: center; }
.at-masthead-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); border-block: 2px solid var(--ink); padding-block: 8px; }
.at-masthead-mid { font-weight: 500; color: var(--ink); }
.at-title { margin-top: clamp(24px, 4vw, 48px); font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 9vw, 110px); line-height: 0.95; letter-spacing: -0.02em; }
.at-deck { margin: 26px auto 0; max-width: 64ch; font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--ink-2); }
.at-byline { margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted); border-top: 2px solid var(--ink); padding-top: 12px; }

.at-ticker { overflow: hidden; white-space: nowrap; border-block: 2px solid var(--ink); background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 12.5px; padding-block: 8px; text-indent: 24px; }
.at-ticker span { display: inline-block; animation: at-scroll 40s linear infinite; }
@keyframes at-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .at-ticker span { animation: none; } }

.at-index { max-width: 1240px; margin-inline: auto; padding: clamp(40px, 6vw, 64px) var(--gutter); }
.at-kicker { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0; display: inline-block; background: var(--ink); color: var(--paper); padding: 5px 10px; }
.at-kicker--clay { background: var(--clay); color: #fff; }
.at-index-grid { margin-top: 28px; border-top: 2px solid var(--ink); }
.at-index-item { display: grid; grid-template-columns: 70px 240px 1fr 70px; gap: 18px; align-items: baseline; padding: 18px 4px; border-bottom: 2px solid var(--ink); transition: background 0.15s; }
.at-index-item:hover { background: var(--paper-2); }
.at-no { font-family: var(--mono); font-size: 13px; color: var(--clay); }
.at-name { font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 2.4vw, 26px); letter-spacing: -0.01em; }
.at-desc { color: var(--ink-2); font-size: 14.5px; }
.at-pg { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
@media (max-width: 760px) { .at-index-item { grid-template-columns: 48px 1fr; } .at-desc, .at-pg { grid-column: 2; } }

.at-spread { max-width: 1240px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter); display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.at-h2 { margin-top: 16px; font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 4vw, 46px); line-height: 1.02; letter-spacing: -0.015em; }
.at-lede { margin-top: 18px; max-width: 52ch; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.at-spread .btn { margin-top: 26px; }
.at-spread-side { border: 2px solid var(--ink); padding: 24px; box-shadow: 8px 8px 0 var(--ink); background: #fff; }
.at-figures { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.at-figures li { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.at-figures strong { font-family: var(--serif); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.at-figures span { font-size: 13.5px; color: var(--muted); }
.at-more { display: inline-block; margin-top: 20px; font-weight: 600; font-size: 14.5px; border-bottom: 2px solid var(--clay); }
@media (max-width: 900px) { .at-spread { grid-template-columns: 1fr; } }

.at-manifesto { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 104px) var(--gutter); text-align: center; }
.at-manifesto .at-kicker { background: var(--clay); }
.at-manifesto-line { margin: 26px auto 0; max-width: 24ch; font-family: var(--serif); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.01em; }
.at-manifesto-line--clay { color: var(--clay); box-shadow: inset 0 -0.14em 0 rgba(225, 29, 72, 0.45); }
.at-manifesto .btn { margin-top: 34px; background: var(--clay); }
.at-manifesto .btn:hover { background: var(--clay-deep); }

.at-colophon { max-width: 1240px; margin-inline: auto; padding: 20px var(--gutter) 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); border-top: 2px solid var(--ink); }
.at-colophon a { color: var(--ink); font-weight: 500; }
