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

/* ─── Tokens ─────────────────────────────────────────────────────── */
:root {
  --cream:         #E6E9E3;
  --cream-mid:     #E6E9E3;
  --ink:           #151711;
  --muted:         #1F5E84;
  --subtle:        #464D3A;

  --sage:          #cdc35a;
  --sage-light:    #dbd489;
  --blush:         #e5768d;
  --blush-light:   #f0b0be;
  --lavender:      #a599c2;
  --lavender-light:#dcd4de;
  --butter:        #f1c47e;
  --butter-light:  #faead1;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Lato', 'Helvetica Neue', Arial, sans-serif;

  --pad:    clamp(1.5rem, 5vw, 5rem);
  --nav-h:  52px;
  --nav-w:  168px;
  --max:    1100px;
  --rule:   1px solid rgba(92, 124, 206, 0.28);
}

/* ─── Base ───────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  background: var(--cream); /* fallback behind the flower layer */
}

body {
  /* single sage glow, painted into the page's own (scrolling) background */
  background: radial-gradient(720px circle at calc(100% - 40px) 180px, rgba(219, 212, 137, 0.55), transparent 70%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Flower layer (bottom of z-stack) ───────────────────────────── */
#flower-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
#flower-layer img {
  position: absolute;
  width: clamp(320px, 55vw, 780px);
  height: auto;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.88;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; }

/* ─── Nav (left sidebar) ─────────────────────────────────────────── */
#nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--nav-w);
  display: flex;
  flex-direction: column;
  padding: 2.8rem 1.8rem 2.8rem;
  background: rgba(230, 233, 227, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(45, 155, 15, 0.08);
}

.nav-name {
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
  padding-bottom: 1.8rem;
  border-bottom: var(--rule);
  transition: color 0.15s;
  word-break: break-word;
}
.nav-name:hover { color: var(--ink); }

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.8rem;
}
.nav-links a {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0.65rem 0 0.65rem 0.9rem;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover {
  color: var(--muted);
  border-left-color: var(--subtle);
}
.nav-links a.active {
  color: var(--ink);
  border-left-color: var(--ink);
}

/* ─── Hero ───────────────────────────────────────────────────────── */
#hero {
  padding: 0 var(--pad) 0 calc(var(--nav-w) + 1rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-top {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  border-bottom: var(--rule);
  padding-bottom: 1.3rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-eyebrow span {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-eyebrow .sep { color: var(--subtle); }

.hero-slider {
  overflow: hidden;
  position: relative;
}

.hero-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  flex: 0 0 100%;
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}

.hero-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  max-width: 560px;
}

/* keep name-wrap so blobs stay anchored */
.hero-name-wrap {
  position: relative;
  display: inline-block;
}

/* ── Avatar ── */
.hero-avatar {
  width: clamp(160px, 18vw, 260px);
  flex-shrink: 0;
  align-self: flex-start;
  padding-bottom: 0.5rem;
}
.hero-avatar img {
  width: 75%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(28, 26, 24, 0.10));
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 10vw, 2.5rem);
  font-weight: 50;
  line-height: 0.88;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
}
.hero-name em {
  font-style: italic;
  color: var(--muted);
}

.hero-bio {
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.hero-bio p {
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
}

.hero-research {
  max-width: 560px;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

.hero-foot {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 2rem 0 2rem;
  border-top: var(--rule);
  position: relative;
  z-index: 1;
}

.hero-slide-btn {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}
.hero-slide-btn:hover {
  background: var(--ink);
  color: var(--cream);
}

.hero-slide-btn {
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
}

.hero-email {
  font-size: 0.90rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.hero-email:hover { color: var(--ink); }

/* ─── Section base ───────────────────────────────────────────────── */
section {
  padding: 6rem var(--pad) 6rem calc(var(--nav-w) + 1rem);
  background: rgba(230, 233, 227, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

section:nth-child(even) { background: rgba(230, 233, 227, 0.74); }

#current {
  padding-top: 2.5rem;
}

.section-label {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 4rem;
  padding-bottom: 1.2rem;
  border-bottom: var(--rule);
}

.label-num {
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--subtle);
}

.label-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
}

/* Make key headings more prominent with Lato bold */
.card-body h3,
.work-content h3 {
  font-weight: 700;
}

/* ─── Current Work ───────────────────────────────────────────────── */
.current-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: var(--max);
}

.current-card {
  background: rgba(230, 233, 227, 0.55);
  display: flex;
  overflow: hidden;
  transition: box-shadow 0.2s;
  cursor: pointer;
}
section:nth-child(even) .current-card { background: rgba(230, 233, 227, 0.55); }

.current-card:hover {
  box-shadow: 0 4px 24px rgba(28, 26, 24, 0.07);
}

.card-bar {
  width: 3px;
  flex-shrink: 0;
}
.card-bar.sage     { background: var(--sage); }
.card-bar.blush    { background: var(--blush); }
.card-bar.lavender { background: var(--lavender); }

.card-body {
  padding: 2rem 2.2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-status {
  font-size: 0.58rem;
  font-weight: 200;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}

.card-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.card-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.card-tags li {
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--subtle);
  border-radius: 99px;
}

.card-link {
  font-size: 0.9rem;
  color: var(--subtle);
  opacity: 0;
  align-self: flex-end;
  transition: opacity 0.15s, transform 0.15s;
  margin-top: 0.25rem;
}
.current-card:hover .card-link {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ─── Current Work filters ───────────────────────────────────────── */
.current-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--subtle);
  border-radius: 99px;
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-btn:hover {
  color: var(--muted);
  border-color: var(--muted);
}
.filter-btn.active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ─── Finished Work ──────────────────────────────────────────────── */
.work-list {
  max-width: var(--max);
  border-top: var(--rule);
}

.work-item {
  display: grid;
  grid-template-columns: 56px 1fr 1.8rem;
  gap: 3rem;
  align-items: start;
  padding: 2.2rem 0;
  border-bottom: var(--rule);
  transition: background 0.15s;
  cursor: pointer;
}
.work-item:hover { background: rgba(216, 189, 185, 0.1); }
.work-item:hover .work-link { opacity: 1; transform: translate(2px, -2px); }

.work-year {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
  padding-top: 0.15rem;
}

.work-content h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.work-content p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 520px;
}

