:root {
  --container: min(1280px, calc(100% - clamp(2rem, 5vw, 6rem)));
  --white: #fffdf7;
  --paper: #ffffff;
  --ink: #171717;
  --muted: #686154;
  --line: #181818;
  --line-soft: rgba(23, 23, 23, 0.14);
  --red: #f04438;
  --red-deep: #cf221d;
  --green: #18a957;
  --green-soft: #d8f7df;
  --yellow: #ffd447;
  --yellow-soft: #fff0a8;
  --cyan: #20b9e8;
  --cyan-soft: #d8f7ff;
  --pink: #ff5cab;
  --shadow: rgba(23, 23, 23, 0.12);
  --mono: "Cascadia Mono", "SFMono-Regular", "Consolas", "Courier New", monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  border-top: 4px solid var(--red-deep);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(32, 185, 232, 0.18) 58% 62%, transparent 62%),
    linear-gradient(0deg, rgba(255, 212, 71, 0.26) 0 14%, transparent 14% 100%),
    repeating-linear-gradient(90deg, rgba(23, 23, 23, 0.035) 0 1px, transparent 1px 72px),
    var(--white);
  font-family: var(--sans);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

@supports (min-height: 100dvh) {
  body {
    min-height: 100dvh;
  }
}

body::before {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 66%, rgba(24, 169, 87, 0.16) 66% 72%, transparent 72%),
    repeating-linear-gradient(0deg, rgba(23, 23, 23, 0.025) 0 1px, transparent 1px 72px);
}

a { color: var(--red);
  color: inherit;
}

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

.soviet-icon {
  position: relative;
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--line);
  background: var(--red-deep);
  box-shadow: 0 3px 0 var(--line);
}

.soviet-icon::before {
  display: block;
  width: 68%;
  height: 68%;
  content: "";
  background: var(--yellow);
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 56%, 81% 100%, 50% 72%, 19% 100%, 31% 56%, 0 35%, 38% 35%);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--line);
  background: var(--yellow);
  box-shadow: 0 4px 0 var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-150%);
  transition: transform 120ms ease;
}

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

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(0deg, rgba(23, 23, 23, 0.08) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0 1px, transparent 1px 5px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(24rem, 1fr) auto;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
  min-height: 10rem;
  padding: 1.05rem clamp(1rem, 4vw, 4rem);
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(0deg, var(--green-soft) 0 1.25rem, transparent 1.25rem),
    linear-gradient(90deg, rgba(255, 212, 71, 0.42) 0 12rem, transparent 12rem),
    rgba(255, 253, 247, 0.94);
}

.site-header::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  z-index: 0;
  height: 0.42rem;
  content: "";
  border-top: 2px solid var(--line);
  background: linear-gradient(90deg, var(--red-deep) 0 38%, var(--green) 38% 62%, var(--red-deep) 62% 100%);
}

@supports (backdrop-filter: blur(16px)) {
  .site-header {
    background:
      linear-gradient(0deg, var(--green-soft) 0 1.25rem, transparent 1.25rem),
      linear-gradient(90deg, rgba(255, 212, 71, 0.42) 0 12rem, transparent 12rem),
      rgba(255, 253, 247, 0.86);
    backdrop-filter: blur(16px);
  }
}

@supports (-webkit-backdrop-filter: blur(16px)) {
  .site-header {
    background:
      linear-gradient(0deg, var(--green-soft) 0 1.25rem, transparent 1.25rem),
      linear-gradient(90deg, rgba(255, 212, 71, 0.42) 0 12rem, transparent 12rem),
      rgba(255, 253, 247, 0.86);
    -webkit-backdrop-filter: blur(16px);
  }
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-grid;
  grid-template-columns: 8.2rem minmax(0, auto);
  gap: clamp(0.9rem, 2vw, 1.4rem);
  align-items: end;
  color: var(--ink);
  text-decoration: none;
}

