/* ═══════════════════════════════════════════════════════════
   SILENCELL — style.css
   Sections:
   1.  Design tokens
   2.  Reset & base
   3.  Layout shells
   4.  Header & nav
   5.  Footer
   6.  Homepage — hero banner
   7.  Section labels
   8.  Homepage — featured article
   9.  Homepage — article list
   10. Homepage — thoughts & tools grid
   11. Homepage — newsletter
   12. Article page — hero & meta
   13. Article page — body typography
   14. Article page — pull quote & figures
   15. Article page — author card
   16. Article page — related articles
   17. Reading mode overlay
   18. Responsive
   19. Stories list page
   20. Thoughts page
   21. Side drawer
   22. Story detail page
   23. Contact page
   24. About page
   25. Tools page
   26. Tools dashboard page
   27. FLAT PAGES — privacy, changelog, 404
═══════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  --bg:           #F5F2ED;
  --bg2:          #EDEAE4;
  --text:         #18120A;
  --muted:        #7A6E62;
  --border:       #DDD9D2;
  --accent:       #C25A1A;
  --inv:          #A84A12;
  --inv-text:     #FFF4EC;
  --hero-bg: #ffe0cd;
  --serif:        'Playfair Display', Georgia, serif;
  --serif-body:   'Lora', Georgia, serif;
  --sans:         'DM Sans', system-ui, sans-serif;
  --page-v:       64px;
  --section-v:    48px;
  --t:            0.2s ease;
}

[data-theme="dark"] {
  --bg:           #0F0D0A;
  --bg2:          #181410;
  --text:         #EDE8DF;
  --muted:        #8A8078;
  --border:       #2A2520;
  --accent:       #E0702A;
  --inv:          #A84A12;
  --inv-text:     #FFF4EC;
  --hero-bg: #0F0D0A;
}


/* ─────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t), color var(--t);
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }


/* ─────────────────────────────────────────────
   3. LAYOUT SHELLS
───────────────────────────────────────────── */
.wide   { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.wrap   { max-width: 900px;  margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 700px;  margin: 0 auto; padding: 0 28px; }


/* ─────────────────────────────────────────────
   4. HEADER & NAV
───────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
}
.logo em { font-style: normal; color: var(--accent); }

.logo--image {
  display: flex;
  align-items: center;
}

.logo--image img {
  height: 48px;      /* adjust to taste */
  width: auto;
}

.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo-link img,
.custom-logo {
  height: 70px;
  width: auto;
}

.logo-dark  { display: none; }
.logo-light { display: block; }

[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark  { display: block; }


ul.silencell-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;        /* kills the marker */
  list-style-type: none;   /* belt-and-suspenders for some browsers */
  margin: 0;
  padding: 0;
}

ul.silencell-menu li {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

/* Nuclear option — covers ::marker AND ::before pseudo-elements */
ul.silencell-menu li::marker { display: none; content: ''; }
ul.silencell-menu li::before { display: none; content: ''; }

.theme-btn {
  background: var(--text); color: var(--bg);
  border: none; border-radius: 4px;
  padding: 6px 14px; font-family: var(--sans);
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; letter-spacing: 0.03em;
  transition: opacity 0.15s;
}
.theme-btn:hover { opacity: 0.75; }

.read-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--accent); z-index: 200;
  transition: width 0.1s linear;
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px; height: 32px;
  flex-shrink: 0;
  z-index: 99;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {

  .nav-toggle { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 18px 16px;
    gap: 0;
    z-index: 98;
  }

  nav.open { display: flex; }

  nav ul { display: flex; flex-direction: column; width: 100%; }
  nav ul li { display: block; width: 100%; }

  nav a,
  nav ul li a {
    display: block;
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  nav a:last-of-type,
  nav ul li:last-child > a { border-bottom: none; }

  nav .theme-btn {
    display: block;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}


/* ─────────────────────────────────────────────
   5. FOOTER
───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0; margin-top: 80px;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-inner span,
.footer-inner a { font-size: 0.78rem; color: var(--muted); }
.footer-inner a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; }


/* ─────────────────────────────────────────────
   6. HOMEPAGE — HERO BANNER
───────────────────────────────────────────── */

.hero h1        { color: var(--text); }
.hero h1 em     { color: var(--accent); }
.hero-sub       { color: var(--muted); font-size: 0.9rem; }
.hero-eyebrow   { color: var(--accent); }
.hero-eyebrow::before { background: var(--accent); opacity: 0.5; }
.hero-issue     { color: var(--muted); }
.hero-date      { color: var(--muted); }


.hero {
  background:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 18px,
      color-mix(in srgb, var(--accent) 3%, transparent) 18px,
      color-mix(in srgb, var(--accent) 3%, transparent) 19px
    ),
    var(--hero-bg);
  padding: 36px 0 32px;
  position: relative;
  overflow: hidden;
}

.hero::before { display: none; }

.hero::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
  opacity: 1;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end; gap: 40px;
}

.hero-eyebrow {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block; width: 24px; height: 2px;
  background: var(--accent);
  opacity: 1;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 900; line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 420px; line-height: 1.65;
}

.hero-meta {
  text-align: right;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px;
}