.work-content em {
  display: block;
  font-size: 0.72rem;
  color: var(--subtle);
  margin-top: 0.5rem;
  font-style: italic;
}

.work-link {
  font-size: 1rem;
  color: var(--subtle);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  text-align: right;
  padding-top: 0.1rem;
}

/* ─── Thinking About ─────────────────────────────────────────────── */
.thoughts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  max-width: var(--max);
}

.thought {
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.22s ease;
  cursor: pointer;
}
.thought:hover { transform: translateY(-4px); }

.thought-open {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  margin-top: auto;
  transition: opacity 0.18s;
}
.thought:hover .thought-open { opacity: 0.45; }

.thought.sage     { background: var(--sage-light); }
.thought.blush    { background: var(--blush-light); }
.thought.lavender { background: var(--lavender-light); }
.thought.butter   { background: var(--butter-light); }

.thought-tag {
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.thought p {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

/* ─── CV ─────────────────────────────────────────────────────────── */
.cv-dl {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border: var(--rule);
  transition: background 0.15s, color 0.15s;
}
.cv-dl:hover {
  background: var(--ink);
  color: var(--cream);
}

.cv-block {
  max-width: var(--max);
  margin-bottom: 3rem;
}
.cv-block:last-child { margin-bottom: 0; }

.cv-group {
  font-size: 0.57rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0.6rem 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
}

.cv-row {
  display: grid;
  grid-template-columns: 72px 1fr 1fr;
  gap: 2.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(28, 26, 24, 0.06);
  transition: background 0.12s;
}
.cv-row:hover { background: rgba(28, 26, 24, 0.025); }

.cv-year {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

.cv-role {
  font-size: 0.88rem;
  font-weight: 400;
}

.cv-place {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

/* Stack advisor above place and right-align within the third column */
.cv-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

/* ─── About ──────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.4fr;
  gap: clamp(2rem, 4vw, 6rem);
  align-items: start;
  max-width: var(--max);
}

.about-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.about-avatar {
  position: relative;
  display: block;
  width: min(72%, 260px);
}
.about-avatar img {
  width: 100%;
  height: auto;
  display: block;
}
.about-name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  line-height: 0.95;
  font-weight: 400;
  color: var(--ink);
  max-width: 10rem;
}
.about-avatar-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 23, 17, 0.32);
  color: var(--cream);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}
.about-avatar:hover .about-avatar-hint { opacity: 1; }

.about-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--subtle);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.about-body a:hover { border-color: var(--ink); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.tag-list li {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.38rem 0.8rem;
  border: var(--rule);
}

/* ─── About contact strip ────────────────────────────────────────── */
.about-contact {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: var(--rule);
  flex-wrap: wrap;
}

.about-email {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
}
.about-email:hover { color: var(--ink); }

.about-social {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.about-social a {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  transition: color 0.15s;
}
.about-social a:hover { color: var(--ink); }

/* ─── Contact ────────────────────────────────────────────────────── */
.contact-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  max-width: var(--max);
  flex-wrap: wrap;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.05em;
  line-height: 1.15;
  transition: opacity 0.15s;
}
.contact-email:hover { opacity: 0.55; }

.contact-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.contact-links a {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}
.contact-links a:hover { color: var(--ink); }

.contact-address {
  font-size: 0.72rem;
  color: var(--subtle);
  line-height: 1.75;
  text-align: right;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem var(--pad) 1.2rem calc(var(--nav-w) + 1rem);
  border-top: var(--rule);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  background: rgba(230, 233, 227, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ─── Reveal ─────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .current-grid { grid-template-columns: 1fr; }
  .thoughts-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .work-item { grid-template-columns: 50px 1fr; gap: 1.5rem; }
  .work-link { display: none; }
  .cv-row { grid-template-columns: 60px 1fr; gap: 1.5rem; }
  .cv-place { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-eyebrow { gap: 0.5rem; }
}

/* ── Collapse to top nav on tablet/mobile ── */
@media (max-width: 768px) {
  #nav {
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--nav-h);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--pad);
    border-right: none;
    border-bottom: var(--rule);
  }
  .nav-name {
    padding-bottom: 0;
    border-bottom: none;
    word-break: normal;
  }
  .nav-links {
    flex-direction: row;
    gap: 1.8rem;
    margin-top: 0;
  }
  .nav-links a {
    padding: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .nav-links a:hover { border-left-color: transparent; border-bottom-color: var(--subtle); }
  .nav-links a.active { border-left-color: transparent; border-bottom-color: var(--ink); }

  #hero {
    padding: var(--nav-h) var(--pad) 0;
  }
  section {
    padding: 6rem var(--pad);
  }
  footer {
    padding: 1.2rem var(--pad);
  }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .thoughts-grid { grid-template-columns: 1fr; }
  .hero-eyebrow .sep { display: none; }
  .contact-body { flex-direction: column; gap: 2.5rem; }
  .contact-right { align-items: flex-start; }
  .contact-links { align-items: flex-start; }
  .contact-address { text-align: left; }
  .hero-slide:first-child { grid-template-columns: 1fr; }
  .hero-avatar { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   FORUM PANEL  —  2 colors: #FFFFFF + #151711
   ═══════════════════════════════════════════════════════════════════ */

#forum-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  visibility: hidden;
}
#forum-overlay.open {
  pointer-events: all;
  visibility: visible;
}

/* Dark scrim behind the panel */
#forum-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 23, 17, 0.18);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#forum-overlay.open::before { opacity: 1; }

#forum-panel {
  position: absolute;
  inset: 0 0 0 var(--nav-w);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#forum-overlay.open #forum-panel {
  transform: none;
}

/* ── Header bar ── */
.f-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 3rem;
  border-bottom: 1px solid #151711;
  flex-shrink: 0;
}

.f-back {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #151711;
  cursor: pointer;
  padding: 0;
  opacity: 0.45;
  transition: opacity 0.15s;
}
.f-back:hover { opacity: 1; }

.f-tag {
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #151711;
  opacity: 0.3;
}

/* ── Title ── */
.f-title-block {
  padding: 3rem 3rem 2.5rem;
  border-bottom: 1px solid rgba(21, 23, 17, 0.1);
  flex-shrink: 0;
}
.f-title-block h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  color: #151711;
  max-width: 700px;
}

