:root {
  color-scheme: dark;
  --ink: #100b0b;
  --black: #090707;
  --burgundy: #3b1016;
  --burgundy-dark: #240b0f;
  --gold: #b99755;
  --gold-light: #d6bd82;
  --brass-dark: #695129;
  --paper: #d2bb87;
  --paper-dark: #b59b68;
  --paper-ink: #23170f;
  --stone: #282421;
  --stone-light: #39322c;
  --text: #e7ddc7;
  --muted: #b9ad96;
  --line: #5f4a28;
  --danger: #9f4242;
  --max: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--ink);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .2;
  background-size: 8px 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect width='8' height='8' fill='%23100b0b'/%3E%3Crect x='1' y='2' width='1' height='1' fill='%23312723'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23211718'/%3E%3C/svg%3E");
}

a {
  color: var(--gold-light);
  text-decoration-color: var(--brass-dark);
  text-underline-offset: .2em;
}

a:hover {
  color: #f2db9d;
}

button,
input,
textarea {
  font: inherit;
}

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

cite {
  font-style: italic;
}

h1,
h2,
h3 {
  margin: 0 0 .7rem;
  color: var(--gold-light);
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .035em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.1rem, 9vw, 6.7rem);
  letter-spacing: .025em;
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
}

h3 {
  font-size: 1.18rem;
}

p,
ul {
  margin-top: 0;
}

.page-width,
.header-inner,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 30;
  padding: .55rem .8rem;
  border: 2px solid var(--gold);
  background: var(--black);
  transform: translateY(-180%);
}

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

:focus-visible {
  outline: 3px solid #f1d284;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--gold);
  background: #0c0808;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 62px;
  gap: 1rem;
}

.tds-link,
.site-name,
.site-nav a {
  color: var(--gold-light);
  font-family: "Courier New", Courier, monospace;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-name {
  justify-self: center;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav [aria-current="page"] {
  color: #fff0bd;
  text-decoration: underline;
}

.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 0;
  text-align: center;
}

.project-label,
.section-kicker {
  margin-bottom: .55rem;
  color: var(--gold);
  font-family: "Courier New", Courier, monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-copy {
  margin-bottom: 2.6rem;
}

.one-line {
  max-width: 960px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
}

.copy-section,
.status-section,
.gallery-section,
.devlog-section,
.community-comments-section,
.faq-section,
.community-page,
.article-page,
.update-discussion,
.not-found {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.copy-section {
  max-width: 760px;
  font-size: 1.12rem;
}

.copy-section p:last-child,
.status-section p:last-child,
.developer-note p:last-child,
.community-comments-section p:last-child,
.article-body > :last-child {
  margin-bottom: 0;
}

.parchment-panel {
  position: relative;
  padding: clamp(1.5rem, 5vw, 2.7rem);
  border: 3px double var(--brass-dark);
  background-color: var(--paper);
  color: var(--paper-ink);
  box-shadow: 9px 9px 0 #060404;
}

.parchment-panel::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(55, 35, 17, .36);
  content: "";
  pointer-events: none;
}

.parchment-panel h2 {
  color: var(--burgundy-dark);
}

.features ul {
  position: relative;
  z-index: 1;
  columns: 2;
  margin-bottom: 0;
  padding-left: 1.35rem;
}

.features li {
  break-inside: avoid;
  margin-bottom: .5rem;
}

.status-section {
  border-bottom: 1px solid var(--line);
}

.developer-note {
  margin-block: clamp(3rem, 8vw, 6rem) 0;
  padding: 1.5rem 1.7rem;
  border-left: 5px solid var(--burgundy);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black);
}

.developer-note h2 {
  font-size: 1.35rem;
}

.screenshot-frame {
  margin: 0;
  border: 4px double var(--gold);
  background: #050404;
  box-shadow: 8px 8px 0 #050303;
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  image-rendering: auto;
}

.screenshot-frame figcaption {
  padding: .55rem .75rem;
  border-top: 1px solid var(--brass-dark);
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: .72rem;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
}

.screenshot-frame--hero {
  max-width: 960px;
  margin-inline: auto;
}

.dev-video {
  margin: 1.5rem 0 2rem;
  border: 4px double var(--gold);
  background: #050404;
  box-shadow: 8px 8px 0 #050303;
}

.dev-video__frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.dev-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.dev-video figcaption {
  padding: .55rem .75rem;
  border-top: 1px solid var(--brass-dark);
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.screenshot-gallery .screenshot-frame--wide {
  grid-column: 1 / -1;
}

.devlog-section,
.community-comments-section,
.faq-section {
  border-top: 1px solid var(--line);
}

.devlog-list {
  margin-top: 1.4rem;
  border-top: 1px solid var(--brass-dark);
}

.devlog-entry {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: .2rem 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--brass-dark);
}

.devlog-entry time {
  grid-row: 1 / 4;
  color: var(--gold);
  font-family: "Courier New", Courier, monospace;
  font-size: .78rem;
}

.devlog-entry h3,
.devlog-entry p {
  margin-bottom: .4rem;
}

.devlog-entry h3 a {
  color: var(--gold-light);
  text-decoration: none;
}

.text-link {
  font-family: "Courier New", Courier, monospace;
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  padding: .58rem .9rem;
  border: 2px solid var(--gold);
  border-radius: 0;
  background: var(--burgundy);
  color: #fff0c4;
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover:not(:disabled) {
  background: #571923;
  color: #fff5d8;
}

.button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.button--secondary,
.button--ghost {
  background: var(--stone);
}

.link-row,
.thread-actions,
.thread-card__signals,
.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.2rem;
}

.homepage-comment-help {
  max-width: 760px;
  color: var(--muted);
}

.community-comments-section .community-composer {
  margin-top: 1.5rem;
}

.community-secondary-link {
  margin-top: 1.25rem;
}

.faq-section details {
  border-top: 1px solid var(--brass-dark);
}

.faq-section details:last-of-type {
  border-bottom: 1px solid var(--brass-dark);
}

.faq-section summary {
  padding: 1rem 2rem 1rem 0;
  color: var(--gold-light);
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
  font-size: .95rem;
  font-weight: 700;
}

.faq-section details p {
  max-width: 760px;
  padding-bottom: 1rem;
}

.site-footer {
  border-top: 3px double var(--gold);
  background: #080505;
}

.footer-inner {
  padding-block: 2rem;
  color: var(--muted);
  font-size: .9rem;
}

.footer-inner p {
  margin-bottom: .45rem;
  max-width: 58rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin-bottom: .9rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--brass-dark);
}

