/* ================================================================
   Accrue Journal — shared stylesheet (V5-aligned)
   Created: 2026-05-12. Aligned to Accrue Brand Guidelines V5.
   Used by all journal/library/*.html and journal/notes/*.html.
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..700,0..100,0..1;1,9..144,300..700,0..100,0..1&family=Source+Serif+4:ital,opsz,wght@0,8..60,300..700;1,8..60,300..700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* V5 palette — Section 08 */
  --forest:       #1B4332;
  --forest-deep:  #0F1F18;
  --forest-soft:  #1B4332;
  --linen:        #FAF7F2;
  --linen-warm:   #F5EFE3;
  --linen-edge:   #EFE7D6;
  --brass:        #9A7B4B;
  --brass-soft:   #D9C7A4;
  --brass-lt:     #D9C7A4;
  --ink:          #1A1A1A;
  --ink-soft:     #4A423A;
  --ink-muted:    #7A7268;
  --rule:         #D6D1C6;
  --deep:         #0F1F18;
  --sage:         #D8EDDF;

  /* V5 typography — Section 09 */
  --serif-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --serif:         "Source Serif 4", "Fraunces", Georgia, "Times New Roman", serif;
  --sans:          "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:          "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure:      38rem;
  --measure-wide: 56rem;
  --pad:          clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "onum";
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color .15s ease, color .15s ease;
}
a:hover { color: var(--brass); border-bottom-color: var(--brass); }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--pad); }

/* V5 top contact bar — Deep Night masthead */
.top-bar {
  background: var(--deep); color: rgba(250,247,242,0.85);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.top-bar__inner {
  max-width: var(--measure-wide); margin: 0 auto;
  padding: 12px var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.top-bar__left, .top-bar__right { display: flex; gap: 24px; align-items: center; }
.top-bar a { color: rgba(250,247,242,0.85); border: 0; }
.top-bar a:hover { color: var(--brass-lt); }
.top-bar .dot { color: rgba(250,247,242,0.35); }
.top-bar .arrow { color: var(--brass-lt); }
@media (max-width: 700px) {
  .top-bar { font-size: 10px; }
  .top-bar__inner { padding: 10px var(--pad); flex-direction: column; gap: 8px; }
  .top-bar__left, .top-bar__right { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

.site-header { border-bottom: 1px solid var(--rule); background: var(--linen); }
.site-header__inner {
  max-width: var(--measure-wide); margin: 0 auto; padding: 1.5rem var(--pad);
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.brand {
  font-family: var(--serif-display); font-size: 1.4rem; letter-spacing: 0.005em;
  color: var(--forest); border-bottom: 0; font-weight: 400;
}
.brand em {
  font-style: italic; color: var(--brass); font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.nav {
  display: flex; gap: 1.75rem;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav a { border-bottom: 0; color: var(--ink-soft); }
.nav a:hover { color: var(--forest); }

.site-footer {
  margin-top: 6rem; padding: 3rem var(--pad);
  border-top: 1px solid var(--rule); background: var(--linen-warm);
  font-family: var(--sans); font-size: 0.85rem; color: var(--ink-muted);
}
.site-footer__inner {
  max-width: var(--measure-wide); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.site-footer p { margin: 0 0 0.5rem; }
.site-footer a { color: var(--ink-soft); border-bottom: 0; }
.site-footer a:hover { color: var(--forest); }
.disclaimer { max-width: 36rem; font-size: 0.78rem; line-height: 1.5; }

/* Article */
.article { padding: 4rem 0 2rem; }
.article__meta {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; font-weight: 500;
}
.article__meta time { color: var(--ink-muted); }
.article__meta time::before { content: "· "; color: var(--rule); padding: 0 0.4em; }
.article__caveat {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--ink-muted); margin: 0 0 2rem; font-style: italic;
}
.article h1 {
  font-family: var(--serif-display); font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 3rem); line-height: 1.08;
  margin: 0 0 1rem; color: var(--forest-deep); letter-spacing: -0.022em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}
.article h1 em {
  font-style: italic; color: var(--brass); font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.article__deck {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  color: var(--ink-soft); line-height: 1.5;
  margin: 0 0 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule);
}

.article__hero { margin: 0 0 3rem; }
.article__hero img { width: 100%; height: auto; border-radius: 4px; }
.article__hero figcaption {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin-top: 0.6rem;
}

/* Prose */
.prose p { margin: 0 0 1.4rem; }
.prose h2 {
  font-family: var(--serif-display); font-weight: 400;
  font-size: 1.55rem; margin: 2.6rem 0 1rem;
  color: var(--forest-deep); letter-spacing: -0.005em;
}
.prose h3 {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass); margin: 2.2rem 0 0.6rem;
}
.prose blockquote {
  font-style: italic; color: var(--ink-soft);
  border-left: 2px solid var(--brass);
  margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem;
}
.prose strong { color: var(--forest-deep); font-weight: 600; }
.prose em { color: var(--forest-soft); }

.parallel {
  margin: 2.25rem 0; padding: 1.4rem 1.6rem;
  background: var(--linen-warm); border-left: 3px solid var(--brass); border-radius: 2px;
}
.parallel__label {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brass); font-weight: 500; margin: 0 0 0.6rem;
}
.parallel p { margin: 0 0 0.8rem; font-size: 0.96rem; line-height: 1.6; color: var(--ink-soft); }
.parallel p:last-child { margin-bottom: 0; }
.parallel em { font-style: italic; color: var(--forest-soft); }
.parallel strong { color: var(--forest-deep); font-weight: 600; }

.prose hr { border: 0; text-align: center; margin: 3rem 0; }
.prose hr::before { content: "◆"; color: var(--brass); font-size: 0.75rem; letter-spacing: 1rem; }

.coda {
  margin: 3rem 0 2rem; padding: 2rem 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  text-align: center;
}
.coda p {
  margin: 0 0 0.6rem;
  font-family: var(--serif); font-style: italic; color: var(--forest-deep);
  font-size: 1.05rem;
}
.coda p:last-child {
  margin-bottom: 0; color: var(--brass); font-style: normal;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--mono);
}

.end-mark {
  text-align: center; margin: 4rem 0 2rem;
  color: var(--brass); font-size: 0.9rem; letter-spacing: 0.5rem;
}

.article-foot {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.article-foot a { border-bottom: 0; color: var(--forest); }
.article-foot a:hover { color: var(--brass); }
