/* Night-sky stylesheet. Every class uses the as- prefix. Contrast checked against WCAG AA. */
:root {
  --as-void: #060a16;
  --as-ink: #0b1020;
  --as-panel: #111a31;
  --as-panel-2: #172242;
  --as-rule: #27355e;
  --as-text: #e8ebf4;
  --as-bright: #f4f6fb;
  --as-soft: #b7c0d8;
  --as-amber: #f4b860;
  --as-amber-hi: #ffd28f;
  --as-sunbg: #2a1c08;
  --as-sunrule: #6b4814;
  --as-suntext: #f6e8cf;
  --as-line: #8fa8e0;
  --as-head: "Exo 2", "Trebuchet MS", system-ui, sans-serif;
  --as-body: "PT Serif", Georgia, "Times New Roman", serif;
  --as-max: 1180px;
  --as-r: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--as-ink);
  color: var(--as-text);
  font-family: var(--as-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--as-amber); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--as-amber-hi); }
:focus-visible { outline: 3px solid var(--as-amber); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--as-head); line-height: 1.2; color: var(--as-bright); letter-spacing: .005em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 700; margin: .25em 0 .4em; }
h2 { font-size: clamp(1.3rem, 1.12rem + .8vw, 1.7rem); font-weight: 600; }
h3 { font-size: 1.14rem; font-weight: 600; }
p { margin: 0 0 1em; }

.as-wrap { width: 100%; max-width: var(--as-max); margin: 0 auto; padding: 0 20px; }
.as-skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--as-amber); color: var(--as-ink); padding: 10px 16px; border-radius: 8px;
  font-family: var(--as-head); font-weight: 600; text-decoration: none;
}
.as-skip:focus { top: 12px; }

/* ---------- masthead ---------- */
.as-top { position: relative; background: var(--as-void); border-bottom: 1px solid var(--as-rule); }
.as-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 184, 96, .7) 28%, rgba(244, 184, 96, .7) 72%, transparent);
}
.as-top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; min-height: 70px; padding-top: 8px; padding-bottom: 8px; }
.as-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--as-text); text-decoration: none; }
.as-brand:hover { color: var(--as-bright); }
.as-mark { flex: none; color: #cfdbff; }
.as-mark path:nth-of-type(2) { transform-origin: 16px 32px; animation: as-twinkle 5s ease-in-out infinite; }
@keyframes as-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.as-word { font-family: var(--as-head); font-weight: 600; font-size: 1.18rem; letter-spacing: .2em; text-transform: uppercase; }
.as-nav { margin-left: auto; }
.as-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.as-nav a {
  display: block; padding: 8px 13px; border-radius: 999px; color: var(--as-soft);
  font-family: var(--as-head); font-size: .95rem; font-weight: 500; text-decoration: none;
}
.as-nav a:hover { color: var(--as-bright); background: var(--as-panel); }
.as-nav a[aria-current="page"] { color: var(--as-ink); background: var(--as-amber); }
.as-nav a.as-on { color: var(--as-bright); box-shadow: inset 0 0 0 1px var(--as-amber); }
.as-lang { display: flex; align-items: center; gap: 4px; font-family: var(--as-head); font-size: .9rem; font-weight: 600; }
.as-lang a { color: var(--as-soft); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.as-lang a:hover { color: var(--as-bright); background: var(--as-panel); }
.as-lang a[aria-current="true"] { color: var(--as-amber); text-decoration: underline; text-underline-offset: .32em; }
.as-lang span { color: var(--as-soft); }
.as-lang--end { margin-left: auto; }
.as-menu-btn { display: none; }

@media (max-width: 959px) {
  .as-lang { order: 2; margin-left: auto; }
  .as-js .as-menu-btn {
    order: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    padding: 8px 15px; border-radius: 999px; border: 1px solid var(--as-rule);
    background: var(--as-panel); color: var(--as-text); font: 600 .95rem var(--as-head); cursor: pointer;
  }
  .as-js .as-menu-btn[aria-expanded="true"] { border-color: var(--as-amber); }
  .as-nav { order: 4; flex-basis: 100%; margin: 0; }
  .as-js .as-nav { display: none; }
  .as-js .as-nav.as-nav--open { display: block; padding-bottom: 12px; }
  .as-js .as-nav ul { flex-direction: column; gap: 2px; }
  .as-js .as-nav a { border-radius: 10px; padding: 11px 14px; }
}
@media (max-width: 420px) {
  .as-word { font-size: 1rem; letter-spacing: .14em; }
  .as-mark { width: 28px; height: 28px; }
  .as-brand { gap: 7px; }
  .as-top-in { gap: 8px 6px; }
  .as-lang a { padding: 6px 5px; }
  .as-js .as-menu-btn { padding: 8px 12px; }
  .as-menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- shared bits ---------- */
.as-kicker {
  margin: 0; font-family: var(--as-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--as-amber);
}
.as-kicker a { color: inherit; text-decoration: none; }
.as-kicker a:hover { text-decoration: underline; }
.as-lede { font-size: 1.14rem; line-height: 1.65; color: var(--as-text); max-width: 64ch; }
.as-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0; }
.as-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid var(--as-amber); background: var(--as-amber); color: var(--as-ink);
  font: 600 .95rem var(--as-head); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.as-btn:hover { background: var(--as-amber-hi); border-color: var(--as-amber-hi); color: var(--as-ink); }
.as-btn--ghost { background: transparent; color: var(--as-text); border-color: var(--as-rule); }
.as-btn--ghost:hover { background: var(--as-panel); border-color: var(--as-amber); color: var(--as-bright); }
.as-arrow { font-family: var(--as-head); font-weight: 600; text-decoration: none; }
.as-arrow::after { content: " \2192"; }
.as-arrow:hover { text-decoration: underline; }
.as-sun-ico { flex: none; color: var(--as-amber); margin-top: 2px; }

.as-block { padding-top: 56px; }
.as-block-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--as-rule);
}
.as-block-head h2 { margin: 0; }
.as-block-head p { margin: 0; color: var(--as-soft); }

