* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--accent); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.page { max-width: 1360px; margin: 0 auto; padding: 24px 44px 26px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; width: max-content; margin-left: -5px; color: var(--text); text-decoration: none; border-radius: 7px; }
.brand-mark { display: block; width: 78px; height: 78px; }
.brand-type { display: flex; flex-direction: column; transform: translateY(-5px); }
.brand-name { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 47.32px; font-weight: 750; line-height: .84; letter-spacing: -.065em; }
.brand-tagline { padding-left: 2px; margin-top: 3px; color: var(--secondary); font-size: 10px; line-height: 1.35; letter-spacing: .015em; white-space: nowrap; }
.icon { flex-shrink: 0; display: block; filter: invert(88%) sepia(13%) saturate(513%) hue-rotate(105deg) brightness(91%) contrast(88%); }
.back-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; border-radius: 4px; }
.back-link:hover { color: var(--accent-hover); }
.back-link .icon { transition: transform .18s ease; }
.back-link:hover .icon { transform: translateX(3px); }
.intro { margin-top: 46px; }
h1 { margin: 0; font-size: clamp(42px, 4.5vw, 64px); font-weight: 550; line-height: 1.08; letter-spacing: -.045em; }
.intro > p { margin: 12px 0 0; color: var(--secondary); font-size: clamp(18px, 1.65vw, 24px); line-height: 1.6; letter-spacing: -.012em; }
.mobile-compose { display: none; }
.board { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; margin-top: 26px; }
.feedback { min-width: 0; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; border-bottom: 1px solid var(--line); }
.filters { display: flex; align-self: stretch; gap: 32px; }
.filter { position: relative; padding: 0 9px 3px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--secondary); font-size: 18px; font-weight: 450; transition: color .15s ease, border-color .15s ease; }
.filter:first-child { padding-left: 9px; padding-right: 9px; }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; filter: none; }
.select-wrap select { appearance: none; padding-right: 42px; }
.sort-wrap { flex-shrink: 0; padding-bottom: 6px; }
.sort-wrap select { width: 166px; height: 40px; padding-left: 14px; border: 1px solid #687269; border-radius: 7px; background: transparent; color: var(--text); font-size: 15px; }
.sort-wrap .icon { margin-top: -3px; filter: invert(91%); }
.sort-wrap option { background: var(--surface); }
.list-caption { margin: 30px 0 6px; font-size: 14px; color: var(--secondary); line-height: 1.5; }
.entry { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 36px; padding: 18px 0 15px; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry-content { min-width: 0; overflow-wrap: anywhere; }
.entry-type { margin: 0 0 4px; color: var(--secondary); font-size: 14px; line-height: 1.5; }
.entry-title { margin: 0; color: var(--text); font-size: 22px; font-weight: 550; line-height: 1.3; letter-spacing: -.025em; }
.entry-body { margin: 5px 0 0; color: var(--secondary); font-size: 16.5px; line-height: 1.55; white-space: pre-line; }
.entry-meta { display: flex; flex-wrap: wrap; column-gap: 8px; margin: 8px 0 0; color: #a6afa6; font-size: 14px; line-height: 1.6; }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; align-self: start; width: 74px; height: 76px; margin-top: 7px; padding: 8px; border: 1px solid #939c93; border-radius: 9px; background: transparent; color: var(--text); transition: border-color .16s ease, background .16s ease, color .16s ease; }
.vote .icon { width: 27px; height: 27px; }
.vote-count { font-size: 19px; font-weight: 650; line-height: 1.25; font-variant-numeric: tabular-nums; }
.vote:hover { border-color: var(--accent); background: #1b2822; }
.vote[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.vote[aria-pressed="true"] .icon { filter: none; }
.vote:active { transform: translateY(1px); }
.composer { border: 1px solid var(--accent); border-radius: 14px; padding: 28px 26px 27px; scroll-margin-top: 24px; }
.composer h2 { margin: 0 0 22px; font-size: 30px; line-height: 1.25; font-weight: 550; letter-spacing: -.025em; }
.field { margin-top: 19px; }
.field:first-child { margin-top: 0; }
.field label { display: block; margin-bottom: 8px; color: var(--text); font-size: 16px; line-height: 1.5; }
input, .composer select, textarea { display: block; width: 100%; border: 1px solid #d4ddd6; border-radius: 7px; background: #fff; color: #14251f; color-scheme: light; font-size: 16px; line-height: 1.45; box-shadow: none; }
input, .composer select { height: 47px; padding: 10px 14px; }
input::placeholder, textarea::placeholder { color: #59635d; opacity: 1; }
textarea { min-height: 145px; padding: 12px 14px; resize: vertical; }
.post-button { display: block; width: 100%; min-height: 51px; margin-top: 20px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #101a15; font-size: 17px; font-weight: 650; transition: background .16s ease; }
.post-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.post-button:active { transform: translateY(1px); }
.form-note { margin: 12px 0 0; color: var(--secondary); font-size: 14px; line-height: 1.5; text-align: center; }
.form-status { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--accent); font-size: 15px; line-height: 1.5; }
.empty-state { padding: 44px 0; }
.empty-state h2 { font-size: 24px; font-weight: 550; }
.empty-state p { color: var(--secondary); }
footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 14px; color: var(--muted); }
footer small { font-size: 12px; line-height: 1.5; }
.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; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 10; padding: 12px; background: var(--accent); color: var(--on-accent); border-radius: 7px; }
.skip-link:focus { top: 16px; }
[hidden] { display: none !important; }
@media (max-width: 1190px) {
  .page { padding-inline: 36px; }
  .board { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .filters { gap: 12px; }
  .filter { padding-inline: 5px; font-size: 16px; }
  .sort-wrap select { width: 142px; font-size: 14px; padding-left: 10px; }
  .entry { grid-template-columns: 62px minmax(0, 1fr); gap: 22px; }
  .vote { width: 62px; height: 70px; }
  .entry-title { font-size: 21px; }
  .composer { padding-inline: 22px; }
  .composer h2 { font-size: 27px; }
}
@media (max-width: 960px) {
  .board { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 22px; }
  .composer { max-width: 560px; width: 100%; justify-self: center; padding: 26px; }
  .mobile-compose { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 15px; font-weight: 600; text-decoration: none; }
  .mobile-compose .icon { transform: rotate(90deg); }
  .filters { gap: 25px; }
  .list-caption { margin-top: 24px; }
  .entry { grid-template-columns: 66px minmax(0, 1fr); gap: 24px; }
  .vote { width: 66px; height: 72px; }
  footer { margin-top: 36px; }
}
@media (max-width: 600px) {
  .page { padding: 20px 22px 24px; }
  .site-header { gap: 10px; }
  .brand-mark { width: 55px; height: 55px; }
  .brand-name { font-size: 34px; }
  .brand-type { transform: translateY(-3px); }
  .brand-tagline { font-size: 7px; margin-top: 2px; }
  .back-link { gap: 5px; font-size: 12px; font-weight: 550; }
  .back-link .icon { width: 16px; height: 16px; }
  .intro { margin-top: 38px; }
  h1 { max-width: 8em; font-size: clamp(38px, 10.5vw, 48px); line-height: 1.08; }
  .intro > p { margin-top: 16px; font-size: 17px; line-height: 1.6; max-width: 26em; }
  .board { margin-top: 22px; }
  .list-toolbar { flex-wrap: wrap; gap: 14px; padding-bottom: 13px; }
  .filters { width: 100%; justify-content: space-between; gap: 10px; min-height: 44px; }
  .filter { padding: 0 6px 8px; font-size: 16px; }
  .sort-wrap { margin-left: auto; padding: 0; }
  .sort-wrap .icon { margin-top: 0; }
  .sort-wrap select { height: 38px; }
  .list-caption { margin-top: 20px; margin-bottom: 4px; font-size: 12px; }
  .entry { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding-block: 20px; }
  .vote { width: 52px; height: 64px; margin-top: 4px; gap: 2px; }
  .vote .icon { width: 22px; height: 22px; }
  .vote-count { font-size: 17px; }
  .entry-type { font-size: 12px; margin-bottom: 5px; }
  .entry-title { font-size: 20px; line-height: 1.3; }
  .entry-body { font-size: 15px; line-height: 1.6; margin-top: 7px; }
  .entry-meta { font-size: 12px; column-gap: 6px; margin-top: 9px; }
  .composer { padding: 24px 20px; }
  .composer h2 { font-size: 27px; }
  footer { flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
button:disabled { cursor: wait; opacity: .6; }
.list-status { color: var(--secondary); font-size: 15px; line-height: 1.6; }
.text-button { padding: 10px 0; border: 0; background: none; color: var(--accent); font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
#load-more { margin-top: 20px; }
.form-status[data-error="true"] { color: #f0b8ad; }
.entry-title:focus { outline: none; }
