/* hallmark v2.0.0 | custom (utilitarian, one amber signal) | genre: modern-minimal | signature: connect line in the hero */
/* critique: no cards, no eyebrows, rows separated by hairlines; the only accent is amber on actions */
:root {
  --bg: #0e1011;
  --bg-2: #151819;
  --bg-3: #1c2022;
  --line: #262b2e;
  --text: #e7e5df;
  --muted: #8d9396;
  --accent: #e9b44c;
  --accent-ink: #1a1405;
  --danger: #e5645a;
  --font: "Bahnschrift", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 6px;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-bottom: 72px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
a { color: inherit; text-decoration: none; }
p a, .empty a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
img { display: block; }
h1, h2 { font-weight: 600; margin: 0; overflow-wrap: break-word; min-width: 0; }
h2 { font-size: 1.15rem; margin: 48px 0 12px; }
.muted { color: var(--muted); }
.mono, code { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* шапка */
.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; }
.brand span { color: var(--muted); font-weight: 500; }
.menu { display: flex; gap: 20px; flex: 1; }
.menu a { color: var(--muted); padding: 6px 0; transition: color 0.12s; }
.menu a:hover, .menu a[aria-current] { color: var(--text); }
.who { display: flex; align-items: center; gap: 16px; }
.who form { margin: 0; }
.me { display: flex; align-items: center; gap: 8px; }
.me img { border-radius: 50%; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.btn:hover { background: #f2c76a; border-color: #f2c76a; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-3); border-color: var(--muted); }
.btn.small { padding: 6px 12px; font-size: 0.9rem; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--text); }
.link.danger:hover { color: var(--danger); }

/* первый экран */
.hero { padding: clamp(48px, 9vw, 96px) 0 8px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 14ch; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 46ch; margin: 18px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 32px; }
.connect { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 6px 6px 16px; background: var(--bg-2); }
.connect code { font-size: 0.95rem; overflow-wrap: anywhere; }

/* строки списков */
.rows { border-top: 1px solid var(--line); }
.row {
  display: flex; align-items: center; gap: 18px; padding: 14px 8px;
  border-bottom: 1px solid var(--line); transition: background-color 0.12s;
}
.row:hover { background: var(--bg-2); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row strong { font-weight: 600; overflow-wrap: anywhere; }
.row .grow .muted { font-size: 0.92rem; }
.num { min-width: 110px; text-align: right; white-space: nowrap; font-size: 0.95rem; }
.when { min-width: 96px; text-align: right; white-space: nowrap; font-size: 0.92rem; }
.ava { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-3); flex: none; object-fit: cover; }
.ava.big { width: 56px; height: 56px; }
.empty { color: var(--muted); padding: 24px 0; }

/* страницы */
.crumbs { color: var(--muted); font-size: 0.92rem; padding: 28px 0 8px; }
.crumbs a:hover { color: var(--text); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em; }
.head p { margin: 6px 0 0; }
.mod { display: flex; gap: 8px; }
.mod form { margin: 0; }
.who-big { display: flex; gap: 16px; align-items: center; }
.pager { display: flex; align-items: center; gap: 16px; margin-top: 24px; }

/* сообщения */
.posts { border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.author { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.author .name { font-weight: 600; overflow-wrap: anywhere; }
.author .name:hover { color: var(--accent); }
.tag { color: var(--accent); font-size: 0.85rem; }
.content .meta { font-size: 0.88rem; margin-bottom: 8px; }
.body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.content form { margin: 12px 0 0; }

/* формы */
.stack { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
label { color: var(--muted); font-size: 0.92rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input[type=text], textarea {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 12px; font: inherit; resize: vertical;
}
input[type=text]:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.error { color: var(--danger); margin: 0 0 12px; }
.reply { margin-top: 8px; }

.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; padding: 20px 0; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .post { grid-template-columns: 1fr; gap: 12px; }
  .author { flex-direction: row; align-items: center; gap: 12px; }
  .author .ava.big { width: 36px; height: 36px; }
  .num { display: none; }
  .row .when { min-width: 0; }
  .menu { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:active { transform: none; }
}
