/* Compelle public-site stylesheet.
 * Canonical chrome (header, footer, type baseline, tokens) for the
 * parchment-aesthetic pages. Patron-flow pages use shared.css instead.
 * Page-specific styles stay inline; only shared chrome lives here. */

/* ===== Tokens ===== */
:root {
  /* Surfaces */
  --bg: #f6f3ec;
  --bg-card: #ffffff;
  --bg-raised: #faf9f7;
  --bg-deep: #efece7;
  --bg-warm: #f2ede4;

  /* Ink */
  --ink: #262421;
  --ink-2: #55556a;
  --ink-3: #8888a0;
  --ink-4: rgba(38,36,33,0.38);

  /* Borders */
  --line: rgba(0,0,0,0.06);
  --line-2: rgba(0,0,0,0.10);
  --border: rgba(0,0,0,0.08);
  --border-m: rgba(0,0,0,0.14);

  /* Brand */
  --amber: #d97706;
  --amber-2: #b45309;
  --amber-soft: rgba(217,119,6,0.08);
  --amber-glow: rgba(217,119,6,0.12);
  --gold: #d97706;
  --crimson: #d97706;
  --crimson-l: #b45309;

  /* Debate */
  --pro: #047857;
  --pro-soft: rgba(4,120,87,0.10);
  --pro-line: rgba(5,150,105,0.32);
  --con: #b91c1c;
  --con-soft: rgba(185,28,28,0.10);
  --con-line: rgba(220,38,38,0.32);
  --teal: #0891b2;

  /* Type */
  --display: 'Cinzel', serif;
  --body: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --r: 3px;
  --r-2: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(70,55,30,0.04), 0 1px 1px rgba(70,55,30,0.03);
  --shadow:    0 1px 3px rgba(70,55,30,0.06), 0 4px 12px rgba(70,55,30,0.04);
  --shadow-lg: 0 4px 14px rgba(70,55,30,0.08), 0 10px 30px rgba(70,55,30,0.06);
}

/* ===== Reset + html/body baseline ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--amber); color: #fff; }

/* ===== Sticky brand header ===== */
.head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.head-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 28px; line-height: 1.4;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none !important;
  color: #262421;
  font-family: 'Cinzel', serif;
  font-size: 16px; letter-spacing: 0.12em; font-weight: 600;
}
.brand-mark {
  width: 26px; height: auto; flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}
.head-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.head-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #55556a; text-decoration: none !important;
  transition: color .12s;
}
.head-link:hover  { color: #262421; text-decoration: none !important; }
.head-link.active { color: #262421; text-decoration: none !important; }
.head-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #d97706; text-decoration: none !important;
  padding: 6px 14px; border: 1px solid rgba(217,119,6,0.4);
  border-radius: 4px; transition: all .2s;
}
.head-cta:hover { background: rgba(217,119,6,0.08); border-color: #d97706; color: #b45309; text-decoration: none !important; }
.head-cta.active { background: #d97706; color: #fff; border-color: #d97706; text-decoration: none !important; }

/* ===== Page footer ===== */
/* Match against either <footer class="foot"> (most pages) or plain <footer>
 * (index uses no .foot class but identical visual). */
footer.foot, body > footer {
  max-width: 1480px;
  margin: 100px auto 0;
  padding: 56px 28px 40px;
  border-top: 1px solid var(--line-2);
  background: transparent;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p {
  font-family: var(--body);
  font-size: 15px; font-style: italic;
  color: var(--ink-2); line-height: 1.55; max-width: 280px;
  margin-top: 8px;
}
.foot-h {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 14px;
}
.foot-link {
  display: block;
  font-family: var(--body);
  font-size: 16px; color: var(--ink-2);
  padding: 5px 0; transition: color .12s;
  text-decoration: none;
}
.foot-link:hover { color: var(--amber); }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  gap: 20px; flex-wrap: wrap;
}

/* ===== Masthead (canonical hero, used on every public page) =====
 * Pattern: <section class="masthead">
 *   <div class="masthead-eyebrow">EYEBROW · CAPS</div>
 *   <h1 class="masthead-title">Title with <em>italic-amber word</em>.</h1>
 *   <figure class="masthead-figure"><img></figure>     [optional]
 *   <p class="masthead-sub">Subtitle paragraph.</p>
 *   <div class="ornament-rule"><span class="orn-glyph">◆ ◆ ◆</span></div>  [optional]
 * </section>
 */
.masthead {
  max-width: 1480px; margin: 0 auto; padding: 48px 28px 24px;
  position: relative;
}
.masthead > * { position: relative; z-index: 1; }
/* Faint Δ watermark in the upper-right of the hero — quiet brand mark. */
.masthead::before {
  content: '\0394';
  position: absolute;
  right: 3%; top: 12%;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(220px, 28vw, 380px);
  line-height: 0.8; color: rgba(217,119,6,0.05);
  pointer-events: none; user-select: none; z-index: 0;
  letter-spacing: -0.04em;
}
.masthead-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .26em; color: var(--amber);
  text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  max-width: 1100px;
}
.masthead-eyebrow::before, .masthead-eyebrow::after {
  content: ''; width: 24px; height: 1px; background: var(--amber);
}
.masthead-eyebrow::after { flex: 0 0 24px; }
/* Squash the trailing rule unless eyebrow text is short — looks better with
 * a tail on short eyebrows ("THE ARENA"), suppressed on long ones. */
.masthead-eyebrow.no-tail::after { display: none; }
.masthead-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 6.3vw, 72px); line-height: 1.04;
  letter-spacing: -0.012em; color: var(--ink); max-width: 1100px;
  margin-bottom: 26px; text-transform: uppercase;
}
.masthead-title em {
  font-family: var(--body); font-style: italic;
  color: var(--amber); font-weight: 600;
  text-transform: none;       /* keep emphasis word in mixed case */
  letter-spacing: 0;
}
.masthead-figure {
  margin: 28px 0 36px;
  max-width: 1100px;
}
.masthead-figure img {
  width: 100%; height: auto; display: block;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(70,55,30,0.08);
}
.masthead-sub {
  font-family: var(--body); font-style: normal;
  font-size: clamp(17px, 1.55vw, 20px); line-height: 1.62;
  color: var(--ink-2); max-width: 780px;
  font-weight: 400;
}
.masthead-sub a {
  color: var(--amber); text-decoration: none;
  border-bottom: 1px dotted var(--amber);
}
.masthead-sub a:hover { border-bottom-style: solid; }

.ornament-rule {
  display: flex; align-items: center; justify-content: center;
  margin: 44px 0 0; gap: 14px;
}
.ornament-rule::before, .ornament-rule::after {
  content: ''; height: 1px; background: var(--line-2);
  flex: 1; max-width: 280px;
}
.orn-glyph {
  font-family: var(--display); color: var(--amber);
  font-size: 11px; letter-spacing: .55em;
  padding-left: .55em;
}
@media (max-width: 720px) {
  .masthead { padding: 32px 16px 20px; }
  .masthead::before { font-size: clamp(180px, 40vw, 240px); top: 18%; right: 2%; }
}

/* ===== Responsive chrome ===== */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .head { position: static !important; }
  .head-inner { padding: 10px 14px; gap: 14px; }
  .head-nav { gap: 14px; }
  .head-link, .head-cta { font-size: 10px; letter-spacing: 0.08em; padding: 4px 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  footer.foot, body > footer { padding: 40px 16px 24px; margin-top: 40px; }
}
