/* VibeLabCollab — Brand Foundation */

:root {
  --bg:           #faf9f7;
  --bg-secondary: #f4f2ee;
  --bg-tertiary:  #ede9e3;
  --coral:        #E8735A;
  --coral-light:  #d4614a;
  --coral-dark:   #C45A44;
  --text:         #1a1714;
  --text-muted:   #6b6560;
  --text-faint:   #b5b0aa;
  --border:       #e5e0d8;
  --border-light: #ede9e3;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
}

h1, h2, h3, h4 { font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--coral); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #1c1917;
  border-bottom: 1px solid #2e2a26;
  height: 56px;
  display: flex;
  align-items: center;
}

header nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

header .logo {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f5f3ef;
  margin-right: auto;
}

header nav a {
  font-size: 0.875rem;
  color: #a09890;
}

header nav a:hover { color: #f5f3ef; }

header .btn-nav {
  font-size: 0.8125rem;
  padding: 0.375rem 1rem;
  background: var(--coral);
  color: #ffffff;
  font-weight: 500;
}

header .btn-nav:hover { background: var(--coral-light); color: #ffffff; }

/* Footer */
footer {
  border-top: 1px solid #2e2a26;
  background: #1c1917;
  padding: 2rem 1.5rem;
  color: #a09890;
  font-size: 0.8125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a { color: #a09890; }
footer a:hover { color: #f5f3ef; }

.footer__cookie-btn {
  background: none;
  border: none;
  padding: 0;
  color: #a09890;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s;
}
.footer__cookie-btn:hover { color: #f5f3ef; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}

.btn-primary { background: var(--coral); color: #ffffff; }
.btn-primary:hover { background: var(--coral-light); color: #ffffff; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); }

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 2rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card:hover { border-color: var(--text-faint); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.card a.card { display: block; }

/* Badge */
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  border: 1px solid var(--coral-dark);
  padding: 0.2rem 0.5rem;
}

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); }

/* Hero section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.5rem;
  max-width: 42rem;
}

.hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }

.hero .body { margin-top: 2.5rem; color: var(--text-muted); font-size: 1.125rem; font-weight: 300; line-height: 1.8; }
.hero .body p + p { margin-top: 1rem; }

.hero .cta { margin-top: 3.5rem; }

/* Section cards grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
}

.section-grid .card {
  background: var(--bg);
  border: none;
  padding: 3rem;
  box-shadow: none;
}

.section-grid .card:hover { background: #ffffff; box-shadow: none; }
.section-grid .card h2 { margin-top: 1rem; font-size: 1.5rem; }
.section-grid .card p { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* Stub pages */
.stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: var(--text-muted);
  gap: 1rem;
}

.stub h1 { font-size: 2rem; color: var(--text); }

/* Forms */
.form-page {
  max-width: 28rem;
  margin: 6rem auto;
  padding: 0 1.5rem;
}

.form-page h1 { font-size: 1.75rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.4rem; }

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

input:focus { border-color: var(--text-muted); }

.form-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fef2f0;
  border: 1px solid #f5c5bc;
  color: #b84030;
  font-size: 0.875rem;
}

.form-success {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f0faf0;
  border: 1px solid #b8ddb8;
  color: #2e6e2e;
  font-size: 0.875rem;
}

/* ── Homepage sections ──────────────────────────────────────────────── */

/* Hero */
.hp-hero {
  background: var(--bg);
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hp-hero .container { max-width: 800px; }

.hp-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.5rem;
}

.hp-hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.75rem;
}

.hp-sub {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.hp-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Section shared styles */
.hp-section { padding: 5rem 0; }

.hp-section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 0.75rem;
}

.hp-section-heading {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 3rem;
  max-width: 580px;
}

/* Feature cards */
.hp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.hp-feature-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.hp-feature-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--text-faint); }

.hp-feature-icon { font-size: 2rem; margin-bottom: 1.25rem; }

.hp-feature-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.625rem;
}

.hp-feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.hp-card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--coral);
  text-decoration: none;
}

.hp-card-link:hover { color: var(--coral-dark); }

/* Persona section (dark bg) */
.hp-personas {
  background: #1c1917;
  padding: 5rem 0;
}

.hp-label-light { color: var(--coral); }

.hp-heading-light {
  color: #f5f3ef;
  margin-bottom: 3rem;
}

.hp-persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.hp-persona-card {
  background: #2a2522;
  border: 1px solid #3a3430;
  padding: 1.75rem;
  transition: border-color 0.15s;
}

.hp-persona-card:hover { border-color: var(--coral); }

