:root {
  --ink: #26382d;
  --muted: #6b7467;
  --line: #d9ddd2;
  --canvas: #f6f3ea;
  --surface: #ffffff;
  --brand: #9a513d;
  --brand-dark: #743b2d;
  --accent: #e9efe2;
  --gold: #bf9a55;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
}

a { color: inherit; }
button, input, textarea { font: inherit; }

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  background: var(--ink);
  border-bottom: 4px solid var(--gold);
  color: #ffffff;
}

.topbar-inner, .page {
  max-width: 1180px;
  margin: auto;
  padding-inline: 24px;
}

.topbar-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 45% 45%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
}

.main-nav { display: flex; gap: 20px; }
.main-nav a { color: #d8dfd1; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #ffffff; font-weight: 700; }
.site-search { position: relative; flex: 1; max-width: 310px; margin-left: auto; }
.site-search input { width: 100%; border: 1px solid #5f7264; border-radius: 22px; padding: 8px 74px 8px 14px; outline: none; background: #354a3b; color: #ffffff; }
.site-search input::placeholder { color: #d0d8cf; }
.site-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgb(191 154 85 / 25%); }
.site-search button { position: absolute; top: 3px; right: 3px; border: 0; border-radius: 18px; padding: 5px 10px; background: var(--gold); color: #26382d; cursor: pointer; font-size: 12px; font-weight: 800; }

.account-nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.account-nav a, .account-nav button { color: #ffffff; }
.account-nav form { margin: 0; }
.account-nav button { border: 0; background: transparent; cursor: pointer; padding: 0; }
.account-nav .nav-join { border: 1px solid #bf9a55; border-radius: 18px; padding: 5px 11px; color: #ffffff; text-decoration: none; }
.account-nav .nav-join:hover { background: #bf9a55; color: var(--ink); }

.page { padding-block: 30px 64px; }
.layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 28px; }
.sidebar { align-self: start; }
.sidebar h2 { margin: 0 0 8px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.side-list { padding: 0; margin: 0 0 26px; list-style: none; }
.side-list a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; }
.side-list a:hover { background: #edf1e9; }
.side-list .active { border-left: 3px solid var(--gold); background: var(--accent); color: #385239; font-weight: 700; }
.side-list small { float: right; color: var(--muted); }

.crumbs { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--brand-dark); }
.content-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h1, h2, h3 { letter-spacing: -.03em; }
h1 { margin: 0; font-size: 28px; }
h2 { margin: 0; font-size: 22px; }
.description { margin: 4px 0 0; color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.welcome-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
  min-height: 310px;
  overflow: hidden;
  border-radius: 18px;
  padding: 46px 54px;
  background: linear-gradient(120deg, #e3eadb, #f6eddd);
  box-shadow: 0 12px 32px rgb(46 63 47 / 9%);
}

.welcome-hero::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border: 42px solid rgb(191 154 85 / 18%);
  border-radius: 50%;
  content: "";
}

.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.hero-copy h1 { max-width: 480px; font-family: Georgia, serif; font-size: clamp(35px, 5vw, 52px); line-height: 1.05; }
.hero-copy > p:not(.eyebrow) { max-width: 490px; margin: 16px 0 24px; color: #4d5d4d; font-size: 17px; }
.hero-text-link { display: inline-block; margin-left: 16px; color: #59352c; font-size: 14px; font-weight: 800; }
.hero-text-link:hover { text-decoration: underline; }
.hound-art { position: relative; align-self: end; justify-self: center; width: 250px; height: 180px; z-index: 1; }
.hound-body, .hound-neck, .hound-head, .hound-ear, .hound-tail, .hound-leg { position: absolute; display: block; background: #9a513d; }
.hound-body { right: 35px; bottom: 47px; width: 158px; height: 66px; border-radius: 64% 45% 42% 38%; transform: rotate(-4deg); }
.hound-neck { right: 51px; bottom: 92px; width: 34px; height: 82px; border-radius: 50% 50% 22% 30%; transform: rotate(18deg); }
.hound-head { right: 15px; bottom: 144px; width: 61px; height: 35px; border-radius: 62% 48% 45% 60%; transform: rotate(-7deg); }
.hound-ear { right: 60px; bottom: 165px; width: 17px; height: 48px; border-radius: 75% 10% 70% 30%; transform: rotate(25deg); }
.hound-tail { left: 24px; bottom: 76px; width: 84px; height: 15px; border-radius: 100% 0 0 100%; transform: rotate(-28deg); transform-origin: right center; }
.hound-leg { bottom: 8px; width: 18px; height: 68px; border-radius: 0 0 14px 14px; }
.hound-leg.front { right: 57px; transform: rotate(7deg); }
.hound-leg.back { right: 142px; transform: rotate(-4deg); }

.community-intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 38px 10px 42px; }
.community-intro h2 { margin: 9px 0 6px; font-family: Georgia, serif; font-size: 20px; }
.community-intro p { margin: 0; color: var(--muted); font-size: 14px; }
.intro-icon { color: var(--brand); font-family: Georgia, serif; font-size: 16px; font-weight: 700; }

.button {
  display: inline-block;
  border: 0;
  border-radius: 20px;
  padding: 9px 16px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: var(--brand-dark); }
.button-outline { background: transparent; border: 1px solid var(--brand); color: var(--brand-dark); }
.button-outline:hover { background: var(--brand); color: #ffffff; }
.notice { padding: 14px 16px; border: 1px solid #d6c28e; border-radius: 7px; background: #fff9e9; color: #5b4d2d; margin-bottom: 18px; }
.notice strong { display: block; }
.topic-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.topic { display: grid; grid-template-columns: 34px 46px minmax(0, 1fr) 92px 120px; gap: 14px; align-items: center; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.topic:last-child { border: 0; }
.topic:hover { background: #fafbf7; }
.topic-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e6eadf; color: #466047; font-size: 13px; font-weight: 800; }
.forum-mark { width: 42px; height: 42px; background: #f5e4d8; color: var(--brand); }
.topic-icon.pinned { background: #f8edcc; color: #8b6822; }
.topic-title { display: block; font-weight: 750; text-decoration: none; }
.topic-title:hover { color: var(--brand-dark); text-decoration: underline; }
.topic-meta, .topic-stats, .last-post { color: var(--muted); font-size: 13px; }
.topic-stats { text-align: center; }
.last-post { font-size: 12px; }
.last-post strong { display: block; color: #3e4c57; font-size: 13px; }
.vote-control { display: grid; justify-items: center; width: 34px; padding: 3px 0; border-radius: 8px; background: #f0f3ec; }
.vote-control button { width: 28px; height: 23px; border: 0; border-radius: 5px; background: transparent; color: #526052; cursor: pointer; font-weight: 800; }
.vote-control button:hover, .vote-control button.selected { background: #dce8d8; color: #28542f; }
.vote-control strong { font-size: 12px; }
.topic-actions { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.vote-control.horizontal { display: flex; align-items: center; width: auto; padding: 4px; gap: 4px; }
.vote-control.horizontal button { width: auto; height: 29px; padding: 0 9px; }
.vote-control.horizontal strong { min-width: 52px; text-align: center; }
.empty-state, .post, .reply-box { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.empty-state { color: var(--muted); }
.message { margin-bottom: 18px; padding: 12px 16px; border-radius: 7px; }
.message.success { border: 1px solid #aec9ae; background: #edf6eb; color: #315d35; }
.message.error { border: 1px solid #e2b6ac; background: #fff1ee; color: #813728; }

.post { margin-bottom: 14px; }
.post-header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.post-author-wrap { display: flex; align-items: center; gap: 10px; }
.author-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #dfe9dc; color: #385239; font-size: 13px; font-weight: 800; }
.post-author { font-weight: 750; }
.member-label { display: block; color: var(--muted); font-size: 12px; }
.post-date { color: var(--muted); font-size: 13px; }
.post-body p:first-child { margin-top: 0; }
.post-body p:last-child { margin-bottom: 0; }
.reply-box { margin-top: 22px; }
.reply-box h2 { margin-bottom: 12px; font-size: 18px; }
.reply-box p { margin: 0 0 12px; }
.reply-box label { display: block; margin-bottom: 5px; font-weight: 700; }
.reply-box textarea, .reply-box input { width: 100%; padding: 9px; border: 1px solid #aeb9ae; border-radius: 6px; background: #ffffff; }
.login-card { max-width: 460px; margin: 40px auto; }
.composer { max-width: 760px; margin: 20px auto; padding: 30px; }
.composer h1 { margin-bottom: 5px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.text-link, .account-switch a { color: var(--brand-dark); font-weight: 700; }
.account-switch { margin-top: 18px !important; color: var(--muted); }
.errorlist { margin: 5px 0; padding: 0; color: #9b3124; font-size: 13px; list-style: none; }
.forum-toolbar { display: flex; justify-content: space-between; padding: 0 2px 9px; color: var(--muted); font-size: 13px; }
.search-page { max-width: 880px; margin: 30px auto; }
.search-page h1 { margin-bottom: 20px; font-family: Georgia, serif; font-size: 38px; }
.search-page-form { display: flex; gap: 10px; margin-bottom: 28px; }
.search-page-form input { flex: 1; min-width: 0; border: 1px solid #aeb9ae; border-radius: 24px; padding: 11px 16px; background: #ffffff; }
.search-page-form input:focus { outline: 3px solid rgb(191 154 85 / 30%); border-color: var(--gold); }
.search-summary { margin-bottom: 12px; color: var(--muted); }
.visually-hidden { position: absolute; overflow: hidden; width: 1px; height: 1px; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.feed-section { margin: 0 0 44px; }
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feed-card { display: flex; flex-direction: column; overflow: hidden; min-height: 180px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 4px 15px rgb(46 63 47 / 6%); }
.feed-card:hover { transform: translateY(-2px); box-shadow: 0 10px 23px rgb(46 63 47 / 12%); transition: .2s ease; }
.feed-image { width: 100%; height: 150px; object-fit: cover; }
.feed-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.feed-card h3 { margin: 4px 0 17px; font-size: 18px; line-height: 1.25; }
.feed-card h3 a { text-decoration: none; }
.feed-card h3 a:hover { color: var(--brand-dark); text-decoration: underline; }
.feed-forum { margin: 0; color: var(--brand); font-size: 12px; font-weight: 750; }
.feed-forum a { text-decoration: none; }
.feed-card-footer { display: flex; gap: 10px; margin-top: auto; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .topbar-inner, .page { padding-inline: 16px; }
  .topbar-inner { gap: 12px; }
  .main-nav, .site-search { display: none; }
  .brand { font-size: 15px; }
  .layout { display: block; }
  .sidebar { margin-bottom: 22px; }
  .side-list { display: flex; gap: 8px; overflow: auto; margin-bottom: 0; }
  .side-list li { flex: 0 0 auto; }
  .side-list a { border: 1px solid var(--line); background: var(--surface); }
  .sidebar h2, .sidebar + .sidebar { display: none; }
  .content-header { align-items: start; }
  h1 { font-size: 24px; }
  .welcome-hero { grid-template-columns: 1fr; min-height: 450px; padding: 34px 28px 0; }
  .hero-copy h1 { font-size: 36px; }
  .hound-art { justify-self: end; transform: scale(.88); transform-origin: right bottom; }
  .community-intro { grid-template-columns: 1fr; gap: 24px; padding: 30px 6px; }
  .topic { grid-template-columns: 34px 38px minmax(0, 1fr); padding: 15px 12px; }
  .topic-stats, .last-post { display: none; }
  .hero-text-link { display: block; margin: 16px 0 0; }
  .forum-toolbar { font-size: 12px; }
  .search-page { margin-top: 10px; }
  .search-page h1 { font-size: 31px; }
  .feed-grid { grid-template-columns: 1fr; }
  .topic-actions { flex-wrap: wrap; }
}
