@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink: #f2f2f2;
  --muted: #989898;
  --paper: #090909;
  --paper-deep: #141414;
  --acid: #f2f2f2;
  --coral: #ffffff;
  --line: #303030;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  --mono: 'DM Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.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; }

.site-shell { max-width: 1360px; margin: 0 auto; padding: 0 48px; overflow: hidden; }
.topbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 26px; height: 82px; justify-content: space-between; }
.brand { align-items: center; display: inline-flex; font-size: 18px; font-weight: 700; letter-spacing: -.05em; }
.brand-mark { align-items: center; background: var(--acid); color: var(--paper); display: inline-flex; font-size: 20px; height: 27px; justify-content: center; margin-right: 8px; width: 27px; }
.topbar-note, .mono-note, .filter-row, .signal-card, .field-hint { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.topbar-note { color: var(--muted); flex: 1; text-align: center; }
.slash { color: var(--coral); margin: 0 5px; }
.status-dot { background: var(--acid); border-radius: 50%; display: inline-block; height: 6px; margin-right: 5px; width: 6px; }
.button { align-items: center; border: 1px solid transparent; display: inline-flex; font-size: 13px; font-weight: 600; gap: 18px; justify-content: center; min-height: 43px; padding: 0 18px; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--acid); color: var(--paper); }
.button-accent { background: var(--acid); color: var(--paper); }
.button-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-wide { width: 100%; }

