/* The Drakonian Wars: site styles
   Palette and type matched to the MiblArt draft cover: near-black ground
   with a warm brown undertone, engraved gold-leaf title type, bone-white
   body text. Swap the placeholder cover art in images/cover-placeholder.svg
   the moment final art arrives; its container is built to drop a real
   image straight in. */

:root {
  --ink: #0a0806;
  --ink-raised: #18130d;
  --ink-line: #2e2617;
  --bone: #ece7dc;
  --bone-dim: #a9a49a;
  --copper: #c9a227;
  --copper-bright: #e8c766;
  --copper-dim: #8a6d1f;
  --danger-note: #9a6b45;
  --max-w: 1120px;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: var(--copper-bright);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 15, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ink-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bone);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.brand:hover { text-decoration: none; color: var(--copper-bright); }
.brand .mark { color: var(--copper); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a {
  color: var(--bone-dim);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--copper-bright);
  text-decoration: none;
}

.nav-cta {
  border: 1px solid var(--copper-dim);
  padding: 8px 16px;
  border-radius: 3px;
  color: var(--copper-bright) !important;
}
.nav-cta:hover {
  background: var(--copper);
  color: var(--ink) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-line);
  color: var(--bone);
  padding: 8px 10px;
  border-radius: 3px;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--copper);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--copper-bright);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink-line);
  color: var(--bone);
}
.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper-bright);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--ink-line);
  background:
    radial-gradient(ellipse 900px 500px at 80% -10%, rgba(201, 162, 39, 0.14), transparent 60%),
    var(--ink);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-bright);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  background: linear-gradient(180deg, var(--copper-bright) 0%, var(--copper) 55%, var(--copper-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--bone-dim);
  margin: 0 0 28px;
}

.hook-line {
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--bone);
  border-left: 2px solid var(--copper);
  padding-left: 20px;
  margin: 0 0 26px;
}

.teaser {
  color: var(--bone-dim);
  font-size: 1.03rem;
  margin: 0 0 34px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Cover art placeholder ---------- */

.cover-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  max-width: 360px;
  margin: 0 auto;
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-raised);
}

.cover-frame img { width: 100%; height: 100%; object-fit: cover; }

.cover-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--bone-dim);
  margin-top: 10px;
  letter-spacing: 0.03em;
}

/* ---------- Sections ---------- */

section.block {
  padding: 72px 0;
  border-bottom: 1px solid var(--ink-line);
}

section.block:last-of-type { border-bottom: none; }

.block h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  color: var(--bone);
}

.block h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 28px 0 10px;
  color: var(--bone);
}

.lede {
  font-size: 1.08rem;
  color: var(--bone-dim);
  max-width: 64ch;
  margin-bottom: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.card {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: 4px;
  padding: 24px;
}

.card h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--copper-bright);
}

.card p { margin: 0; color: var(--bone-dim); font-size: 0.95rem; }

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--copper-dim);
  color: var(--copper-bright);
  margin-bottom: 10px;
}

/* ---------- Forms ---------- */

.signup-form {
  max-width: 460px;
  margin-top: 28px;
}

.signup-form .field {
  margin-bottom: 16px;
}

.signup-form label {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
  margin-bottom: 6px;
}

.signup-form input[type="email"],
.signup-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: 3px;
  color: var(--bone);
  font-size: 1rem;
  font-family: var(--sans);
}

.signup-form input:focus {
  outline: none;
  border-color: var(--copper);
}

.form-note {
  font-size: 0.82rem;
  color: var(--bone-dim);
  margin-top: 12px;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0;
  font-size: 0.88rem;
  color: var(--bone-dim);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--bone-dim); }
.footer-links a:hover { color: var(--copper-bright); }

/* ---------- News list ---------- */

.news-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--ink-line);
}
.news-item:last-child { border-bottom: none; }

.news-date {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper-bright);
  margin-bottom: 6px;
}

.news-item h3 { margin: 0 0 8px; }
.news-item p { color: var(--bone-dim); margin: 0; }

.empty-note {
  color: var(--bone-dim);
  font-style: italic;
  padding: 24px 0;
}

