:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --panel: #171717;
  --line: #3b3b3b;
  --ink: #fff;
  --muted: #c1c1c1;
  --accent: #ff7373;
  --bar: #101010;
  --glow: #311414;
  --ascii-accent: #f46565;
  --ascii-light: #ffd0c8;
  font: 15px/1.55 system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f3f0;
  --panel: #fff;
  --line: #d5ceca;
  --ink: #211d1b;
  --muted: #5e5551;
  --accent: #9f2028;
  --bar: #fff;
  --glow: #f0dfdb;
  --ascii-accent: #a9242c;
  --ascii-light: #6c1d22;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.aci-home {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 76% 47%, var(--glow), var(--bg) 68%);
  color: var(--ink);
}

.aci-ascii-background { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.aci-container { width: min(1190px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2; background: var(--panel); color: var(--ink); padding: .6rem; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.aci-header { position: sticky; z-index: 1; top: 0; background: var(--bar); border-bottom: 1px solid var(--line); }
.aci-navigation { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 4.6rem; }
.aci-lockup { display: flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; }
.aci-brand-name { border-left: 1px solid var(--line); padding-left: .75rem; font-size: .76rem; font-weight: 700; line-height: 1.2; }
.aci-wordmark { font-size: 2rem; font-weight: 850; letter-spacing: -.08em; color: var(--accent); text-decoration: none; }

.theme-icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-icon-button:hover { border-color: var(--accent); }
.theme-icon-button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.theme-icon-button svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-button .theme-sun, .theme-icon-button[aria-pressed="true"] .theme-moon { display: none; }
.theme-icon-button[aria-pressed="true"] .theme-sun { display: block; }

.aci-hero {
  flex: 1;
  display: flex;
  align-items: center;
  scroll-margin-top: 7.5rem;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.aci-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 7rem);
  line-height: .95;
  letter-spacing: -.045em;
  text-shadow: 0 0 1.15rem var(--bg), 0 0 2.5rem var(--bg);
}

.aci-footer { background: color-mix(in srgb, var(--bar) 90%, transparent); color: var(--muted); border-top: 1px solid var(--line); }
.aci-footer-row { padding-block: 1.25rem; }
.aci-footer p { margin: 0; font-size: .88rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (max-width: 920px) {
  .aci-container { width: calc(100% - 2rem); }
  .aci-navigation { padding-block: .35rem; }
}

@media (max-width: 760px) {
  .aci-hero { align-items: start; padding-top: clamp(2rem, 10vh, 5rem); }
}

@media (max-width: 530px) {
  .aci-brand-name { display: none; }
}
