@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-400.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --paper: #fff7ef;
  --ink: #1f2933;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --coral: #ff6b5a;
  --teal: #2ec4b6;
  --coral-soft: #ffd9d2;
  --teal-soft: #c9f2ee;
  --display: "Archivo Black", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --serif: "Playfair Display", Georgia, serif;
  --pad: clamp(18px, 4vw, 44px);
  --radius: 18px;

  /* kept for the admin screens, which use these names */
  --ink-2: #14161a;
  --ink-3: #22262c;
  --bone: #efe7da;
  --bone-dim: #b6ada0;
  --steel: #8a8478;
  --orange: #ff6b5a;
  --line: rgba(31, 41, 51, 0.12);
  --line-soft: rgba(31, 41, 51, 0.06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
::selection { background: var(--coral-soft); }

.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 var(--pad) 90px; }

header.site { padding: 46px 0 8px; }

/* The shared header (lib/render.mjs siteHeader): the same links in the same
   order on every public page. The brand is the wordmark itself — an <img>
   whose alt is the site name — drawn at one height with the width left to the
   SVG's own 780x190 ratio, so it never stretches. */
.sitebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 0 0; }
.sitebar-brand { display: inline-flex; align-items: center; text-decoration: none; font: 400 1.06rem/1 var(--display); letter-spacing: -.01em; }
.sitebar-brand:hover { color: var(--coral); opacity: .82; }
.brand-mark { display: block; height: 30px; width: auto; }
/* A dark surface draws the light-on-dark twin instead — the same call with
   variant: "light" (public/logo-light.svg), as the admin sign-in card does
   (public/admin.css). The box above is the size either way. */