.hp-persona-quote {
  font-size: 1rem;
  font-weight: 300;
  color: #e8e4de;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.hp-persona-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}

/* Steps */
.hp-steps { display: flex; flex-direction: column; gap: 0; }

.hp-step {
  display: flex;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.hp-step:first-child { border-top: 1px solid var(--border); }

.hp-step-num {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--coral);
  letter-spacing: -0.04em;
  line-height: 1;
  min-width: 3rem;
  flex-shrink: 0;
}

.hp-step-body h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.hp-step-body p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Values strip */
.hp-values {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.hp-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.hp-value-num {
  font-size: 2rem;
  font-weight: 300;
  color: var(--coral);
  letter-spacing: -0.02em;
}

.hp-value-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Contribute CTA */
.hp-contribute {
  background: var(--bg);
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.hp-contribute-inner {
  max-width: 680px;
}

.hp-contribute-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--coral);
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.75rem;
}

.hp-contribute-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hp-contribute-inner p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 560px;
}

.hp-contribute-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-contribute {
  background: var(--coral);
  color: #fff;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
}

.btn-contribute:hover { background: var(--coral-light); color: #fff; }

.hp-contribute-link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hp-contribute-link:hover { color: var(--text); }

/* Waitlist form */
.hp-waitlist-form { margin-top: 2rem; }

.hp-waitlist-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hp-waitlist-field { display: flex; flex-direction: column; gap: 0.375rem; }

.hp-waitlist-field label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hp-waitlist-field input {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.hp-waitlist-field input:focus { border-color: var(--text-muted); }

.hp-waitlist-error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #fef2f0;
  border: 1px solid #f5c5bc;
  color: #b84030;
  font-size: 0.875rem;
}

.hp-waitlist-success {
  padding: 1.25rem 1.5rem;
  background: #f0faf0;
  border: 1px solid #b8ddb8;
  color: #2e6e2e;
  font-size: 0.9375rem;
  margin-top: 1.5rem;
  line-height: 1.5;
}

.hp-waitlist-fine {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .hp-waitlist-fields { grid-template-columns: 1fr; }
}

/* Homepage mobile */
@media (max-width: 640px) {
  .hp-hero { padding: 4rem 0 3.5rem; }
  .hp-section { padding: 3.5rem 0; }
  .hp-personas { padding: 3.5rem 0; }
  .hp-contribute { padding: 4rem 0; }
  .hp-hero-actions { flex-direction: column; }
  .hp-contribute-actions { flex-direction: column; align-items: flex-start; }
  .hp-step { gap: 1.25rem; }
  .hp-step-num { font-size: 1.75rem; min-width: 2.25rem; }

  /* Feature cards: force single column and reduce padding */
  .hp-feature-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hp-feature-card { padding: 1.5rem; }
  .hp-section-heading { font-size: 1.5rem; margin-bottom: 2rem; }
}

/* ── Homepage CTA bar ───────────────────────────────────────────────── */

.hp-cta-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.hp-cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hp-cta-bar-heading {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.hp-cta-bar-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .hp-cta-bar-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Waitlist / Contributor page ────────────────────────────────────── */

.wl-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 4rem;
}

.wl-hero .container { max-width: 800px; }

.wl-body { padding: 5rem 0; }

.wl-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.wl-reasons h2 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
}

.wl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.wl-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.wl-list-icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.wl-list strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.wl-list p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.wl-fine {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--text-faint);
  line-height: 1.6;
}

.wl-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.wl-form h2 {
  font-size: 1.375rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.wl-form-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.wl-success {
  text-align: center;
  padding: 1rem 0;
}

.wl-success-heading {
  font-size: 1.375rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.wl-success p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .wl-layout { grid-template-columns: 1fr; gap: 3rem; }
  .wl-body { padding: 3.5rem 0; }
  .wl-hero { padding: 3.5rem 0 3rem; }
  .wl-form-wrap { padding: 2rem; }
}

/* ── Blog / Journal ─────────────────────────────────────────────────── */

.blog-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 4rem;
}

.blog-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.blog-loading {
  color: var(--text-faint);
  font-size: 0.9375rem;
  padding: 3rem 0;
}

.blog-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

.blog-empty-heading {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.blog-card {
  border-bottom: 1px solid var(--border);
}

.blog-card:first-child { border-top: 1px solid var(--border); }

.blog-card-link {
  display: block;
  padding: 2rem 0;
  transition: color 0.15s;
}

.blog-card-link:hover .blog-card-title { color: var(--coral); }

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.875rem;
}

.blog-card-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* Post detail */
.blog-post-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
}