/* ── Thread (scrollable) ── */
.f-thread {
  flex: 1;
  overflow-y: auto;
  padding: 0 3rem;
  scroll-behavior: smooth;
}

.f-note {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(21, 23, 17, 0.07);
}
.f-note:first-child { padding-top: 2.5rem; }

.f-note-date {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(21, 23, 17, 0.3);
  margin-bottom: 0.7rem;
}
.f-note-text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: #151711;
  white-space: pre-wrap;
  max-width: 640px;
}

.f-empty {
  padding: 3rem 0;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(21, 23, 17, 0.28);
}

/* ── Compose area (sticky bottom) ── */
.f-compose {
  flex-shrink: 0;
  padding: 2rem 3rem 2.5rem;
  border-top: 1px solid rgba(21, 23, 17, 0.1);
  background: #FFFFFF;
}

/* Gate (before passcode) */
.f-gate-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(21, 23, 17, 0.4);
  margin-bottom: 0.8rem;
}
.f-gate-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
#forum-code-input {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(21, 23, 17, 0.22);
  outline: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: #151711;
  padding: 0.25rem 0;
  width: 130px;
  letter-spacing: 0.14em;
}
#forum-code-input::placeholder { color: rgba(21, 23, 17, 0.25); }
#forum-code-submit {
  background: none;
  border: none;
  font-size: 1rem;
  color: #151711;
  cursor: pointer;
  padding: 0;
  opacity: 0.4;
  transition: opacity 0.15s;
  line-height: 1;
}
#forum-code-submit:hover { opacity: 1; }
.f-gate-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #151711;
  opacity: 0.45;
  min-height: 1em;
}

/* Write area (after passcode) */
.f-write { display: none; flex-direction: column; gap: 0.8rem; }
.f-write.visible { display: flex; }

#forum-textarea {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(21, 23, 17, 0.18);
  outline: none;
  resize: none;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: #151711;
  line-height: 1.75;
  padding: 0.3rem 0 0.6rem;
  width: 100%;
  max-width: 640px;
}
#forum-textarea::placeholder { color: rgba(21, 23, 17, 0.25); }

.f-write-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 640px;
}
.f-anon-note {
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(21, 23, 17, 0.28);
}
#forum-submit {
  background: none;
  border: 1px solid #151711;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #151711;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
#forum-submit:hover { background: #151711; color: #FFFFFF; }

@media (max-width: 768px) {
  #forum-panel { inset: 0; }
  .f-header, .f-title-block, .f-thread, .f-compose { padding-left: 1.5rem; padding-right: 1.5rem; }
}
