/* Channel Da Wisdom Workers — shared styles
   Palette: obsidian black + gold.
   Makeover (v2): presentation only. Serif display type for headlines,
   generous pacing, the dotted-gold emblem texture refined and used as an
   accent (hero, header, footer, dividers) — never behind body text.
   No external fonts, no libraries. System font stacks only.
   One image: the house badge (badge.png), wired in Nov 28, 2026 —
   the header mark on every page and the hero emblem on the front door.
   (The two subscribe pages carry one small inline script each for the
   form's validation and in-place thank-you — added in the pre-live pass.) */

:root {
  --black: #0b0a08;
  --black-soft: #14120d;
  --black-lift: #1a1710;
  --gold: #d4af37;
  --gold-soft: #bfa04a;
  --gold-pale: #efe0ae;
  --cream: #f4ecd8;
  --muted: #b8ad8f;
  --line: #3a3220;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --dots: radial-gradient(rgba(212, 175, 55, 0.16) 1px, transparent 1.5px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
}

::selection { background: rgba(212, 175, 55, 0.35); color: #fff8e6; }

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px 72px;
}

/* ---------- header / nav ---------- */

header.site {
  border-bottom: 1px solid var(--line);
  background-color: rgba(11, 10, 8, 0.96);
  background-image: var(--dots);
  background-size: 18px 18px;
  background-position: center top;
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 22px 20px;
  text-align: center;
}

.brand {
  color: var(--gold-pale);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
}

.brand a { color: inherit; text-decoration: none; }

/* the house badge — the header mark, carried on every page */
.brand-badge-link {
  display: block;
  width: 84px;
  margin: 0 auto 12px;
}

.brand-badge {
  display: block;
  width: 84px;
  height: 84px;
}

nav.main {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
}

nav.main a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 2px;
  border-bottom: 1px dotted transparent;
}

nav.main a:hover,
nav.main a:focus { border-bottom-color: var(--gold); color: var(--gold-pale); }

nav.main a[aria-current="page"] {
  color: var(--gold-pale);
  border-bottom: 1px solid var(--gold);
}

/* ---------- type ---------- */

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: 0.005em;
  color: var(--gold-pale);
  font-weight: 600;
  margin: 52px 0 18px;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--gold);
  font-weight: 600;
  margin: 52px 0 14px;
}

p { margin: 0 0 18px; }

.lede {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--gold-pale);
}

.muted { color: var(--muted); }

a { color: var(--gold); }
a:hover, a:focus { color: var(--gold-pale); }

strong { color: var(--gold-pale); }

/* a short dotted-gold rule, the emblem texture drawn as a divider */
.rule {
  height: 6px;
  width: 132px;
  margin: 30px auto;
  background-image: var(--dots);
  background-size: 11px 6px;
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- door & key motifs ---------- */

.door-scene {
  text-align: center;
  padding: 30px 0 4px;
}

.door-scene svg { max-width: 200px; width: 55%; height: auto; }

.keyline {
  text-align: center;
  padding: 26px 0 0;
}

.keyline svg { width: 84px; height: auto; }

/* ---------- home: the arrival ---------- */

/* the house badge stands at the head of the arrival, over the door */
.hero-badge-wrap {
  text-align: center;
  padding: 52px 0 4px;
  background-image: radial-gradient(ellipse 360px 320px at 50% 46%, rgba(212, 175, 55, 0.13), rgba(212, 175, 55, 0) 70%);
  background-repeat: no-repeat;
  background-position: center;
}

.hero-badge {
  width: 188px;
  height: 188px;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.5));
}

.page-home .door-scene {
  padding: 18px 0 10px;
  background-image:
    radial-gradient(ellipse 340px 300px at 50% 42%, rgba(212, 175, 55, 0.13), rgba(212, 175, 55, 0) 70%),
    var(--dots);
  background-size: auto, 16px 16px;
  background-position: center, center top;
  background-repeat: no-repeat, repeat;
}

.page-home .door-scene svg { max-width: 216px; }

.page-home h1 {
  text-align: center;
  font-size: clamp(2.5rem, 8vw, 3.4rem);
  margin: 26px 0 0;
}

.page-home h1::after {
  content: "";
  display: block;
  height: 6px;
  width: 132px;
  margin: 26px auto 0;
  background-image: var(--dots);
  background-size: 11px 6px;
  background-repeat: repeat-x;
  background-position: center;
}

.page-home .lede {
  text-align: center;
  font-size: 1.18rem;
  max-width: 560px;
  margin: 22px auto 46px;
}

.page-home .standing {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 52px 0 0;
  padding: 30px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: var(--dots);
  background-size: 16px 16px;
  background-position: center;
}

/* ---------- the letter: masthead & archive ---------- */

.page-letter h1 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
  margin: 56px 0 0;
}

.page-letter .lede {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.4vw, 2.1rem);
  line-height: 1.35;
  text-align: center;
  color: var(--gold-pale);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 10px;
  margin: 20px 0 44px;
}

.archive { list-style: none; padding: 0; margin: 22px 0; }