.hero-issue {
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-date {
  font-family: var(--serif-body); font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 480px) {
  .hero { background: var(--bg); }
}

/* ─────────────────────────────────────────────
   7. SECTION LABELS
───────────────────────────────────────────── */
.ruled {
  display: flex; align-items: center;
  gap: 14px; margin-bottom: 28px;
}
.ruled-text {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.ruled-line { flex: 1; height: 1px; background: var(--border); }

.label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.label::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}


/* ─────────────────────────────────────────────
   8. HOMEPAGE — FEATURED ARTICLE
───────────────────────────────────────────── */
.featured-wrap {
  padding: var(--section-v) 0;
  border-bottom: 1px solid var(--border);
}
.feat {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px; align-items: start;
}
.feat-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 4px 10px; border-radius: 3px; margin-bottom: 18px;
}
.feat h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.feat h2 a { transition: color 0.15s; }
.feat h2 a:hover { color: var(--accent); }

.feat-excerpt {
  font-size: 1rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 24px; max-width: 460px;
}
.feat-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  font-size: 0.82rem; font-weight: 500;
  padding: 10px 20px; border-radius: 4px;
  transition: opacity 0.15s, gap 0.15s;
}
.feat-cta:hover { opacity: 0.85; gap: 14px; }

.feat-aside { display: flex; flex-direction: column; gap: 16px; }
.feat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
  transition: border-color 0.15s, transform 0.15s;
}
.feat-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feat-card-tag {
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.feat-card h4 {
  font-family: var(--serif-body);
  font-size: 1rem; font-weight: 600;
  line-height: 1.35; margin-bottom: 6px; transition: color 0.15s;
}
.feat-card:hover h4 { color: var(--accent); }
.feat-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }


/* ─────────────────────────────────────────────
   9. HOMEPAGE — ARTICLE LIST
───────────────────────────────────────────── */
.list-wrap {
  padding: var(--section-v) 0;
  border-bottom: 1px solid var(--border);
}
.article-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0 20px; align-items: start;
  padding: 20px 0; border-top: 1px solid var(--border);
  color: inherit; text-decoration: none;
}
.article-row:first-of-type { border-top: none; }
.article-row:hover .a-title { color: var(--accent); }

.a-num {
  font-family: var(--serif); font-style: italic;
  font-size: 1.6rem; font-weight: 700;
  color: var(--border); line-height: 1;
  padding-top: 2px; user-select: none;
}
.a-tag {
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 5px;
}
.a-title {
  font-family: var(--serif-body);
  font-size: 1.15rem; font-weight: 600;
  line-height: 1.3; margin-bottom: 5px; transition: color 0.15s;
}
.a-excerpt { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.a-date { font-size: 0.75rem; color: var(--muted); white-space: nowrap; padding-top: 4px; }

.view-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--accent); margin-top: 28px; transition: gap 0.15s;
}
.view-all:hover { gap: 10px; }


/* ─────────────────────────────────────────────
   10. HOMEPAGE — THOUGHTS & TOOLS GRID
───────────────────────────────────────────── */
.bottom-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; padding: var(--section-v) 0;
  border-bottom: 1px solid var(--border);
}

.thought { padding: 18px 0; border-top: 1px solid var(--border); }
.thought blockquote {
  font-family: var(--serif-body); font-style: italic;
  font-size: 1.05rem; line-height: 1.55;
  margin-bottom: 8px; quotes: "\201C" "\201D";
}
.thought blockquote::before { content: open-quote;  color: var(--accent); }
.thought blockquote::after  { content: close-quote; color: var(--accent); }
.thought blockquote a { transition: color 0.15s; }
.thought blockquote a:hover { color: var(--accent); }
.thought-sub { font-size: 0.75rem; color: var(--muted); }

.tool {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--border);
  text-decoration: none; color: inherit; transition: transform 0.15s;
}
.tool:hover { transform: translateX(4px); }
.tool:hover .tool-name { color: var(--accent); }
.tool-icon-wrap {
  width: 40px; height: 40px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.tool-name { font-size: 0.92rem; font-weight: 500; margin-bottom: 3px; transition: color 0.15s; }
.tool-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }


/* ─────────────────────────────────────────────
   11. HOMEPAGE — NEWSLETTER
───────────────────────────────────────────── */
.nl-wrap { padding: var(--section-v) 0; }
.nl-inner {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg2));
  color: var(--text);
  border-radius: 14px; padding: 48px 52px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.nl-inner::after {
  content: ''; position: absolute;
  right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: var(--accent); opacity: 0.1; pointer-events: none;
}
.nl-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.nl-inner h3 {
  font-family: var(--serif);
  font-size: 1.7rem; font-weight: 700;
  line-height: 1.25; margin-bottom: 8px;
}
.nl-inner p { font-size: 0.85rem; opacity: 0.5; }
.nl-form { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.nl-form input {
  padding: 11px 16px; border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans); font-size: 0.88rem;
  outline: none; transition: border-color 0.15s;
}
.nl-form input::placeholder { color: var(--muted); }
.nl-form input:focus { border-color: var(--accent); }
.nl-form button {
  padding: 11px 20px; background: var(--accent); color: #fff;
  border: none; border-radius: 6px; font-family: var(--sans);
  font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: opacity 0.15s;
}
.nl-form button:hover { opacity: 0.85; }