.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); gap: 9%; min-height: 525px; padding: 105px 8% 90px; }
.eyebrow { color: var(--coral); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; margin: 0 0 23px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(48px, 6vw, 86px); letter-spacing: -.07em; line-height: .93; margin-bottom: 30px; max-width: 760px; }
h1 em { color: var(--coral); font-family: var(--serif); font-weight: 400; letter-spacing: -.08em; }
.hero-text { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 420px; }
.hero-actions { align-items: center; display: flex; gap: 30px; margin-top: 35px; }
.text-link { border-bottom: 1px solid var(--ink); font-size: 13px; padding-bottom: 5px; }
.text-link span { color: var(--coral); margin-left: 12px; }
.hero-aside { align-self: end; padding-bottom: 20px; }
.signal-card { background: #000000; color: var(--paper); padding: 23px 24px 25px; }
.signal-card-top { color: var(--acid); display: flex; justify-content: space-between; }
.signal-icon { font-size: 20px; line-height: 10px; }
.signal-card strong { display: block; font-family: var(--sans); font-size: 68px; letter-spacing: -.08em; line-height: 1; margin: 28px 0 10px; }
.signal-card > span { color: #a0a0a0; line-height: 1.6; }
.signal-line { align-items: end; display: flex; gap: 4px; height: 29px; margin-top: 22px; }
.signal-line i { background: var(--acid); display: block; height: 35%; width: 100%; }
.signal-line i:nth-child(2n) { height: 75%; } .signal-line i:nth-child(3n) { height: 48%; } .signal-line i:nth-child(5n) { height: 94%; }
.aside-caption { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 18px 0 0; max-width: 235px; }

.directory-section { border-top: 1px solid var(--line); padding: 72px 0 100px; }
.section-heading { align-items: end; display: flex; gap: 35px; justify-content: space-between; }
h2 { font-size: clamp(29px, 4vw, 48px); letter-spacing: -.07em; line-height: 1; margin-bottom: 0; }
.directory-controls { align-items: center; display: flex; gap: 10px; }
.search-box { align-items: center; border-bottom: 1px solid var(--ink); display: flex; gap: 8px; min-width: 220px; padding: 8px 0; }
.search-icon { font-size: 20px; line-height: 10px; }
.search-box input { background: transparent; border: 0; color: var(--ink); min-width: 0; outline: 0; width: 100%; }
.search-box input::placeholder { color: var(--muted); }
kbd { border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10px; padding: 3px 5px; }
select { background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 12px; padding: 10px 30px 10px 12px; }
.filter-row { align-items: center; color: var(--muted); display: flex; gap: 17px; margin: 48px 0 20px; }
.filter-rule { background: var(--line); flex: 1; height: 1px; }
.forum-grid { display: grid; gap: 13px; grid-template-columns: repeat(3, 1fr); }
.forum-card { background: #111111; border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 250px; padding: 23px; transition: border-color .2s ease, transform .2s ease; }
.forum-card:hover { border-color: var(--coral); transform: translateY(-4px); }
.card-meta { align-items: center; color: var(--muted); display: flex; font-family: var(--mono); font-size: 10px; justify-content: space-between; letter-spacing: .05em; text-transform: uppercase; }
.card-index { color: var(--coral); }
.forum-card h3 { font-size: 23px; letter-spacing: -.05em; line-height: 1.05; margin: 35px 0 11px; }
.forum-card p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 21px; }
.card-footer { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; margin-top: auto; padding-top: 16px; }
.card-footer a { color: var(--ink); font-family: var(--mono); font-size: 10px; letter-spacing: .03em; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-footer a:hover { color: var(--coral); }
.comment-count { color: var(--muted); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.comment-button { background: transparent; border: 0; color: var(--muted); font-family: var(--mono); font-size: 10px; padding: 0; white-space: nowrap; }
.comment-button:hover { color: var(--coral); }
.owner-actions { align-items: center; display: inline-flex; gap: 10px; }
.danger-button:hover { color: #bdbdbd; }
.empty-state { padding: 75px 20px; text-align: center; }
.empty-mark { color: var(--coral); display: block; font-size: 42px; line-height: 1; }
.empty-state h3 { font-size: 23px; letter-spacing: -.05em; margin: 18px 0 8px; }
.empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }

.footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-family: var(--mono); font-size: 10px; justify-content: space-between; letter-spacing: .06em; padding: 24px 0 28px; text-transform: uppercase; }

.dialog-card { background: var(--paper); border: 1px solid var(--ink); box-shadow: 14px 14px 0 var(--acid); max-width: 510px; padding: 40px; position: relative; width: calc(100vw - 32px); }
dialog { background: transparent; border: 0; padding: 0; }
dialog::backdrop { background: rgba(24, 33, 31, .58); }
.close-button { background: transparent; border: 0; color: var(--ink); font-size: 28px; line-height: 1; padding: 0; position: absolute; right: 24px; top: 20px; }
.close-button:hover { color: var(--coral); }
.dialog-card h2 { font-size: 38px; max-width: 340px; }
.auth-dialog-card h2 { color: var(--ink); }
.dialog-intro { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 17px 0 28px; max-width: 380px; }
.field-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .07em; margin: 18px 0 7px; text-transform: uppercase; }
.auth-dialog-card .field-label { color: var(--ink); font-size: 11px; font-weight: 500; }
.field-label span { color: var(--muted); }
.field-input { background: #111111; border: 1px solid var(--line); border-radius: 0; color: var(--ink); outline: 0; padding: 12px; width: 100%; }
.field-input:focus { border-color: var(--coral); }
.auth-dialog-card .field-input::placeholder { color: #bdbdbd; }
.field-textarea { min-height: 80px; resize: vertical; }
.field-hint { color: var(--muted); font-size: 9px; letter-spacing: 0; line-height: 1.5; margin: 9px 0 20px; text-transform: none; }
.field-hint strong { color: var(--ink); font-weight: 500; }
.form-error { background: #242424; color: #ffffff; font-size: 12px; margin: 12px 0; padding: 10px; }
.auth-switcher { border-bottom: 1px solid var(--line); display: flex; gap: 20px; margin-bottom: 20px; }
.auth-switch { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; padding: 0 0 10px; text-transform: uppercase; }
.auth-switch.active { border-color: var(--ink); color: var(--ink); }
.profile-dialog-card { max-width: 620px; }
.profile-list { border-bottom: 1px solid var(--line); margin: 25px 0 20px; max-height: 300px; overflow-y: auto; }
.profile-item { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 15px; justify-content: space-between; padding: 14px 0; }
.profile-item:first-child { border-top: 0; }
.profile-item strong, .profile-item span { display: block; }
.profile-item strong { font-size: 15px; letter-spacing: -.03em; }
.profile-item span { color: var(--muted); font-family: var(--mono); font-size: 9px; margin-top: 5px; max-width: 390px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.thread-dialog-card { max-height: min(720px, calc(100vh - 32px)); overflow: auto; }
.comments-list { border-bottom: 1px solid var(--line); margin-bottom: 18px; max-height: 220px; overflow-y: auto; }
.comment { border-top: 1px solid var(--line); padding: 13px 0; }
.comment:first-child { border-top: 0; }
.comment-meta { color: var(--coral); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.comment p { color: var(--ink); font-size: 13px; line-height: 1.5; margin: 6px 0 0; white-space: pre-wrap; }
.no-comments { color: var(--muted); font-size: 13px; padding: 5px 0 17px; }

@media (max-width: 800px) {
  .site-shell { padding: 0 20px; }
  .topbar { height: 70px; } .topbar-note { display: none; } .topbar .button { font-size: 11px; min-height: 37px; padding: 0 11px; }
  .hero { display: block; min-height: auto; padding: 75px 0 72px; }
  h1 { font-size: clamp(48px, 14vw, 74px); }
  .hero-aside { margin-top: 60px; max-width: 360px; }
  .section-heading { align-items: start; display: block; }
  .directory-controls { flex-wrap: wrap; margin-top: 30px; }
  .search-box { flex: 1; min-width: 180px; }
  .forum-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .hero-actions { align-items: start; flex-direction: column; gap: 20px; }
  .forum-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 10px; line-height: 1.5; }
  .dialog-card { padding: 30px 22px; }
}
