/* =========================================================================
   Creepy Compendium — site.css
   Single shared stylesheet for v1 of creepycompendium.com
   Palette: Eldritch Archive
   Type:    Cormorant Garamond (display) + Inter (body/UI)
   ========================================================================= */

/* -- 1. CUSTOM PROPERTIES ------------------------------------------------- */
:root {
  /* Palette — Eldritch Archive */
  --void-plum:       #1C1520;  /* page background */
  --void-plum-soft:  #2A1F30;  /* card / panel background */
  --void-plum-edge:  #3A2D44;  /* hairlines, dividers */
  --hexmark-purple:  #7B3FA0;  /* primary CTA, brand accent */
  --hexmark-bright:  #8E4FB5;  /* hover state */
  --ember-amber:     #C4773B;  /* DISPLAY ONLY — 18px+ */
  --ember-glow:      #EFA66D;  /* SMALL TEXT — 12-17px, AAA contrast on void */
  --veryn-teal:      #4A8C84;  /* technical / informational accent */
  --parchment:       #EDE4D8;  /* primary on-dark text */
  --parchment-dim:   rgba(237, 228, 216, 0.85);
  --parchment-mute:  rgba(237, 228, 216, 0.6);
  --parchment-faint: rgba(237, 228, 216, 0.4);
  --bloodmoss-red:   #9B2335;  /* error / destructive only */

  /* Spacing scale (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Layout */
  --max-w:       1200px;
  --max-w-prose: 760px;
  --radius-sm:   3px;
  --radius:      4px;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --t-fast: 0.15s ease;
  --t:      0.25s ease;
}

/* -- 2. RESET ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void-plum);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* -- 3. TYPOGRAPHY -------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-glow);
  margin-bottom: var(--s-4);
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--parchment);
}
.display-xl em { font-style: italic; color: var(--ember-amber); font-weight: 500; }

.display-l {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--parchment);
}
.display-l em { font-style: italic; color: var(--ember-amber); }

.display-m {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--parchment);
  margin-bottom: var(--s-4);
}
.display-m em { font-style: italic; color: var(--ember-amber); font-weight: 500; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--parchment);
  line-height: 1.2;
  font-weight: 600;
}
h2 { font-size: 36px; line-height: 1.15; margin-bottom: var(--s-4); }
h3 { font-size: 24px; margin-bottom: var(--s-3); color: var(--veryn-teal); }
h4 { font-size: 18px; margin-bottom: var(--s-2); }

p { margin-bottom: var(--s-4); color: var(--parchment-dim); }

.lede {
  font-size: 21px;
  line-height: 1.55;
  color: rgba(237, 228, 216, 0.92);
  font-weight: 300;
  margin-bottom: var(--s-6);
  max-width: 640px;
}

blockquote {
  font-family: var(--font-display);
  font-size: 27px;
  font-style: italic;
  line-height: 1.35;
  color: var(--parchment);
  border-left: 2px solid var(--ember-amber);
  padding: var(--s-3) 0 var(--s-3) var(--s-6);
  margin: var(--s-7) 0;
}
blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--veryn-teal);
  margin-top: var(--s-4);
}

.dropcap::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 5.4em;
  float: left;
  line-height: 0.85;
  margin: 8px 14px 0 0;
  color: var(--ember-amber);
}

.caption {
  font-size: 13px;
  color: var(--parchment-mute);
  font-style: italic;
  line-height: 1.5;
}
.meta {
  font-size: 13px;
  color: var(--parchment-mute);
  letter-spacing: 0.04em;
}

/* -- 4. LAYOUT ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.container-narrow { max-width: var(--max-w-prose); }

section { padding-block: var(--s-9); }
section.section-tight { padding-block: var(--s-7); }

hr {
  border: none;
  border-top: 1px solid rgba(196, 119, 59, 0.22);
  margin: var(--s-7) 0;
}

/* -- 5. NAV --------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 21, 32, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--void-plum-edge);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  padding-block: var(--s-4);
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.site-nav__wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--parchment);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.site-nav__wordmark em { font-style: italic; color: var(--ember-amber); }
.site-nav__links {
  display: flex;
  gap: var(--s-5);
  font-size: 14px;
  font-weight: 500;
  color: rgba(237, 228, 216, 0.85);
  flex-grow: 1;
  list-style: none;
}
.site-nav__links a:hover,
.site-nav__links a.is-active { color: var(--ember-glow); }
.site-nav__cta {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  background: var(--ember-amber);
  color: var(--void-plum);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  transition: background var(--t-fast);
}
.site-nav__cta:hover { background: var(--ember-glow); }
.site-nav__toggle { display: none; }

/* -- 6. BUTTONS ----------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 24px;
  border-radius: var(--radius);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--hexmark-purple);
  color: var(--parchment);
}
.btn--primary:hover { background: var(--hexmark-bright); }

.btn--secondary {
  background: transparent;
  border-color: var(--ember-glow);
  color: var(--ember-glow);
}
.btn--secondary:hover { background: rgba(239, 166, 109, 0.08); }

.btn--ember {
  background: var(--ember-amber);
  color: var(--void-plum);
}
.btn--ember:hover { background: var(--ember-glow); }

.btn--lg { padding: 16px 32px; font-size: 15px; }

/* -- 7. CARDS / PANELS ---------------------------------------------------- */
.card {
  background: var(--void-plum-soft);
  border: 1px solid rgba(196, 119, 59, 0.18);
  border-radius: var(--radius);
  padding: var(--s-6);
  transition: border-color var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: rgba(239, 166, 109, 0.4); }