/* ─────────────────────────────────────────────
   12. ARTICLE PAGE — HERO & META
───────────────────────────────────────────── */
.article-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
}
.meta-line {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; font-size: 0.8rem;
  color: var(--muted); margin-bottom: 20px;
}
.tag {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 3px 8px; border-radius: 3px;
}
.sep { color: var(--border); }

#rmTrigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent); border: 1px solid var(--accent);
  border-radius: 4px; padding: 4px 10px;
  font-family: var(--sans); font-size: 0.75rem;
  color: #fff; cursor: pointer;
  transition: opacity 0.15s;
}
#rmTrigger:hover { opacity: 0.85; }

.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.lede {
  font-family: var(--serif-body);
  font-size: 1.1rem; color: var(--muted);
  line-height: 1.7; font-style: italic;
}
.hero-image-wrap { margin: 32px 0; border-radius: 12px; overflow: hidden; }
.hero-placeholder {
  background: var(--bg2); border: 1px dashed var(--border);
  border-radius: 12px; height: 320px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); font-size: 0.82rem;
}
.hero-placeholder span { font-size: 2.5rem; }


/* ─────────────────────────────────────────────
   13. ARTICLE PAGE — BODY TYPOGRAPHY
───────────────────────────────────────────── */
.article-body {
  font-family: var(--serif-body);
  font-size: 1.05rem; line-height: 1.85;
  padding: 44px 0 48px; color: var(--text);
}
.article-body p { margin-bottom: 1.5em; }
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.015em;
  margin: 2.2em 0 0.7em;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700; margin: 2em 0 0.6em;
}
.article-body em     { font-style: italic; }
.article-body strong { font-weight: 600; }
.article-body a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.article-body a:hover { opacity: 0.75; }
.article-body hr {
  border: none; border-top: 1px solid var(--border);
  margin: 3em auto; width: 40%;
}


/* ─────────────────────────────────────────────
   14. ARTICLE PAGE — PULL QUOTE & FIGURES
───────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--accent);
  margin: 2.2em 0; padding: 0.6em 0 0.6em 1.6em;
}
.pull-quote p {
  font-family: var(--serif); font-style: italic;
  font-size: 1.2rem; line-height: 1.5;
  margin-bottom: 0.4em;
}
.pull-quote cite { font-size: 0.8rem; color: var(--muted); font-style: normal; }

.inline-image { margin: 2em 0; }
.inline-image-placeholder {
  background: linear-gradient(120deg, var(--bg2) 0%, var(--border) 100%);
  height: 220px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.78rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px dashed var(--border);
}
.inline-image img { width: 100%; border-radius: 10px; }
figcaption {
  font-size: 0.78rem; color: var(--muted);
  text-align: center; margin-top: 10px; font-style: italic;
}


/* ─────────────────────────────────────────────
   15. ARTICLE PAGE — AUTHOR CARD
───────────────────────────────────────────── */
.author-card {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.92rem; margin-bottom: 5px; }
.author-bio  { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }


/* ─────────────────────────────────────────────
   16. ARTICLE PAGE — RELATED ARTICLES
───────────────────────────────────────────── */
.related { margin-bottom: 64px; }

.story-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 20px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.story-row:hover .story-title { color: var(--accent); }

.story-tag {
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.story-title {
  font-family: var(--serif-body);
  font-size: 1rem; font-weight: 600;
  line-height: 1.35; margin-bottom: 4px; transition: color 0.15s;
}
.story-excerpt { font-size: 0.82rem; color: var(--muted); }
.story-aside   { text-align: right; }
.story-date    { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.story-read    { font-size: 0.72rem; color: var(--border); margin-top: 3px; }


/* ─────────────────────────────────────────────
   17. READING MODE OVERLAY
───────────────────────────────────────────── */
#readingOverlay {
  position: fixed; inset: 0; z-index: 9999;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
#readingOverlay.rm-open { opacity: 1; pointer-events: all; }

#readingOverlay[data-rm-theme="light"] {
  background: #FAFAF8; color: #1A1612;
  --rm-bar-bg: #F0EFEC; --rm-bar-border: #E0DDD8;
  --rm-btn-hover: #E0DDD8; --rm-accent: #C25A1A;
}
#readingOverlay[data-rm-theme="sepia"] {
  background: #F4ECD8; color: #3B2F1E;
  --rm-bar-bg: #EAE0C8; --rm-bar-border: #D8CEBC;
  --rm-btn-hover: #D8CEBC; --rm-accent: #9B6B2F;
}
#readingOverlay[data-rm-theme="dark"] {
  background: #141210; color: #E4DDD2;
  --rm-bar-bg: #1C1916; --rm-bar-border: #2A2520;
  --rm-btn-hover: #2A2520; --rm-accent: #E0702A;
}
#readingOverlay[data-rm-theme="black"] {
  background: #000000; color: #C8C4BC;
  --rm-bar-bg: #0A0A0A; --rm-bar-border: #1A1A1A;
  --rm-btn-hover: #1A1A1A; --rm-accent: #E0702A;
}

