/* Wound to Wisdom Media — site styles
   Palette: warm black, antique gold, off-white. One memorable element: the gold-filled crack in the tree. */

:root {
  --ink: #15120f;
  --ink-2: #221e19;
  --ink-line: #3a342c;
  --gold: #c9a24a;
  --gold-pale: #e6d3a0;
  --gold-deep: #7a5a12;   /* gold text on light backgrounds (passes contrast) */
  --paper: #efede7;
  --paper-2: #e4e1d8;
  --text: #1c1814;
  --muted: #5f584e;
  --on-ink: #efede7;
  --on-ink-muted: #b9b2a4;
  --radius: 4px;
  --wrap: 1120px;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.on-ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-pale); }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink);
  padding: .75rem 1rem; font-family: var(--display); font-weight: 700; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2rem); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-weight: 800;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1.1em; max-width: 62ch; }
.lede { font-size: 1.35rem; line-height: 1.5; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--on-ink); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--ink-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--on-ink); text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: center; gap: .6rem; }
.brand .mark { width: 22px; height: 28px; flex: none; }
.brand small { font-weight: 500; color: var(--gold); margin-left: .15rem; }
.nav { display: flex; gap: .25rem; align-items: center; }
.nav a { color: var(--on-ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: .98rem; padding: .55rem .8rem; border-radius: var(--radius); }
.nav a:hover { background: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .nav-cta { background: var(--gold); color: var(--ink); margin-left: .5rem; }
.nav .nav-cta:hover { background: var(--gold-pale); }
.menu-btn { display: none; background: none; border: 1px solid var(--ink-line); color: var(--on-ink); font: 600 .95rem var(--display); padding: .5rem .85rem; border-radius: var(--radius); cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; border-bottom: 1px solid var(--ink-line); }
  .nav.open { display: flex; }
  .nav a { padding: .85rem .5rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.02rem; text-decoration: none; padding: .85rem 1.35rem; border-radius: var(--radius); border: 2px solid var(--gold); background: var(--gold); color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--gold-pale); border-color: var(--gold-pale); }
.btn.ghost { background: transparent; color: var(--on-ink); border-color: var(--on-ink-muted); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.dark:hover { background: var(--ink-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Dark sections ---------- */
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink a { color: var(--gold); }
.on-ink a.btn { color: var(--ink); }
.on-ink a.btn.ghost { color: var(--on-ink); }
.on-ink a.btn.ghost:hover { color: var(--gold); }
.on-ink a.btn.dark { color: var(--on-ink); }
.on-ink p { color: var(--on-ink); }
.on-ink .muted { color: var(--on-ink-muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--on-ink); max-width: 11ch; }
.hero .sub { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--gold-pale); max-width: 34ch; line-height: 1.45; }
.tree { width: min(340px, 100%); margin-inline: auto; }
.tree .crack { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.8s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .tree { width: 200px; margin: 0; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .tree .crack { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); max-width: 16ch; margin-bottom: .4em; }
.page-head p { color: var(--gold-pale); font-size: 1.3rem; max-width: 52ch; margin-bottom: 0; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.75rem, 6vw, 4.75rem) 0; }
.section.alt { background: var(--paper-2); }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

/* Safety strip */
.safety { background: var(--gold); color: var(--ink); }
.safety .wrap { padding: .9rem 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: baseline; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.safety a { color: var(--ink); font-weight: 800; }

/* Topic list: ruled rows, not cards */
.topics { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.topics li { border-bottom: 1px solid #b9b3a5; }
.topics a, .topics .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .5rem 2rem; padding: 1.15rem .25rem; text-decoration: none; color: var(--text); }
.topics a:hover { background: var(--paper-2); }
.topics .t { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.topics .d { color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
@media (max-width: 700px) { .topics a, .topics .row { grid-template-columns: 1fr; } }

/* Series band */
.series { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.series blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; color: var(--gold-pale); max-width: 24ch; }
@media (max-width: 700px) { .series { grid-template-columns: 1fr; } }

/* Resource blocks */
.res-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.res-nav a { font-family: var(--display); font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--on-ink); border: 1px solid var(--on-ink-muted); padding: .45rem .9rem; border-radius: 999px; }
.res-nav a:hover { border-color: var(--gold); color: var(--gold); }

.crisis { background: var(--ink); color: var(--on-ink); border-left: 6px solid var(--gold); padding: 1.5rem 1.5rem 1.25rem; border-radius: var(--radius); margin-bottom: 2.5rem; }
.crisis h2 { color: var(--gold); font-size: 1.6rem; margin-bottom: .5rem; }
.crisis p { color: var(--on-ink); max-width: none; }
.crisis ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 1.5rem; }
.crisis li { border-top: 1px solid var(--ink-line); padding-top: .75rem; line-height: 1.4; }
.crisis li strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--gold-pale); }
.crisis li span { color: var(--on-ink-muted); font-size: 1rem; }
.crisis a { color: var(--gold); }

.res-group { margin-bottom: 3.25rem; scroll-margin-top: 90px; }
.res-group > h2 { border-bottom: 2px solid var(--ink); padding-bottom: .5rem; }
.res-list { list-style: none; padding: 0; margin: 0; }
.res-list li { padding: .95rem 0; border-bottom: 1px solid #b9b3a5; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: .25rem 2rem; }
.res-list .name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.res-list .what { color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.res-list .what b { color: var(--text); font-weight: 600; }
@media (max-width: 700px) { .res-list li { grid-template-columns: 1fr; } }
.res-group h3 { margin-top: 2rem; font-size: 1.1rem; color: var(--gold-deep); }
.note { background: var(--paper-2); border-left: 4px solid var(--gold); padding: 1rem 1.25rem; font-size: 1.02rem; border-radius: var(--radius); max-width: 70ch; }
.note p:last-child { margin-bottom: 0; }

.prompts { columns: 2 320px; column-gap: 2.5rem; padding-left: 1.2rem; }
.prompts li { margin-bottom: .75rem; break-inside: avoid; }

/* Learn page */
.learn-item { padding: 2.5rem 0; border-bottom: 1px solid #b9b3a5; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 1rem 3rem; scroll-margin-top: 90px; }
.learn-item:last-of-type { border-bottom: 0; }
.learn-item h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.learn-item ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.learn-item li { margin-bottom: .35rem; }
@media (max-width: 800px) { .learn-item { grid-template-columns: 1fr; } }

/* Notes */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.tag { font-family: var(--display); font-weight: 600; font-size: .9rem; border: 1px solid var(--muted); color: var(--text); background: transparent; padding: .35rem .85rem; border-radius: 999px; cursor: pointer; }
.tag[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.posts { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.posts li { padding: 1.5rem 0; border-bottom: 1px solid #b9b3a5; }
.posts h3 { margin-bottom: .3rem; font-size: 1.5rem; }
.posts h3 a { color: var(--text); text-decoration: none; }
.posts h3 a:hover { color: var(--gold-deep); text-decoration: underline; }
.posts .meta { font-family: var(--display); font-size: .92rem; color: var(--muted); margin-bottom: .6rem; }
.posts p { margin-bottom: 0; color: var(--muted); }
.post-body p, .post-body li { max-width: 62ch; }
.post-body h2 { margin-top: 2rem; font-size: 1.6rem; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 520px; }
.form label { font-family: var(--display); font-weight: 600; font-size: .95rem; display: grid; gap: .35rem; }
.form input, .form textarea, .form select { font: inherit; font-size: 1.05rem; padding: .75rem .85rem; border: 2px solid #8d8678; border-radius: var(--radius); background: #fff; color: var(--text); }
.on-ink .form input { background: var(--ink-2); border-color: var(--ink-line); color: var(--on-ink); }
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,162,74,.35); }
.form .inline { display: flex; gap: .5rem; flex-wrap: wrap; }
.form .inline input { flex: 1 1 220px; }
.hp { position: absolute; left: -9999px; }
.fine { font-size: .92rem; color: var(--on-ink-muted); max-width: 52ch; margin-top: .75rem; }
.paper .fine, .section .fine { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding: 3.5rem 0 2rem; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1.05rem; color: var(--gold); margin-bottom: .75rem; }
.site-footer p, .site-footer li { color: var(--on-ink-muted); font-size: 1.02rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--gold); }
.legal { border-top: 1px solid var(--ink-line); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .92rem; color: var(--on-ink-muted); }
.legal p { max-width: 80ch; font-size: .92rem; color: var(--on-ink-muted); }

[hidden] { display: none !important; }