.card h3 { color: var(--parchment); margin-bottom: var(--s-2); }
.card .meta { margin-bottom: var(--s-4); }
.card__cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--void-plum-soft) 0%, var(--hexmark-purple) 50%, var(--void-plum-soft) 100%);
  border-radius: var(--radius-sm);
  margin-bottom: var(--s-5);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--parchment-mute);
}
.card__cover img { width: 100%; height: 100%; object-fit: cover; }
.card__cover .material-symbols-outlined { font-size: 64px; opacity: 0.5; }
.card__cover--square { aspect-ratio: 1 / 1; }

.card-link {
  display: block;
  background: var(--void-plum-soft);
  border: 1px solid var(--void-plum-edge);
  border-radius: var(--radius);
  padding: var(--s-6);
  transition: border-color var(--t), background var(--t);
  color: inherit;
}
.card-link:hover {
  border-color: var(--ember-glow);
  background: rgba(42, 31, 48, 0.7);
}
.card-link h3 { color: var(--ember-glow); }
.card-link h3 .arrow { display: inline-block; transition: transform var(--t); }
.card-link:hover h3 .arrow { transform: translateX(4px); }

/* -- 8. GRID -------------------------------------------------------------- */
.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* -- 9. HERO -------------------------------------------------------------- */
.hero {
  padding-block: var(--s-10) var(--s-9);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(123, 63, 160, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(74, 140, 132, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero__cta-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-6);
}

.hero--featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding-block: var(--s-9);
}
.hero--featured__cover {
  aspect-ratio: 2 / 3;
  background: var(--void-plum-soft);
  border: 1px solid var(--void-plum-edge);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.hero--featured__cover img { width: 100%; height: 100%; object-fit: cover; }

/* -- 10. NEWSLETTER FORM -------------------------------------------------- */
.newsletter {
  background: var(--void-plum-soft);
  border-top: 1px solid var(--void-plum-edge);
  border-bottom: 1px solid var(--void-plum-edge);
}
.newsletter__inner { max-width: 640px; margin-inline: auto; text-align: center; }
.newsletter__form {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-6);
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter__input {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  background: var(--void-plum);
  border: 1px solid var(--void-plum-edge);
  border-radius: var(--radius);
  color: var(--parchment);
  font-size: 15px;
  transition: border-color var(--t-fast);
}
.newsletter__input:focus {
  outline: none;
  border-color: var(--ember-glow);
}
.newsletter__input::placeholder { color: var(--parchment-faint); }
.newsletter__note {
  font-size: 12px;
  color: var(--parchment-mute);
  margin-top: var(--s-4);
}

/* -- 11. FOOTER ----------------------------------------------------------- */
.site-footer {
  background: var(--void-plum-soft);
  border-top: 1px solid var(--void-plum-edge);
  padding-block: var(--s-7) var(--s-6);
  margin-top: var(--s-9);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--s-7);
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--s-5);
}
.site-footer__brand .wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.site-footer__brand .wordmark em { font-style: italic; color: var(--ember-amber); }
.site-footer__brand p {
  font-size: 14px;
  margin-top: var(--s-3);
  max-width: 360px;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-glow);
  margin-bottom: var(--s-4);
}
.site-footer__nav { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); font-size: 14px; }
.site-footer__nav a { color: var(--parchment-dim); }
.site-footer__nav a:hover { color: var(--ember-glow); }
.site-footer__socials { display: flex; gap: var(--s-3); }
.site-footer__socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--void-plum-edge);
  border-radius: var(--radius-sm);
  color: var(--parchment-dim);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.site-footer__socials a:hover {
  border-color: var(--ember-glow);
  color: var(--ember-glow);
}
.site-footer__socials svg { width: 18px; height: 18px; }
.site-footer__legal {
  width: 100%;
  max-width: var(--max-w);
  margin: var(--s-7) auto 0;
  padding: var(--s-5) var(--s-5) 0;
  border-top: 1px solid var(--void-plum-edge);
  font-size: 12px;
  color: var(--parchment-mute);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* -- 11b. ALBUM CARDS (Crescendo) ---------------------------------------- */
.album-card {
  display: flex;
  flex-direction: column;
  background: var(--void-plum-soft);
  border: 1px solid var(--void-plum-edge);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.album-card:hover {
  border-color: rgba(239, 166, 109, 0.4);
  transform: translateY(-2px);
}
.album-card__cover {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--void-plum-soft), var(--hexmark-purple), var(--void-plum-soft));
}
.album-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t);
}
.album-card:hover .album-card__cover img { transform: scale(1.03); }
.album-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--s-2);
}
.album-card__artist {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--veryn-teal);
  margin: 0;
}
.album-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--parchment);
  margin: 0;
}
.album-card__meta {
  font-size: 12px;
  color: var(--parchment-mute);
  margin: 0;
}
.album-card__cta {
  margin-top: auto;
  padding-top: var(--s-4);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ember-glow);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.album-card__cta:hover { color: var(--ember-amber); }

