/* ================================================================
   IVY BLACKWELL — STYLESHEET
   ================================================================
   Color system (gothic black & blood red):
     --bg           Near-black (main background)
     --surface      Slightly lighter (cards, nav)
     --surface-hi   Elevated cards / hover states
     --border       Subtle separator, dried-blood tone
     --red          Blood red accent
     --gold         Aged brass / candlelight highlight
     --text         Bone / parchment white
     --muted        Secondary text
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #030303;
  --surface:    #0b0b0c;
  --surface-hi: #151516;
  --border:     #2b0f10;
  --red:        #7a0c14;
  --red-hover:  #a01420;
  --gold:       #a8905c;
  --text:       #e9e2d6;
  --muted:      #8c847c;
  --radius:     4px;
  --shadow:     0 4px 28px rgba(0,0,0,0.75);
  --shadow-card:0 2px 18px rgba(0,0,0,0.6);
  --transition: 0.2s ease;
  --max-w:      1180px;
  --nav-h:      68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(122,12,20,0.10) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 100%, rgba(122,12,20,0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------------------------------- */
.text-red    { color: var(--red-hover); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.font-sans   { font-family: 'DM Sans', system-ui, sans-serif; }

.wordmark {
  font-family: 'Pirata One', 'Cinzel', Georgia, serif;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------
   ORNAMENTAL DIVIDER
   ---------------------------------------------------------------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--red-hover);
  margin: 0 auto 28px;
}
.ornament::before,
.ornament::after {
  content: '';
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--border));
}
.ornament::after { background: linear-gradient(90deg, var(--border), transparent); }
.ornament span { font-size: 1.1rem; }

/* ----------------------------------------------------------------
   LAYOUT UTILITIES
   ---------------------------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(3,3,3,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  font-family: 'Pirata One', 'Cinzel', Georgia, serif;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.nav__logo .dot { color: var(--red-hover); }

.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }

.nav__links a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--text); background: var(--surface-hi); }
.nav__links a.active { color: var(--red-hover); }

.nav__links a.nav__crosslink {
  border: 1px solid var(--border);
  color: var(--gold);
}
.nav__links a.nav__crosslink:hover { border-color: var(--gold); background: transparent; color: var(--gold); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #180505 0%, var(--bg) 68%);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.hero__eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-hover);
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'Pirata One', 'Cinzel', Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(122,12,20,0.35);
}

.hero__subtitle {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'DM Sans', system-ui, sans-serif;
  margin-bottom: 28px;
}

.hero__tagline {
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0 auto 36px;
  max-width: 46ch;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--outline:hover { border-color: var(--red-hover); color: var(--red-hover); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--muted); border: 1px solid transparent; padding: 12px 16px; }
.btn--ghost:hover { color: var(--text); border-color: var(--border); }

/* ----------------------------------------------------------------
   SECTION HEADERS
   ---------------------------------------------------------------- */
.section-header { margin-bottom: 48px; }

.section-header__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-hover);
  margin-bottom: 10px;
}

.section-header__title { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--text); }

.section-header__desc {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 1rem;
  font-family: 'DM Sans', system-ui, sans-serif;
  max-width: 56ch;
}

/* ----------------------------------------------------------------
   BOOK CARDS (used once titles/covers are ready)
   ---------------------------------------------------------------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.book-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-hover);
  box-shadow: 0 8px 32px rgba(122,12,20,0.22);
}

.book-card__cover {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
  background: var(--surface-hi);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-card__cover--placeholder {
  color: var(--border);
  font-family: 'Pirata One', 'Cinzel', serif;
  font-size: 2.6rem;
}

.book-card__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.book-card__date {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.book-card__title { font-size: 1rem; font-family: 'Cinzel', Georgia, serif; line-height: 1.3; color: var(--text); }

.book-card__note {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: auto;
  padding-top: 10px;
}

/* ----------------------------------------------------------------
   ABOUT SNIPPET / HERO PHOTO
   ---------------------------------------------------------------- */
.about-strip {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(122,12,20,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
}

.about-strip__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  flex-shrink: 0;
}

.about-strip__quote { font-size: 1.3rem; font-style: italic; color: var(--gold); margin-bottom: 20px; line-height: 1.5; }

.about-strip__text { color: var(--muted); font-size: 1rem; line-height: 1.8; font-family: 'DM Sans', system-ui, sans-serif; }

.about-hero { padding: 80px 0; background: radial-gradient(ellipse at 30% 60%, rgba(122,12,20,0.10) 0%, transparent 70%); }

