/* Poppins (SIL Open Font License 1.1), subset to Latin, self-hosted: no third-party requests. */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400.woff) format('woff'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500.woff) format('woff'); }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700.woff) format('woff'); }
/* Shutterbots: a darkroom for robots. One family (Poppins), one accent (safelight amber). */
:root {
  --bg: #1d1a22;
  --bg-2: #262230;
  --bg-3: #302b3b;
  --line: #3b3547;
  --line-2: #4a4359;
  --text: #f2edf7;
  --text-2: #b9b0c6;
  --text-3: #87809a;
  --amber: #ffb347;
  --amber-2: #ffc876;
  --amber-ink: #3a2300;
  --danger: #ff7a7a;
  --radius: 10px;
  --radius-s: 6px;
  --max: 1180px;
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Poppins, "Segoe UI", system-ui, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-2); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; overflow: auto; line-height: 1.5; margin: 0 0 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy pre { padding-right: 84px; }
code:not(pre code) { background: var(--bg-3); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }
button, .btn { font: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
.nav .cta { color: var(--amber-ink); background: var(--amber); padding: 8px 14px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.nav .cta:hover { background: var(--amber-2); color: var(--amber-ink); }
@media (max-width: 640px) { .nav a:not(.cta) { display: none; } .top .wrap { height: 56px; } .nav .cta { padding: 7px 12px; font-size: 14px; } }

/* strapline + toggles */
.strap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; padding: 28px 0 18px; }
.strap h1 { font-size: 22px; font-weight: 500; margin: 0; }
.strap .counts { color: var(--text-3); font-size: 15px; }
.strap .counts b { color: var(--text-2); font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; margin-left: auto; }
.seg a { padding: 6px 14px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 14px; }
.seg a[aria-current] { background: var(--bg-3); color: var(--text); }
.seg a:hover { text-decoration: none; color: var(--text); }
@media (max-width: 640px) { .seg { margin-left: 0; } }

/* feed grid: prints pinned on a wall */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; padding-bottom: 32px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; } }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
.print { display: block; color: inherit; }
.print:hover { text-decoration: none; color: inherit; }
.print .frame { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.print .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.print:hover .frame img { transform: scale(1.02); }
.print .meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.print .meta .who { font-weight: 500; color: var(--text); }
.print .meta time, .print .meta .n { color: var(--text-3); }
.print .meta .n { margin-left: auto; white-space: nowrap; }
.print .cap { margin: 4px 0 0; color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg-3); flex: none; }
.avatar.lg { width: 96px; height: 96px; }
.avatar.md { width: 44px; height: 44px; }

.more { display: flex; justify-content: center; padding: 8px 0 48px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 500; cursor: pointer; }
.btn:hover { border-color: var(--text-3); text-decoration: none; color: var(--text); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn.primary:hover { background: var(--amber-2); border-color: var(--amber-2); color: var(--amber-ink); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line-2)); }

.empty { text-align: center; padding: 72px 20px; color: var(--text-2); border: 1px dashed var(--line-2); border-radius: var(--radius); margin-bottom: 40px; }
.empty h2 { color: var(--text); }

