/* ============================================================
   THE MORTAL CRYSTALLINE — Dedicated launch site
   themortalcrystalline.com
   ============================================================ */

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;padding:0;}
img{max-width:100%;display:block;}
a{color:inherit;}
button{font:inherit;cursor:pointer;border:0;background:none;}

:root{
  --ink: #0e1013;
  --ink-2: #161820;
  --iron: #3a3e43;
  --iron-2: #2a2d34;
  --frost: #d9d4c7;
  --bone: #ece6d6;
  --cream: #efe7d2;
  --wool: #1d1f23;
  --gold: #a8894d;
  --gold-hi: #d7b878;
  --gold-lo: #6e5526;
  --foxglove: #6b3f68;
  --text: #e8e0c8;
  --text-soft: #b5ac94;
  --text-muted: #8a8575;

  --serif: "Cormorant Garamond", Georgia, serif;
  --serif-body: "EB Garamond", Georgia, serif;
  --display: "Cinzel", "Trajan Pro", serif;

  --w-narrow: 720px;
  --w-content: 920px;
  --w-wide: 1120px;
}

body{
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:1;
  background-image:
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.10) 1px, transparent 1px);
  background-size:5px 5px,7px 7px;
  background-position:0 0,2px 3px;
  opacity:.5;mix-blend-mode:overlay;
}

main, header, footer { position: relative; z-index: 2; }

/* ====== TYPOGRAPHY ====== */
.gold-text{
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 70%, var(--gold) 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
}
.gold-flat{
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.kicker{
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .55em;
  text-transform: uppercase;
  color: #c9a961;
  opacity: .9;
  margin: 0;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: .01em;
  margin: 0;
}
h1 { font-size: clamp(48px, 8vw, 96px); line-height: .95; }
h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1; }
h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15em; line-height: 1.6; color: var(--text); }
.tagline {
  font-style: italic;
  color: var(--text-soft);
  font-family: var(--serif-body);
}

.ornament {
  width: 80px; height: 1px; background: var(--gold);
  opacity: .8; border: 0; margin: 36px auto;
}

/* ====== NAV ====== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,12, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(168, 137, 77, .15);
}
.nav{
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.nav-brand{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  text-decoration: none;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  line-height: 1.1;
}
.nav-brand .small{
  display:block;
  font-family: var(--display);
  font-style: normal;
  font-size: 9px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}
.nav-links{
  display: flex; gap: 28px; align-items: center;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.nav-links a{
  color: var(--text-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--gold-hi); }

/* ====== BUTTONS ====== */
.btn{
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: all .2s ease;
  border: 1px solid var(--gold);
  cursor: pointer;
}
.btn-primary{
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  color: var(--ink);
  border: 1px solid var(--gold-hi);
}
.btn-primary:hover{ filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary{
  background: transparent;
  color: var(--gold-hi);
}
.btn-secondary:hover{ background: rgba(168,137,77,.12); }

/* ====== SECTIONS ====== */
section{ padding: 100px 28px; }
.container{ max-width: var(--w-content); margin: 0 auto; }
.container-narrow { max-width: var(--w-narrow); margin: 0 auto; }
.container-wide { max-width: var(--w-wide); margin: 0 auto; }
.center { text-align: center; }

/* ====== HERO ====== */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 80px 28px;
}
.hero-bg{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 20%, rgba(75,62,85,.45) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 60%, rgba(214,204,174,.18) 0%, transparent 50%),
    linear-gradient(180deg, #2a2832 0%, #1a1820 60%, #0e0c14 100%);
}
.hero-vignette{
  position:absolute;inset:0;pointer-events:none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.6) 100%);
}
.hero-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--w-wide);
  margin: 0 auto;
  width: 100%;
}
.hero-text > .kicker { margin-bottom: 24px; }
.hero-text h1 {
  font-size: clamp(44px, 6.5vw, 84px);
  margin-bottom: 24px;
}
.hero-the {
  display: block;
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: .5em;
  margin-bottom: 12px;
}
.hero-tagline {
  font-style: italic;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-soft);
  margin-bottom: 36px;
}
.hero-meta{
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 36px;
}
.hero-cta{
  display: flex; flex-wrap: wrap; gap: 14px;
}
.hero-cover{
  position: relative;
  display: flex; justify-content: center; align-items: center;
}
.hero-cover img{
  max-width: 100%;
  width: 420px;
  box-shadow:
    0 30px 60px rgba(0,0,0,.55),
    0 12px 24px rgba(0,0,0,.4),
    0 0 0 1px rgba(168, 137, 77, .15);
  transform: rotate(-2deg);
  transition: transform .4s ease;
}
.hero-cover img:hover { transform: rotate(0deg) scale(1.02); }