.archive li {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-soft);
  border-radius: 8px;
  background: var(--black-soft);
  padding: 24px 24px 20px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.archive .when {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.archive .what {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--gold-pale);
  margin-top: 6px;
}

/* ---------- cards & doors ---------- */

.card {
  background: var(--black-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-soft);
  border-radius: 10px;
  padding: 30px 28px 14px;
  margin: 38px 0;
}

.card h2 { margin-top: 0; }

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.door {
  border: 1px solid var(--line);
  border-radius: 90px 90px 8px 8px;
  background: var(--black-soft);
  padding: 32px 14px 22px;
  text-align: center;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.door svg { width: 36px; height: auto; }

.door .word {
  color: var(--gold-pale);
  letter-spacing: 0.2em;
  font-size: 1.05rem;
}

.door.live {
  border-color: var(--gold);
  background-image: radial-gradient(ellipse 180px 150px at 50% 0%, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0) 70%);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 0 36px rgba(212, 175, 55, 0.12);
}

.door.live a { text-decoration: none; }

.door.live .word {
  color: var(--gold);
  font-size: 1.22rem;
  font-weight: 600;
}

.door.unhung { opacity: 0.42; border-style: dotted; }
.door.unhung .word { color: var(--muted); letter-spacing: 0.08em; font-size: 0.9rem; }

/* ---------- steps (the KNOCK practice) ---------- */

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 6px 0 20px;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 24px 3.6em;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

ol.steps li:last-child { border-bottom: none; margin-bottom: 8px; }

ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.08em;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- subscribe form ---------- */

.subscribe {
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  background: var(--black-soft);
  padding: 32px 28px;
  margin: 44px 0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.subscribe h2 { margin-top: 0; }

.subscribe label {
  display: block;
  font-size: 0.95rem;
  color: var(--gold-pale);
  margin: 18px 0 7px;
}

.subscribe input {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--cream);
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.subscribe input:focus {
  outline: 2px solid var(--gold-soft);
  outline-offset: 1px;
}

.subscribe button {
  margin-top: 22px;
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #171204;
  background: var(--gold);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.subscribe button:hover,
.subscribe button:focus { background: var(--gold-pale); }

.subscribe .fine { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* form states added in the pre-live pass: the inline error line and the
   in-place thank-you that replaces the form after a subscription */
.subscribe [hidden] { display: none !important; }

.subscribe .form-error {
  color: #eda79b;
  font-size: 0.95rem;
  margin: 14px 0 0;
}

.subscribe .form-thanks p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 34px 22px 42px;
  text-align: center;
  background-image: var(--dots);
  background-size: 18px 18px;
  background-position: center bottom;
}

footer.site .fname {
  color: var(--gold-pale);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
}

footer.site .close-line { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- small screens ---------- */

@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px 60px; }
  h1 { margin-top: 42px; }
  h2 { margin-top: 42px; }
  .door-scene svg { width: 46%; }
  .hero-badge-wrap { padding-top: 38px; }
  .hero-badge { width: 152px; height: 152px; }
  .page-home .door-scene { padding-top: 12px; }
  .page-home .standing { font-size: 1.18rem; padding: 24px 8px; }
  .card { padding: 24px 20px 10px; }
  .subscribe { padding: 26px 20px; }
  .archive li { padding: 20px 18px 16px; }
  ol.steps li { padding-left: 3em; }
}

/* ---------- the academy: the library shelf (added Nov 28, 2026) ----------
   The Academy's own flare inside the house family: the shelf. Book entries
   read as volumes on a shelf — a spine edge at the left, a warmer parchment
   glow behind the title, the dotted-gold texture as shelf dust. Palette and
   type stay the house's; only the treatment changes rooms. */

.academy-mark {
  text-align: center;
  padding: 40px 0 0;
}

.academy-mark svg { width: 108px; height: auto; }

.page-academy h1 { text-align: center; margin-top: 26px; }

.page-academy .lede { text-align: center; }

.disclosure {
  border-left: 3px solid var(--gold-soft);
  background: var(--black-soft);
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 30px 0 8px;
}

.shelf { margin: 26px 0 10px; }

.book {
  position: relative;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold-soft);
  border-radius: 6px 10px 10px 6px;
  background:
    radial-gradient(ellipse 420px 190px at 18% 0%, rgba(239, 224, 174, 0.07), rgba(239, 224, 174, 0) 70%),
    var(--black-soft);
  padding: 26px 28px 12px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.book-kicker {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.book-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--gold-pale);
  font-weight: 600;
  margin: 0 0 10px;
}

.book-btn {
  display: inline-block;
  padding: 11px 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #171204;
  background: var(--gold);
  border-radius: 6px;
  text-decoration: none;
}

.book-btn:hover,
.book-btn:focus { background: var(--gold-pale); color: #171204; }

.page-academy .standing {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 52px 0 0;
  padding: 30px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: var(--dots);
  background-size: 16px 16px;
  background-position: center;
}

@media (max-width: 480px) {
  .book { padding: 22px 20px 8px; }
  .page-academy .standing { font-size: 1.18rem; padding: 24px 8px; }
}