/* ---------- Page hero (non-home) ---------- */

.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--ink-line);
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  background: linear-gradient(180deg, var(--copper-bright) 0%, var(--copper) 55%, var(--copper-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .lede { margin: 0; }

/* ---------- Misc ---------- */

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-clean li {
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-line);
  color: var(--bone-dim);
}
.list-clean li:last-child { border-bottom: none; }
.list-clean strong { color: var(--bone); }

.placeholder-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--danger-note);
  border: 1px dashed var(--danger-note);
  padding: 2px 8px;
  border-radius: 3px;
}

/* ---------- MailerLite embed override ---------- */
/* Reskins MailerLite's default light widget to match the site's dark/gold
   theme. MailerLite renders its own markup inside .ml-embedded at runtime,
   so these target its standard class names with !important since the
   widget injects some inline/default styling of its own. */

.ml-embed-frame {
  max-width: 460px;
  margin-top: 28px;
}

.ml-embed-frame .ml-form-embedContainer,
.ml-embed-frame .ml-form-embedWrapper,
.ml-embed-frame .ml-form-embedBody,
.ml-embed-frame .ml-form-successBody {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  font-family: var(--sans) !important;
}

.ml-embed-frame .ml-form-embedContent h4,
.ml-embed-frame .ml-form-successContent h4 {
  font-family: var(--display) !important;
  color: var(--bone) !important;
  font-size: 1.1rem !important;
  margin: 0 0 6px !important;
}

.ml-embed-frame .ml-form-embedContent p,
.ml-embed-frame .ml-form-successContent p {
  color: var(--bone-dim) !important;
  font-size: 0.95rem !important;
  margin: 0 0 16px !important;
}

.ml-embed-frame .ml-field-group {
  margin-bottom: 16px !important;
}

.ml-embed-frame input.form-control,
.ml-embed-frame .ml-form-fieldRow input {
  width: 100% !important;
  padding: 12px 14px !important;
  background: var(--ink-raised) !important;
  border: 1px solid var(--ink-line) !important;
  border-radius: 3px !important;
  color: var(--bone) !important;
  font-size: 1rem !important;
  font-family: var(--sans) !important;
  box-shadow: none !important;
}

.ml-embed-frame input.form-control::placeholder {
  color: var(--bone-dim) !important;
  opacity: 1 !important;
}

.ml-embed-frame input.form-control:focus {
  outline: none !important;
  border-color: var(--copper) !important;
}

/* Style only the actual submit button. Deliberately NOT touching `display`
   here, MailerLite toggles this button's inline display (none/inline-block)
   itself to show/hide it during submission; forcing display via CSS breaks
   that toggle and makes the loading spinner button appear "stuck" on top
   of it. */
.ml-embed-frame .ml-form-embedSubmit button.primary {
  font-family: var(--sans) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 14px 28px !important;
  border-radius: 3px !important;
  border: 1px solid transparent !important;
  background: var(--copper) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  width: auto !important;
}

.ml-embed-frame .ml-form-embedSubmit button.primary:hover {
  background: var(--copper-bright) !important;
}

/* The loading/spinner button: only restyle its look, never force it visible
   or hidden, MailerLite's JS controls that via inline style. */
.ml-embed-frame .ml-form-embedSubmit button.loading {
  font-family: var(--sans) !important;
  padding: 14px 28px !important;
  border-radius: 3px !important;
  border: 1px solid var(--ink-line) !important;
  background: transparent !important;
  color: var(--bone-dim) !important;
  box-shadow: none !important;
}

.ml-embed-frame .ml-form-embedPermissions,
.ml-embed-frame .ml-form-embedPermissions p,
.ml-embed-frame .ml-form-embedPermissions label {
  color: var(--bone-dim) !important;
  font-size: 0.8rem !important;
}

.ml-embed-frame .ml-error input.form-control {
  border-color: var(--danger-note) !important;
}

.ml-embed-frame .ml-form-recaptcha {
  margin-top: 12px !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .cover-frame { order: -1; max-width: 280px; }
  .two-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  section.block { padding: 48px 0; }
}