/* ====== EMAIL SIGNUP ====== */
.signup{
  background: linear-gradient(180deg, #1a1820 0%, #0e0c14 100%);
  border-top: 1px solid rgba(168, 137, 77, .2);
  border-bottom: 1px solid rgba(168, 137, 77, .2);
  padding: 80px 28px;
  position: relative;
}
.signup::before{
  content:""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(107,63,104,.15) 0%, transparent 60%);
  pointer-events: none;
}
.signup-inner{
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.signup h2 { margin-bottom: 18px; }
.signup p { color: var(--text-soft); margin-bottom: 36px; font-size: 1.05em; }
.signup-form{
  display: flex; gap: 12px; max-width: 520px; margin: 0 auto;
}
.signup-form input[type="email"]{
  flex: 1;
  background: rgba(20,20,24,.7);
  border: 1px solid rgba(168, 137, 77, .35);
  color: var(--text);
  padding: 14px 18px;
  font-family: var(--serif-body);
  font-size: 16px;
  transition: border-color .2s ease;
}
.signup-form input[type="email"]:focus{
  outline: none;
  border-color: var(--gold-hi);
}
.signup-form input[type="email"]::placeholder{ color: var(--text-muted); }

/* ====== RETAILERS ====== */
.retailers{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 30px auto 0;
}
.retailer-btn{
  display: flex; flex-direction: column; align-items: center;
  padding: 22px 16px;
  border: 1px solid rgba(168, 137, 77, .35);
  background: rgba(20, 20, 24, .5);
  text-decoration: none;
  color: var(--text);
  transition: all .2s ease;
}
.retailer-btn:hover{
  background: rgba(168, 137, 77, .12);
  border-color: var(--gold-hi);
  transform: translateY(-2px);
}
.retailer-name{
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-hi);
  margin-bottom: 6px;
}
.retailer-format{
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 13px;
  color: var(--text-soft);
}

/* ====== CHARACTERS ====== */
.character-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
}
.character{
  text-align: center;
}
.character-portrait{
  width: 100%; max-width: 360px;
  margin: 0 auto 28px;
  position: relative;
}
.character-portrait img{
  width: 100%;
  border: 1px solid rgba(168, 137, 77, .3);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.character h3 {
  font-size: 38px;
  margin-bottom: 18px;
}
.character-quote{
  font-style: italic;
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  max-width: 360px;
  margin: 0 auto;
}

/* ====== EXCERPT (parchment) ====== */
.excerpt{
  background: linear-gradient(180deg, rgba(236,230,214,.96), rgba(222,214,192,.96));
  color: #1a1c1f;
  padding: 70px 60px;
  position: relative;
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: inset 0 0 60px rgba(80,60,20,.12);
}
.excerpt::before{
  content:""; position: absolute; inset: 12px;
  border: 1px solid rgba(80,60,20,.2);
  pointer-events: none;
}
.excerpt-inner{
  position: relative;
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto;
}
.excerpt-inner p:first-of-type::first-letter{
  font-family: var(--serif);
  font-weight: 500;
  font-size: 56px;
  line-height: .9;
  float: left;
  padding: 6px 10px 0 0;
  color: #2a2c30;
}
.excerpt-attribution{
  margin-top: 30px;
  text-align: center;
  font-style: italic;
  color: #5a4a3a;
  font-size: 14px;
}

/* ====== AUTHOR PAGE ====== */
.about-grid{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}
.about-photo{
  width: 100%;
  border: 1px solid rgba(168, 137, 77, .35);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.about-text h2 { margin-bottom: 28px; }
.about-text p { font-size: 17px; }

/* ====== THEME SONG ====== */
.theme-song{
  text-align: center;
  padding: 60px 28px;
  background: rgba(107, 63, 104, .08);
  border-top: 1px solid rgba(168, 137, 77, .15);
  border-bottom: 1px solid rgba(168, 137, 77, .15);
}
.theme-song .kicker { margin-bottom: 18px; }
.theme-song h3 {
  font-style: italic;
  margin-bottom: 8px;
}
.theme-song p {
  color: var(--text-soft);
  margin-bottom: 24px;
  font-style: italic;
}

/* ====== STORY PAGE EXTRAS ====== */
.story-section{
  margin-bottom: 80px;
}
.story-section .kicker{
  text-align: center;
  margin-bottom: 18px;
}
.story-section h2{
  text-align: center;
  margin-bottom: 36px;
}
.world-note{
  background: rgba(20,20,24,.5);
  border-left: 2px solid var(--gold);
  padding: 32px 36px;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.65;
}
.world-note strong{
  color: var(--gold-hi);
  font-style: normal;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .35em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}

/* ====== FOOTER ====== */
.site-footer{
  background: #08080c;
  border-top: 1px solid rgba(168, 137, 77, .15);
  padding: 50px 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.site-footer .footer-brand{
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  margin-bottom: 14px;
  display: inline-block;
}
.site-footer p { margin: 6px 0; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--gold-hi); }
.site-footer .other-works{
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(168, 137, 77, .12);
  font-size: 13px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 880px){
  .hero-grid{
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-cta{ justify-content: center; }
  .hero-cover img{ width: 320px; }
  .character-row{ grid-template-columns: 1fr; gap: 50px; }
  .about-grid{
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-photo{ max-width: 260px; margin: 0 auto; }
  .nav-links{ gap: 18px; font-size: 10px; letter-spacing: .25em; }
  section{ padding: 70px 24px; }
  .signup-form{ flex-direction: column; }
  .excerpt{ padding: 40px 28px; }
}
@media (max-width: 540px){
  .nav-brand{ font-size: 18px; }
  .nav-brand .small{ display: none; }
  .nav-links{ gap: 14px; }
}
