/* Phoenix Publishing — shared styles. Warm, simple, mobile-first. No external resources. */
:root {
  --cream: #faf6ef;
  --cream-deep: #f3ecdd;
  --ink: #3a2e24;
  --ink-soft: #6b5d4f;
  --gold: #c9a227;
  --gold-deep: #a8841c;
  --blue: #27407a;
  --blue-deep: #1b2e59;
  --card: #fffdf8;
  --line: #e5dcc8;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

.sans, button, input, .btn {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- frame ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brandmark {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex: 0 0 auto;
}
.brand-name {
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--cream);
  text-decoration: none;
  flex: 1 1 auto;
}
.nav-toggle {
  background: none; border: 2px solid var(--gold); color: var(--cream);
  border-radius: 10px; padding: 8px 14px; font-size: 16px; cursor: pointer;
}
.main-nav { display: none; background: var(--ink); border-top: 1px solid #55483a; }
.main-nav.open { display: block; }
.main-nav a {
  display: block; padding: 14px 20px; color: var(--cream);
  text-decoration: none; font-size: 17px; border-bottom: 1px solid #4a3f32;
}
.main-nav a:hover, .main-nav a:focus { background: #4a3d2e; }
.main-nav a.active { color: var(--gold); }

main { padding: 28px 0 60px; }

.site-footer {
  background: var(--ink); color: #cbbfa8;
  padding: 28px 0; font-size: 15px; text-align: center;
}
.site-footer p { margin: 6px 0; }

/* ---------- type & blocks ---------- */
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; font-weight: normal; }
h2 { font-size: 26px; line-height: 1.3; margin: 30px 0 10px; font-weight: normal; }
h3 { font-size: 21px; margin: 24px 0 8px; }
.lede { font-size: 20px; color: var(--ink-soft); }
.center { text-align: center; }
.gold-rule { border: none; border-top: 2px solid var(--gold); width: 72px; margin: 22px auto; }

.placeholder-note {
  background: var(--cream-deep);
  border: 1px dashed var(--gold-deep);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 18px 0;
}
.bracket { color: var(--gold-deep); font-style: italic; }

.site-quote {
  border-left: 3px solid var(--gold);
  margin: 28px 0; padding: 6px 0 6px 18px;
  font-style: italic; color: var(--ink-soft); font-size: 19px;
}
.site-quote .attr { display: block; font-style: normal; font-size: 15px; margin-top: 6px; }
.approval-tag {
  display: inline-block; font-size: 13px; font-style: normal;
  background: var(--cream-deep); border: 1px solid var(--line);
  border-radius: 20px; padding: 2px 10px; margin-top: 8px; color: var(--ink-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: block; width: 100%;
  background: var(--blue); color: #fff;
  text-decoration: none; text-align: center;
  font-size: 19px; padding: 16px 18px; margin: 12px 0;
  border: none; border-radius: var(--radius); cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--blue-deep); }
.btn.gold { background: var(--gold-deep); }
.btn.gold:hover, .btn.gold:focus { background: #8a6d15; }
.btn.ghost {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn.ghost:hover, .btn.ghost:focus { background: #eef1f8; }
.btn-row { display: grid; gap: 4px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 18px 0 8px; }
.hero-mark {
  width: 148px; height: 148px; border-radius: 50%;
  object-fit: cover; border: 4px solid var(--gold);
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.hero h1 { margin-top: 14px; }
.hero-cover {
  width: 100%; border-radius: var(--radius); margin: 20px 0 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}

/* ---------- bookshelf ---------- */
.shelf { display: grid; gap: 22px; margin-top: 20px; }
@media (min-width: 560px) { .shelf { grid-template-columns: 1fr 1fr; } }
.book {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}
.book-cover {
  width: 100%; aspect-ratio: 3 / 4.2;
  border-radius: 8px; margin-bottom: 14px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px 14px; color: #fff; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 4px 14px rgba(0,0,0,0.2);
}
.book-cover .bc-top { font-size: 13px; letter-spacing: 2px; opacity: 0.85; }
.book-cover .bc-title { font-size: 22px; line-height: 1.3; }
.book-cover .bc-by { font-size: 15px; opacity: 0.9; font-style: italic; }
.bc-phoenix { background: linear-gradient(160deg, #7a4a12, #c9a227); }
.bc-nova    { background: linear-gradient(160deg, #1b2e59, #3b5bbf); }
.bc-ellis   { background: linear-gradient(160deg, #2e4a34, #5d8a5f); }
.book h3 { margin: 0 0 6px; font-size: 20px; }
.book p { font-size: 16px; color: var(--ink-soft); margin: 0 0 12px; }

/* ---------- reader modal ---------- */
.reader-veil {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(30, 22, 14, 0.92);
}
.reader-veil.open { display: flex; flex-direction: column; }
.reader-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; color: var(--cream);
}
.reader-bar .t { flex: 1 1 auto; font-size: 17px; }
.reader-close {
  background: var(--gold); border: none; color: var(--ink);
  font-size: 17px; padding: 10px 18px; border-radius: 10px; cursor: pointer;
}
.reader-frame { flex: 1 1 auto; border: none; background: #fff; }
.reader-hint {
  color: #cbbfa8; font-size: 14px; padding: 8px 16px 14px; text-align: center;
}

/* ---------- team cards ---------- */
.team-grid { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 560px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 18px; text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}
.team-seal {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #fff;
  border: 3px solid var(--gold);
}
.seal-phoenix { background: linear-gradient(160deg, #7a4a12, #c9a227); }
.seal-nova    { background: linear-gradient(160deg, #1b2e59, #3b5bbf); }
.seal-ellis   { background: linear-gradient(160deg, #2e4a34, #5d8a5f); }
.nova-tag {
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold-deep); margin: 0 0 6px;
}
.word-phoenix {
  border-left: 3px solid var(--gold);
  margin: 30px 0; padding: 6px 0 6px 18px;
}
.word-phoenix p { color: var(--ink-soft); font-size: 17px; }
.word-phoenix .sign { font-style: italic; }
.team-card h3 { margin: 0 0 4px; }
.team-role { color: var(--gold-deep); font-size: 16px; letter-spacing: 0.5px; margin: 0 0 10px; }
.team-card p { font-size: 16px; color: var(--ink-soft); margin: 0; }
.team-card .pub-badge {
  display: inline-block; margin-top: 12px; font-size: 13px;
  background: var(--blue); color: #fff; border-radius: 20px; padding: 4px 12px;
}

/* ---------- support ---------- */
.amount-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0; }
.amount-btn {
  font-size: 20px; padding: 16px 0; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--blue); background: #fff; color: var(--blue);
}
.amount-btn:hover, .amount-btn:focus { background: #eef1f8; }
.amount-btn.selected { background: var(--blue); color: #fff; }

/* ---------- door ---------- */
.door-box {
  background: var(--card); border: 2px solid var(--gold);
  border-radius: var(--radius); padding: 26px 20px; text-align: center;
  margin: 20px 0;
}
.door-box input {
  font-size: 22px; padding: 14px; width: 100%; max-width: 320px;
  border: 2px solid var(--line); border-radius: 10px; text-align: center;
  letter-spacing: 2px; margin: 10px 0;
}
.timer {
  font-size: 44px; color: var(--blue-deep); letter-spacing: 2px; margin: 8px 0;
}
.gated { display: none; }
.gated.open { display: block; }
.door-msg { font-size: 17px; margin: 10px 0; min-height: 26px; }
.door-msg.err { color: #a33b2e; }
.door-msg.ok { color: #2e6b34; }

@media (min-width: 560px) {
  h1 { font-size: 40px; }
  .btn-row { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .btn-row .btn { margin: 12px 0; }
}