#readingOverlay[data-rm-theme="parchment"] {
  background: #F2EAD8; color: #3A2E1E;
  --rm-bar-bg: #EAE0C8; --rm-bar-border: #D5C9B0;
  --rm-btn-hover: #D5C9B0; --rm-accent: #9B6B2F;
}
#readingOverlay[data-rm-theme="forest"] {
  background: #1C2A1E; color: #D4E8D0;
  --rm-bar-bg: #162018; --rm-bar-border: #243A26;
  --rm-btn-hover: #243A26; --rm-accent: #7EC896;
}

#rmProgress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--rm-accent); z-index: 10001; transition: width 0.1s linear;
}
#rmBar {
  position: sticky; top: 0; z-index: 10000;
  background: var(--rm-bar-bg);
  border-bottom: 1px solid var(--rm-bar-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; gap: 12px; flex-wrap: wrap;
}
.rm-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rm-group    { display: flex; align-items: center; gap: 2px; }
.rm-group button, #rmClose {
  background: none; border: none; color: inherit; cursor: pointer;
  font-size: 0.8rem; padding: 5px 9px; border-radius: 4px;
  opacity: 0.5; transition: opacity 0.1s, background 0.1s; line-height: 1;
}
.rm-group button:hover, #rmClose:hover { opacity: 1; background: var(--rm-btn-hover); }
.rm-group button.active { opacity: 1; background: var(--rm-btn-hover); font-weight: 600; }
.rm-sep {
  display: inline-block; width: 1px; height: 18px;
  background: var(--rm-bar-border); margin: 0 6px; opacity: 0.6;
}
#rmClose { font-size: 1.4rem; padding: 6px 12px; opacity: 1; color: var(--rm-accent); font-weight: 700; }
button[data-font="serif"] { font-family: Georgia, serif; }
button[data-font="sans"]  { font-family: system-ui, sans-serif; }
button[data-font="mono"]  { font-family: monospace; }

#readingOverlay[data-rm-font="serif"] #rmContent { font-family: 'Lora', Georgia, serif; }
#readingOverlay[data-rm-font="sans"]  #rmContent { font-family: 'DM Sans', system-ui, sans-serif; }
#readingOverlay[data-rm-font="mono"]  #rmContent { font-family: 'Courier New', monospace; }

#readingOverlay[data-rm-width="narrow"] { --rm-width: 52ch; }
#readingOverlay[data-rm-width="medium"] { --rm-width: 66ch; }
#readingOverlay[data-rm-width="wide"]   { --rm-width: 82ch; }

#rmContent {
  max-width: var(--rm-width, 62ch); margin: 0 auto;
  padding: 52px 28px 100px;
  font-size: var(--rm-size, 19px); line-height: 1.85;
  transition: max-width 0.2s, font-size 0.15s;
}
#rmContent h1, #rmContent h2, #rmContent h3 {
  line-height: 1.25; margin: 1.8em 0 0.6em; letter-spacing: -0.01em;
}
#rmContent h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
  margin-top: 0;
}

#rmContent .lede {
  font-style: italic;
  font-size: 1.05em;
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--rm-bar-border);
}
#rmContent h1 { font-size: 2em; }
#rmContent h2 { font-size: 1.4em; }
#rmContent h3 { font-size: 1.15em; }
#rmContent p  { margin-bottom: 1.5em; }
#rmContent a  { color: var(--rm-accent); text-decoration: underline; text-underline-offset: 3px; }
#rmContent blockquote, #rmContent .pull-quote {
  border-left: 3px solid var(--rm-accent);
  margin: 1.8em 0; padding: 0.5em 0 0.5em 1.4em;
  font-style: italic; opacity: 0.8;
}
#rmContent .pull-quote p    { font-size: 1.2em; margin-bottom: 0.3em; }
#rmContent .pull-quote cite { font-size: 0.75em; opacity: 0.7; font-style: normal; }
#rmContent img { max-width: 100%; border-radius: 6px; margin: 1.5em 0; }
#rmContent figcaption { font-size: 0.8em; opacity: 0.55; text-align: center; margin-top: 8px; font-style: italic; }
#rmContent .inline-image-placeholder { display: none; }
#rmContent hr { border: none; border-top: 1px solid var(--rm-bar-border); margin: 2.5em auto; width: 40%; }
#rmContent pre, #rmContent code {
  font-family: 'Courier New', monospace; font-size: 0.88em;
  background: var(--rm-bar-bg); border-radius: 4px;
}
#rmContent pre  { padding: 1em 1.2em; overflow-x: auto; margin: 1.4em 0; }
#rmContent code { padding: 2px 6px; }
#rmContent .meta-line, #rmContent #rmTrigger,
#rmContent .author-card, #rmContent .related { display: none; }

@media (max-width: 560px) {
  #rmBar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }

  #rmBar > button#rmClose {
    position: absolute;
    top: 10px; right: 14px;
  }

  .rm-sep { display: none; }

  .rm-controls {
    gap: 6px;
    width: 100%;
  }

  /* Hide width controls on mobile — least needed */
  .rm-group:has(button.rm-width) { display: none; }
}


