@font-face {
  font-family: "Plex Cond";
  src: url("/fonts/plex-cond-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Cond";
  src: url("/fonts/plex-cond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --ink:    #090b0e;
  --panel:  #11151a;
  --raise:  #161b21;
  --line:   #232b34;
  --hair:   #1a2027;
  --text:   #ccd4dc;
  --dim:    #7d8995;
  --faint:  #5a6671;
  --amber:  #e0a948;
  --blue:   #6b9fd6;
  --red:    #c04f44;
  --green:  #6aa877;

  --chrome: "Plex Cond", ui-sans-serif, system-ui, sans-serif;
  --data:   "Plex Mono", ui-monospace, "DejaVu Sans Mono", monospace;

  --step:   1.5rem;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  padding: 0 16px 6rem;
  background: var(--ink);
  color: var(--text);
  font-family: var(--chrome);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

/* The surfaces we did not draw still belong to the page. */
::selection { background: rgba(224, 169, 72, .26); color: #fff; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 1px;
}
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--ink); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2e3842; }

.sheet {
  max-width: 46rem;
  margin: 0 auto;
  padding-top: 3.5rem;
}

/* ------------------------------------------------------------- masthead -- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: #eef2f6;
}

.node {
  margin: 0;
  font-family: var(--data);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.node .dot { color: var(--line); }

.lede {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: var(--dim);
  font-size: 15px;
}

/* ------------------------------------------------------------- register -- */

.group { margin-top: calc(var(--step) * 1.65); }

h2 {
  margin: 0 0 .55rem;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--faint);
}

.register { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.register li { border-bottom: 1px solid var(--hair); }

.register a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title  chip"
    "note   chip"
    "file   chip";
  align-items: center;
  column-gap: 1.25rem;
  padding: .85rem .9rem .85rem .9rem;
  margin: 0 -.9rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: background 120ms ease-out, color 120ms ease-out;
}

/* A hairline rule that grows from the left edge on hover: the register
   marking the row you are about to pull. */
.register a::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: 50% 50%;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}
.register a:hover, .register a:focus-visible { background: var(--raise); }
.register a:hover::before, .register a:focus-visible::before { transform: scaleY(1); }
.register a:hover .row-title { color: var(--amber); }
.register a:hover .row-file { color: var(--dim); }

.row-title {
  grid-area: title;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: #e4eaf0;
  transition: color 120ms ease-out;
}

.row-note {
  grid-area: note;
  font-size: 14px;
  color: var(--dim);
  margin-top: .1rem;
}

.row-file {
  grid-area: file;
  font-family: var(--data);
  font-size: 12px;
  color: var(--faint);
  margin-top: .35rem;
  transition: color 120ms ease-out;
}

.chip {
  grid-area: chip;
  justify-self: end;
  font-family: var(--data);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.chip-held  { color: var(--amber); }
.chip-moved { color: var(--faint); }
.chip-out   { color: var(--faint); }

.empty { margin-top: var(--step); color: var(--dim); }

/* ----------------------------------------------------------- case file --- */

.back { margin: 1.4rem 0 0; }

.back a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--data);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
  text-decoration: none;
  padding: .4rem .7rem .4rem .55rem;
  margin-left: -.55rem;
  transition: color 120ms ease-out, background 120ms ease-out;
}
.back a::before {
  content: "";
  width: 13px; height: 9px;
  background: currentColor;
  /* a drawn arrow, not a glyph */
  clip-path: polygon(0 50%, 5px 0, 5px 3px, 13px 3px, 13px 6px, 5px 6px, 5px 9px);
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}
.back a:hover { color: var(--amber); background: var(--raise); }
.back a:hover::before { transform: translateX(-3px); }

.file {
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  animation: lift 260ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes lift {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .file { animation: none; }
  .register a, .register a::before, .back a::before { transition: none; }
}

.file-bar {
  font-family: var(--data);
  font-size: 12px;
  color: var(--dim);
  padding: .6rem .95rem;
  border-bottom: 1px solid var(--line);
  background: var(--raise);
  word-break: break-all;
}

.file pre {
  margin: 0;
  padding: 1.25rem .95rem 1.4rem;
  font-family: var(--data);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.notice {
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.1rem 1.1rem 1.2rem;
}
.notice-head {
  margin: 0 0 .35rem;
  font-size: 17px;
  font-weight: 600;
  color: #e4eaf0;
}
.notice p { margin: 0; color: var(--dim); font-size: 15px; }

code {
  font-family: var(--data);
  font-size: .9em;
  color: var(--amber);
}

a { color: var(--blue); }

/* --------------------------------------------------------- block page --- */

body.blocked .sheet { padding-top: 3.5rem; }

.waf-mark {
  display: inline-block;
  font-family: var(--data);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: .32rem .7rem;
}

body.blocked h1 {
  margin: 1.15rem 0 0;
  font-size: 1.85rem;
  color: var(--red);
}

body.blocked .lede { margin-top: .5rem; max-width: 36rem; }

.detail {
  margin: 2rem 0 0;
  border-top: 1px solid var(--hair);
}
.detail > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--hair);
}
.detail dt {
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: .18rem;
}
.detail dd { margin: 0; font-family: var(--data); font-size: 13.5px; color: var(--text); }
.detail dd.sig { color: var(--amber); }
.detail dd pre {
  margin: 0;
  padding: .6rem .75rem;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--amber);
  font-family: var(--data);
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
}

.foot {
  margin-top: 1.8rem;
  font-size: 14px;
  color: var(--faint);
}

@media (max-width: 560px) {
  .sheet { padding-top: 2.5rem; }
  h1 { font-size: 1.7rem; }
  .detail > div { grid-template-columns: 1fr; gap: .3rem; }
  .register a { grid-template-columns: 1fr; grid-template-areas: "title" "note" "file" "chip"; }
  .chip { justify-self: start; margin-top: .5rem; }
}