.sitenav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sitenav a {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 13px;
  font: 700 .62rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.sitenav a:hover { background: var(--teal-soft); }

.toprow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toplinks { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tagpill { display: inline-block; background: var(--coral); color: #fff; border-radius: 999px; padding: 7px 16px; font: 700 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.tagpill a { color: inherit; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, .55); }
.toplink {
  font: 700 .62rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--teal-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 13px;
}
.toplink:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.adminlink { display: inline-block; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 13px; font: 700 .62rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.adminlink:hover { background: var(--teal-soft); }
/* Followers: the count line and the follow control on a profile page. */
.followbox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.followbox .btn { padding: 7px 16px; }
.follow-counts { font: 700 .62rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.follow-counts b { color: var(--ink); }
.follow-msg { font: 700 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }

/* The unread-notification badge in the site header (and on /messages). */
.notify-badge {
  display: inline-block;
  min-width: 26px;
  text-align: center;
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 9px;
  font: 700 .62rem/1 var(--mono);
  letter-spacing: .08em;
  text-decoration: none;
}
.notify-badge:hover { background: var(--ink); }
[hidden].notify-badge, .notify-badge[hidden] { display: none; }

h1 { margin: 18px 0 10px; font: 400 clamp(2.6rem, 8vw, 5.4rem)/.95 var(--display); letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--coral); }
.lede { max-width: 54ch; color: var(--ink-soft); font-size: 1.04rem; margin: 0 0 4px; }
.tagline span { display: block; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.pills span { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 7px 14px; font-size: .76rem; }
.pills b { color: var(--teal); }

section { margin-top: 56px; }
.head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.head h2 { margin: 0; font: 400 clamp(1.4rem, 3.6vw, 2.1rem)/1 var(--display); }
.head h2 a { text-decoration: none; }
.head h2 a:hover { color: var(--coral); }
.head .c { margin-left: auto; background: var(--teal-soft); border-radius: 999px; padding: 5px 12px; font: 700 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.head .c a { text-decoration: none; border-bottom: 1px solid rgba(31, 41, 51, .4); }
.head .c a:hover { color: var(--coral); border-color: var(--coral); }
.desc { color: var(--muted); max-width: 60ch; margin: -6px 0 16px; font-size: .92rem; }
.empty { color: var(--muted); font: 400 .8rem/1 var(--mono); letter-spacing: .08em; padding: 24px 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.cards-single { max-width: 460px; }

.card { margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 6px 6px 0 rgba(31, 41, 51, .12); transition: transform .18s, box-shadow .18s; cursor: pointer; }
.card:hover, .card:focus-visible { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 rgba(255, 107, 90, .35); }
.card-win { position: relative; }
.card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); }
.play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, .92); border: 2px solid var(--ink); transition: background .2s, transform .2s; }
.play::before { content: ""; position: absolute; left: 55%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--ink); }
.card:hover .play { background: var(--coral); border-color: var(--coral); transform: translate(-50%, -50%) scale(1.08); }
.card:hover .play::before { border-left-color: #fff; }
.card .d { display: flex; justify-content: flex-start; align-items: center; gap: 8px; padding: 10px 12px; font: 700 .64rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.card .k { background: var(--coral); color: #fff; border-radius: 999px; padding: 4px 9px; }
.card .dl { margin-left: auto; text-decoration: none; color: var(--muted); font-size: .95rem; }
.card .dl:hover { color: var(--coral); }
/* How often an item has been opened and downloaded (lib/stats.mjs). Its own
   row under the card footer, so the label/spec/report/download row keeps the
   width it always had. */
.card .ct { padding: 0 12px 10px; color: var(--muted); font: 700 .58rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.ct-inline { text-transform: none; letter-spacing: .04em; }
.card.is-new { position: relative; }
.card.is-new::after {
  content: "new";
  position: absolute;
  top: -10px;
  right: -8px;
  z-index: 2;
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font: 700 .56rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(6deg);
}
.card.hidden { display: none; }

.searchbar { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.searchbar input {
  flex: 1;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  font: 400 .95rem/1.2 inherit;
  color: var(--ink);
}
.searchbar input:focus { outline: none; border-color: var(--coral); }
.searchbar .count { font: 700 .62rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
section.filtered-out { display: none; }

.chans { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.chans a { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; box-shadow: 6px 6px 0 rgba(46, 196, 182, .28); transition: box-shadow .18s, transform .18s; }
.chans a:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 rgba(255, 107, 90, .35); }
.chans b { display: block; font: 400 1.2rem/1 var(--display); }
.chans span { font-size: .72rem; color: var(--muted); }

.btn { display: inline-block; font: 700 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 13px 18px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(31, 41, 51, .2); }
.btn-fill { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn-line { background: #fff; color: var(--ink); }
.btn-danger { border-color: var(--coral); color: var(--coral); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }

/* Server-side album pagination (lib/render.mjs): plain anchors, so a client
   with no JavaScript walks the album the same way. */
.pager { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; }
.pager + .cards { margin-top: 0; }
.cards + .pager { margin: 20px 0 0; }
.pager .is-off { opacity: .38; cursor: default; }
.pager .is-off:hover { transform: none; box-shadow: none; }
.pager-pos { font: 700 .62rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.sharebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; padding: 11px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--teal-soft); font: 700 .6rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.sharebar a { margin-left: auto; text-decoration: none; border-bottom: 2px solid var(--ink); }
.sharebar a:hover { color: var(--coral); border-color: var(--coral); }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.lockform { max-width: 420px; display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.lockform label { font: 700 .58rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lockform input { background: #fff; border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); font-family: var(--mono); font-size: .95rem; padding: 13px; }
.lockerror { color: var(--coral); font-size: .74rem; margin: 0; }

.mail { font-family: var(--display); font-size: clamp(1.1rem, 3.4vw, 1.7rem); color: var(--coral); text-decoration: none; border-bottom: 3px solid transparent; }
.mail:hover { border-color: var(--coral); }

pre.key {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px;
  font: 400 .68rem/1.5 var(--mono);
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--ink-soft);
  max-height: 320px;
  overflow: auto;
}
.fingerprint { font: 700 .66rem/1.6 var(--mono); letter-spacing: .08em; color: var(--ink-soft); margin: 0 0 12px; }
.fingerprint code { display: inline-block; background: var(--teal-soft); border-radius: 6px; padding: 4px 8px; word-break: break-all; }
.keycopy { margin-bottom: 12px; }
#pgp-key pre.key { margin-top: 0; }

.contactform { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 rgba(31, 41, 51, .12); padding: 20px; max-width: 620px; }
.contactform .row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.contactform label { font: 700 .58rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.contactform label span { color: var(--muted); letter-spacing: .06em; text-transform: none; font-weight: 400; }
.contactform input, .contactform textarea, .contactform select {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: 400 .95rem/1.5 inherit;
  color: var(--ink);
  width: 100%;
}
.contactform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 38px; }
.contactform textarea { resize: vertical; }
.contactform input:focus, .contactform textarea:focus, .contactform select:focus { outline: none; border-color: var(--coral); }
.contactform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contactform .submit { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }
.form-note { font: 400 .6rem/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.form-notice { border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font: 700 .68rem/1.5 var(--mono); letter-spacing: .04em; }
.form-notice.ok { background: var(--teal-soft); }
.form-notice.bad { background: var(--coral-soft); }

/* Inline form validation. Empty means silent: the slot only takes up room once
   a message has been put in it, and the field it belongs to is marked
   aria-invalid at the same moment. */
.field-error { display: block; font: 700 .64rem/1.5 var(--mono); letter-spacing: .04em; color: #b3261e; }
.field-error:empty { display: none; }
.contactform [aria-invalid="true"] { border-color: #b3261e; }
.signup-summary { margin-bottom: 14px; }

.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--pad); background: rgba(31, 41, 51, .5); backdrop-filter: blur(6px); }
.gate-inner { width: min(520px, 100%); background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 10px 10px 0 rgba(255, 107, 90, .4); padding: 30px 28px 26px; }
.gate-mark { display: flex; align-items: center; gap: 8px; font: 700 .6rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.gate-big { font: 400 clamp(3.4rem, 14vw, 5.6rem)/.85 var(--display); margin: 0 0 10px; color: var(--coral); }
.gate h2 { margin: 0 0 12px; font: 400 clamp(1.1rem, 3.4vw, 1.5rem)/1.1 var(--display); }
.gate-copy { color: var(--ink-soft); font-size: .94rem; margin: 0 0 22px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); background: rgba(31, 41, 51, .84); backdrop-filter: blur(8px); }
.lb-monitor { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 3px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 12px 12px 0 rgba(46, 196, 182, .4); max-width: min(94vw, 1160px); }
.lb-top, .lb-bot { display: flex; align-items: center; gap: 12px; padding: 9px 13px; background: #fff; font: 700 .58rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lb-top { border-bottom: 2px solid var(--ink); }
.lb-bot { border-top: 2px solid var(--ink); }
.lb-top .rec { margin-right: 6px; }
.lb-cap { color: var(--ink); }
.lb-actions { display: flex; gap: 8px; margin-left: auto; }
.lb-btn { font: 700 .58rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.lb-btn:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.lb-hint { color: var(--muted); }
.lb-stage { display: grid; place-items: center; background: #f4ece2; }
.lb-stage img, .lb-stage video { display: block; max-width: min(90vw, 1120px); max-height: 72vh; width: auto; height: auto; }
.lb-close, .lb-prev, .lb-next { position: fixed; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); border: 2px solid var(--ink); font-family: var(--mono); font-size: 1rem; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--coral); border-color: var(--coral); color: #fff; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 85; background: var(--ink); color: var(--paper); font: 700 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 13px 18px; border-radius: 999px; box-shadow: 4px 4px 0 rgba(255, 107, 90, .5); }

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }

@media (max-width: 620px) {
  .lb-hint { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
  .card img { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { transition: none !important; }
}

.comments { margin-top: 2.5rem; border-top: 2px solid var(--ink, #111); padding-top: 1.25rem; }
.comments-title { font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; }
.c-count { opacity: .6; font-size: .8rem; }
.comment { border-bottom: 1px solid rgba(0,0,0,.15); padding: .6rem 0; }
.c-meta { font-size: .78rem; opacity: .75; display: flex; gap: .6rem; align-items: baseline; }
.c-user { text-transform: lowercase; }
.c-body { margin: .25rem 0 0; white-space: normal; }
.c-del { background: none; border: 0; color: inherit; opacity: .5; cursor: pointer; font: inherit; text-decoration: underline; }
.c-del:hover { opacity: 1; }
.comment-form { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; max-width: 42rem; }
.comment-form textarea { font: inherit; padding: .6rem; border: 2px solid var(--ink, #111); background: transparent; color: inherit; resize: vertical; }
.c-msg { font-size: .8rem; opacity: .7; }
.c-empty, .c-signin { opacity: .7; }

/* --- legal pages, signup attestation, site footer ------------------------ */
.legal-banner {
  margin: 30px 0 8px;
  padding: 16px 18px;
  background: var(--coral-soft);
  border: 2px dashed var(--coral);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-banner-flag { font: 700 .68rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.legal-banner span { font-size: .86rem; color: var(--ink-soft); max-width: 78ch; }
.legal-banner-meta { font: 700 .66rem/1.6 var(--mono); letter-spacing: .04em; }
/* The version/date/contact strip that heads a legal document. Only the facts
   the operator configured are in it. */
.legal-meta { font: 700 .66rem/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft, #5b6470); margin: 10px 0 0; }
.legal-meta code, .legal-meta time { font: inherit; letter-spacing: inherit; }
.legal-banner code, .legal-list code, .legal-note code {
  font: 700 .82em/1 var(--mono);
  background: rgba(31, 41, 51, .07);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}
.legal-sec { margin-top: 40px; }
.legal-note {
  border-left: 4px solid var(--teal);
  background: var(--teal-soft);
  padding: 10px 14px;
  border-radius: 0 12px 12px 0;
  font: 700 .72rem/1.6 var(--mono);
  letter-spacing: .02em;
  max-width: 78ch;
}
.legal-list { max-width: 78ch; padding-left: 1.2rem; margin: 0 0 16px; color: var(--ink-soft); font-size: .92rem; }
.legal-list li { margin-bottom: 8px; }
.legal-placeholders li { font-size: .88rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-links a {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font: 700 .62rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.legal-links a:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.legal-foot {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.legal-foot-note { font: 700 .6rem/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); max-width: 46ch; }
.legal-foot .legal-links { margin-left: auto; }
.contactform .attest { border: 2px solid var(--ink); border-radius: 12px; padding: 14px; gap: 10px; }
.contactform .attest-head { font: 700 .58rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.contactform .check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.contactform .check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--coral); }
.contactform .check a { color: var(--ink); }

/* --- abuse reports: the public report control + its dialog --------------- */
.c-report {
  background: none;
  border: 0;
  color: inherit;
  opacity: .5;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.c-report:hover { opacity: 1; }
.card .c-report {
  margin-left: auto;
  text-decoration: none;
  color: var(--muted);
  font: 700 .58rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card .c-report:hover { color: var(--coral); }
.report-dialog {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  max-width: 34rem;
  width: min(92vw, 34rem);
  padding: 20px;
}
.report-dialog::backdrop { background: rgba(31, 41, 51, .45); }
.report-form { display: flex; flex-direction: column; gap: 10px; }
.report-form h2 { margin: 0; font: 700 1rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.report-what { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.report-form textarea {
  font: inherit;
  padding: .6rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: inherit;
  resize: vertical;
}
.report-note { margin: 0; font-size: .74rem; color: var(--muted); }
.report-form label.report-field { display: flex; flex-direction: column; gap: 6px; font: 700 .58rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.report-form label.report-field span { color: var(--muted); }
.report-form select {
  font: inherit;
  padding: .55rem .6rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: inherit;
}
.report-form label.report-check { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: var(--ink-soft); }
.report-form label.report-check input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--coral); }
.report-more { margin: 0; font-size: .74rem; }
.report-more a { color: var(--ink); }
.report-form menu { display: flex; gap: 10px; justify-content: flex-end; margin: 0; padding: 0; }
.report-msg { font-size: .8rem; color: var(--coral); }
.report-notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 60;
  margin: 0;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font: 700 .62rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --- the public /report form --------------------------------------------- */
/* The same form furniture as the contact page, plus the two things a report
   form needs: a category picker and a plain-language list of what the
   categories mean. The "hidden immediately" marker is not decoration — it is
   the promise the two fast categories make, next to the label that makes it. */
.contactform .c-help { font: 400 .68rem/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.report-cats { margin: 0; max-width: 720px; }
.report-cats dt { font: 700 .74rem/1.4 var(--mono); letter-spacing: .06em; margin-top: 14px; }
.report-cats dt:first-child { margin-top: 0; }
.report-cats dt .fast { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--coral-soft); color: var(--ink); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.report-cats dd { margin: 4px 0 0; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }

/* --- profile photos ------------------------------------------------------- */
/* One shape for the mark everywhere it is drawn: a rounded square, cropped to
   fill (object-fit), so a photograph and the SVG generated from a username sit
   in the same box on a page, in the directory and in the admin panel. The
   width/height attributes on the tag are what reserves the space; these rules
   only say how the picture fills it, so nothing shifts when it arrives. */
.avatar {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--coral-soft);
  border: 2px solid var(--ink);
  flex: 0 0 auto;
}
.avatar.site-avatar { width: 72px; height: 72px; margin: 4px 0 10px; }

/* --- a private page ------------------------------------------------------- */
/* What a visitor gets instead of somebody's archive. Deliberately plain: an
   avatar, the username and the notice, which is everything a private page
   publishes (lib/store.mjs pageVisibility). */
.private-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 720px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--coral-soft);
}
.private-card .avatar { width: 96px; height: 96px; border-radius: 22px; }
.private-body { min-width: 0; }
.private-name { margin: 0 0 6px; font: 400 1.3rem/1.2 var(--display); letter-spacing: -.01em; }
.private-body .desc { margin: 0 0 8px; }

/* --- the member directory (/members) ------------------------------------- */
/* A grid of cards, each one an avatar and a name. Cards a visitor can open are
   links; the whole card is the target, so the tap area is not the username
   alone. Nothing here is a media thumbnail: the directory lists people, and the
   only image on the page is a profile photo. */
.members-search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 20px;
  max-width: 720px;
}
.members-search input[type="search"] {
  flex: 1 1 260px;
  min-width: 0;
  font: inherit;
  padding: .6rem .7rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: inherit;
  border-radius: 10px;
}
.members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.member {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: rgba(255, 255, 255, .5);
  color: inherit;
  text-decoration: none;
}
.member:hover { background: var(--teal-soft); }
.member-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.member-user { font: 700 .92rem/1.3 var(--mono); letter-spacing: .02em; word-break: break-all; }
.member-name { font-size: .8rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-bio { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The random picks on the landing page (lib/homepage.mjs, drawn by
   renderLanding). Plain links, not the gallery cards: the landing page loads no
   viewer script, and the media behind these thumbnails is behind the age gate. */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pick {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(31, 41, 51, .12);
}
.pick-win { display: block; position: relative; }
.pick-win img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); }
.pick-none {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-bottom: 2px solid var(--ink);
  background: var(--teal-soft);
  color: var(--muted);
  font: 700 .6rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pick figcaption { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; min-width: 0; }
.pick-user { font: 700 .78rem/1.3 var(--mono); letter-spacing: .02em; color: var(--ink); text-decoration: none; word-break: break-all; }
.pick-user:hover { color: var(--coral); }
.pick-meta { font: 700 .58rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picks-gate {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px;
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--teal-soft);
}
.picks-gate p { margin: 0; font-size: .86rem; color: var(--ink-soft); max-width: 60ch; }
.picks-gate .btn { text-decoration: none; }