.about-hero__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }

.about-hero__photo { width: 100%; border-radius: 10px; border: 2px solid var(--border); box-shadow: var(--shadow); }

.about-hero__bio { font-size: 1.1rem; color: var(--muted); line-height: 1.9; font-family: 'DM Sans', system-ui, sans-serif; }
.about-hero__bio p { margin-bottom: 1.2em; }

.pull-quote {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--gold);
  border-left: 3px solid var(--red);
  padding: 14px 26px;
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   COMING SOON PLACEHOLDER (books page, no titles yet)
   ---------------------------------------------------------------- */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.coming-soon-card {
  aspect-ratio: 2/3;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.coming-soon-card__mark {
  font-family: 'Pirata One', 'Cinzel', serif;
  font-size: 2.4rem;
  color: var(--border);
}

.coming-soon-card__label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------------------------
   STATS STRIP
   ---------------------------------------------------------------- */
.stats-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }

.stats-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat__number { font-family: 'Cinzel', Georgia, serif; font-size: 2.2rem; color: var(--red-hover); line-height: 1; }
.stat__label { font-family: 'DM Sans', system-ui, sans-serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ----------------------------------------------------------------
   SOCIAL GRID
   ---------------------------------------------------------------- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: all var(--transition);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.social-card:hover { border-color: var(--red-hover); color: var(--text); transform: translateY(-2px); }

.social-card__icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }

.social-big-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }

.social-big-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.social-big-card:hover { border-color: var(--red-hover); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.social-big-card__icon { font-size: 1.5rem; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.social-big-card__info { flex: 1; min-width: 0; }
.social-big-card__name { font-weight: 600; font-size: 14px; color: var(--text); }
.social-big-card__handle { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ----------------------------------------------------------------
   CONTACT PAGE
   ---------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-sidebar { display: flex; flex-direction: column; gap: 24px; }

.contact-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.contact-info-card__label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red-hover); margin-bottom: 12px; }
.contact-info-card__title { font-size: 1.1rem; margin-bottom: 8px; }
.contact-info-card__text { font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 40px; }
.contact-form h2 { font-size: 1.5rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--muted); margin-top: 12px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'DM Sans', system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red-hover); }
.form-group textarea { min-height: 120px; }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0; text-align: center; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.footer__wordmark {
  font-family: 'Pirata One', 'Cinzel', Georgia, serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 16px;
}

.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; list-style: none; }
.footer__links a { font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; color: var(--muted); padding: 4px 10px; border-radius: var(--radius); transition: color var(--transition); }
.footer__links a:hover { color: var(--text); }

.footer__copy { font-family: 'DM Sans', system-ui, sans-serif; font-size: 12px; color: var(--muted); }

.footer__designed-by { font-family: 'DM Sans', system-ui, sans-serif; font-size: 11px; color: rgba(255,255,255,0.22); margin-top: 4px; }
.footer__designed-by a { color: rgba(255,255,255,0.32); text-decoration: none; transition: color var(--transition); }
.footer__designed-by a:hover { color: var(--red-hover); }

/* ----------------------------------------------------------------
   SOCIAL RAIL
   ---------------------------------------------------------------- */
.social-rail {
  position: fixed;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rail-line { width: 1px; height: 40px; background: var(--border); }
.rail-link { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: var(--muted); transition: color var(--transition), transform var(--transition); }
.rail-link svg { width: 15px; height: 15px; }
.rail-link:hover { color: var(--red-hover); transform: scale(1.25); }

@media (max-width: 1080px) { .social-rail { display: none; } }

/* ----------------------------------------------------------------
   UTILITIES
   ---------------------------------------------------------------- */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

.tag { display: inline-block; font-family: 'DM Sans', system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 3px; border: 1px solid var(--border); color: var(--muted); }
.tag--red { border-color: var(--red-hover); color: var(--red-hover); }
.tag--gold { border-color: var(--gold); color: var(--gold); }

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .about-strip { grid-template-columns: 1fr; text-align: center; padding: 36px; }
  .about-strip__photo { margin: 0 auto; }
  .about-hero__inner { grid-template-columns: 1fr; }
  .about-hero__photo { max-width: 300px; margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --nav-h: 58px; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
  }
  .nav__toggle { display: flex; }
  .section { padding: 56px 0; }
  .section--lg { padding: 80px 0; }
  .about-strip { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__inner { padding: 56px 24px; }
}