/* ---------- home ---------- */
.as-hero {
  background: var(--as-void) url(/kit/sky/field-hero.svg) center / cover no-repeat;
  border-bottom: 1px solid var(--as-rule); padding: 52px 0 60px;
}
.as-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .as-hero-grid { grid-template-columns: 1.08fr .92fr; gap: 52px; } }
.as-hero h1 { max-width: 15ch; }
.as-feature {
  position: relative; overflow: hidden; background: rgba(11, 16, 32, .9);
  border: 1px solid var(--as-rule); border-radius: var(--as-r); box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
}
.as-feature img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.as-badge {
  position: absolute; top: 14px; left: 14px; margin: 0; padding: 5px 11px; border-radius: 999px;
  background: var(--as-amber); color: var(--as-ink); font: 600 .76rem var(--as-head); letter-spacing: .08em; text-transform: uppercase;
}
.as-feature-body { padding: 18px 22px 22px; }
.as-feature h2 { font-size: 1.42rem; margin: .3em 0 .4em; }
.as-feature h2 a, .as-card h3 a, .as-log-text h3 a, .as-cat h3 a { color: var(--as-bright); text-decoration: none; }
.as-feature h2 a::after, .as-card h3 a::after, .as-log-text h3 a::after, .as-cat h3 a::after { content: ""; position: absolute; inset: 0; }
.as-feature:hover h2 a, .as-card:hover h3 a, .as-log-row:hover h3 a, .as-cat:hover h3 a { color: var(--as-amber-hi); }
.as-feature:focus-within, .as-card:focus-within, .as-log-row:focus-within, .as-cat:focus-within { outline: 3px solid var(--as-amber); outline-offset: 3px; }
.as-feature a:focus-visible, .as-card a:focus-visible, .as-log-row a:focus-visible, .as-cat a:focus-visible { outline: none; }

.as-sunbar { background: var(--as-sunbg); border-bottom: 1px solid var(--as-sunrule); }
.as-sunbar-in { display: flex; gap: 16px; align-items: flex-start; padding-top: 22px; padding-bottom: 22px; }
.as-sunbar .as-sun-ico { width: 30px; height: 30px; }
.as-sunbar h2 { margin: 0 0 .3em; font-size: 1.12rem; color: var(--as-amber-hi); }
.as-sunbar p { margin: 0; color: var(--as-suntext); max-width: 80ch; }

.as-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .as-cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .as-cats--three { grid-template-columns: repeat(3, 1fr); } }
.as-cat {
  position: relative; display: flex; gap: 16px; align-items: center; padding: 16px 18px;
  background: var(--as-panel); border: 1px solid var(--as-rule); border-radius: var(--as-r); transition: border-color .2s;
}
.as-cat:hover { border-color: var(--as-amber); }
.as-cat img { flex: none; width: 82px; height: 82px; }
.as-cat h3 { margin: 0 0 .25em; }
.as-cat p { margin: 0; color: var(--as-soft); font-size: .95rem; line-height: 1.5; }
.as-cat .as-count { margin-top: .45em; font: 600 .8rem var(--as-head); letter-spacing: .06em; color: var(--as-amber); }

