/* ============================================================
   The Warrior–Monk Model — skeleton draft v0.1
   Palette: limestone ground, umber ink, three pillar tones
   (Identity: oxblood · Formation: slate · Mission: bronze)
   ============================================================ */

:root {
  --ground: #eceae4;
  --surface: #f8f7f3;
  --ink: #26221c;
  --muted: #6e675b;
  --line: #d8d4ca;
  --identity: #7a2f2f;
  --formation: #3f4e63;
  --mission: #8a6a2f;
  --link: #5b4632;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #191713;
    --surface: #221f1a;
    --ink: #eae6dc;
    --muted: #a39b8b;
    --line: #3a362e;
    --identity: #c68484;
    --formation: #8fa3c4;
    --mission: #c9a45c;
    --link: #c7b299;
  }
}

:root[data-theme="dark"] {
  --ground: #191713;
  --surface: #221f1a;
  --ink: #eae6dc;
  --muted: #a39b8b;
  --line: #3a362e;
  --identity: #c68484;
  --formation: #8fa3c4;
  --mission: #c9a45c;
  --link: #c7b299;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* ---------- Header ---------- */

header.site {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

header.site svg { flex: none; }
header.site .mark-stroke { stroke: var(--ink); }

.site-name {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  margin: 0;
}

.site-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 0.5rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p.lede {
  font-size: 1.15rem;
  max-width: 42rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

a { color: var(--link); }

/* ---------- Pillar cards (home) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 0 0 3rem;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--tone, var(--line));
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar[data-pillar="identity"]  { --tone: var(--identity); }
.pillar[data-pillar="formation"] { --tone: var(--formation); }
.pillar[data-pillar="mission"]   { --tone: var(--mission); }

.pillar .eyebrow {
  color: var(--tone);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

.pillar h2 a {
  color: var(--ink);
  text-decoration: none;
}
.pillar h2 a:hover,
.pillar h2 a:focus-visible { text-decoration: underline; }

.pillar p.question {
  font-family: "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  margin: 0;
}

.pillar p.blurb {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.pillar ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

/* ---------- Sub-pages ---------- */

nav.crumbs {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.page-tone { color: var(--tone, var(--ink)); }

main[data-pillar="identity"]  { --tone: var(--identity); }
main[data-pillar="formation"] { --tone: var(--formation); }
main[data-pillar="mission"]   { --tone: var(--mission); }

.domains {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.domain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tone, var(--line));
  padding: 1rem 1.25rem;
}

.domain h3 { margin-bottom: 0.25rem; }

.domain p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.placeholder {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.1rem 0.5rem;
  border-radius: 2px;
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 44rem;
}

/* ---------- Footer ---------- */

footer.site {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

:focus-visible {
  outline: 2px solid var(--tone, var(--link));
  outline-offset: 2px;
}