/* Coming-soon card variant for crowdfunding + codex placeholders */
.coming-soon {
  background: var(--void-plum-soft);
  border: 1px dashed rgba(196, 119, 59, 0.4);
  border-radius: var(--radius);
  padding: var(--s-7) var(--s-6);
  text-align: center;
}
.coming-soon h3 { color: var(--parchment); margin-bottom: var(--s-3); }
.coming-soon .meta { color: var(--ember-glow); margin-bottom: var(--s-4); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.coming-soon p { max-width: 520px; margin: 0 auto var(--s-5); }

/* -- 12. UTILITIES -------------------------------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.text-amber { color: var(--ember-amber); }
.text-glow { color: var(--ember-glow); }
.text-teal { color: var(--veryn-teal); }
.divider-amber { border-top-color: rgba(196, 119, 59, 0.22); }
.flex { display: flex; }
.gap-3 { gap: var(--s-3); }
.flex-wrap { flex-wrap: wrap; }

/* -- 13. RESPONSIVE ------------------------------------------------------- */
@media (max-width: 880px) {
  .hero--featured { grid-template-columns: 1fr; gap: var(--s-6); }
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .site-nav__inner { gap: var(--s-4); }
  .site-nav__links { gap: var(--s-4); font-size: 13px; }
  section { padding-block: var(--s-7); }
  .hero { padding-block: var(--s-8) var(--s-7); }
}

@media (max-width: 640px) {
  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--void-plum);
    flex-direction: column;
    padding: var(--s-4) var(--s-5);
    border-bottom: 1px solid var(--void-plum-edge);
  }
  .site-nav__links.is-open { display: flex; }
  .site-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: var(--s-3);
  }
  .site-nav__toggle .material-symbols-outlined { font-size: 28px; color: var(--parchment); }
  .newsletter__form { flex-direction: column; }
  .newsletter__input { min-width: 0; }
  .site-footer__legal { flex-direction: column; }
}