.blog-post-header-inner { max-width: 720px; }

.blog-back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.blog-back:hover { color: var(--text); }

.blog-post-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.blog-post-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-faint);
}

.blog-post-body {
  padding: 3rem 0 5rem;
  max-width: 720px;
}

.blog-post-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-post-content p { margin-bottom: 1.25rem; }
.blog-post-content p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .blog-hero { padding: 3.5rem 0 3rem; }
  .blog-hero-inner { flex-direction: column; align-items: flex-start; }
  .blog-post-header { padding: 3rem 0 2.5rem; }
  .blog-post-body { padding: 2.5rem 0 4rem; }
}

/* ── Forum ──────────────────────────────────────────────────────────── */

.forum-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0 4rem;
}

.forum-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.forum-loading {
  color: var(--text-faint);
  font-size: 0.9375rem;
  padding: 3rem 0;
}

.forum-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

.forum-empty-heading {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.forum-signin-prompt {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.forum-signin-prompt a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }

/* Thread list */
.forum-thread-row {
  border-bottom: 1px solid var(--border);
}

.forum-thread-row:first-child { border-top: 1px solid var(--border); }

.forum-thread-link {
  display: block;
  padding: 1.5rem 0;
  transition: color 0.15s;
}

.forum-thread-link:hover .forum-thread-title { color: var(--coral); }

.forum-thread-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.forum-thread-title {
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.15s;
}

.forum-thread-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.forum-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid;
  flex-shrink: 0;
}

.forum-badge-pinned { color: var(--coral); border-color: var(--coral); }
.forum-badge-locked { color: var(--text-faint); border-color: var(--border); }

/* Thread detail */
.forum-thread-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
}

.forum-thread-header-inner { max-width: 760px; }

.forum-post-title {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.forum-post-meta {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-top: 0.75rem;
}

.forum-admin-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.forum-admin-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.875rem;
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.forum-admin-btn:hover { background: var(--bg-tertiary); color: var(--text); }
.forum-admin-btn-danger { color: #b84030; border-color: #f5c5bc; }
.forum-admin-btn-danger:hover { background: #fef2f0; }

.forum-thread-body {
  padding: 3rem 0 5rem;
  max-width: 760px;
}

.forum-post-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.forum-post-content p { margin-bottom: 1rem; }
.forum-post-content p:last-child { margin-bottom: 0; }

.forum-op {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* Replies */
.forum-replies-section { padding: 2rem 0; }

.forum-replies-heading {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.forum-no-replies {
  font-size: 0.9375rem;
  color: var(--text-faint);
  padding: 1rem 0;
}

.forum-reply {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.forum-reply-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.forum-reply-author {
  font-weight: 500;
  color: var(--text-muted);
}

.forum-locked-msg {
  font-size: 0.9375rem;
  color: var(--text-faint);
  padding: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

/* Reply form */
.forum-reply-section { padding-top: 1.5rem; }

.forum-reply-form { max-width: 100%; }

@media (max-width: 640px) {
  .forum-hero { padding: 3.5rem 0 3rem; }
  .forum-hero-inner { flex-direction: column; align-items: flex-start; }
  .forum-thread-header { padding: 3rem 0 2.5rem; }
  .forum-thread-body { padding: 2.5rem 0 4rem; }
}

/* Hamburger toggle button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #f5f3ef;
  transition: transform 0.2s, opacity 0.2s;
}

header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .hero { min-height: 80vh; }
  footer { flex-direction: column; text-align: center; }

  header { height: auto; min-height: 56px; }

  header nav {
    flex-wrap: wrap;
    min-height: 56px;
    row-gap: 0;
    align-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
  }

  header .logo { flex: 1; align-self: center; line-height: 56px; }
  .nav-toggle { display: flex; align-self: center; }

  /* Hide all nav links on mobile by default (except logo) */
  header nav > a:not(.logo) {
    display: none;
    width: 100%;
    padding: 0.875rem 0;
    border-top: 1px solid #2e2a26;
    color: #a09890;
    font-size: 0.9375rem;
    text-align: left;
  }

  /* Show all links when menu is open */
  header.nav-open nav > a:not(.logo) {
    display: block;
  }

  /* Sign in / Sign out buttons: style nicely in the open menu */
  header.nav-open .btn-nav {
    background: var(--coral);
    color: #fff;
    text-align: center;
    padding: 0.75rem 1rem;
    border-top: none;
    margin: 0.375rem 0 0.75rem;
    width: 100%;
  }

  header.nav-open .btn-nav:hover { background: var(--coral-light); color: #fff; }
}
