/* Pionheir homepage — shared styles, brand-grounded */

:root {
  /* Brand palette — pulled from logo + cards + banner */
  --gold: #c9a35a;
  --gold-bright: #e8c879;
  --gold-deep: #8a6a2a;
  --wood: #2a1d10;
  --wood-mid: #3d2a18;
  --wood-light: #6b4a2a;
  --parchment: #f0e3c2;
  --parchment-warm: #e8d49e;
  --parchment-deep: #c9a86a;
  --sage: #7d9a5e;
  --terracotta: #b8623e;
  --sky: #a8c8d8;
  --ink: #1f1407;
  --ink-soft: #3d2a18;

  --font-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Reusable scroll banner — hand-drawn style ribbon */
.scroll-banner {
  position: relative;
  display: inline-block;
  padding: 14px 56px;
  background: linear-gradient(180deg, #f0e3c2 0%, #d6bf8c 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    inset 0 -2px 8px rgba(139, 100, 40, 0.3),
    0 4px 12px rgba(0,0,0,0.25);
}
.scroll-banner::before,
.scroll-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 100%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #c9a86a 0%, #8a6a2a 100%);
  clip-path: polygon(100% 0, 0 30%, 100% 50%, 0 70%, 100% 100%);
}
.scroll-banner::before { left: -22px; }
.scroll-banner::after { right: -22px; transform: translateY(-50%) scaleX(-1); }

/* Gold rule — decorative divider */
.gold-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
}
.gold-rule::before,
.gold-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-rule .glyph {
  font-size: 14px;
  letter-spacing: 0.4em;
}

/* Subtle paper grain */
.grain {
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.012) 0 1px, transparent 1px 4px),
    radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: auto, 3px 3px;
}

/* Wood texture (subtle, used on dark surfaces) */
.wood {
  background-color: var(--wood);
  background-image:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.012) 0 1px,
      transparent 1px 3px),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,0.15) 0 1px,
      transparent 1px 80px),
    radial-gradient(ellipse at 30% 40%, rgba(184, 138, 58, 0.06), transparent 60%);
}

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(180deg, #e8c879 0%, #c9a35a 50%, #a08032 100%);
  color: var(--wood);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold-deep);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 4px 12px rgba(0,0,0,0.3);
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 6px 16px rgba(0,0,0,0.4);
}
.btn-gold:active { transform: translateY(0); }

.btn-ghost-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all .15s ease;
}
.btn-ghost-gold:hover {
  background: rgba(201, 163, 90, 0.12);
  color: var(--gold-bright);
}

/* Filigree corner ornament (CSS-only) */
.filigree-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  opacity: 0.6;
}
.filigree-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.filigree-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.filigree-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.filigree-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