/* ─────────────────────────────────────────────
   18. RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; }
  .feat-aside { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .feat-card  { min-width: 220px; }
  .bottom-grid { grid-template-columns: 1fr; gap: 36px; }
  .nl-inner { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 680px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-meta  { display: none; }
  .article-row { grid-template-columns: 40px 1fr; }
  .a-date { display: none; }
  .story-row { grid-template-columns: 1fr; }
  .story-aside { display: none; }


}
@media (max-width: 480px) {
 .wide, .wrap, .narrow { padding: 0 18px; }
  .hero { background: var(--bg); }
  #rmBar { padding: 8px 14px; }
  .rm-sep { display: none; }
  .article-hero h1 { font-size: 1.8rem; }
  .hero { background: var(--bg); }

}


/* ─────────────────────────────────────────────
   19. STORIES LIST PAGE
───────────────────────────────────────────── */

/* Page hero — quieter than homepage banner */
.page-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-hero-eyebrow {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 24px; height: 2px; background: var(--accent);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.page-hero p { font-size: 0.95rem; color: var(--muted); max-width: 460px; }

/* Filter pills */
.filter-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.filter-pill {
  background: none; border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 16px;
  font-family: var(--sans); font-size: 0.8rem;
  color: var(--muted); cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.filter-pill:hover {
  border-color: var(--accent); color: var(--accent);
}
.filter-pill.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}

/* Pinned featured card */
.pinned-card {
  display: grid; grid-template-columns: 1fr 6px;
  gap: 0; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  margin-bottom: 12px; text-decoration: none; color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.pinned-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
}
.pinned-card:hover .pinned-cta { gap: 10px; }
.pinned-card:hover h2 { color: var(--accent); }

.pinned-body { padding: 28px 32px; }
.pinned-tag {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.pinned-read {
  font-size: 0.75rem; color: var(--muted);
}
.pinned-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 12px;
  transition: color 0.15s;
}
.pinned-card p {
  font-size: 0.92rem; color: var(--muted);
  line-height: 1.65; margin-bottom: 20px; max-width: 560px;
}
.pinned-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500;
  color: var(--accent); transition: gap 0.15s;
}

/* Accent bar on right edge of pinned card */
.pinned-accent {
  background: var(--accent);
  width: 6px;
}

/* Stories list — on this page rows are slightly larger than related-article rows */
.stories-list {
  display: flex; flex-direction: column;
  margin-bottom: 40px;
}

/* Override story-row sizing for the full list context */
.stories-list .story-row {
  padding: 22px 0;
  align-items: start;
}
.stories-list .story-main { flex: 1; }
.stories-list .story-title {
  font-size: 1.05rem;
  margin-bottom: 5px;
}
.stories-list .story-excerpt {
  font-size: 0.85rem;
  line-height: 1.55;
}
.stories-list .story-aside {
  padding-top: 2px;
  min-width: 72px;
}

/* Pagination */
.pagination {
  display: flex; align-items: center; gap: 6px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}
.page-btn {
  background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 13px;
  font-family: var(--sans); font-size: 0.85rem;
  color: var(--muted); cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 500;
}
.page-next { border-color: transparent; }

@media (max-width: 600px) {
  .pinned-body { padding: 20px; }
  .pinned-card h2 { font-size: 1.3rem; }
  .pinned-accent { display: none; }
  .filter-bar { gap: 6px; }
}

/* ─────────────────────────────────────────────
   20. THOUGHTS PAGE
───────────────────────────────────────────── */
.thoughts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
.thought-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.thought-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.thought-card blockquote {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  quotes: "\201C" "\201D";
}
.thought-card blockquote::before { content: open-quote;  color: var(--accent); }
.thought-card blockquote::after  { content: close-quote; color: var(--accent); }


.thought-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.thought-card-meta { font-size: 0.75rem; color: var(--muted); }
.thought-card-cta  { font-size: 0.75rem; color: var(--accent); font-weight: 500; }
.thought-card.wide { grid-column: 1 / -1; }

.thought-card blockquote button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

@media (max-width: 600px) {
  .thoughts-grid { grid-template-columns: 1fr; }
  .thought-card.wide { grid-column: auto; }
}

/* ─────────────────────────────────────────────
   21. SIDE DRAWER — reusable
───────────────────────────────────────────── */
#sideDrawer {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
}
#sideDrawer.drawer-open { pointer-events: all; }

#drawerOverlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity 0.25s ease;
}
#sideDrawer.drawer-open #drawerOverlay { opacity: 1; }

#drawerPanel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 360px; max-width: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
#sideDrawer.drawer-open #drawerPanel { transform: translateX(0); }

#drawerTop {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

#drawerTag {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 3px 8px; border-radius: 3px;
}

#drawerClose {
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; font-weight: 700;
  color: var(--accent); opacity: 0.9;
  padding: 4px 8px; line-height: 1;
  transition: opacity 0.15s;
}
#drawerClose:hover { opacity: 1; }

#drawerBody {
  flex: 1; overflow-y: auto;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 20px;
}

#drawerQuote {
  font-family: var(--serif-body); font-style: italic;
  font-size: 1.15rem; line-height: 1.65;
  color: var(--text); margin: 0;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

#drawerText {
  font-size: 0.92rem; line-height: 1.75;
  color: var(--muted); margin: 15px 0;
}