.brand-mascot {
  position: relative;
  display: grid;
  width: 9.4rem;
  height: 8.9rem;
  place-items: end center;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.header-bear {
  width: auto;
  height: 10.7rem;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
}

.brand-mark { color: var(--red-deep); font-weight: 900;
  display: none;
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
}

.brand-copy strong {
  display: block;
  max-width: 100%;
  color: var(--red-deep);
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.9;
  overflow-wrap: normal;
  word-break: normal;
  text-transform: uppercase;
  text-shadow: 0 0.06em 0 var(--yellow), 0 0.11em 0 var(--cyan);
}

.brand-copy span {
  display: inline-flex;
  margin-top: 0.65rem;
  padding: 0.38rem 0.55rem 0.38rem 0.95rem;
  border: 2px solid var(--line);
  background:
    linear-gradient(90deg, var(--red-deep) 0 0.28rem, var(--green) 0.28rem 0.56rem, transparent 0.56rem),
    #fff;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.top-nav {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
}

.top-nav a {
  padding: 0.55rem 0.85rem;
  border: 2px solid transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: var(--line);
  background: var(--yellow);
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 54%, rgba(240, 68, 56, 0.14) 54% 64%, transparent 64%),
    linear-gradient(0deg, rgba(24, 169, 87, 0.12) 0 18%, transparent 18%),
    var(--paper);
}

.hero::after {
  pointer-events: none;
  position: absolute;
  right: -6rem;
  bottom: -3rem;
  width: 28rem;
  height: 18rem;
  content: "";
  border: 2px solid rgba(23, 23, 23, 0.22);
  background:
    repeating-linear-gradient(90deg, transparent 0 1.2rem, rgba(32, 185, 232, 0.18) 1.2rem 1.45rem),
    rgba(255, 212, 71, 0.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.78fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  width: var(--container);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 5rem);
}

.hero-archive .hero-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(20rem, 0.9fr);
  align-items: start;
  padding-top: clamp(3.2rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 4.8rem);
}

.hero-copy {
  min-width: 0;
  max-width: 52rem;
}

.hero-copy .eyebrow {
  margin-bottom: 0.65rem;
}

.eyebrow,
.section-kicker,
.meta,
.fragment-tag {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before,
.fragment-tag::before {
  width: 0.58rem;
  height: 0.58rem;
  flex: 0 0 auto;
  content: "";
  background: var(--red-deep);
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 69% 56%, 81% 100%, 50% 72%, 19% 100%, 31% 56%, 0 35%, 38% 35%);
}

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

h1 { color: var(--red-deep);
  max-width: min(9em, 100%);
  margin-bottom: 1.1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(3.25rem, 7vw, 6.4rem);
  line-height: 0.88;
  overflow-wrap: anywhere;
  word-break: normal;
  text-transform: uppercase;
  text-shadow: 0 0.06em 0 var(--yellow), 0 0.12em 0 var(--cyan);
}

@supports (text-wrap: balance) {
  .brand-copy strong,
  h1,
  .section h2,
  .hero-posts-head h2,
  .post-list-card h3,
  .thesis h3 {
    text-wrap: balance;
  }
}

.lead {
  max-width: 43rem;
  margin-bottom: 1.6rem;
  color: #333029;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
}

.lead p {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.72rem 1rem;
  border: 2px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--line);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.ghost {
  background: var(--yellow);
}

.button:hover,
.button:focus-visible {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--line);
  outline: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 46rem;
  margin: 0;
}

.hero-stats div {
  min-width: 0;
  padding: 0.8rem;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 0 var(--yellow);
}

.hero-stats div:nth-child(2) {
  box-shadow: 0 4px 0 var(--green);
}

.hero-stats div:nth-child(3) {
  box-shadow: 0 4px 0 var(--cyan);
}

.hero-stats dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.hero-posts {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  gap: 1.2rem;
}

.hero-posts-head {
  min-width: 0;
  padding: 1rem;
  border: 2px solid var(--line);
  background:
    linear-gradient(0deg, var(--green-soft) 0 1rem, transparent 1rem),
    #fff;
  box-shadow: 0 6px 0 var(--line);
}

.hero-posts-head .section-kicker {
  margin-bottom: 0.55rem;
}

