:root {
  color-scheme: light;
  --bg: #f6efdf;
  --bg-deep: #e0d6c3;
  --surface: rgba(255, 249, 238, 0.92);
  --surface-strong: #fffdf6;
  --surface-muted: rgba(244, 235, 219, 0.92);
  --text: #11151f;
  --muted: #4f5867;
  --line: #161b25;
  --line-soft: rgba(22, 27, 37, 0.42);
  --glow: #00d2bb;
  --glow-soft: rgba(0, 210, 187, 0.16);
  --signal: #ff6e44;
  --signal-soft: rgba(255, 110, 68, 0.14);
  --shadow-hard: 6px 6px 0 var(--line);
  --shadow-soft: 4px 4px 0 var(--line);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 210, 187, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(255, 110, 68, 0.16), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.72;
  isolation: isolate;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

body::before {
  background:
    linear-gradient(to right, rgba(22, 27, 37, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 27, 37, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

body::after {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 210, 187, 0.06) 0,
    rgba(0, 210, 187, 0.06) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.35;
}

a {
  color: var(--text);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 0.75rem;
  background: linear-gradient(180deg, rgba(246, 239, 223, 0.96), rgba(246, 239, 223, 0.72) 78%, transparent);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 253, 246, 0.95), rgba(238, 231, 216, 0.94));
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand::before {
  content: "[";
  color: var(--signal);
}

.brand::after {
  content: "]";
  color: var(--glow);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.42rem 0.78rem;
  border: 2px solid var(--line);
  background: var(--surface-strong);
  box-shadow: 3px 3px 0 var(--line);
  color: var(--text);
  text-decoration: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.button-link:hover,
.button-link:focus-visible,
.ghost-link:hover,
.ghost-link:focus-visible,
.section-nav a:hover,
.section-nav a:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
}

.top-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--glow-soft), var(--signal-soft));
}

main {
  position: relative;
  padding: 2rem 0 4rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.05rem, 3vw, 1.55rem);
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0.55rem 0 0;
  padding-left: 1.25rem;
}

li {
  margin: 0.45rem 0;
}

strong {
  color: var(--text);
}

.lead {
  max-width: 65ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.stack > * + * {
  margin-top: 1.35rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.15rem clamp(1.25rem, 3vw, 2.2rem) clamp(1.3rem, 3vw, 2rem);
  border: 2px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 251, 243, 0.97), rgba(241, 232, 215, 0.95));
  box-shadow: 8px 8px 0 var(--line);
}

.hero::before {
  content: "ARCHIVE INTERFACE / 2026";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.9rem;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 210, 187, 0.22), rgba(255, 110, 68, 0.22));
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 187, 0.24), transparent 70%);
  animation: beacon 10s ease-in-out infinite;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.3rem;
}

.hero-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.55rem;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 3px 3px 0 var(--line);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 13ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.button-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.65rem 0.95rem;
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  color: var(--text);
  text-decoration: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.button-link {
  background: linear-gradient(90deg, #ff7f57, #ffb66f);
}

.ghost-link {
  background: rgba(255, 253, 246, 0.86);
}

.hero-aside {
  position: relative;
  padding: 1rem 1rem 0.25rem;
  border: 2px dashed var(--line);
  background: rgba(17, 21, 31, 0.04);
}

.hero-aside p {
  margin-bottom: 0.5rem;
}

.hero-aside-label {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-list li {
  margin: 0;
  padding: 0.72rem 0;
  border-top: 1px dashed var(--line-soft);
}

.status-list li:first-child {
  border-top: 0;
}

.status-list strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.signal-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.36rem 0.6rem;
  border: 2px solid var(--line);
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 3px 3px 0 var(--line);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel,
details {
  position: relative;
  padding: 1rem 1rem 1.15rem;
  border: 2px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(243, 234, 219, 0.93));
  box-shadow: var(--shadow-hard);
}

.panel::before,
details::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--glow);
  box-shadow: 1rem 0 0 var(--signal);
}

.panel ul,
.panel ol,
details ul,
details ol {
  margin-top: 0.7rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 56rem) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.9fr);
    align-items: end;
  }
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.64rem;
  border: 2px solid var(--line);
  background: rgba(255, 253, 246, 0.88);
  box-shadow: 3px 3px 0 var(--line);
  color: var(--text);
  text-decoration: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.section-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--glow-soft), var(--signal-soft));
}

details {
  padding-top: 0.85rem;
}

details + details {
  margin-top: 1rem;
}

summary {
  position: relative;
  padding-right: 2rem;
  cursor: pointer;
  list-style: none;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: -0.1rem;
  right: 0;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  font-size: 1rem;
}

details[open] summary::after {
  content: "-";
  background: linear-gradient(135deg, var(--glow-soft), var(--signal-soft));
}

pre,
code {
  font-family: "Lucida Console", Monaco, "Courier New", monospace;
}

code {
  padding: 0.08rem 0.26rem;
  border: 1px solid var(--line);
  background: rgba(0, 210, 187, 0.08);
  color: #0f4151;
}

pre {
  overflow-x: auto;
  margin: 0.75rem 0 0.9rem;
  padding: 0.95rem;
  border: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 210, 187, 0.08), transparent 35%),
    #101720;
  box-shadow:
    inset 0 0 0 1px rgba(0, 210, 187, 0.2),
    var(--shadow-hard);
  color: #ebfff8;
}

pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.notice {
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--line);
  border-left-width: 0.55rem;
  background: rgba(255, 253, 246, 0.8);
  box-shadow: var(--shadow-soft);
}

.todo {
  border-left-color: var(--signal);
}

.site-footer {
  padding-bottom: 1rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem;
  border: 2px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 253, 246, 0.95), rgba(236, 229, 215, 0.92));
  box-shadow: var(--shadow-soft);
  color: var(--muted);
}

.footer-row p {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0 0 1rem;
  padding: 0.32rem 0.56rem;
  border: 2px solid var(--line);
  background: rgba(255, 253, 246, 0.86);
  box-shadow: 3px 3px 0 var(--line);
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

main > .container > h1 {
  max-width: 18ch;
}

main > .container > h1 + .lead {
  margin-bottom: 1.25rem;
}

.stack > * {
  animation: boot 480ms ease both;
}

.stack > *:nth-child(2) {
  animation-delay: 70ms;
}

.stack > *:nth-child(3) {
  animation-delay: 140ms;
}

.stack > *:nth-child(4) {
  animation-delay: 210ms;
}

.stack > *:nth-child(5) {
  animation-delay: 280ms;
}

.stack > *:nth-child(6) {
  animation-delay: 350ms;
}

@keyframes boot {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes beacon {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -0.5rem, 0) scale(1.08);
  }
}

@media (max-width: 42rem) {
  .header-row,
  .footer-row {
    padding-inline: 0.85rem;
  }

  .hero {
    padding-top: 3.3rem;
  }

  .hero-copy h1,
  main > .container > h1 {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