.as-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.as-log-row {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 16px;
  background: var(--as-panel); border: 1px solid var(--as-rule); border-radius: var(--as-r); transition: border-color .2s;
}
.as-log-row:hover { border-color: var(--as-amber); }
.as-log-date { font-family: var(--as-head); text-align: center; padding-right: 12px; border-right: 1px dashed var(--as-rule); }
.as-log-date b { display: block; font-size: 1.75rem; line-height: 1.05; color: var(--as-amber); font-weight: 700; }
.as-log-date span { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--as-soft); }
.as-log-img { display: none; }
.as-log-text h3 { margin: .2em 0 .3em; }
.as-log-text p { margin: 0; }
@media (min-width: 760px) {
  .as-log-row { grid-template-columns: 72px 190px 1fr; }
  .as-log-img { display: block; width: 190px; aspect-ratio: 5 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--as-rule); }
}

.as-teaser {
  margin-top: 4px; padding: 28px 28px 22px; border-radius: var(--as-r); border: 1px solid var(--as-rule);
  background: linear-gradient(135deg, var(--as-panel), var(--as-panel-2));
}
.as-teaser h2 { margin-top: 0; }
.as-teaser p { max-width: 72ch; }

/* ---------- cards ---------- */
.as-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .as-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .as-grid { grid-template-columns: repeat(3, 1fr); } .as-grid--two { grid-template-columns: 1fr 1fr; } }
.as-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--as-panel); border: 1px solid var(--as-rule); border-radius: var(--as-r);
  transition: border-color .2s, transform .2s;
}
.as-card:hover { border-color: var(--as-amber); transform: translateY(-2px); }
.as-card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-bottom: 1px solid var(--as-rule); }
.as-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.as-card-cat { margin: 0; font: 600 .76rem var(--as-head); letter-spacing: .13em; text-transform: uppercase; color: var(--as-amber); }
.as-card h3 { margin: 0; font-size: 1.12rem; }
.as-card-dek { margin: 0; color: var(--as-soft); font-size: .96rem; line-height: 1.55; }
.as-card-meta { margin: auto 0 0; padding-top: 6px; font: 500 .84rem var(--as-head); color: var(--as-soft); }

/* ---------- section and document bands ---------- */
.as-band {
  background: var(--as-void) url(/kit/sky/field-band.svg) center / cover no-repeat;
  border-bottom: 1px solid var(--as-rule); padding: 0 0 40px;
}
.as-band-grid { display: grid; gap: 22px; align-items: center; margin-top: 22px; }
.as-band-glyph { width: 112px; height: 112px; }
@media (min-width: 760px) {
  .as-band-grid { grid-template-columns: 160px 1fr; gap: 36px; }
  .as-band-glyph { width: 160px; height: 160px; }
}
.as-band--doc h1 { margin-top: .6em; }
.as-band--lost { padding: 56px 0 72px; }
.as-lost h1 span { color: var(--as-soft); font-weight: 500; }

.as-crumbs ol {
  list-style: none; margin: 0; padding: 16px 0 0; display: flex; flex-wrap: wrap;
  font: 500 .87rem var(--as-head); color: var(--as-soft);
}
.as-crumbs li + li::before { content: "/"; margin: 0 .6em; color: var(--as-line); }
.as-crumbs a { color: var(--as-soft); text-decoration: none; }
.as-crumbs a:hover { color: var(--as-amber-hi); text-decoration: underline; }
.as-crumbs [aria-current] { color: var(--as-text); }