#drawerFoot {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

#drawerDate,
#drawerRead { font-size: 0.75rem; color: var(--muted); }

@media (max-width: 480px) {
  #drawerPanel { width: 100%; border-left: none; }
}

/* ─────────────────────────────────────────────
   22. STORY DETAIL PAGE
───────────────────────────────────────────── */

/* Hero */
.story-hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.story-tag-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--muted);
  margin-bottom: 24px; flex-wrap: wrap;
}

.story-hero-read { color: var(--muted); }

.story-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.story-lede {
  font-family: var(--serif-body);
  font-size: 1.2rem; font-style: italic;
  color: var(--text); opacity: 0.8;
  line-height: 1.75; max-width: 520px;
  margin-bottom: 32px;
}

.story-byline {
  display: flex; align-items: center; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.story-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.story-byline-info {
  display: flex; flex-direction: column; gap: 2px;
}

.story-byline-name {
  font-size: 0.88rem; font-weight: 500; color: var(--text);
}

.story-byline-meta {
  font-size: 0.75rem; color: var(--muted);
}

/* Body */
.story-body {
  font-family: var(--serif-body);
  font-size: 1.1rem; line-height: 1.95;
  padding: 48px 0 52px; color: var(--text);
}
.story-body p { margin-bottom: 1.6em; }
.story-body h2 {
  font-family: var(--serif);
  font-size: 1.55rem; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.015em;
  margin: 2.4em 0 0.8em;
}
.story-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  margin: 2em 0 0.6em;
}
.story-body em     { font-style: italic; }
.story-body strong { font-weight: 600; }
.story-body a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.story-body a:hover { opacity: 0.75; }

/* Three-dot section divider */
.story-divider {
  display: flex; align-items: center;
  justify-content: center; gap: 10px;
  margin: 2.8em 0;
}
.story-divider span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: 0.4;
}

/* Author card — warm tinted background */
.story-author-card {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 28px 28px;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg2));
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 52px;
}

.story-author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.story-author-name {
  font-weight: 600; font-size: 0.95rem;
  margin-bottom: 6px; color: var(--text);
}

.story-author-bio {
  font-size: 0.85rem; color: var(--muted);
  line-height: 1.65;
}

/* Responsive */
@media (max-width: 680px) {
  .story-hero { padding: 40px 0 36px; }
  .story-hero-title { font-size: 2rem; }
  .story-lede { font-size: 1.05rem; }
  .story-author-card { padding: 20px; }
}

/* ─────────────────────────────────────────────
   23. CONTACT PAGE
───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  margin-bottom: 52px;
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 16px;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }

.contact-form textarea {
  height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Topic pills */
.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-pill {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.contact-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Submit */
.contact-submit {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  align-self: flex-start;
  min-width: 140px;
}
.contact-submit:hover { opacity: 0.85; }

/* Success message */
.contact-success {
  display: none;
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
}
.contact-success.visible { display: block; }

/* Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 28px;
}

.contact-quote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}
.contact-quote p {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-quote span {
  font-size: 0.75rem;
  color: var(--muted);
}

.contact-sidebar-divider {
  height: 1px;
  background: var(--border);
}

.contact-find-label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}

.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-links li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.contact-links li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}
.contact-links a {
  color: var(--accent);
  transition: opacity 0.15s;
}
.contact-links a:hover { opacity: 0.75; }

/* Fallback */
.contact-fallback {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 48px;
}
.contact-fallback a {
  color: var(--accent);
  transition: opacity 0.15s;
}
.contact-fallback a:hover { opacity: 0.75; }

/* Responsive */
@media (max-width: 680px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-sidebar { padding-top: 0; }
}

/* ─────────────────────────────────────────────
   24. ABOUT PAGE
───────────────────────────────────────────── */

/* Hero — split layout */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 48px;
  align-items: start;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.about-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.about-sub {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Photo */
.about-photo {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.about-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.about-photo-placeholder::after {
  content: 'Photo coming';
}

/* Body */
.about-body {
  font-family: var(--serif-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 48px;
  max-width: 620px;
}
.about-body p { margin-bottom: 1.4em; }
.about-body p:last-child { margin-bottom: 0; }

/* Beliefs */
.about-beliefs { margin-bottom: 48px; }

.about-belief-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-belief {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--bg2);
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
}
.about-belief:first-child { border-top: 1px solid var(--border); }

.about-belief p {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 4px;
}

.about-belief span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* CTA */
.about-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 0 64px;
  border-top: 1px solid var(--border);
}

.about-cta-primary {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.15s;
}
.about-cta-primary:hover { opacity: 0.75; }

.about-cta-secondary {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s;
}
.about-cta-secondary:hover { color: var(--text); }

/* Responsive */
@media (max-width: 680px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 32px;
  }
  .about-photo {
    width: 120px;
    aspect-ratio: 1;
    border-radius: 50%;
  }
  .about-cta { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ─────────────────────────────────────────────
   25. TOOLS PAGE
───────────────────────────────────────────── */
.tools-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.tool-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s;
}
.tool-row:hover { transform: translateX(4px); }
.tool-row:hover .tool-row-name { color: var(--accent); }

/* WIP rows are not links — no hover shift */
.tool-row-wip { cursor: default; }
.tool-row-wip:hover { transform: none; }
.tool-row-wip .tool-row-name { color: var(--muted); }

.tool-row-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}

.tool-row-middle { flex: 1; }

.tool-row-name {
  font-size: 0.98rem; font-weight: 500;
  color: var(--text); margin-bottom: 5px;
  transition: color 0.15s;
}

.tool-row-when {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}

.tool-row-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 6px;
  padding-top: 2px; flex-shrink: 0;
}