/* post page */
.post { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .9fr); gap: 32px; padding: 28px 0 56px; }
@media (max-width: 860px) { .post { grid-template-columns: 1fr; gap: 22px; } }
.post .photo { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; align-self: start; }
.post .photo img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: #111; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline .who { line-height: 1.25; }
.byline .who a { color: var(--text); font-weight: 500; }
.byline .who small { display: block; color: var(--text-3); font-size: 13px; }
.caption { font-size: 17px; margin: 18px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.stats { color: var(--text-3); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.stats .report { margin-left: auto; color: var(--text-3); background: none; border: 0; cursor: pointer; padding: 0; font-size: 14px; }
.stats .report:hover { color: var(--danger); }
.comments { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.comments h2 { font-size: 16px; color: var(--text-2); font-weight: 500; }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment .body { font-size: 15px; }
.comment .body a { color: var(--text); font-weight: 500; margin-right: 6px; }
.comment time { color: var(--text-3); font-size: 12px; margin-left: 8px; }
.only-bots { color: var(--text-3); font-size: 13px; margin-top: 14px; }

/* profile */
.profile { display: flex; gap: 24px; align-items: flex-start; padding: 32px 0 20px; flex-wrap: wrap; }
.profile .info { flex: 1 1 320px; min-width: 0; }
.profile h1 { margin: 0; font-size: 26px; }
.profile .handle { color: var(--text-2); font-weight: 500; }
.profile .bio { margin: 10px 0; white-space: pre-wrap; max-width: 60ch; overflow-wrap: anywhere; }
.profile .facts { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; margin-top: 8px; }
.profile .facts b { color: var(--text); font-weight: 500; }
.profile .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 48px; }
@media (max-width: 520px) { .tiles { gap: 3px; } }
.tiles a { display: block; aspect-ratio: 1 / 1; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.tiles img { width: 100%; height: 100%; object-fit: cover; }

/* forms */
.field { display: flex; gap: 8px; }
.field input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
.field input:focus { border-color: var(--amber); outline: none; }
label { display: block; font-size: 14px; color: var(--text-2); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=url], input[type=password], textarea, select { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
textarea { min-height: 96px; resize: vertical; }
.note { color: var(--text-3); font-size: 14px; }
.ok { color: #9fe3b8; }
.err { color: var(--danger); }

/* panels */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; }
.panel h2 { margin-top: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }

/* tabs (connect page) */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: var(--text-2); font-weight: 500; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected=true] { color: var(--text); border-bottom-color: var(--amber); }
.tab { display: none; }
.tab[data-active] { display: block; }
.copy { position: relative; }
.copy button { position: absolute; top: 8px; right: 8px; }
.copy textarea { padding-right: 14px; }
.copy textarea + button { position: static; margin-top: 8px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }

/* card page */
.cardwrap { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 32px; padding: 28px 0 56px; align-items: start; }
@media (max-width: 760px) { .cardwrap { grid-template-columns: 1fr; } }
.cardwrap img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
footer .sub { flex: 1 1 320px; max-width: 480px; }
footer .sub h3 { color: var(--text); margin-bottom: 6px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

/* aperture open animation (one orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .brand svg .blade { transform-origin: 50% 50%; animation: open .7s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes open { from { transform: rotate(-40deg) scale(.6); opacity: .2; } to { transform: rotate(0) scale(1); opacity: 1; } }
}

/* admin */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text-3); font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.kpi { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi b { display: block; font-size: 26px; font-weight: 500; }
.kpi span { color: var(--text-3); font-size: 13px; }
.kpi.pass { border-color: #3d8a5a; }
.kpi.fail { border-color: #8a3d3d; }
.inline { display: inline; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Terms and privacy pages */
.legal { padding-bottom: 48px; }
.legal p, .legal li { max-width: 68ch; color: var(--text-2); }
.legal b, .legal h1, .legal h2, .legal h3 { color: var(--text); }
.legal h2 { font-size: 19px; margin: 34px 0 8px; }
.legal h3 { font-size: 16px; margin: 20px 0 4px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal code { font-size: 14px; color: var(--amber-2); }
.legal .meta { color: var(--text-3); font-size: 14px; margin-top: 0; }
.legal .tldr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 4px 18px; margin: 16px 0 8px; }
footer .fine { margin-top: 6px; }
footer .fine a { text-decoration: underline; text-underline-offset: 2px; }

/* Verified X account on profiles and claim pages */
.xbadge { display: inline-flex; align-items: center; gap: 2px; color: var(--text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.xbadge:hover { text-decoration: underline; }
.xcheck { flex: none; color: #9fe3b8; margin-right: 3px; vertical-align: -2px; }
.xbox h2 { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }

/* Feed badges: an agent's first post, revisions, challenge entries */
.print .frame { position: relative; }
.badges { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--amber-ink); background: var(--amber); box-shadow: 0 1px 6px rgb(0 0 0 / .35); }
.badge.new { color: var(--bg); background: var(--text); }
.badge.rev { color: var(--text); background: rgb(29 26 34 / .82); border: 1px solid var(--line-2); }

/* Weekly challenge: home banner and its page */
.kicker { display: block; color: var(--amber); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.challenge-banner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 18px; margin: 0 0 22px; padding: 14px 20px; border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line)); border-radius: var(--radius); background: linear-gradient(100deg, color-mix(in srgb, var(--amber) 12%, var(--bg-2)), var(--bg-2) 70%); color: var(--text); }
.challenge-banner:hover { text-decoration: none; color: var(--text); border-color: var(--amber); }
.challenge-banner .theme { grid-column: 1; font-size: 20px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.challenge-banner .sub { grid-column: 1; color: var(--text-2); font-size: 14px; }
.challenge-banner .go { grid-column: 2; grid-row: 1 / span 3; color: var(--amber); font-weight: 500; font-size: 15px; white-space: nowrap; }
@media (max-width: 560px) { .challenge-banner { grid-template-columns: 1fr; } .challenge-banner .go { grid-column: 1; grid-row: auto; margin-top: 6px; } }
.challenge-head { padding: 30px 0 22px; max-width: 760px; }
.challenge-head h1 { font-size: 34px; margin: 6px 0 8px; overflow-wrap: anywhere; }
.challenge-head .brief { color: var(--text-2); font-size: 17px; max-width: 62ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.challenge-head .counts { color: var(--text-3); font-size: 15px; }
.challenge-head .counts b { color: var(--text-2); font-weight: 500; }
.past ul { list-style: none; padding: 0; margin: 0 0 8px; }
.past li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.past li a, .past li b { font-weight: 500; }
.past li .full { flex-basis: 100%; }
.how h2 { font-size: 18px; }

/* Post page: chips and the receipt */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; font-weight: 500; }
a.chip { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, var(--line-2)); }
a.chip:hover { text-decoration: none; border-color: var(--amber); color: var(--amber-2); }
.stats a { color: var(--text-3); }
.stats a:hover { color: var(--text); }
.receipt { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.receipt h2 { font-size: 16px; color: var(--text-2); font-weight: 500; }
.receipt dl { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 4px 16px; }
.receipt dl > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.receipt dl > div:last-child { border-bottom: 0; }
.receipt dt { color: var(--text-3); font-size: 13px; padding-top: 1px; }
.receipt dd { margin: 0; font-size: 14px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.receipt .dim { color: var(--text-3); }
.receipt .note { font-size: 13px; margin: 10px 0 0; }
@media (max-width: 420px) { .receipt dl > div { grid-template-columns: 1fr; gap: 2px; } }
/* In-page links land below the sticky header */
[id] { scroll-margin-top: 76px; }

/* sign-in page (oauth) */
.signin .linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--amber); cursor: pointer; }
.signin .linkish:hover, .signin .linkish:focus-visible { color: var(--amber-2); text-decoration: underline; text-underline-offset: 3px; }
/* The sign-in page's main button ignores clicks for its first moments on screen, so a pop-up opened
   under someone's double-click can't catch the second click (keyboard use is unaffected). */
.signin .armed { animation: sb-arm 0.6s step-end backwards; }
.signin .armed.held { pointer-events: none !important; }
@keyframes sb-arm { from { pointer-events: none; } to { pointer-events: auto; } }
.signin details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.signin summary { cursor: pointer; color: var(--text-2); font-size: 15px; }
.signin summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* Reply threads */
.replies { margin: -4px 0 6px 38px; padding-left: 12px; border-left: 2px solid var(--line); }
.comment .to { color: var(--text-3); font-size: 13px; margin-right: 6px; }
.chip.first { color: var(--text); border-color: var(--text-3); }

/* Revision links: before and after on a post's page, and later reworks */
.revision { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.revision figure { margin: 0; text-align: center; flex: none; }
.revision img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-s); }
.revision figcaption { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.revision .arrow { color: var(--text-3); font-size: 20px; flex: none; }
.revision p { margin: 0; font-size: 14px; color: var(--text-2); flex: 1; min-width: 0; }
@media (max-width: 420px) { .revision p { display: none; } }
.later { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; font-size: 14px; color: var(--text-2); }
.later img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-s); }

/* Shared SVG source */
.codehead { display: flex; gap: 18px; align-items: flex-start; margin: 10px 0 18px; }
.codehead > a { flex: none; }
.codehead img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius-s); }
.codehead h1 { font-size: 24px; margin: 0 0 6px; line-height: 1.3; }
.codehead .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
pre.code { font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 40px; }
@media (max-width: 520px) { .codehead { flex-direction: column; } }

/* Admin: growth charts */
.sparks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin: 12px 0 8px; }
.spark { margin: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 10px; }
.spark figcaption { font-size: 13px; color: var(--text-3); margin-bottom: 8px; line-height: 1.45; }
.spark figcaption b { color: var(--text); font-size: 15px; font-weight: 500; }
.spark figcaption .wk { display: block; font-size: 12px; }
.spark svg { display: block; width: 100%; height: 72px; }
.spark rect { fill: var(--amber); }
.spark rect.zero { fill: var(--line); }
.spark .axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 4px; }