.hero-posts-head h2 {
  margin: 0.1rem 0 0.55rem;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.hero-posts-head p:last-child {
  margin-bottom: 0;
  color: #443f36;
  line-height: 1.55;
}

.terminal {
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 0 var(--green);
  color: var(--ink);
  font-family: var(--mono);
}

.terminal-bar {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  padding: 0.62rem 0.75rem;
  border-bottom: 2px solid var(--line);
  background: var(--cyan-soft);
}

.terminal-bar span {
  width: 0.62rem;
  height: 0.62rem;
  border: 2px solid var(--line);
  background: var(--red);
}

.terminal-bar span:nth-child(2) {
  background: var(--yellow);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-bar b {
  margin-left: 0.4rem;
  font-size: 0.72rem;
}

.terminal pre {
  margin: 0;
  padding: 0.9rem;
  white-space: pre-wrap;
  font-size: 0.82rem;
  line-height: 1.65;
}

.ticker {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.9rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 2px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker span {
  flex: 0 0 auto;
  padding-right: 0.65rem;
  border-right: 2px solid rgba(23, 23, 23, 0.24);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

@supports (content-visibility: auto) {
  .printshop-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 54rem;
  }
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 0.72fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: 2rem;
}

.section-head > *,
.flag-panel > *,
.article-card > *,
.thesis,
.file-card,
.rule,
.fragment {
  min-width: 0;
}

.section h2 {
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.section-head p,
.flag-panel p,
.sources p {
  color: #443f36;
  line-height: 1.72;
}

.dossier-grid,
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.file-card,
.rule,
.article-card,
.fragment,
.thesis,
.sources {
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 0 var(--line);
}

.file-card,
.rule {
  min-height: 18rem;
  padding: 1rem;
}

.file-card:nth-child(1),
.rule:nth-child(1) {
  background: linear-gradient(90deg, var(--yellow-soft), #fff 46%);
}

.file-card:nth-child(2),
.rule:nth-child(2) {
  background: linear-gradient(90deg, var(--green-soft), #fff 46%);
}

.file-card:nth-child(3),
.rule:nth-child(3) {
  background: linear-gradient(90deg, var(--cyan-soft), #fff 46%);
}

.file-card:nth-child(4),
.rule:nth-child(4) {
  background: linear-gradient(90deg, #ffe0ec, #fff 46%);
}

.file-index,
.rule span {
  display: inline-flex;
  margin-bottom: 2.4rem;
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 900;
}

.file-card h3,
.rule h3,
.article-card h3 {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.15;
}

.file-card p,
.rule p,
.article-card p,
.fragment p,
.sources li {
  color: #443f36;
  line-height: 1.68;
}

.article-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.article-card {
  display: grid;
  align-content: start;
  overflow: hidden;
}

.article-card.featured {
  grid-row: span 2;
}

.orth-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-bottom: 2px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(23, 23, 23, 0.045) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(23, 23, 23, 0.045) 0 1px, transparent 1px 32px),
    #fff;
  overflow: hidden;
}

.thumb-block,
.thumb-line {
  position: absolute;
  display: block;
  border: 2px solid var(--line);
}

.thumb-block.red {
  left: 8%;
  top: 12%;
  width: 34%;
  height: 28%;
  background: var(--red);
}

.thumb-block.yellow {
  right: 8%;
  top: 12%;
  width: 34%;
  height: 18%;
  background: var(--yellow);
}

.thumb-block.green {
  left: 8%;
  bottom: 12%;
  width: 48%;
  height: 22%;
  background: var(--green);
}

.thumb-block.cyan {
  right: 8%;
  bottom: 12%;
  width: 24%;
  height: 42%;
  background: var(--cyan);
}

.thumb-line {
  background: #fff;
}

.thumb-line.row-one {
  left: 8%;
  top: 49%;
  width: 84%;
  height: 0.85rem;
}

.thumb-line.row-two {
  left: 8%;
  top: 58%;
  width: 55%;
  height: 0.85rem;
}

.thumb-line.column-one {
  left: 64%;
  top: 12%;
  width: 0.85rem;
  height: 76%;
}

.print-thumb .thumb-block.red {
  left: 8%;
  top: 12%;
  width: 22%;
  height: 76%;
}

.print-thumb .thumb-block.yellow {
  left: 36%;
  top: 12%;
  width: 32%;
  height: 28%;
}

.print-thumb .thumb-block.green {
  left: 36%;
  bottom: 12%;
  width: 32%;
  height: 34%;
}

.print-thumb .thumb-block.cyan {
  right: 8%;
  top: 12%;
  width: 18%;
  height: 76%;
}

.print-thumb .thumb-line.row-one {
  left: 36%;
  top: 48%;
  width: 32%;
}

.print-thumb .thumb-line.row-two {
  left: 36%;
  top: 58%;
  width: 32%;
}

.print-thumb .thumb-line.column-one {
  left: 72%;
  top: 12%;
  height: 76%;
}

.article-card div {
  padding: 1rem;
}

.article-card a {
  display: inline-flex;
  margin-top: 0.4rem;
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.article-card a:hover,
.article-card a:focus-visible {
  color: var(--green);
}

.text-only {
  min-height: 18rem;
  background:
    linear-gradient(90deg, rgba(255, 212, 71, 0.7), transparent 46%),
    repeating-linear-gradient(90deg, rgba(23, 23, 23, 0.055) 0 1px, transparent 1px 18px),
    #fff;
}

.fragments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.fragment {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.fragment h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.flag-section {
  width: 100%;
  max-width: none;
  padding-inline: max(clamp(1rem, 2.5vw, 3rem), calc((100% - 1280px) / 2));
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(90deg, rgba(240, 68, 56, 0.12), rgba(24, 169, 87, 0.12)),
    #fff;
}

.flag-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(18rem, 0.72fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
}

.css-flag {
  position: relative;
  justify-self: center;
  width: min(100%, 38rem);
  aspect-ratio: 3 / 2;
  border: 2px solid var(--line);
  background:
    linear-gradient(0deg, var(--green) 0 26%, transparent 26%),
    linear-gradient(90deg, var(--red) 0 68%, var(--yellow) 68% 100%);
  box-shadow: 0 8px 0 var(--line);
  overflow: hidden;
}

.flag-star {
  position: absolute;
  left: 13%;
  top: 16%;
  color: var(--yellow);
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  text-shadow: 0 2px 0 var(--line);
}

.flag-river {
  position: absolute;
  right: 15%;
  top: 10%;
  width: 18%;
  height: 70%;
  border-left: 0.75rem solid var(--cyan);
  border-bottom: 0.75rem solid var(--cyan);
}

.flag-wheat {
  position: absolute;
  left: 18%;
  bottom: 13%;
  color: var(--yellow);
  font-family: var(--mono);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 900;
}

.flag-circuit {
  position: absolute;
  right: 9%;
  bottom: 10%;
  width: 32%;
  height: 28%;
  border: 0.35rem solid var(--line);
  border-left: 0;
  border-bottom: 0;
}

.symbol-list {
  display: grid;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.symbol-list li {
  padding: 0.8rem 0.9rem;
  border: 2px solid var(--line);
  background: #fff;
  color: #443f36;
  box-shadow: 0 4px 0 var(--yellow);
}

.symbol-list li:nth-child(2) {
  box-shadow: 0 4px 0 var(--green);
}

.symbol-list li:nth-child(3) {
  box-shadow: 0 4px 0 var(--cyan);
}

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

.sources {
  margin-bottom: 3rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.sources h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.sources ol {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 0;
  padding-left: 1.35rem;
}

.sources a {
  color: var(--red-deep);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.printshop-section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.printshop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.72fr);
  gap: 1rem;
  align-items: stretch;
}

.printshop-photo {
  min-width: 0;
  margin: 0;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 0 var(--line);
  overflow: hidden;
}

.printshop-photo img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  object-position: center;
}

.printshop-copy {
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 2px solid var(--line);
  background:
    linear-gradient(0deg, var(--yellow-soft) 0 1rem, transparent 1rem),
    #fff;
  box-shadow: 0 8px 0 var(--green);
}

.printshop-copy h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  text-transform: uppercase;
}

.printshop-copy p {
  margin-bottom: 1.1rem;
  color: #443f36;
  line-height: 1.68;
}

.printshop-points {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.printshop-points li {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 0 var(--cyan);
}

.printshop-points li:nth-child(2) {
  box-shadow: 0 4px 0 var(--yellow);
}

.printshop-points li:nth-child(3) {
  box-shadow: 0 4px 0 var(--red);
}

.printshop-points b {
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.printshop-points span {
  color: #443f36;
  line-height: 1.5;
}

.manifesto-section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.thesis {
  display: grid;
  align-content: start;
  min-height: 17rem;
  padding: 1rem;
  background:
    linear-gradient(0deg, rgba(255, 212, 71, 0.32) 0 0.8rem, transparent 0.8rem),
    #fff;
}

.thesis:nth-child(2) {
  background:
    linear-gradient(0deg, rgba(24, 169, 87, 0.24) 0 0.8rem, transparent 0.8rem),
    #fff;
}

.thesis:nth-child(3) {
  background:
    linear-gradient(0deg, rgba(32, 185, 232, 0.24) 0 0.8rem, transparent 0.8rem),
    #fff;
}

.thesis:nth-child(4) {
  background:
    linear-gradient(0deg, rgba(240, 68, 56, 0.16) 0 0.8rem, transparent 0.8rem),
    #fff;
}

.thesis span {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--red-deep);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 900;
}

.thesis h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.15;
}

.thesis p {
  margin-bottom: 0;
  color: #443f36;
  line-height: 1.68;
}

.post-index {
  padding-top: clamp(4rem, 8vw, 6rem);
}

.post-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card-list.hero-card-list {
  grid-template-columns: 1fr;
}

.post-list-card {
  position: relative;
  min-width: 0;
  padding: 1.1rem;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 0 var(--line);
}

.card-icon {
  margin-bottom: 0.75rem;
}

.post-list-card:nth-child(3n + 1) {
  background: linear-gradient(90deg, var(--yellow-soft), #fff 46%);
}

.post-list-card:nth-child(3n + 2) {
  background: linear-gradient(90deg, var(--green-soft), #fff 46%);
}

.post-list-card:nth-child(3n + 3) {
  background: linear-gradient(90deg, var(--cyan-soft), #fff 46%);
}

.post-list-card h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.12;
}

.post-list-card .meta {
  margin-bottom: 0.6rem;
}

.post-list-card p:not(.meta):not(.post-tags) {
  margin-bottom: 0.95rem;
}

.post-list-card > :last-child {
  margin-bottom: 0;
}

.post-list-card a {
  color: inherit;
  text-decoration: none;
}

.post-list-card a:hover,
.post-list-card a:focus-visible {
  color: var(--red-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
}

.post-tags:empty {
  display: none;
}

.post-tags span {
  display: inline-flex;
  padding: 0.28rem 0.45rem;
  border: 2px solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.post-shell {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: start;
}

.post-hero {
  position: sticky;
  top: 6rem;
  min-width: 0;
  padding: 1rem;
  border: 2px solid var(--line);
  background:
    linear-gradient(0deg, var(--green-soft) 0 24%, transparent 24%),
    #fff;
  box-shadow: 0 8px 0 var(--line);
}

.article-icon {
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 5px 0 var(--line);
}

.post-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.post-content {
  min-width: 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 0 var(--line);
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin: 1.4rem 0 0.6rem;
  color: var(--ink);
  line-height: 1.05;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child {
  margin-top: 0;
}

.post-content p,
.post-content li,
.post-content blockquote {
  color: #443f36;
  font-size: 1.02rem;
  line-height: 1.75;
}

.post-content a {
  color: var(--red-deep);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.post-content code {
  padding: 0.12rem 0.25rem;
  border: 1px solid var(--line);
  background: var(--cyan-soft);
  font-family: var(--mono);
  font-size: 0.92em;
}

.post-content pre {
  overflow-x: auto;
  padding: 1rem;
  border: 2px solid var(--line);
  background: var(--cyan-soft);
}

.post-content blockquote {
  margin: 1rem 0;
  padding: 0.8rem 1rem;
  border-left: 0.6rem solid var(--red);
  background: var(--yellow-soft);
}

.post-media {
  margin: 1.2rem 0;
  padding: 0;
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 0 var(--cyan);
}

.post-media img {
  width: 100%;
  height: auto;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.55rem clamp(1rem, 3vw, 2.5rem) 1.2rem;
  border-top: 2px solid var(--line);
  background:
    linear-gradient(90deg, var(--red-deep) 0 38%, var(--green) 38% 62%, var(--red-deep) 62% 100%) top / 100% 0.35rem no-repeat,
    var(--green-soft);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

@supports (container-type: inline-size) {
  .hero-posts,
  .printshop-copy,
  .manifesto-section,
  .post-content {
    container-type: inline-size;
  }

  @container (max-width: 28rem) {
    .post-list-card h3,
    .thesis h3 {
      font-size: clamp(1.08rem, 5.2cqi, 1.3rem);
    }

    .printshop-copy h2 {
      font-size: clamp(1.85rem, 8cqi, 2.35rem);
    }

    .post-tags span {
      padding: 0.24rem 0.38rem;
      font-size: 0.66rem;
    }

    .printshop-points li {
      padding: 0.75rem;
    }
  }

  @container (min-width: 42rem) {
    .post-content p,
    .post-content li {
      max-width: 72ch;
    }
  }
}

@media (max-width: 1100px) {
  .ticker {
    flex-wrap: wrap;
    overflow: hidden;
  }

  .ticker span {
    flex: 1 1 auto;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-block: 0.85rem;
    min-height: 0;
  }

  .top-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .brand {
    width: 100%;
  }

  .hero-grid,
  .section-head,
  .flag-panel,
  .printshop-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-archive .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 38rem;
  }

  .dossier-grid,
  .protocol-grid,
  .manifesto-grid,
  .post-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid,
  .fragments,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-hero {
    position: static;
  }

  .article-card.featured {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 0.7rem;
  }

  .brand-copy strong {
    font-size: clamp(1.75rem, 7vw, 2.55rem);
    line-height: 0.96;
  }

  .hero-posts-head,
  .post-list-card,
  .printshop-copy,
  .printshop-photo,
  .thesis,
  .post-hero,
  .post-content {
    box-shadow: 0 5px 0 var(--line);
  }

  .hero::after {
    right: -10rem;
    bottom: -6rem;
    opacity: 0.65;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    min-height: auto;
    gap: 0.6rem;
    padding: 0.75rem 1rem 0.9rem;
  }

  .brand {
    grid-template-columns: 5.8rem minmax(0, 1fr);
    gap: 0.65rem;
    min-width: 0;
    align-items: end;
  }

  .brand-mascot {
    width: 5.8rem;
    height: 5.15rem;
  }

  .header-bear {
    height: 6.65rem;
  }

  .brand-copy strong {
    font-size: clamp(1.3rem, 6.1vw, 1.86rem);
    line-height: 0.98;
    text-shadow: 0 0.05em 0 var(--yellow), 0 0.1em 0 var(--cyan);
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy span {
    display: none;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.32rem;
    width: 100%;
    overflow: visible;
  }

  .top-nav a {
    display: grid;
    min-height: 2.55rem;
    place-items: center;
    padding: 0.42rem 0.28rem;
    border-color: var(--line);
    background: #fff;
    font-size: clamp(0.58rem, 2.45vw, 0.72rem);
    text-align: center;
    overflow-wrap: anywhere;
  }

  .ticker span {
    flex: 1 1 100%;
    padding-right: 0;
    border-right: 0;
    overflow-wrap: anywhere;
  }

  .hero-grid {
    gap: 1.6rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-archive .hero-grid {
    padding-top: 1.85rem;
    padding-bottom: 2.35rem;
  }

  .printshop-photo img {
    min-height: 15rem;
  }

  h1 {
    margin-bottom: 0.85rem;
    font-size: clamp(2.2rem, 11vw, 3rem);
    text-shadow: 0 0.05em 0 var(--yellow), 0 0.1em 0 var(--cyan);
  }

  .lead {
    margin-bottom: 1.1rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .section h2 {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

  .section {
    padding-top: 3rem;
    padding-bottom: 3.25rem;
  }

  .section-head {
    gap: 0.85rem;
    margin-bottom: 1.35rem;
  }

  .section-kicker,
  .eyebrow,
  .meta,
  .fragment-tag {
    font-size: 0.68rem;
  }

  .dossier-grid,
  .protocol-grid,
  .manifesto-grid,
  .post-card-list {
    grid-template-columns: 1fr;
  }

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

  .hero-stats div {
    padding: 0.65rem;
  }

  .terminal {
    box-shadow: 0 5px 0 var(--green);
  }

  .terminal pre {
    font-size: 0.76rem;
    line-height: 1.55;
  }

  .file-card,
  .thesis,
  .rule {
    min-height: auto;
  }

  .file-index,
  .thesis span,
  .rule span {
    margin-bottom: 1rem;
  }

  .post-shell {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .post-hero,
  .post-content,
  .hero-posts-head,
  .post-list-card,
  .printshop-copy,
  .thesis {
    padding: 0.95rem;
  }

  .post-hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-top: 0.65rem;
  }

  .brand {
    grid-template-columns: 5rem minmax(0, 1fr);
    gap: 0.5rem;
  }

  .brand-mascot {
    width: 5rem;
    height: 4.6rem;
  }

  .header-bear {
    height: 5.95rem;
  }

  .brand-copy strong {
    font-size: clamp(1.24rem, 6.45vw, 1.52rem);
    line-height: 1;
  }

  .top-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .top-nav a {
    min-height: 2.35rem;
    font-size: clamp(0.53rem, 2.35vw, 0.62rem);
  }

  h1 {
    font-size: clamp(2rem, 10.4vw, 2.45rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1500px) {
  .hero-grid {
    padding-top: 7.5rem;
    padding-bottom: 5.5rem;
  }

}

@media print {
  @page {
    margin: 14mm;
  }

  html {
    scroll-padding-top: 0;
  }

  body {
    min-width: 0;
    background: #fff !important;
    color: #000;
    font-size: 11pt;
  }

  body::before,
  .noise,
  .skip-link,
  .site-header,
  .hero::after,
  .printshop-photo,
  script {
    display: none !important;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a {
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 1px;
  }

  .hero,
  .section,
  .post-shell {
    width: auto;
    margin: 0 0 1.2rem;
    padding: 0;
    border: 0;
    background: #fff !important;
  }

  .printshop-section,
  .manifesto-section {
    content-visibility: visible;
  }

  .hero-grid,
  .hero-archive .hero-grid,
  .printshop-layout,
  .section-head,
  .manifesto-grid,
  .post-layout {
    display: block;
    width: auto;
    padding: 0;
  }

  .hero-copy,
  .hero-posts,
  .printshop-copy,
  .post-hero,
  .post-content {
    max-width: none;
    page-break-inside: avoid;
  }

  .hero-posts-head,
  .post-list-card,
  .printshop-copy,
  .thesis,
  .post-hero,
  .post-content {
    margin: 0 0 0.9rem;
    padding: 0.75rem;
    border: 1.5px solid #000;
    background: #fff !important;
  }

  h1,
  .post-hero h1,
  .section h2,
  .printshop-copy h2 {
    max-width: none;
    color: #000;
    font-size: 24pt;
    line-height: 1;
  }

  .lead,
  .section-head p,
  .post-content p,
  .post-content li,
  .printshop-copy p,
  .thesis p {
    color: #000;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .manifesto-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .thesis {
    min-height: 0;
    break-inside: avoid;
  }

  .thesis span {
    margin-bottom: 0.45rem;
  }

  .post-tags span {
    border: 1px solid #000;
    background: #fff;
    color: #000;
  }

  .site-footer {
    display: block;
    padding: 0.7rem 0 0;
    border-top: 1.5px solid #000;
    background: #fff;
    color: #000;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