.tool-status-live {
  font-size: 0.7rem; font-weight: 500;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 2px 8px; border-radius: 20px;
}

.tool-status-wip {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 20px;
}

.tool-try {
  font-size: 0.78rem;
  color: var(--accent); font-weight: 500;
}

.tool-notify {
  background: none; border: none;
  font-family: var(--sans);
  font-size: 0.78rem; color: var(--muted);
  cursor: pointer; padding: 0;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tool-notify:hover { color: var(--accent); }

/* Footer line */
.tools-footer {
  padding: 28px 0 64px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}

.tools-idea-btn {
  background: none; border: none;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--accent); font-weight: 500;
  cursor: pointer; padding: 0;
  transition: opacity 0.15s;
}
.tools-idea-btn:hover { opacity: 0.75; }


/* ─────────────────────────────────────────────
   DRAWER FORM MODES (notify + idea)
   Extends section 21 drawer styles
───────────────────────────────────────────── */
#drawerModeNotify,
#drawerModeIdea {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-form-title {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin: 0;
}

.drawer-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 15px 0;
}

.drawer-form-label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}

.drawer-form-field input,
.drawer-form-field textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.drawer-form-field input::placeholder,
.drawer-form-field textarea::placeholder { color: var(--muted); }
.drawer-form-field input:focus,
.drawer-form-field textarea:focus { border-color: var(--accent); }

.drawer-form-field textarea {
  height: 90px; resize: vertical; line-height: 1.6;
}

.drawer-form-submit {
  background: var(--accent); color: #fff;
  border: none; border-radius: 6px;
  padding: 11px 18px;
  font-family: var(--sans);
  font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: opacity 0.15s;
  align-self: flex-start;
}
.drawer-form-submit:hover { opacity: 0.85; }
.drawer-form-submit:disabled { opacity: 0.5; cursor: default; }

.drawer-form-success {
  display: none;
  font-size: 0.82rem;
  color: var(--accent);
  font-style: italic;
}
.drawer-form-success.visible { display: block; }

#workModeBtn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent); border: 1px solid var(--accent);
  border-radius: 4px; padding: 4px 10px;
  font-family: var(--sans); font-size: 0.75rem;
  color: #fff; cursor: pointer; text-decoration: none;
  transition: opacity 0.15s; margin-top: 14px;
}
#workModeBtn:hover { opacity: 0.85; }

@media (max-width: 680px) {
  #workModeBtn { display: none; }
}

/* ─────────────────────────────────────────────
   26. TOOLS DASHBOARD
───────────────────────────────────────────── */

/* Prevent body scroll — dashboard fills viewport */
.dashboard-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.dashboard-body footer {
  margin-top: 0;
  flex-shrink: 0;
}

/* Favourites bar */
.dash-favbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 7px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 36px;
  box-sizing: border-box;
  width: 100%;
}

.dash-fav-label {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); flex-shrink: 0;
  white-space: nowrap;
}

.dash-fav-pills {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1;
  flex-wrap: nowrap;
  overflow: hidden;
}

.dash-fav-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.dash-fav-pill:hover  { border-color: var(--accent); color: var(--accent); }
.dash-fav-pill.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}

.dash-fav-empty {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

/* More dropdown trigger */
.dash-fav-more {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.dash-fav-more:hover { color: var(--text); background: var(--border); }

/* Dropdown menu — appended to body, positioned fixed */
.dash-fav-dropdown {
  position: fixed;
  z-index: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  min-width: 160px;
}
.dash-fav-dropdown.open { display: flex; }

.dash-fav-dropdown-item {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text);
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}
.dash-fav-dropdown-item:hover { background: var(--bg2); color: var(--accent); }

/* Dashboard layout */
.dash-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.dash-sidebar {
  border-right: 1px solid var(--border);
  overflow-y: auto;
  background: var(--bg);
  flex-shrink: 0;
}

.dash-cat { border-bottom: 1px solid var(--border); }

.dash-cat-header {
  width: 100%;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: none; border: none;
  cursor: pointer; font-family: var(--sans);
  transition: background 0.1s;
}
.dash-cat-header:hover { background: var(--bg2); }

.dash-cat-name {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}

.dash-cat-arrow {
  font-size: 0.8rem; color: var(--muted);
  transition: transform 0.2s;
  display: inline-block;
}
.dash-cat.open .dash-cat-arrow { transform: rotate(90deg); }

.dash-cat-tools { display: none; }
.dash-cat.open .dash-cat-tools { display: block; }

/* Tool items */
.dash-tool-item {
  display: flex; align-items: center;
  gap: 10px; padding: 9px 16px 9px 20px;
  cursor: pointer;
  transition: background 0.1s;
  border-left: 2px solid transparent;
}
.dash-tool-item:hover { background: var(--bg2); }
.dash-tool-item.active {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-left-color: var(--accent);
}
.dash-tool-item.active .dash-tool-name { color: var(--accent); font-weight: 500; }

.dash-tool-wip { cursor: default; opacity: 0.6; }
.dash-tool-wip:hover { background: none; }

.dash-tool-icon { font-size: 0.95rem; flex-shrink: 0; }

.dash-tool-name {
  font-size: 0.82rem; color: var(--text);
  flex: 1; transition: color 0.15s;
}

.dash-star {
  background: none; border: none;
  font-size: 0.85rem; color: var(--border);
  cursor: pointer; padding: 0; line-height: 1;
  transition: color 0.15s; flex-shrink: 0;
}
.dash-star:hover  { color: var(--accent); }
.dash-star.starred { color: var(--accent); }

.dash-tool-wip-badge {
  font-size: 0.65rem; color: var(--muted);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1px 6px;
  white-space: nowrap;
}

/* Panel */
.dash-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg2);
}