/* ---------- article ---------- */
.as-art-head { padding-top: 20px; }
.as-art-head h1 { max-width: 24ch; }
.as-dek { max-width: 62ch; font-size: 1.2rem; line-height: 1.6; font-style: italic; color: #d5dbea; margin: 0 0 1.1em; }
.as-meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; font: 500 .9rem var(--as-head); color: var(--as-soft); }
.as-meta span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 12px 2px; border-radius: 50%; background: var(--as-amber); }
.as-plate { margin: 26px auto 0; }
.as-plate img { width: 100%; border-radius: var(--as-r); border: 1px solid var(--as-rule); }
.as-plate figcaption { margin-top: 10px; font: 400 .9rem/1.5 var(--as-head); color: var(--as-soft); }
.as-art-grid { display: grid; gap: 36px; margin-top: 30px; }
@media (min-width: 1000px) {
  .as-art-grid { grid-template-columns: minmax(0, 44rem) 300px; justify-content: space-between; gap: 48px; align-items: start; }
  .as-check { position: sticky; top: 20px; }
}
.as-prose { max-width: 70ch; font-size: 1.1rem; line-height: 1.75; }
.as-prose h2 { position: relative; margin: 1.8em 0 .55em; padding-left: 24px; }
.as-prose h2::before {
  content: ""; position: absolute; left: 2px; top: .4em; width: 10px; height: 10px;
  background: var(--as-amber); border-radius: 2px; transform: rotate(45deg);
}
.as-prose ul, .as-prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.as-prose li { margin: .4em 0; padding-left: .2em; }
.as-prose li::marker { color: var(--as-amber); font-family: var(--as-head); font-weight: 600; }
.as-prose strong { color: var(--as-bright); }
.as-sun {
  display: flex; gap: 14px; margin: 1.6em 0; padding: 16px 18px; border-radius: 10px;
  background: var(--as-sunbg); border: 1px solid var(--as-sunrule); border-left: 4px solid var(--as-amber);
  color: var(--as-suntext); font-size: 1rem; line-height: 1.6;
}
.as-sun p { margin: 0; }
.as-sun strong { color: var(--as-amber-hi); }
.as-takeaway {
  margin-top: 2.4em; padding: 22px 24px 10px; border-radius: var(--as-r);
  background: linear-gradient(135deg, var(--as-panel), var(--as-panel-2)); border: 1px solid var(--as-rule);
}
.as-prose .as-takeaway h2 { margin: 0 0 .4em; padding: 0; font-size: 1.2rem; color: var(--as-amber-hi); }
.as-prose .as-takeaway h2::before { display: none; }
.as-check { padding: 20px 22px; border-radius: var(--as-r); background: var(--as-panel); border: 1px dashed #3d4e80; }
.as-check h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.08rem; }
.as-check-ico { flex: none; color: #cfdbff; }
.as-check ul { list-style: none; margin: 0; padding: 0; }
.as-check li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--as-rule); font-size: .97rem; line-height: 1.45; }
.as-check li:first-child { border-top: 0; }
.as-check li::before {
  content: ""; position: absolute; left: 1px; top: 12px; width: 15px; height: 15px;
  border: 2px solid var(--as-amber); border-radius: 50%;
}

/* ---------- documents ---------- */
.as-doc { max-width: 780px; padding: 30px 0 8px; }
.as-doc h2 { margin: 1.7em 0 .5em; }
.as-doc ul { padding-left: 1.3em; }
.as-doc li { margin: .35em 0; }
.as-doc li::marker { color: var(--as-amber); }
.as-facts { margin: 1.4em 0; border: 1px solid var(--as-rule); border-radius: 12px; overflow: hidden; }
.as-facts div { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 12px; padding: 12px 16px; background: var(--as-panel); }
.as-facts div + div { border-top: 1px solid var(--as-rule); }
.as-facts dt { font: 600 .92rem var(--as-head); color: var(--as-amber); }
.as-facts dd { margin: 0; }
@media (max-width: 520px) { .as-facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- footer ---------- */
.as-foot {
  margin-top: 72px; padding: 44px 0 26px; font-size: .95rem;
  background: var(--as-void) url(/kit/sky/field-band.svg) center bottom / cover no-repeat;
  border-top: 1px solid var(--as-rule);
}
.as-foot-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .as-foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.as-foot-brand p { margin: 12px 0 0; color: var(--as-soft); max-width: 46ch; }
.as-foot-h { margin: 0 0 10px; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--as-amber); }
.as-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.as-foot ul a { display: inline-block; padding: 3px 0; color: var(--as-text); text-decoration: none; }
.as-foot ul a:hover { color: var(--as-amber-hi); text-decoration: underline; }
.as-foot-sun { display: flex; gap: 12px; align-items: flex-start; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--as-rule); }
.as-foot-sun p { margin: 0; color: var(--as-suntext); }
.as-foot-sun strong { color: var(--as-amber-hi); }
.as-foot-base p { margin: 14px 0 0; font: 500 .84rem var(--as-head); color: var(--as-soft); }

/* ---------- cookie notice ---------- */
.as-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 420px; padding: 14px 16px;
  background: #0f1730; border: 1px solid var(--as-rule); border-top: 3px solid var(--as-amber); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55); font-size: .92rem; line-height: 1.5;
}
.as-consent[hidden] { display: none; }
.as-consent p { margin: 0 0 10px; }
.as-consent-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .as-card:hover { transform: none; }
}
@media print {
  .as-nav, .as-lang, .as-menu-btn, .as-consent, .as-foot, .as-skip { display: none !important; }
  .as-check { position: static; background: #fff; border-color: #000; }
  .as-check li { color: #000; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .as-dek, .as-prose strong { color: #000; }
}
