/* =========================================================
   THE LAST EMBER — visual brand
   Facade (Order / the Ember god) vs Truth (Ashbail, the Ash god).
   The whole world already stands on the second palette; the first
   is the polish laid over it.
   ========================================================= */

:root {
  /* ---- World ground: near-black, tinged green — this IS Ashbail ---- */
  --world-bg: #0a0d0b;
  --world-bg-raised: #12160f;
  --world-line: rgba(180, 190, 170, 0.1);

  /* ---- Facade: Order / the Ember god's polish ---- */
  --facade-bone: #e9e2d2;
  --facade-gold: #c99a44;
  --facade-gold-bright: #e2ba6c;
  --facade-steel: #8b9290;
  --facade-ember: #b5551f;

  /* ---- Truth: Ashbail's rot beneath the polish ---- */
  --truth-shadow: #171d14;
  --truth-verdigris: #5e6b52;
  --truth-bloom: #7e9163;
  --truth-rot: #6b2a20;

  /* ---- Neutral ink, cooled slightly toward the world's green ---- */
  --ink: #d8d6c9;
  --ink-dim: #9a9d8f;
  --ink-faint: #5c6055;

  /* ---- Type ---- */
  --f-display: "Cinzel", "Marcellus", Georgia, serif;
  --f-ornament: "Cinzel Decorative", "Cinzel", serif;
  --f-literary: "Marcellus", Georgia, serif;
  --f-clinical: "Jost", "Inter", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --f-corrupt: "Pirata One", serif;
}

* {
  box-sizing: border-box;
}

body.brand-page {
  margin: 0;
  background: var(--world-bg);
  background-image: radial-gradient(ellipse at 50% -10%, rgba(94, 107, 82, 0.14), transparent 55%);
  color: var(--ink);
  font-family: var(--f-clinical);
  line-height: 1.6;
}

.brand-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}

.brand-hero {
  padding: 80px 28px 50px;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid var(--world-line);
}

.brand-kicker {
  display: block;
  font-family: var(--f-clinical);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--truth-bloom);
  margin-bottom: 22px;
}

.brand-hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.02em;
  color: var(--facade-bone);
  margin: 0 0 14px;
}

.brand-hero p {
  font-family: var(--f-literary);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto;
}

section.brand-section {
  padding: 64px 28px;
  max-width: 980px;
  margin: 0 auto;
  border-bottom: 1px solid var(--world-line);
}

section.brand-section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-family: var(--f-clinical);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--facade-steel);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--facade-bone);
  margin: 0 0 12px;
}

.section-note {
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0 0 36px;
}

/* ---------- Palette ---------- */

.palette-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 640px) {
  .palette-grid {
    grid-template-columns: 1fr;
  }
}

.palette-col h3 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.palette-col.is-facade h3 {
  color: var(--facade-gold-bright);
}

.palette-col.is-truth h3 {
  color: var(--truth-bloom);
}

.palette-col .col-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--world-line);
}

.swatch:first-of-type {
  border-top: none;
}

.swatch-chip {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.swatch-name {
  font-family: var(--f-clinical);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}

.swatch-hex {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  display: block;
}

/* ---------- Typography ---------- */

.type-sample {
  padding: 26px 0;
  border-top: 1px solid var(--world-line);
}

.type-sample:first-of-type {
  border-top: none;
}

.type-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.type-meta .role {
  color: var(--facade-steel);
  text-transform: uppercase;
}

.type-sample .sample-line {
  margin: 0;
  color: var(--facade-bone);
}

.f-display-sample { font-family: var(--f-display); font-size: 2.1rem; letter-spacing: 0.02em; }
.f-ornament-sample { font-family: var(--f-ornament); font-size: 1.6rem; color: var(--facade-gold-bright); letter-spacing: 0.06em; }
.f-literary-sample { font-family: var(--f-literary); font-size: 1.4rem; font-style: italic; color: var(--ink); }
.f-clinical-sample { font-family: var(--f-clinical); font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.f-mono-sample { font-family: var(--f-mono); font-size: 0.95rem; color: var(--truth-bloom); }
.f-corrupt-sample { font-family: var(--f-corrupt); font-size: 2rem; color: var(--truth-rot); }

/* ---------- Motifs ---------- */

.motif-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.motif-card {
  text-align: center;
  width: 180px;
}

.motif-card svg {
  width: 120px;
  height: 120px;
  margin-bottom: 14px;
}

.motif-card h4 {
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--facade-bone);
  margin: 0 0 4px;
}

.motif-card p {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0;
}

.deco-divider {
  width: 100%;
  height: 32px;
  margin: 8px 0 40px;
  color: var(--facade-gold);
}

/* ---------- Applied example ---------- */

.applied-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 640px) {
  .applied-row {
    grid-template-columns: 1fr;
  }
}

.notice-card {
  position: relative;
  padding: 30px 26px;
  background: var(--world-bg-raised);
  border: 1px solid var(--facade-steel);
  overflow: hidden;
}

.notice-card::before,
.notice-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--facade-gold);
}

.notice-card::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.notice-card::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.notice-kicker {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--facade-steel);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.notice-card h4 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--facade-bone);
  margin: 0 0 10px;
}

.notice-card p {
  font-size: 0.9rem;
  color: var(--ink-dim);
  margin: 0 0 16px;
}

.notice-stamp {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--facade-gold);
  letter-spacing: 0.05em;
}

/* The corrupted twin: same card, Ashbail's palette clawing through
   a jagged crack instead of staying hidden beneath it. */
.notice-card.is-corrupted {
  border-color: var(--truth-verdigris);
  color: var(--ink);
}

.notice-card.is-corrupted::before,
.notice-card.is-corrupted::after {
  border-color: var(--truth-rot);
}

.notice-card.is-corrupted .crack {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 42%, rgba(126, 145, 99, 0.22) 46%, rgba(107, 42, 32, 0.35) 50%, transparent 54%);
  clip-path: polygon(0% 30%, 8% 32%, 14% 20%, 22% 34%, 35% 18%, 48% 40%, 60% 22%, 74% 44%, 88% 16%, 100% 38%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.notice-card.is-corrupted .notice-kicker { color: var(--truth-bloom); }
.notice-card.is-corrupted h4 { color: var(--ink); text-shadow: 0 0 18px rgba(107, 42, 32, 0.5); }
.notice-card.is-corrupted .notice-stamp { color: var(--truth-rot); }

.brand-footer {
  text-align: center;
  padding: 40px 28px 70px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
}
