@import url("https://fonts.googleapis.com/css2?family=Doto:wght@400;600;700&display=swap");

:root {
  --paper: #ffffff;
  --ink: #000000;
  --muted: #5b5b5b;
  --accent: #ff0000;
  --rule: #d8d8d8;
  --width: 58rem;
}

html.theme-inverted {
  background: #000000;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Doto", "Lucida Console", "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px) 0 0 / 4rem 4rem,
    linear-gradient(0deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px) 0 0 / 4rem 4rem,
    var(--paper);
  color: var(--ink);
  line-height: 1.45;
  text-transform: lowercase;
}

html.theme-inverted body {
  filter: invert(1);
}

body::before {
  content: "[static] [public] [unfinished]";
  position: fixed;
  top: 1rem;
  right: 1rem;
  color: rgba(0, 0, 0, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.2rem;
}

h1,
p,
pre {
  margin: 0;
}

h1 {
  max-width: 48rem;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
}

p {
  max-width: 46rem;
  font-size: 1.18rem;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-160%);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.35rem 0.5rem;
  z-index: 10;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(var(--width), calc(100vw - 2rem));
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2.25rem;
}

.home-shell {
  padding-top: 2rem;
}

.site-header,
.page-header,
.intro-block,
.terminal-strip,
.text-block,
.note-list,
.issue-list,
.link-index,
.zine-entry {
  display: grid;
  gap: 1rem;
}

.page-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--ink);
}

.ascii-title {
  color: var(--ink);
  max-width: none;
  overflow-x: visible;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.ascii-mark,
.entry-frame {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.2;
}

.ascii-mark {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: visible;
  text-align: left;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.link-row a {
  display: inline-block;
}

.theme-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.13em;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.2rem;
}

.accent-link {
  color: var(--accent);
}

.kicker {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
}

.intro-block {
  justify-items: end;
  text-align: right;
}

.intro-block p {
  max-width: 39rem;
}

.terminal-strip {
  width: min(100%, 44rem);
  padding-top: 1rem;
  border-top: 1px dashed var(--rule);
}

.terminal-strip p,
.issue-list p,
.link-index p,
.note-list p {
  font-size: 1rem;
}

.terminal-strip span,
time {
  color: var(--muted);
  font-weight: 700;
}

.text-block p + p,
.zine-entry p + p {
  margin-top: 1rem;
}

.note-list article {
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--rule);
}

.note-list article:last-child,
.issue-list article:last-child {
  border-bottom: 0;
}

.issue-list article {
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--rule);
}

.link-index {
  gap: 0.75rem;
}

.site-footer {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  max-width: none;
  font-size: inherit;
}

@media (max-width: 720px) {
  body::before {
    display: none;
  }

  .site-shell {
    width: min(100% - 1.5rem, var(--width));
    min-height: auto;
    padding: 1rem 0 1.25rem;
    justify-content: flex-start;
    gap: 1.65rem;
  }

  .home-shell {
    padding-top: 1rem;
  }

  .intro-block {
    justify-items: start;
    text-align: left;
  }

  .link-row {
    gap: 0.25rem 0.45rem;
    font-size: 1.15rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  .ascii-title {
    font-size: 0.44rem;
  }

  .ascii-mark,
  .entry-frame {
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 14px;
  }

  .ascii-title {
    font-size: 0.36rem;
  }

  h1 {
    font-size: 1.85rem;
  }
}
