:root {
  color-scheme: light;
  --paper: #fff8e9;
  --panel: #fffdf7;
  --ink: #171a24;
  --muted: #54515a;
  --line: #b4a99a;
  --quiet: #eceeff;
  --blue: #2847dc;
  --orange: #ff7854;
  --yellow: #f5ee80;
  --accent: #2037b6;
  --focus: var(--accent);
  --edge: #171a24;
  --display: "Arial Narrow", "Liberation Sans Narrow", "Arial Black", system-ui, sans-serif;
  --mono: ui-monospace, "Courier New", monospace;
  --serif: Georgia, Cambria, serif;
}
body.dark {
  color-scheme: dark;
  --paper: #181923;
  --panel: #222335;
  --ink: #fff6e7;
  --muted: #ccc5c4;
  --line: #686377;
  --quiet: #2c3152;
  --accent: #b8c5ff;
  --focus: var(--yellow);
  --edge: #0d0e14;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
h1,h2,h3,h4,p,figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
button,input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(75rem, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 4; background: var(--paper); padding: .5rem; }
.skip:not(:focus) { clip-path: inset(100%); }
.masthead { background: var(--blue); color: white; border-block: 4px solid var(--edge); --focus: var(--yellow); }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: .6rem; min-height: 3.85rem; }
.identity { display: flex; gap: .6rem; align-items: center; font: 850 1.08rem/1.15 var(--display); text-decoration: none; }
.identity img { flex: none; border: 2px solid #171a24; border-radius: 8px; }
.masthead a:hover { color: var(--yellow); }
.theme { flex: none; background: var(--yellow); color: #171a24; border: 2px solid #171a24; box-shadow: 2px 2px #171a24; padding: .32rem .65rem; font: 750 .85rem/1.4 system-ui, sans-serif; }
.theme:hover { background: white; }
.navigation { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #a4b2ff; }
nav { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
nav a { text-decoration: none; padding-block: .46rem; font-size: .9rem; }
nav a[aria-current="page"] { box-shadow: inset 0 -3px var(--yellow); font-weight: 750; }
.address { font: 700 .85rem/1.4 var(--mono); }
.masthead .address { color: var(--yellow); }
.front-intro { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: .55rem; padding: 2rem 0 2.4rem; }
.front-intro::before {
  position: absolute; inset: .6rem -.65rem 0 49%; z-index: -1; content: "";
  background: url("print-dots.svg") repeat; opacity: .34;
}
.front-copy { min-width: 0; }
.sticker { display: inline-block; width: fit-content; color: #171a24; background: var(--yellow); padding: .24rem .56rem; border: 2px solid #171a24; box-shadow: 2px 2px #171a24; font: 800 .83rem/1.3 var(--mono); }
.front-copy .sticker { transform: rotate(-3deg); }
.front-intro h1 {
  font: 950 clamp(3rem, 6.5vw, 6rem)/.87 var(--display);
  margin: 1.25rem 0 .9rem;
  letter-spacing: -.075em;
}
.front-intro h1 span { display: block; }
.front-intro h1 span + span { color: var(--accent); }
.intro-text { max-width: 28rem; font-size: 1.12rem; font-weight: 600; }
.action { display: inline-flex; align-items: center; margin-top: 1rem; padding: .55rem .85rem; color: #171a24; background: var(--orange); border: 2px solid #171a24; box-shadow: 4px 4px #171a24; text-decoration: none; font-weight: 800; }
.action:hover { color: #171a24; background: var(--yellow); }
.action:active, .theme:active { translate: 2px 2px; box-shadow: 1px 1px #171a24; }
.bench-art { transform: rotate(2deg); }
.bench-art img { width: 100%; }
.edition { border-top: 3px solid var(--ink); padding-top: .75rem; }
.edition-title { font: 950 clamp(2.45rem, 5vw, 4rem)/1 var(--display); letter-spacing: -.065em; margin-bottom: .95rem; }
.edition-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.8rem; align-items: start; }
.lead { display: grid; grid-template-columns: 1fr 1.07fr; background: var(--panel); border: 2px solid var(--ink); box-shadow: 6px 6px var(--ink); }
.feature-art { position: relative; align-self: stretch; background: #becbff; border-right: 2px solid var(--ink); }
.feature-art img { width: 100%; height: 100%; object-fit: contain; }
.feature-art figcaption { position: absolute; left: .65rem; bottom: .55rem; color: #171a24; background: var(--yellow); border: 2px solid #171a24; padding: .22rem .42rem; font: 750 .82rem/1.15 var(--mono); }
.lead .story { padding: 1rem 1.15rem 1.2rem; min-width: 0; }
.section-name { font: 800 .9rem/1.3 var(--mono); padding: .4rem 0; border-bottom: 2px solid var(--ink); }
.category { width: fit-content; color: #171a24; background: #c9d4ff; border: 1px solid #171a24; margin-bottom: .45rem; padding: .15rem .38rem; font: 750 .78rem/1.2 var(--mono); }
[data-category="Operations"] .category, .article-head .category { background: var(--orange); }
[data-category="Networking"] .category { background: var(--yellow); }
.story h2,.story h3,.story h4 { font: 850 clamp(1.26rem, 2vw, 1.6rem)/1.12 var(--display); letter-spacing: -.04em; }
.story h2 a,.story h3 a,.story h4 a { text-decoration: none; }
.story h2 a:hover,.story h3 a:hover,.story h4 a:hover { text-decoration: underline; }
.lead .story h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1.01; }
.excerpt { margin-top: .46rem; color: var(--muted); }
.secondary .story { padding-block: .8rem; }
.secondary .story + .story,.story-list .story + .story { border-top: 1px solid var(--line); }
.show { display: grid; align-items: center; grid-template-columns: minmax(8rem, 16rem) 1fr; gap: 1rem; color: white; background: var(--blue); border: 2px solid var(--ink); box-shadow: 6px 6px var(--ink); --focus: var(--yellow); padding: 1.25rem 1.6rem; margin: 2.1rem 6% 1.3rem 0; }
.show h2 { font: 900 clamp(2rem, 4.7vw, 3.8rem)/1.04 var(--display); letter-spacing: -.06em; margin: .55rem 0 .35rem; }
.show p:not(.sticker) { max-width: 37rem; }
.show .action { background: var(--yellow); }
.show .action:hover { background: white; }
.home-preview { margin-top: 1.45rem; }
.footer { border-top: 2px solid var(--ink); margin-top: 2rem; padding-block: .85rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem .8rem; font-size: .88rem; }
.preview-note,.byline { font-size: .875rem; color: var(--muted); }
.page-intro,.article-head { padding-block: 2rem 1.35rem; }
.page-intro h1,.article-head h1 { font: 900 clamp(2.3rem, 5.8vw, 4.15rem)/1.02 var(--display); letter-spacing: -.06em; }
.page-intro .sticker,.article-head .sticker { margin-bottom: .8rem; }
.page-intro > p:not(.sticker),.dek { margin-top: .7rem; color: var(--muted); font-size: 1.11rem; }
.catalog { display: grid; grid-template-columns: minmax(13rem, 1fr) minmax(0, 2.5fr); gap: 1.8rem; border-top: 3px solid var(--ink); }
.controls { margin: 1rem 0 .5rem; align-self: start; background: var(--quiet); border: 2px solid var(--ink); box-shadow: 4px 4px var(--ink); padding: .85rem; }
.controls label { display: block; margin-bottom: .4rem; font-weight: 750; }
.controls input { width: 100%; min-width: 0; padding: .45rem .55rem; border: 1px solid var(--ink); background: var(--panel); color: var(--ink); }
.controls input::placeholder { color: var(--muted); opacity: 1; }
.filters { display: flex; flex-wrap: wrap; gap: .32rem; margin-block: .68rem; }
.filters button { color: var(--ink); background: var(--panel); border: 1px solid var(--ink); font-size: .875rem; padding: .25rem .45rem; }
.filters button:hover,.filters button[aria-pressed="true"] { color: #171a24; background: var(--yellow); border-color: #171a24; }
.filters button[aria-pressed="true"] { box-shadow: 2px 2px #171a24; font-weight: 800; }
#results { color: var(--muted); font-size: .875rem; }
.story-list .story { padding-block: 1.12rem; }
.reading { max-width: 49rem; }
.article-head { border-bottom: 3px solid var(--ink); }
.article-head .category { margin-bottom: .7rem; border: 2px solid #171a24; box-shadow: 2px 2px #171a24; }
.byline { margin-top: .85rem; }
.article { max-width: 42rem; margin-inline: auto; font: 1.18rem/1.72 var(--serif); overflow-wrap: anywhere; }
.article > * { margin-top: 1em; }
.article h2,.article h3 { font: 850 1.35em/1.22 var(--display); margin-top: 1.6em; }
.article .preview-note { font: .875rem/1.5 system-ui,sans-serif; padding: .65rem .85rem; background: var(--quiet); border-left: 3px solid var(--accent); }
.article a { color: var(--accent); }
.article pre,.table-scroll { overflow: auto; }
.article pre { background: var(--quiet); padding: .8rem; font-size: .875rem; }
.article blockquote { border-left: 2px solid var(--accent); padding-left: 1rem; margin-inline: 0; }
.article li + li { margin-top: .4em; }
.article table { border-collapse: collapse; min-width: 30rem; width: 100%; font: .875rem/1.5 system-ui,sans-serif; }
.article th,.article td { border: 1px solid var(--line); text-align: left; vertical-align: top; padding: .55rem .65rem; }
.article th { background: var(--quiet); }
.return { max-width: 42rem; margin: 1.5rem auto 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.about .article-head { display: grid; grid-template-columns: 1fr minmax(5rem, 10rem); gap: .5rem; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .bench-art, .lead, .action, .theme { transition: transform .18s ease-out, box-shadow .18s ease-out; }
  .front-intro:has(.action:focus-visible) .bench-art { transform: rotate(-1deg) translateY(-4px); }
  .lead:has(a:focus-visible) { transform: translate(-2px,-2px); box-shadow: 8px 8px var(--ink); }
  @media (hover: hover) {
    .bench-art:hover { transform: rotate(-1deg) translateY(-4px); }
    .lead:has(a:hover) { transform: translate(-2px,-2px); box-shadow: 8px 8px var(--ink); }
    .action:hover,.theme:hover { transform: translate(-1px,-1px); }
  }
}
@media (max-width: 60rem) {
  .front-intro h1 { font-size: clamp(2.8rem, 7.1vw, 4.7rem); }
  .lead { grid-template-columns: 1fr; }
  .feature-art { border-right: 0; border-bottom: 2px solid var(--ink); max-height: 12rem; overflow: hidden; }
  .feature-art img { object-fit: contain; }
}
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .front-intro,.catalog,.edition-grid { grid-template-columns: 1fr; }
  .front-intro { padding: 1.55rem 0 .9rem; gap: .5rem; }
  .front-intro h1 { font-size: clamp(2.65rem, 10.8vw, 4.8rem); }
  .front-intro::before { inset: 48% 0 0; opacity: .28; }
  .bench-art { transform: none; max-width: 31rem; margin-inline: auto; }
  .edition-grid,.catalog { gap: 1.15rem; }
  .show { grid-template-columns: 1fr; gap: 0; margin-right: .35rem; padding: .8rem 1rem 1.1rem; }
  .show img { width: 7.5rem; margin-bottom: .2rem; }
}
@media (max-width: 25rem) {
  nav { column-gap: .55rem; }
  .navigation .address { font-size: .78rem; }
  .identity { font-size: .91rem; gap: .35rem; }
  .identity img { width: 1.6rem; }
  .theme { font-size: .8rem; padding-inline: .45rem; }
  .about .article-head { grid-template-columns: 1fr; }
  .about .article-head img { width: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .action:active,.theme:active { translate: none; }
}
