:root {
  --forest: #1b493f;
  --forest-dark: #10372f;
  --cream: #fff7e6;
  --paper: #fbfaf5;
  --orange: #f47d45;
  --yellow: #f5c95c;
  --ink: #17231f;
  --muted: #6b7771;
  --line: #dfe3dc;
  --white: #fff;
  --max: 1420px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: Manrope, system-ui, sans-serif; line-height: 1.45; }
button { font: inherit; }
.site-header { width: min(var(--max), calc(100% - 48px)); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--forest); font-family: Nunito, sans-serif; font-size: 1.55rem; font-weight: 900; text-decoration: none; }
.paw { width: 40px; height: 40px; display: grid; place-items: center; color: var(--cream); background: var(--forest); border-radius: 13px 13px 18px 18px; font-size: 1.8rem; line-height: 1; }
.header-meta { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .77rem; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.read-only { padding: 7px 11px; color: var(--forest); background: #e7f0ec; border-radius: 999px; }
.category-nav { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 16px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.nav-item { flex: 0 0 auto; padding: 9px 15px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 700; cursor: pointer; transition: .2s ease; }
.nav-item:hover { color: var(--forest); border-color: #9eb6ac; }
.nav-item.is-active { color: var(--cream); background: var(--forest); border-color: var(--forest); }
main { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.welcome { min-height: 560px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border-radius: 28px; color: var(--white); background: var(--forest); }
.welcome > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welcome-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,48,40,.92) 0%, rgba(10,48,40,.66) 42%, rgba(10,48,40,.1) 72%), linear-gradient(0deg, rgba(0,0,0,.35), transparent 40%); }
.welcome-copy { position: relative; z-index: 1; max-width: 760px; padding: clamp(30px, 6vw, 78px); padding-bottom: 115px; }
.week-label { display: inline-block; margin-bottom: 18px; padding: 7px 11px; color: var(--forest-dark); background: var(--yellow); border-radius: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 18px; font-family: Nunito, sans-serif; font-size: clamp(2.8rem, 6vw, 6.2rem); line-height: .88; letter-spacing: -.055em; }
.welcome-copy p { max-width: 630px; margin: 0; color: rgba(255,255,255,.85); font-size: clamp(1rem, 1.8vw, 1.25rem); }
.welcome-stats { position: absolute; z-index: 1; left: clamp(30px, 6vw, 78px); bottom: 32px; display: flex; gap: 12px; }
.welcome-stats div { min-width: 120px; padding: 14px 17px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; backdrop-filter: blur(10px); }
.welcome-stats strong { display: block; font-family: Nunito, sans-serif; font-size: 1.45rem; }
.welcome-stats span { color: rgba(255,255,255,.72); font-size: .7rem; }
.forum-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .62fr); gap: 34px; padding: 72px 0 90px; }
.section-heading { min-height: 92px; display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 2px solid var(--forest); }
.section-heading span, .card-kicker { color: var(--orange); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section-heading h2 { margin: 6px 0 0; font-family: Nunito, sans-serif; font-size: clamp(1.8rem, 3vw, 3.1rem); line-height: 1; }
.section-heading p { margin: 0; color: var(--muted); font-size: .76rem; text-align: right; }
.thread { display: grid; grid-template-columns: 58px 1fr auto; gap: 20px; align-items: center; min-height: 140px; padding: 23px 4px; border-bottom: 1px solid var(--line); }
.avatar { width: 50px; height: 50px; display: grid; place-items: center; color: var(--forest); background: var(--cream); border: 1px solid #eadfca; border-radius: 16px; font-family: Nunito, sans-serif; font-weight: 900; }
.thread-category { color: var(--orange); font-size: .67rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.thread h3 { margin: 7px 0 7px; font-family: Nunito, sans-serif; font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.15; }
.thread p { margin: 0; color: var(--muted); font-size: .84rem; }
.thread-meta { min-width: 116px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.thread-meta strong { display: block; color: var(--forest); font-family: Nunito, sans-serif; font-size: 1.05rem; }
.thread-meta span { color: var(--muted); font-size: .64rem; }
.pinned { margin-right: 7px; color: var(--forest); }
.skeleton { height: 140px; border-bottom: 1px solid var(--line); background: linear-gradient(100deg, transparent 20%, rgba(27,73,63,.04) 36%, transparent 52%); background-size: 260% 100%; animation: shimmer 1.4s infinite; }
.empty { padding: 60px 20px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.card h2 { margin: 9px 0 13px; font-family: Nunito, sans-serif; font-size: 1.65rem; line-height: 1.08; }
.card p { margin: 0; color: var(--muted); }
.topic-week { background: var(--cream); border-color: #eadfc9; }
.topic-author { margin-top: 24px; padding-top: 18px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #e2d4bb; color: var(--forest); font-size: .78rem; font-weight: 800; }
.mini-avatar { width: 35px; height: 35px; display: grid; place-items: center; color: var(--cream); background: var(--forest); border-radius: 11px; }
.rules ol { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: rules; }
.rules li { counter-increment: rules; display: grid; grid-template-columns: 28px 1fr; gap: 9px; padding: 10px 0; color: var(--muted); border-top: 1px solid var(--line); }
.rules li::before { content: counter(rules); width: 24px; height: 24px; display: grid; place-items: center; color: var(--forest); background: #e7f0ec; border-radius: 7px; font-size: .7rem; font-weight: 800; }
.next-update { padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; color: var(--cream); background: var(--forest); border-radius: 18px; }
.next-update span { color: rgba(255,255,255,.66); font-size: .72rem; }
.next-update strong { font-size: .78rem; text-align: right; }
footer { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 32px 0 44px; display: grid; grid-template-columns: .65fr 1.35fr; gap: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
footer strong { display: block; color: var(--forest); font-family: Nunito, sans-serif; font-size: 1.25rem; }
footer span { display: block; margin-top: 3px; }
footer p { margin: 0; }
@keyframes shimmer { to { background-position-x: -260%; } }
@media (max-width: 980px) { .forum-layout { grid-template-columns: 1fr; } .sidebar { display: grid; grid-template-columns: 1fr 1fr; } .next-update { grid-column: 1 / -1; } }
@media (max-width: 700px) {
  .site-header, .category-nav, main, footer { width: min(100% - 24px, var(--max)); }
  .site-header { align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; padding: 14px 0; }
  .header-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .welcome { min-height: 620px; border-radius: 20px; }
  .welcome-shade { background: linear-gradient(0deg, rgba(10,48,40,.95) 0%, rgba(10,48,40,.58) 64%, rgba(10,48,40,.06) 100%); }
  .welcome-copy { padding: 24px; padding-bottom: 150px; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.8rem); }
  .welcome-stats { left: 18px; right: 18px; bottom: 18px; gap: 7px; }
  .welcome-stats div { min-width: 0; flex: 1; padding: 11px; }
  .forum-layout { padding: 52px 0 66px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading p { text-align: left; }
  .thread { grid-template-columns: 46px 1fr; gap: 13px; }
  .avatar { width: 43px; height: 43px; border-radius: 13px; }
  .thread-meta { grid-column: 2; min-width: 0; width: 130px; text-align: left; }
  .sidebar { grid-template-columns: 1fr; }
  .next-update { grid-column: auto; }
  footer { grid-template-columns: 1fr; gap: 16px; }
}
