:root {
  --bg: #0d1117;
  --panel: #131a22;
  --text: #e7edf5;
  --muted: #a6b3c2;
  --accent: #d6b47c;
  --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 15% -10%, #1a2230, transparent), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 3rem 1.25rem; }
.hero { padding: 2rem 0 1.2rem; }
.hero.compact { padding-top: 1rem; }
.eyebrow {
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

h1, h2, h3 { font-family: "Playfair Display", serif; line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.lede { color: var(--muted); max-width: 60ch; font-size: 1.07rem; }

.actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.btn.primary { background: var(--accent); color: #1b1205; border-color: transparent; }
.btn.ghost:hover { border-color: var(--accent); }

.panel {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.crest-frame {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.2);
}
.crest-frame img { max-width: 100%; max-height: 320px; object-fit: contain; }
.crest-fallback { display: none; color: var(--muted); font-family: "Playfair Display", serif; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 1rem;
}
.muted { color: var(--muted); }
code { background: rgba(255,255,255,0.08); padding: 0.1rem 0.35rem; border-radius: 6px; }
footer { margin-top: 2.5rem; color: var(--muted); font-size: 0.9rem; }

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