:root {
  color-scheme: dark;
  --background: #101113; --panel: #17181b; --panel-alt: #1e2024; --line: #303137;
  --text: #f3f1f2; --muted: #aaa9b0; --accent: #ff5364; --accent-ink: #24080e;
  --focus: #ff9aa4; --width: 1150px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--background);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
body.community { --accent: #c1f476; --focus: #d0fc9e; --accent-ink: #16210d; }
main { flex: 1; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 7vw, 5.15rem); letter-spacing: -.062em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.17rem; }
p { line-height: 1.65; }
[hidden] { display: none !important; }
.frame { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 4; background: var(--accent); color: var(--accent-ink); padding: .8rem; transform: translateY(-160%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.header, .footer { border-bottom: 1px solid var(--line); background: #111215; }
.header-inner, .footer .frame { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand, .nav a, .footer a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .7rem; white-space: nowrap; font-size: 1.06rem; font-weight: 750; }
.brand b { color: var(--accent); }
.brand-box { display: grid; place-items: center; min-width: 37px; height: 34px; border: 1px solid var(--accent); border-radius: 3px; background: #31171e; color: #ff97a0; font: 750 .84rem ui-monospace, monospace; }
.community .brand-box { background: #22301d; color: var(--accent); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.35rem; color: #dfdde0; font-size: .9rem; }
.nav a:hover, .footer a:hover { color: var(--accent); }
.nav form, .actions form { margin: 0; }
.footer { border: 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer .frame { min-height: 73px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 0; padding: .58rem .95rem; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: transparent; text-align: center; text-decoration: none; font-weight: 700; font-size: .89rem; line-height: 1.35; }
.button.quiet:hover { background: var(--panel-alt); color: var(--text); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.primary:hover { filter: brightness(1.15); }
.button.danger { color: #ffa6ae; border-color: #71414a; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.eyebrow { display: block; margin-bottom: .85rem; text-transform: uppercase; font: 700 .82rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; color: var(--accent); }
.eyebrow > span { display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: .42rem; box-shadow: 0 0 18px #ff536455; transform: rotate(45deg); }
.lede { color: var(--muted); font-size: 1.065rem; max-width: 60ch; margin-top: .9rem; }
.muted, .empty { color: var(--muted); }
.empty { padding: 1rem 0; }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 77% 55%, #34191f, transparent 62%); }
.hero::before { position: absolute; pointer-events: none; content: ""; inset: 0; background: linear-gradient(#ea87901a 1px, transparent 1px), linear-gradient(90deg,#ea87901a 1px,transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(ellipse at 77% 55%, #000 4%, transparent 69%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 6vw, 5rem); min-height: 452px; padding-block: 4.2rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-panel { padding: 1.6rem; border: 1px solid #693640; border-radius: 10px; background: linear-gradient(140deg,#2c1a20,#151417 88%); box-shadow: 0 18px 50px #0005; }
.hero-panel > a { text-decoration: none; }
.hero-panel > a:hover { color: var(--focus); }
.hero-panel p { color: var(--muted); margin-top: .85rem; }
.hero-byline { border-top: 1px solid #433138; margin-top: 1.4rem; padding-top: .85rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .875rem; }
.hero-byline a { text-decoration: none; }
.hero-byline > span:last-child { color: var(--focus); margin-inline-start: auto; }
.page { padding-block: clamp(2.3rem, 5vw, 4rem); }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.section-top .muted { margin-top: .45rem; }
.collection { margin-top: 2.8rem; }
.collection h2 + :is(.post-grid,.achievement-list,.people,.dash-list) { margin-top: 1rem; }
.topic-nav, .tags, .profile-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.topic-nav a, .tags a { border: 1px solid var(--line); background: #17191c; border-radius: 5px; padding: .55rem .72rem; color: #e7dce0; font-size: .88rem; text-decoration: none; }
.topic-nav a:hover, .tags a:hover { color: var(--focus); border-color: #7f434e; }
.tags { margin: 1rem 0; }
.post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; }
.post-card { display: flex; flex-direction: column; min-height: 170px; padding: 1.05rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.post-card h3 a, .card-author a { text-decoration: none; }
.post-card h3 a:hover, .card-author a:hover { color: var(--focus); }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; font: 650 .81rem/1.5 ui-monospace,monospace; color: var(--muted); margin-bottom: .55rem; }
.meta a { text-decoration: none; color: var(--accent); }
.post-card p { color: var(--muted); margin: .55rem 0 1rem; font-size: .94rem; }
.card-author { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: auto; font-size: .88rem; }
.avatar { display: inline-grid; position: relative; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 8px; overflow: hidden; color: var(--focus); background: #321f29; border: 1px solid #73414d; font: 700 .86rem ui-monospace,monospace; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.tiny { width: 26px; height: 26px; border-radius: 5px; font-size: .69rem; }
.avatar.large { width: clamp(74px, 18vw, 128px); height: clamp(74px, 18vw, 128px); font-size: 1.65rem; }
.people { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .9rem; }
.person { display: flex; align-items: center; gap: .75rem; padding: .85rem; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; text-decoration: none; }
.person:hover { border-color: var(--accent); }
.person small { display: block; font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.panel { border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.profile-hero { padding: clamp(1rem,5vw,2rem); display: flex; align-items: flex-start; gap: 1.4rem; background: linear-gradient(120deg,#29181d,var(--panel) 80%); }
.handle { font: .95rem/1.6 ui-monospace,monospace; color: var(--focus); margin-top: .6rem; }
.profile-links { margin-top: .75rem; }
.profile-links a, .back, .report-facts a, .achievement-list a, .prose a { color: var(--focus); text-underline-offset: .23em; }
.achievement-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.achievement-list li { padding: 1rem 1.2rem; }
.achievement-list time { color: var(--muted); font-size: .85rem; }
.achievement-list h3, .achievement-list p { margin-top: .4rem; }
.achievement-list a { display: inline-block; margin: .55rem .85rem 0 0; }
.article { max-width: 850px; }
.article h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.article > .card-author, .report-facts { margin-top: 1.15rem; }
.report-facts { display: grid; gap: .75rem; padding: 1rem; }
.report-facts > div { display: grid; grid-template-columns: 8rem minmax(0,1fr); gap: .7rem; }
.report-facts dt { color: var(--accent); font-weight: 700; }
.report-facts dd { margin: 0; overflow-wrap: anywhere; }
.prose { line-height: 1.75; margin-top: 2rem; overflow-wrap: anywhere; }
.prose :is(p,ul,ol,table,blockquote,pre,h2,h3) { margin-block: 1.05rem; }
.prose pre { overflow: auto; padding: 1rem; color: #ffc8cf; background: #08090b; border: 1px solid var(--line); border-radius: 7px; }
.prose blockquote { border-left: 2px solid var(--accent); margin-inline: 0; padding-inline-start: 1rem; color: var(--muted); }
.prose table { border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem; text-align: left; }

.narrow { max-width: 590px; }
.editor { max-width: 850px; }
.back { display: inline-block; margin-bottom: 1rem; }
.form { padding: clamp(1rem, 4vw, 1.7rem); margin-top: 1.25rem; }
.form > form + form { margin-top: .8rem; }
.stack { display: grid; gap: .9rem; }
.form label { display: grid; gap: .35rem; font-size: .93rem; font-weight: 650; }
input, select, textarea { min-width: 0; background: #101114; color: var(--text); border: 1px solid #45454f; border-radius: 5px; padding: .65rem .75rem; min-height: 44px; }
textarea { resize: vertical; }
select { color: var(--text); background: #101114; }
.form .button { width: fit-content; }
.form .provider { width: 100%; }
.search { display: flex; align-items: stretch; gap: .45rem; max-width: 100%; }
.search input { flex: 1; }
.form details summary, .delete summary { cursor: pointer; color: var(--focus); }
.form .disclosure { margin-top: .7rem; }
.delete { margin-top: 1rem; }
.delete form { margin-top: .65rem; }
.notice { padding: .65rem .85rem; border: 1px solid #814450; border-radius: 5px; color: #ffd1d5; background: #302126; }
.dash-list { display: grid; gap: .6rem; }
.dash-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.05rem; }
.community-card { padding: 1.35rem; }
.community-card h2, .community-card .meta { margin-bottom: .8rem; }

.preview-strip { border-bottom: 1px solid #47303a; background: #261a20; color: #ffd2da; font-size: .82rem; }
.preview-strip .frame, .preview-strip nav { min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; }
.preview-strip .frame { padding-block: .3rem; justify-content: space-between; }
.preview-strip nav a { padding: .2rem .1rem; text-underline-offset: .15rem; }
@media (max-width: 760px) {
  .frame { width: calc(100% - 36px); }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-block: 3rem; }
  .post-grid, .people { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 500px) {
  .header-inner { align-items: start; min-height: 62px; padding-block: .7rem; gap: .65rem; }
  .nav { justify-content: flex-end; gap: .35rem .55rem; font-size: .81rem; }
  .nav .button { min-height: 34px; padding: .3rem .52rem; }
  .brand { font-size: .95rem; }
  .brand-box { min-width: 28px; height: 28px; }
  .post-grid, .people { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; }
  .report-facts > div { grid-template-columns: 1fr; gap: .2rem; }
}
.meetup-cover { width: min(100%,900px); height: auto; display: block; margin-top: 1rem; border: 1px solid var(--line); border-radius: 9px; }