.legal-links a {
  color: var(--gold-light);
  font-weight: 700;
}

.community-page > h1,
.article-page > h1,
.not-found > h1 {
  font-size: clamp(2.4rem, 7vw, 4.7rem);
}

.community-intro,
.article-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.community-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) 1.2fr;
  gap: 1.5rem;
  margin-block: 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--black);
}

.community-toolbar label {
  display: block;
  margin-bottom: .35rem;
  color: var(--gold);
  font-family: "Courier New", Courier, monospace;
  font-size: .76rem;
  text-transform: uppercase;
}

.community-toolbar form > div {
  display: flex;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: #080606;
  color: var(--text);
}

input {
  min-height: 43px;
  padding: .55rem .65rem;
}

textarea {
  padding: .75rem;
  resize: vertical;
}

.community-toolbar p {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.community-notice,
.community-unavailable,
.form-message {
  margin-block: 1.4rem;
  padding: .85rem 1rem;
  border-left: 4px solid var(--gold);
  background: var(--stone);
}

.thread-section > h3,
.comment-list > h3 {
  margin-top: 2rem;
  font-size: .95rem;
}

.thread-card,
.comment-card,
.thread-detail,
.community-composer {
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--stone);
}

.thread-card--pinned {
  border-left: 5px solid var(--gold);
}

.comment-card--pinned {
  border-left: 5px solid var(--gold);
}

.thread-card h3 {
  margin-block: .45rem;
}

.thread-card h3 a {
  color: var(--gold-light);
  text-decoration: none;
}

.thread-card__meta,
.thread-card__signals {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: .72rem;
}

.thread-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem 1rem;
}

.author-identity {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  color: var(--parchment);
}

.author-avatar {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  border: 1px solid var(--gold);
  background: var(--black);
  overflow: hidden;
}

.author-avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  overflow-wrap: anywhere;
}

.thread-card__signals {
  margin-top: .8rem;
}

.comment-actions {
  margin-top: .8rem;
}

.comment-body p {
  margin: 0;
  white-space: normal;
}

.comment-body p + p {
  margin-top: 1.15rem;
}

.comment-body a {
  overflow-wrap: anywhere;
}

.comment-actions .button {
  padding: .38rem .65rem;
  font-size: .72rem;
}

.like-button.is-active {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.status-badge {
  padding: .05rem .35rem;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  text-transform: uppercase;
}

.thread-body {
  max-width: 760px;
}

.community-composer {
  background: var(--black);
}

.community-composer .actions {
  margin-top: .8rem;
}

.comment-list {
  margin-block: 2rem;
}

.comment-branch {
  position: relative;
}

.comment-children {
  margin-left: .8rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--brass-dark);
}

.comment-children > .comment-branch::before {
  position: absolute;
  top: 1.45rem;
  left: -1.15rem;
  width: .8rem;
  border-top: 2px solid var(--brass-dark);
  content: "";
}

.comment-reply-host .community-composer {
  margin-left: 1rem;
  border-left: 3px solid var(--gold);
}

.article-page {
  max-width: 800px;
}

.article-body {
  margin-block: 2.5rem;
}

.article-body h2 {
  margin-top: 2.3rem;
}

.update-discussion {
  border-top: 1px solid var(--line);
}

.not-found {
  min-height: 70vh;
}

.muted {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: .3rem 1rem;
    padding-block: .65rem;
  }

  .tds-link {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .site-name {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
  }

  .tds-link,
  .site-nav a {
    font-size: .7rem;
  }

  .features ul {
    columns: 1;
  }

  .screenshot-gallery,
  .community-preview__grid,
  .community-toolbar {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery .screenshot-frame--wide {
    grid-column: auto;
  }

  .devlog-entry {
    grid-template-columns: 1fr;
  }

  .devlog-entry time {
    grid-row: auto;
  }

  .community-toolbar form > div {
    align-items: stretch;
    flex-direction: column;
    gap: .5rem;
  }
}

@media (max-width: 420px) {
  .page-width,
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 1.2rem), var(--max));
  }

  .site-nav {
    gap: .65rem;
  }

  .screenshot-frame {
    border-width: 3px;
    box-shadow: 4px 4px 0 #050303;
  }

  .dev-video {
    border-width: 3px;
    box-shadow: 4px 4px 0 #050303;
  }

  .comment-children {
    margin-left: .15rem;
    padding-left: .75rem;
  }

  .comment-children > .comment-branch::before {
    left: -.75rem;
    width: .5rem;
  }

  .comment-reply-host .community-composer {
    margin-left: 0;
  }

  .link-row {
    align-items: stretch;
    flex-direction: column;
  }
}

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