/* Panel header — always visible */
.dash-panel-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.dash-panel-title-wrap {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.92rem; font-weight: 500; color: var(--text);
}

#dashPanelMeta {
  font-size: 0.72rem; color: var(--muted);
}

/* Casual mode button — always top-left of panel */
#casualModeBtn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent); border: 1px solid var(--accent);
  border-radius: 4px; padding: 4px 10px;
  font-family: var(--sans); font-size: 0.75rem;
  color: #fff; cursor: pointer; text-decoration: none;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
#casualModeBtn:hover { opacity: 0.85; }

/* Divider between casual mode btn and active tool name */
.dash-panel-divider {
  width: 1px; height: 16px;
  background: var(--border);
  display: none;
}
.dash-panel-divider.visible { display: block; }

/* Back button — mobile only */
#dashBackBtn {
  display: none;
  background: none; border: none;
  font-family: var(--sans); font-size: 0.82rem;
  color: var(--accent); cursor: pointer;
  padding: 0; margin-right: 4px;
}

/* Empty state */
.dash-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--muted);
  text-align: center; padding: 40px;
}
.dash-empty-icon { font-size: 2rem; opacity: 0.4; }
.dash-empty p    { font-size: 0.92rem; color: var(--muted); }
.dash-empty span { font-size: 0.78rem; color: var(--border); }

/* iframe */
#dashIframe {
  flex: 1;
  width: 100%; height: 100%;
  border: none;
  background: var(--bg);
}

/* Mobile */
@media (max-width: 680px) {
  .dash-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .dash-sidebar {
    display: block;
    width: 100%;
  }

  .dash-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--bg);
  }

  .dash-panel.panel-open { display: flex; }

  #dashBackBtn { display: inline-flex; }

  #casualModeBtn { display: none; }

  .dash-favbar { padding: 7px 18px; }

  .dash-fav-label { display: none; }
}

/* ─────────────────────────────────────────────
   27. FLAT PAGES — privacy, changelog, 404
───────────────────────────────────────────── */

/* Shared flat page hero */
.flatpage-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.flatpage-eyebrow {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.flatpage-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--accent);
}

.flatpage-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 14px;
}

.flatpage-sub {
  font-size: 0.95rem; color: var(--muted);
  line-height: 1.65; max-width: 460px;
}

/* Flat page body — privacy style */
.flatpage-body {
  font-family: var(--serif-body);
  font-size: 1.05rem; line-height: 1.85;
  color: var(--text);
  padding-bottom: 80px;
}
.flatpage-body p { margin-bottom: 1.4em; }
.flatpage-body h2 {
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.3;
  margin: 2.2em 0 0.6em;
  color: var(--text);
}
.flatpage-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.flatpage-body a:hover { opacity: 0.75; }
.flatpage-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.88em;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Changelog list */
.changelog-list {
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
}

.changelog-entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.changelog-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 3px;
}

.changelog-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.changelog-tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 3px 8px; border-radius: 3px;
  align-self: flex-start;
}

.changelog-body h3 {
  font-family: var(--serif-body);
  font-size: 1rem; font-weight: 600;
  line-height: 1.3; margin-bottom: 8px;
  color: var(--text);
}

.changelog-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* 404 page */
.not-found {
  padding: 100px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.not-found-num {
  font-family: var(--serif);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--border);
  user-select: none;
}

.not-found h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.not-found p {
  font-family: var(--serif-body);
  font-size: 1rem; line-height: 1.75;
  color: var(--muted);
  max-width: 440px; margin: 0;
}

.not-found-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.not-found-home {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-size: 0.85rem; font-weight: 500;
  padding: 10px 20px; border-radius: 4px;
  transition: opacity 0.15s;
}
.not-found-home:hover { opacity: 0.85; }

.not-found-links a:not(.not-found-home) {
  font-size: 0.85rem;
  color: var(--accent);
  transition: opacity 0.15s;
}
.not-found-links a:not(.not-found-home):hover { opacity: 0.75; }

/* Responsive */
@media (max-width: 600px) {
  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
  .not-found { padding: 60px 0 60px; }
}