
@font-face {
  font-family: "Sofia Sans Condensed"; 
  font-weight: 300 800;
  font-display: block;
  src: url("/static/fonts/sofiasans-condensed.woff2") format("woff2");
}

:root {
  --paper: #e8ecf1;
  --ink: #17325c;
  --ink-soft: rgb(23 50 92 / 0.58);
  --ink-faint: rgb(23 50 92 / 0.2);
  --rose: #b4365a;
  --pad: clamp(16px, 3vw, 36px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1626;
    --ink: #b3c6df;
    --ink-soft: rgb(179 198 223 / 0.62);
    --ink-faint: rgb(179 198 223 / 0.18);
    --rose: #e27a96;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  overflow-x: clip;
  background:
    repeating-linear-gradient(115deg, transparent 0 7px, var(--ink-faint) 7px 7.5px) fixed,
    var(--paper);
  color: var(--ink);
  font: 500 16px/1.4 "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, var(--paper) 0 42%, transparent 80%);
  opacity: 0.92;
  pointer-events: none;
}
h1, ol { margin: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hub {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(1.25rem, 4vh, 2.5rem);
  min-height: 100svh;
  padding: var(--pad) var(--pad) calc(var(--pad) + 2.5rem);
}



.masthead {
  display: grid;
  justify-items: center;
  margin-bottom: clamp(1.75rem, 6vh, 3.75rem); 
}


.sigil {
  width: clamp(16rem, 11rem + 16vw, 26rem);
  height: auto;
  overflow: visible;
}
.sigil path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.5s ease-out forwards;
}
.sigil circle {
  fill: var(--ink);
  opacity: 0;
  animation: dot 0.2s ease-out forwards;
}
.sigil .g:nth-child(1) path, .sigil .g:nth-child(1) circle { animation-delay: 0.25s; }
.sigil .g:nth-child(2) path, .sigil .g:nth-child(2) circle { animation-delay: 0.36s; }
.sigil .g:nth-child(3) path, .sigil .g:nth-child(3) circle { animation-delay: 0.47s; }
.sigil .g:nth-child(4) path, .sigil .g:nth-child(4) circle { animation-delay: 0.58s; }
.sigil .g:nth-child(5) path, .sigil .g:nth-child(5) circle { animation-delay: 0.69s; }
.sigil .g:nth-child(6) path, .sigil .g:nth-child(6) circle { animation-delay: 0.80s; }
.sigil .g:nth-child(7) path, .sigil .g:nth-child(7) circle { animation-delay: 0.91s; }
.sigil .g:nth-child(8) path, .sigil .g:nth-child(8) circle { animation-delay: 1.02s; }
.sigil .g:nth-child(9) path, .sigil .g:nth-child(9) circle { animation-delay: 1.13s; }
.sigil .g:nth-child(10) path, .sigil .g:nth-child(10) circle { animation-delay: 1.24s; }
.sigil .g:nth-child(11) path, .sigil .g:nth-child(11) circle { animation-delay: 1.35s; }
.sigil .g:nth-child(12) path, .sigil .g:nth-child(12) circle { animation-delay: 1.46s; }
.sigil .g:nth-child(13) path, .sigil .g:nth-child(13) circle { animation-delay: 1.57s; }
.sigil .g:nth-child(14) path, .sigil .g:nth-child(14) circle { animation-delay: 1.68s; }
.sigil .g:nth-child(15) path, .sigil .g:nth-child(15) circle { animation-delay: 1.79s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { to { opacity: 1; } }



.files {
  width: min(40rem, 100%);
  padding: 0;
  list-style: none;
}
.files li { border-bottom: 1px solid var(--ink-faint); }

.file {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 7rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.05rem 0.25rem;
  color: inherit;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.file .no { color: var(--ink-soft); }
.file .code { font-weight: 700; letter-spacing: 0.08em; }
.file .line { color: var(--ink-soft); }
.file .state { color: var(--ink-soft); letter-spacing: 0.06em; text-align: right; }


a.file::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 2px;
  background: var(--rose);
  translate: 0 -50%;
  transition: height 0.25s ease;
}
a.file:hover::before,
a.file:focus-visible::before { height: 60%; }
a.file:hover .code,
a.file:focus-visible .code { color: var(--rose); }
a.file:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }
a.file.closed .state { color: var(--rose); }


.sealed { cursor: default; }
.sealed .bar {
  display: inline-block;
  width: 4.5rem;
  height: 0.85em;
  vertical-align: -0.1em;
  background: var(--ink);
  opacity: 0.85;
}
.sealed .bar-long { width: min(12rem, 100%); opacity: 0.6; }

.corners {
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--pad) * 0.8);
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

@media (max-width: 560px) {
  .file {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    grid-template-areas: "no code state" "no line line";
    row-gap: 0.15rem;
  }
  .file .no { grid-area: no; }
  .file .code { grid-area: code; }
  .file .line { grid-area: line; }
  .file .state { grid-area: state; }
}


@media (prefers-reduced-motion: reduce) {
  .sigil path { animation: none; stroke-dashoffset: 0; }
  .sigil circle { animation: none; opacity: 1; }
}
