:root {
  color-scheme: dark;
  --bg: #14130e;
  --panel: #211f19;
  --panel-2: #2b2921;
  --edge: #4a4638;
  --bone: #d9d2bc;
  --dim: #b6b09d;
  --rust: #b0512c;
  --rust-dark: #7e3520;
  --rust-ink: #e0a07f;
  --mine: #4a7fc1;
  --mine-ink: #7fa9dc;
  --warn: #d9a441;
  --content: 70rem;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  background:
    linear-gradient(rgba(74, 70, 56, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 70, 56, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, #2b2519 0, var(--bg) 48%);
  background-size: 32px 32px, 32px 32px, auto;
  font-family: ui-monospace, "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  line-height: 1.55;
}

a {
  color: var(--rust-ink);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: #f2e9cf;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header,
.site-footer,
main {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--edge);
}

.brand {
  color: var(--bone);
  font-weight: 900;
  letter-spacing: 0.11em;
  text-decoration: none;
}

.brand::before {
  content: "//";
  margin-right: 0.5rem;
  color: var(--rust-ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.site-nav a[aria-current="page"] {
  color: var(--bone);
  text-decoration-color: var(--rust);
  text-decoration-thickness: 0.2rem;
}

main {
  padding-block: clamp(2rem, 6vw, 5rem);
}

.hero {
  display: grid;
  gap: 2rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.6rem;
  color: var(--mine-ink);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 13vw, 6.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-title {
  max-width: none;
  font-size: clamp(2rem, 9vw, 4.8rem);
}

h2 {
  margin-bottom: 0.8rem;
  color: #f2e9cf;
  font-size: clamp(1.15rem, 4vw, 1.55rem);
}

h3 {
  margin-bottom: 0.5rem;
  color: var(--rust-ink);
  font-size: 1rem;
}

.lead {
  max-width: 44rem;
  color: var(--dim);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.cta {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--rust);
  color: #f2e9cf;
  background: var(--rust-dark);
  box-shadow: 0.35rem 0.35rem 0 #0c0b08;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.cta:hover,
.cta:focus-visible {
  color: #fff7df;
  background: var(--rust);
  transform: translate(1px, 1px);
  box-shadow: 0.25rem 0.25rem 0 #0c0b08;
}

.screen-placeholder {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid var(--edge);
  background:
    linear-gradient(rgba(20, 19, 14, 0.38), rgba(20, 19, 14, 0.65)),
    url("assets/screen.png") center / cover no-repeat,
    repeating-linear-gradient(135deg, var(--panel) 0 18px, var(--panel-2) 18px 36px);
  box-shadow: inset 0 0 0 0.5rem rgba(20, 19, 14, 0.55);
}

.screen-placeholder::before,
.screen-placeholder::after {
  position: absolute;
  content: "";
  background: var(--rust);
}

.screen-placeholder::before {
  top: 50%;
  left: 12%;
  width: 76%;
  height: 1px;
}

.screen-placeholder::after {
  top: 12%;
  left: 50%;
  width: 1px;
  height: 76%;
}

.screen-placeholder span {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.65rem;
  border: 1px solid var(--edge);
  color: var(--dim);
  background: rgba(20, 19, 14, 0.94);
  font-size: 0.72rem;
  text-align: center;
}

.link-grid,
.rule-grid,
.policy-grid,
.stats-grid {
  display: grid;
  gap: 0.8rem;
}

.link-grid {
  margin-top: 2rem;
}

.link-card,
.panel,
.rule-card,
.patch,
.policy-card,
.stat {
  border: 1px solid var(--edge);
  background: rgba(33, 31, 25, 0.94);
}

.link-card {
  min-height: 6rem;
  padding: 1rem;
  text-decoration: none;
}

.link-card b,
.link-card span {
  display: block;
}

.link-card b {
  margin-bottom: 0.35rem;
  color: #f2e9cf;
}

.link-card span {
  color: var(--dim);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.page-intro {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.rule-grid,
.policy-grid {
  margin-top: 1.5rem;
}

.rule-card,
.policy-card {
  padding: 1rem;
}

.rule-card p,
.policy-card p,
.policy-card li,
.patch p,
.patch li {
  color: var(--dim);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.rule-card p:last-child,
.policy-card p:last-child,
.patch p:last-child {
  margin-bottom: 0;
}

.panel {
  padding: clamp(0.8rem, 3vw, 1.4rem);
}

.status {
  min-height: 1.6rem;
  margin-bottom: 1rem;
  color: var(--dim);
}

.status.error {
  color: var(--rust-ink);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--edge);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tbody tr.me {
  color: #f2e9cf;
  background: rgba(74, 127, 193, 0.16);
}

.empty {
  padding: 2rem 1rem;
  border: 1px dashed var(--edge);
  color: var(--dim);
  text-align: center;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 1rem;
}

.stat {
  padding: 0.8rem;
}

.stat span,
.stat b {
  display: block;
}

.stat span {
  color: var(--dim);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.stat b {
  margin-top: 0.25rem;
  color: #f2e9cf;
  font-size: 1.25rem;
}

.profile-name {
  margin-bottom: 0.2rem;
  color: #f2e9cf;
  font-size: 1.5rem;
}

.profile-created {
  color: var(--dim);
  font-size: 0.8rem;
}

.patch-list {
  display: grid;
  gap: 1rem;
}

.patch {
  padding: clamp(1rem, 4vw, 1.6rem);
}

.patch header {
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--edge);
}

.patch time {
  color: var(--mine-ink);
  font-size: 0.72rem;
}

.patch details {
  margin-top: 1rem;
  border-top: 1px dashed var(--edge);
}

.patch summary {
  min-height: 2.8rem;
  padding-top: 0.8rem;
  color: var(--rust-ink);
  cursor: pointer;
}

.patch ul,
.policy-card ul {
  padding-left: 1.2rem;
}

.source-note {
  margin-top: 2rem;
  color: var(--dim);
  font-size: 0.76rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding-block: 1.2rem 2rem;
  border-top: 1px solid var(--edge);
  color: var(--dim);
  font-size: 0.72rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 42rem) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
    align-items: center;
  }

  .link-grid,
  .rule-grid,
  .policy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
