/* The site's own stylesheet: a small print shop. Warm paper, ink, hairline rules,
   one vermilion, monospace microtype. Plain CSS, no build step. The embeds do not
   use any of this: they carry their own styles. */

:root {
  --paper: #f3efe6;
  --sheet: #fbf8f1;
  --ink: #1a1814;
  --soft: #46413a;
  --muted: #655d51;
  --rule: #d8d0c0;
  --rule-strong: #b9b09d;
  --accent: #d9381e;
  --accent-ink: #b32a13;
  --ok: #2f6b3a;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.site {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* the faintest paper grain: two offset dot grids */
  background-image:
    radial-gradient(rgba(26, 24, 20, .035) 1px, transparent 1px),
    radial-gradient(rgba(26, 24, 20, .025) 1px, transparent 1px);
  background-size: 23px 23px, 37px 37px;
  background-position: 0 0, 11px 17px;
}
.site a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.site a:hover { text-decoration-color: var(--accent); }
.site ::selection { background: var(--accent); color: #fff; }
.site :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site img { max-width: 100%; }
.site h1, .site h2, .site h3, .site p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.site main { flex: 1; }

/* ── microtype ───────────────────────────────────────────── */
.label {
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.label b, .label strong { color: var(--ink); font-weight: 600; }
.label .dot { color: var(--accent); }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-dashed { border: 0; border-top: 1px dashed var(--rule-strong); margin: 0; }

/* ── masthead ────────────────────────────────────────────── */
.mast { border-bottom: 1px solid var(--rule); background: rgba(243, 239, 230, .86); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.mast .wrap { display: flex; align-items: center; gap: 20px; height: 58px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.wordmark .name { font: italic 600 25px/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 60; }
.wordmark .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(-1px); }
.mast nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mast nav a { font: 500 13px/1 var(--sans); text-decoration: none; padding: 9px 11px; border-radius: 3px; color: var(--soft); white-space: nowrap; }
.mast nav a:hover { background: rgba(26, 24, 20, .06); color: var(--ink); }
.mast nav a.is-here { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.mast nav a.cta { background: var(--ink); color: var(--sheet); margin-left: 6px; }
.mast nav a.cta:hover { background: var(--accent); }
@media (max-width: 640px) {
  .mast .wrap { gap: 8px; padding: 0 14px; }
  .mast nav a { padding: 8px 7px; font-size: 12.5px; }
  .mast nav a.hide-s { display: none; }
  .wordmark .name { font-size: 21px; }
}

/* ── footer ──────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--rule); margin-top: 96px; padding: 28px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; }
.foot p { max-width: 62ch; color: var(--muted); font-size: 13px; }
.foot nav { display: flex; gap: 18px; font-size: 13px; }

/* ── buttons & fields ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 14px/1 var(--sans); letter-spacing: .005em;
  padding: 12px 18px; border-radius: 3px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--sheet); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, transform .06s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: progress; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.btn-s { padding: 8px 12px; font-size: 13px; }
.btn-xs { padding: 5px 9px; font-size: 12px; font-weight: 500; }
.btn.is-copied { background: var(--ok); border-color: var(--ok); color: #fff; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.linkish:hover { text-decoration-color: var(--accent); }

.input, .textarea, .select {
  width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 10px 12px;
  transition: border-color .12s, box-shadow .12s;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--muted); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217, 56, 30, .18); }
.input::placeholder, .textarea::placeholder { color: #a39b8c; }
.field { display: block; }
.field > .label { display: block; margin-bottom: 6px; }
.field + .field { margin-top: 14px; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.row > .field, .row > .field + .field { margin-top: 0; }
.row { align-items: start; }
.row + .row, .row + .field, .field + .row { margin-top: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* segmented control: separate keys, so a long row can wrap cleanly */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg button, .seg a {
  font: 500 13px/1 var(--sans); padding: 8px 11px; border: 1px solid var(--rule-strong); border-radius: 3px;
  background: var(--sheet); color: var(--soft); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s;
}
.seg button:hover, .seg a:hover { border-color: var(--ink); color: var(--ink); }
.seg .is-on, .seg .is-on:hover { background: var(--ink); border-color: var(--ink); color: var(--sheet); }

/* notices */
.notice { border: 1px solid var(--rule-strong); border-left: 3px solid var(--accent); background: var(--sheet); padding: 12px 14px; border-radius: 3px; font-size: 14px; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice li + li { margin-top: 3px; }
.notice.is-error { border-left-color: var(--accent); background: #fdf1ee; }
.notice.is-ok { border-left-color: var(--ok); }
.flash { position: fixed; right: 18px; bottom: 18px; z-index: 50; max-width: min(420px, calc(100vw - 36px)); box-shadow: 0 8px 30px rgba(26, 24, 20, .16); cursor: pointer; }

/* rubber stamp */
.stamp {
  display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 9px 5px; border: 1.5px solid currentColor; border-radius: 3px; color: var(--accent); transform: rotate(-1.5deg);
}
.stamp.is-captured { color: var(--ok); }
.stamp.is-edited { color: #9a6a00; }
.stamp.is-made { color: var(--accent); }

/* ── the proof: a card pinned to the sheet with crop marks ─ */
.proof { position: relative; padding: 22px; }
.proof::before, .proof::after, .proof > .crop::before, .proof > .crop::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--rule-strong); pointer-events: none;
}
.proof::before { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.proof::after { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.proof > .crop::before { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.proof > .crop::after { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.proof-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }

/* ── hero ────────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; }
.hero h1 {
  font: 500 clamp(40px, 6.2vw, 76px)/.98 var(--serif); letter-spacing: -.035em;
  font-variation-settings: "opsz" 144; margin: 14px 0 20px; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero .lede { font: 400 19px/1.5 var(--serif); color: var(--soft); max-width: 34em; font-variation-settings: "opsz" 20; }
.capture { margin-top: 28px; display: flex; gap: 8px; max-width: 560px; }
.capture .input { height: 50px; font-size: 16px; border-color: var(--ink); }
.capture .btn { height: 50px; padding: 0 22px; font-size: 15px; }
.hero .or { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero .tries { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.chip { font: 500 12px/1 var(--mono); padding: 6px 9px; border: 1px dashed var(--rule-strong); border-radius: 999px; background: transparent; color: var(--soft); cursor: pointer; }
.chip:hover { border-style: solid; border-color: var(--ink); color: var(--ink); }
@media (max-width: 900px) {
  .proof { padding: 12px; }
  .hero { padding: 36px 0 24px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .capture { flex-direction: column; }
}

/* the same post in four skins, cross-fading: CSS only */
.morph { display: grid; grid-template-columns: minmax(0, 1fr); }
.morph > * { grid-area: 1 / 1; min-width: 0; opacity: 0; animation: morph 16s infinite; align-self: start; }
.morph > :nth-child(1) { animation-delay: 0s; }
.morph > :nth-child(2) { animation-delay: 4s; }
.morph > :nth-child(3) { animation-delay: 8s; }
.morph > :nth-child(4) { animation-delay: 12s; }
@keyframes morph { 0% { opacity: 0; transform: translateY(6px); } 3%, 25% { opacity: 1; transform: none; } 28%, 100% { opacity: 0; transform: translateY(-6px); } }
.morph-names { display: flex; gap: 14px; }
.morph-names span { animation: morphname 16s infinite; opacity: .38; }
.morph-names span:nth-child(1) { animation-delay: 0s; }
.morph-names span:nth-child(2) { animation-delay: 4s; }
.morph-names span:nth-child(3) { animation-delay: 8s; }
.morph-names span:nth-child(4) { animation-delay: 12s; }
@keyframes morphname { 0%, 25% { opacity: 1; color: var(--ink); } 28%, 100% { opacity: .38; } }
@media (prefers-reduced-motion: reduce) {
  .morph > * { animation: none; }
  .morph > :first-child { opacity: 1; }
  .morph-names span { animation: none; }
}

/* ── sections ────────────────────────────────────────────── */
.sec { padding: 72px 0 0; }
.sec-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: baseline; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 32px; }
.sec-head h2 { font: 500 clamp(28px, 3.6vw, 42px)/1.05 var(--serif); letter-spacing: -.025em; font-variation-settings: "opsz" 96; text-wrap: balance; }
.sec-head p { margin-top: 10px; color: var(--soft); max-width: 60ch; font: 400 17px/1.5 var(--serif); }
@media (max-width: 700px) { .sec { padding-top: 52px; } .sec-head { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule-strong); background: var(--sheet); }
.three > div { padding: 24px; border-right: 1px solid var(--rule); }
.three > div:last-child { border-right: 0; }
.three h3 { font: 500 24px/1.1 var(--serif); letter-spacing: -.015em; margin: 10px 0 8px; }
.three p { color: var(--soft); font-size: 15px; }
.three .where { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule-strong); }
@media (max-width: 800px) { .three { grid-template-columns: minmax(0, 1fr); } .three > div { border-right: 0; border-bottom: 1px solid var(--rule); } .three > div:last-child { border-bottom: 0; } }

/* comparison table */
.ledger { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule-strong); font-size: 15px; }
.ledger th, .ledger td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger thead th { font: 500 11px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.ledger tbody th { font-weight: 500; width: 34%; }
.ledger tr:last-child td, .ledger tr:last-child th { border-bottom: 0; }
.ledger .bad { color: var(--accent-ink); }
.ledger .good { color: var(--ok); font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* code */
.code {
  font: 400 12.5px/1.55 var(--mono); background: #1d1b17; color: #e9e2d2; padding: 16px 18px; border-radius: 3px;
  overflow: auto; white-space: pre; tab-size: 2; margin: 0;
}
.code .c { color: #8f8777; } .code .t { color: #ff8f73; } .code .a { color: #e7c87a; }
textarea.code { width: 100%; border: 0; resize: vertical; display: block; white-space: pre-wrap; word-break: break-all; min-height: 150px; }
textarea.code:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* gallery */
.gallery { columns: 3 300px; column-gap: 28px; }
.gallery > .piece { break-inside: avoid; margin: 0 0 34px; min-width: 0; }
.piece-cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }

/* marks explainer */
.marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.marks > div { border-top: 1px solid var(--rule-strong); padding-top: 14px; }
.marks p { margin-top: 10px; font-size: 15px; color: var(--soft); }
.marks code { font: 400 12px/1.5 var(--mono); display: block; margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--rule-strong); border-radius: 3px; color: var(--soft); }
@media (max-width: 800px) { .marks { grid-template-columns: minmax(0, 1fr); } }

/* ── editor ──────────────────────────────────────────────── */
.editor { padding-top: 26px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 36px; align-items: start; }
.editor-form { min-width: 0; }
.editor-stage { position: sticky; top: 78px; min-width: 0; }
.stage-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.stage-sheet { background: var(--sheet); border: 1px solid var(--rule-strong); padding: 26px 18px; min-height: 220px; transition: background .2s; }
.stage-sheet.is-dark { background: #16140f; border-color: #16140f; }
.stage-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 14px; }
.panel { border: 1px solid var(--rule-strong); background: var(--sheet); border-radius: 3px; margin-bottom: 14px; }
.panel > summary { list-style: none; cursor: pointer; padding: 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; user-select: none; }
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::after { content: "+"; font: 400 18px/1 var(--mono); color: var(--muted); }
.panel[open] > summary::after { content: "–"; }
.panel[open] > summary { border-bottom: 1px solid var(--rule); }
.panel > summary .has { color: var(--accent); margin-left: 6px; }
.panel-body { padding: 16px; }
.stage-toggle { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; background: #fff; }
.thumb img { display: block; width: 100%; height: 96px; object-fit: cover; }
.thumb-pic { position: relative; }
.thumb-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(26, 24, 20, .78); color: #fff; font-size: 12px; line-height: 26px; padding: 0; cursor: pointer; }
.thumb-x:hover { background: var(--accent); }
.thumb .textarea { border: 0; border-top: 1px solid var(--rule); border-radius: 0; min-height: 78px; padding: 8px 10px; font-size: 14px; line-height: 20px; background: #fff; display: block; }
.avatar-pick { display: flex; gap: 12px; align-items: center; }
.avatar-pick img, .avatar-pick .ph { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); flex: none; }
.avatar-pick .ph { background: repeating-linear-gradient(45deg, var(--rule), var(--rule) 4px, transparent 4px, transparent 8px); }
.drop { display: block; border: 1px dashed var(--rule-strong); border-radius: 3px; padding: 14px; text-align: center; font-size: 14px; color: var(--soft); cursor: pointer; }
.drop:hover, .drop.phx-drop-target-active { border-color: var(--accent); color: var(--ink); background: rgba(217, 56, 30, .04); }
.drop input { display: none; }
.reply-box { border: 1px solid var(--rule); border-radius: 3px; padding: 12px; margin-bottom: 10px; background: #fff; }
.reply-box .reply-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
@media (max-width: 960px) {
  .editor { padding-top: 0; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* On a phone the card stays in view above the fields you are typing in. */
  .editor-stage { position: sticky; top: 58px; order: -1; z-index: 10; background: var(--paper); margin: 0 -24px; padding: 10px 14px 10px; border-bottom: 1px solid var(--rule-strong); box-shadow: 0 8px 14px -12px rgba(26, 24, 20, .35); }
  .stage-bar { margin-bottom: 8px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .stage-bar .seg { flex-wrap: nowrap; flex: none; }
  /* A strip of the card by default (it scrolls); "Bigger" opens it up. */
  .stage-sheet { padding: 8px 6px; max-height: 168px; min-height: 0; overflow: auto; transition: max-height .2s; }
  .editor-stage.is-big .stage-sheet { max-height: 62vh; }
  .stage-toggle { display: inline; font-size: 13px; }
  .stage-toggle::after { content: "Bigger ↓"; }
  .editor-stage.is-big .stage-toggle::after { content: "Smaller ↑"; }
  /* more skins than fit: let the row scroll, and fade its edge to say so */
  .stage-bar { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); padding-right: 28px; scrollbar-width: none; }
  .editor-form .panel { scroll-margin-top: 330px; }
  .stage-foot { margin-top: 8px; flex-wrap: nowrap; gap: 8px; }
  .stage-foot > div { min-width: 0; flex-wrap: nowrap !important; }
  .stage-foot .btn { padding: 11px 14px; flex: none; }
  .hide-phone { display: none; }
  .editor-stage > .hint { display: none; }
  .input, .textarea, .select { font-size: 16px; }
  .seg button, .seg a { padding: 11px 13px; }
}

/* ── a pressed post's page ───────────────────────────────── */
.post-page { padding-top: 34px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.post-facts { margin-top: 18px; border-top: 1px solid var(--rule-strong); }
.post-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.post-facts dd, .post-facts dt { margin: 0; }
.post-facts .v { overflow-wrap: anywhere; }
.post-facts code { font: 400 12px/1.5 var(--mono); }
.take h2 { font: 500 30px/1.1 var(--serif); letter-spacing: -.02em; margin: 6px 0 14px; }
.tabs { border: 1px solid var(--rule-strong); background: var(--sheet); border-radius: 3px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-labels { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--rule-strong); }
.tab-labels label { font: 500 13px/1 var(--sans); padding: 13px 15px; cursor: pointer; color: var(--soft); border-right: 1px solid var(--rule); }
.tab-labels label:hover { color: var(--ink); background: rgba(26, 24, 20, .04); }
.tab-pane { display: none; padding: 18px; }
.tab-pane p { font-size: 14.5px; color: var(--soft); }
.tab-pane p + p { margin-top: 8px; }
.tab-pane p.label { font-size: 11px; color: var(--muted); }
.tab-pane .tools { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 12px 0; }
.tab-pane .works { margin-top: 12px; }
#tab-html:checked ~ .tab-labels label[for="tab-html"], #tab-image:checked ~ .tab-labels label[for="tab-image"],
#tab-link:checked ~ .tab-labels label[for="tab-link"], #tab-inline:checked ~ .tab-labels label[for="tab-inline"] {
  color: var(--ink); background: var(--paper); box-shadow: inset 0 -2px 0 var(--accent);
}
#tab-html:checked ~ #pane-html, #tab-image:checked ~ #pane-image, #tab-link:checked ~ #pane-link, #tab-inline:checked ~ #pane-inline { display: block; }
#tab-html:focus-visible ~ .tab-labels label[for="tab-html"], #tab-image:focus-visible ~ .tab-labels label[for="tab-image"],
#tab-link:focus-visible ~ .tab-labels label[for="tab-link"], #tab-inline:focus-visible ~ .tab-labels label[for="tab-inline"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.png-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.png-choices a { display: block; text-decoration: none; border: 1px solid var(--rule); border-radius: 3px; padding: 8px; text-align: center; background: #fff; }
.png-choices a:hover { border-color: var(--ink); }
.png-choices .sw { height: 46px; border-radius: 2px; border: 1px solid var(--rule); margin-bottom: 6px; display: grid; place-items: center; }
.png-choices .sw i { display: block; width: 60%; height: 55%; background: #fff; border: 1px solid #cfd9de; border-radius: 4px; }
.sw-card { background: repeating-conic-gradient(#e9e4d8 0% 25%, #fff 0% 50%) 50% / 12px 12px; }
.sw-paper { background: #f3efe6; } .sw-ink { background: #16140f; } .sw-white { background: #fff; }
.preview-card { border: 1px solid #1e1f22; background: #2b2d31; border-radius: 6px; padding: 12px 14px; color: #dbdee1; font: 14px/1.4 var(--sans); max-width: 440px; border-left: 4px solid #1e1f22; }
.preview-card .site-n { font-size: 12px; color: #b5bac1; }
.preview-card .ttl { color: #00a8fc; font-weight: 600; margin: 4px 0; }
.preview-card .dsc { font-size: 13.5px; color: #dbdee1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.preview-card img { display: block; width: 100%; border-radius: 4px; margin-top: 10px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .png-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .post-facts > div { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; } }

/* comments & reports */
.flag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 3px; border: 1px solid currentColor; color: #9a6a00; margin: 0 4px; }
.flag.is-defamatory, .flag.is-not_original { color: var(--accent-ink); }
.notice.is-flagged { border-left-color: #c98a00; background: #fdf8ea; }
.comments { margin-top: 64px; }
.comment-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { border-top: 1px solid var(--rule-strong); padding: 14px 0 12px; }
.comment:last-child { border-bottom: 1px solid var(--rule-strong); }
.comment-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.comment-body { margin-top: 8px !important; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 17px/1.5 var(--serif); color: var(--ink); }
.comment-acts { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.comment-acts .linkish { font-size: 12.5px; }
.comment-form { background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 18px; position: sticky; top: 78px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report { margin-top: 16px; font-size: 14px; }
.report > summary { cursor: pointer; color: var(--muted); list-style: none; display: inline-block; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.report > summary::-webkit-details-marker { display: none; }
.report > summary:hover { color: var(--accent-ink); }
.report[open] > summary { color: var(--ink); }
.report-form { margin-top: 12px; background: var(--sheet); border: 1px solid var(--rule-strong); border-left: 3px solid var(--accent); border-radius: 3px; padding: 16px; max-width: 520px; }
.report.is-inline { margin-top: 0; font-size: 12.5px; }
.report.is-inline .report-form { padding: 10px; }
@media (max-width: 960px) { .comment-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .comment-form { position: static; order: -1; } .comments { margin-top: 44px; } }

/* moderation */
.queue { display: grid; gap: 18px; }
.queue-item { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 3px; padding: 18px; align-items: start; }
.queue-item .quoted { border-left: 3px solid var(--rule-strong); padding-left: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 16px/1.5 var(--serif); margin: 8px 0; }
.queue-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
@media (max-width: 800px) { .queue-item { grid-template-columns: minmax(0, 1fr); } }

/* ── my posts ────────────────────────────────────────────── */
.page-head { padding: 40px 0 26px; }
.page-head h1 { font: 500 clamp(34px, 5vw, 54px)/1 var(--serif); letter-spacing: -.03em; margin-top: 8px; }
.page-head p { margin-top: 12px; color: var(--soft); max-width: 60ch; font: 400 17px/1.5 var(--serif); }
.page-head p.label { margin: 0; font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 28px; align-items: start; }
.shelf .piece-cap { flex-wrap: wrap; }
.empty { border: 1px dashed var(--rule-strong); padding: 48px 24px; text-align: center; color: var(--soft); }
.empty .btn { margin-top: 16px; }

/* about */
.about-proof { max-width: 640px; margin: 0 auto 8px; }
.about-col { max-width: 640px; margin: 36px auto 0; }
.prose .code { margin: 16px 0; font-size: 12.5px; }

/* prose (about) */
.prose { max-width: 68ch; font: 400 18px/1.6 var(--serif); color: var(--soft); }
.prose h2 { font: 500 28px/1.15 var(--serif); letter-spacing: -.02em; color: var(--ink); margin: 40px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose code { font: 400 14px/1.4 var(--mono); background: rgba(26, 24, 20, .06); padding: 1px 5px; border-radius: 2px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
