/* Shadows of Magic landing page — colors and type drawn from the cover */

@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --night: #09111a;        /* deepest sky */
  --night-2: #0f1b27;      /* raised surface */
  --steel: #9fb2c1;        /* moonlit cloud */
  --rule: #24384a;
  --text: #ece7de;         /* warm parchment white */
  --gold: #e8a743;         /* the lit castle windows */
  --gold-hi: #f4c068;
  --ink: #1b1206;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, #1d3448 0%, rgba(29,52,72,0) 70%),
    radial-gradient(ellipse 80% 40% at 50% 110%, #0d1a26 0%, rgba(13,26,38,0) 70%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
}
a { color: var(--gold-hi); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 0; }

/* ---------- hero ---------- */
.kicker {
  font-family: "Cinzel", serif; font-weight: 400;
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--steel); text-align: center; margin: 0 0 22px;
}
.hero { display: grid; gap: 20px; justify-items: center; }
@media (max-width: 819px) { .kicker { display: none; } .wrap { padding-top: 22px; } }
.cover {
  display: block; width: min(46vw, 210px); height: auto; aspect-ratio: 5 / 8;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(255,255,255,.04), 0 24px 50px -12px rgba(0,0,0,.85), 0 0 80px -20px rgba(232,167,67,.18);
}
.copy { text-align: center; max-width: 34rem; }
h1 {
  font-family: "Cinzel", serif; font-weight: 600;
  font-size: clamp(28px, 7.6vw, 54px); line-height: 1.05; letter-spacing: .04em;
  margin: 0; color: #fff;
}
.author {
  font-family: "Cinzel", serif; font-size: 15px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin: 10px 0 4px;
}
.genre { font-style: italic; color: var(--steel); margin: 0 0 18px; font-size: 18px; }
.hook { font-style: italic; font-size: 22px; line-height: 1.4; color: #fff; margin: 0 0 14px; }
.desc { margin: 0 0 22px; }

/* ---------- buttons ---------- */
.ctas { display: grid; gap: 12px; justify-items: center; }
.btn {
  display: inline-block; width: 100%; max-width: 340px; text-align: center; text-decoration: none;
  font-family: "Cinzel", serif; font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 20px; border-radius: 4px; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(232,167,67,.55); }
.btn-primary:hover { background: var(--gold-hi); }
.btn-secondary { border: 1px solid var(--gold); color: var(--text); padding: 12px 20px; }
.btn-secondary small { display: block; font-family: "EB Garamond", serif; font-style: italic; text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: 15px; color: var(--steel); }
.btn-secondary:hover { background: rgba(232,167,67,.1); }

/* ---------- tropes ---------- */
.tropes { max-width: 640px; margin: 56px auto 0; }
.tropes h2 {
  display: flex; align-items: center; gap: 16px;
  font-family: "Cinzel", serif; font-weight: 600; font-size: 15px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 8px; text-align: center;
}
.tropes h2::before, .tropes h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(232,167,67,0), var(--gold)); }
.tropes h2::after { background: linear-gradient(90deg, var(--gold), rgba(232,167,67,0)); }
.tropes ul { list-style: none; margin: 0; padding: 0; }
.tropes li {
  display: grid; grid-template-columns: 26px 1fr; align-items: baseline;
  padding: 13px 4px; border-bottom: 1px solid var(--rule);
}
.tropes li::before { content: "\2726"; color: var(--gold); font-size: 15px; }

/* ---------- footer ---------- */
footer { margin-top: 56px; padding: 26px 20px 34px; text-align: center; color: var(--steel); font-size: 15px; border-top: 1px solid var(--rule); }
footer nav a { color: var(--gold); text-decoration: none; margin: 0 10px; }
footer nav a:hover { text-decoration: underline; }
footer p { margin: 8px 0 0; }
.fine { font-size: 13px; opacity: .8; }

/* ---------- wide screens: cover left, copy right ---------- */
@media (min-width: 820px) {
  .wrap { padding-top: 56px; }
  .hero { grid-template-columns: 340px 1fr; align-items: center; gap: 56px; justify-items: stretch; }
  .cover { width: 340px; }
  .copy { text-align: left; max-width: none; }
  .ctas { justify-items: start; }
  .kicker { margin-bottom: 40px; }
}

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 20px 0; }
.legal h1 { font-size: clamp(28px, 7vw, 40px); margin-bottom: 6px; }
.legal h2 { font-family: "Cinzel", serif; font-weight: 600; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 34px 0 6px; }
.legal p, .legal li { color: #dcd6cc; }
.legal .updated { color: var(--steel); font-style: italic; margin: 0 0 24px; }
.back { display: inline-block; margin-bottom: 18px; font-family: "Cinzel", serif; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }

/* ---------- cookie banner (Europe only) ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
  max-width: 640px; margin: 0 auto; padding: 16px 18px;
  background: var(--night-2); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); font-size: 16px; line-height: 1.45;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; }
.consent-buttons { display: flex; gap: 10px; }
.consent-buttons .btn { font-size: 13px; padding: 11px 12px; cursor: pointer; font-family: "Cinzel", serif; }
.consent-buttons .btn-secondary { background: none; }
[hidden] { display: none !important; }
.consent-buttons .btn { flex: 1; }
.consent-buttons .btn-primary { border: 1px solid var(--gold); }

/* ---------- repeat button under the list ---------- */
.bottom-cta { display: grid; justify-items: center; margin-top: 34px; }
.author + .hook { margin-top: 18px; }
.ku-note { margin: 2px 0 0; font-style: italic; color: var(--steel); font-size: 17px; }
