/* ===========================================================================
   samsonandodin.com project styles — Canvas (same conventions as BadHOA)
   Warm keepsake palette; lean on Canvas components. Playfair Display for warmth
   in headings, Inter for body. Two narrators (Samson / Odin) are colour-coded so
   a reader can tell whose voice an entry is in at a glance.
   =========================================================================== */

:root {
  /* Warm mocha replaces the Canvas demo teal */
  --cnvs-themecolor: #8f6a4a;
  --cnvs-themecolor-rgb: 143, 106, 74;
  --bs-primary: #8f6a4a;
  --bs-primary-rgb: 143, 106, 74;
  --bs-link-color: #7c5a34;
  --bs-link-hover-color: #5f4526;

  --so-ink:    #322a20;
  --so-muted:  #877866;
  --so-rule:   #e7ded1;
  --so-paper:  #faf7f1;
  --so-soft:   #f3ebdf;
  --so-accent: #8f6a4a;
  --so-rose:   #b06a5f;   /* "in memory" */

  --so-samson: #a9702f;   /* Samson's voice — warm amber-brown */
  --so-odin:   #5f7184;   /* Odin's voice — cool slate */
}

body { color: var(--so-ink); background: var(--so-paper); font-family: 'Inter', system-ui, sans-serif; }
/* h1–h3 only (leave h4 to Canvas, so dark-footer headings stay light) */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: #2a2118; letter-spacing: -0.005em; }
a { color: var(--bs-link-color); }
a:hover { color: var(--bs-link-hover-color); }

/* Wordmark (no logo image) */
.so-wordmark { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.6rem; color: #2a2118; text-decoration: none; line-height: 1; }
.so-wordmark span { color: var(--so-accent); font-style: italic; }
.so-wordmark-footer { font-size: 1.8rem; color: #fff; }
.so-wordmark-footer span { color: #e0b483; }

/* Canvas component tints */
.page-title { background: var(--so-soft); border-bottom: 1px solid var(--so-rule); }
.page-title .breadcrumb a { color: var(--so-muted); }

.so-meta { color: var(--so-muted); font-size: .9rem; }
.so-body { font-size: 1.08rem; line-height: 1.8; }
.so-body p { margin-bottom: 1.15rem; }

.so-item { border-bottom: 1px solid var(--so-rule); }

/* Badges — status + narrator */
.so-badge { display:inline-block; font-size:.68rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em;
  padding:.2em .6em; border-radius:1rem; border:1px solid var(--so-rule); color:var(--so-muted); vertical-align:middle; }
.so-badge.passed { background:#f6ece9; color:var(--so-rose); border-color:#ecd6d1; }
.so-badge.living { background:#eef4ea; color:#4f6b3a; border-color:#d6e4c9; }
.so-badge.samson { background:#f6ecdf; color:var(--so-samson); border-color:#ecdcc4; }
.so-badge.odin   { background:#e9edf1; color:var(--so-odin); border-color:#d3dbe4; }
.so-badge.joint  { background:#efeae2; color:#6f5a44; border-color:#e0d6c6; }
.so-badge.family { background:#efeae2; color:#6f5a44; border-color:#e0d6c6; }

/* Narrator filter pills on the diary index */
.so-filters { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:2rem; }
.so-filters a { font-weight:600; font-size:.9rem; padding:.3rem .9rem; border-radius:1.4rem;
  border:1px solid var(--so-rule); background:#fff; text-decoration:none; color:#6f5636; }
.so-filters a:hover, .so-filters a.active { background:var(--so-accent); color:#fff; border-color:var(--so-accent); }

/* Cast grid */
.so-cast-card { display:block; height:100%; background:#fff; border:1px solid var(--so-rule); border-radius:.6rem;
  overflow:hidden; text-decoration:none; color:var(--so-ink); transition:box-shadow .18s, transform .18s; }
.so-cast-card:hover { transform:translateY(-3px); box-shadow:0 12px 30px rgba(124,90,52,.14); color:var(--so-ink); }
.so-cast-photo { width:100%; aspect-ratio:1/1; object-fit:cover; background:var(--so-soft); display:block; }
.so-cast-avatar { width:100%; aspect-ratio:1/1; background:var(--so-soft); display:flex; align-items:center; justify-content:center; font-size:2.6rem; }

/* Gallery grid */
.so-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1rem; }
.so-gallery figure { margin:0; background:#fff; border:1px solid var(--so-rule); border-radius:.6rem; overflow:hidden; }
.so-gallery img { width:100%; height:220px; object-fit:cover; display:block; }
.so-gallery figcaption { padding:.7rem .9rem; font-size:.9rem; color:var(--so-muted); }

.so-empty { text-align:center; color:var(--so-muted); font-style:italic; padding:3rem 1rem; }
.so-castlinks a { display:inline-block; margin:0 .3rem .3rem 0; padding:.2rem .7rem; border-radius:1rem; background:var(--so-soft); text-decoration:none; font-size:.92rem; }
.so-pawline { color:#e0b483; margin-top:1rem; }
.so-foot-base { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.5rem; border-top:1px solid rgba(255,255,255,.12); margin-top:2rem; padding-top:1.3rem; font-size:.85rem; opacity:.8; }

/* Accessibility floor + print (BadHOA convention) */
a:focus-visible, button:focus-visible, .menu-link:focus-visible { outline:3px solid var(--cnvs-themecolor); outline-offset:2px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; } }
@media print {
  #header, .primary-menu, .primary-menu-trigger, #footer, #gotoTop, .breadcrumb, .no-print { display:none !important; }
  body { color:#000; background:#fff; font-size:12pt; }
  a { color:#000; text-decoration:none; }
  .container, .content-wrap, main { width:100% !important; max-width:100% !important; }
}
