/* ================================================================
   Shamel Spivey — Worlds Portfolio
   Mythic / storybook aesthetic for industry & collaborators
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Cinzel:wght@500;600;700&display=swap');

:root {
  --bg-deep: #0f1014;
  --bg-night: #14161d;
  --bg-card: #1b1d26;
  --bg-card-hover: #232633;
  --ink-cream: #f0e6d2;
  --ink-soft: #c8bfa6;
  --ink-muted: #8a826f;
  --gold: #c9a96e;
  --gold-bright: #e0bf85;
  --copper: #b87333;
  --burgundy: #7a2230;
  --forest: #2d4a3e;
  --rule: #2c2e3a;
  --max-width: 1100px;
  --serif-display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  --serif-body: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --serif-italic: 'Cormorant Garamond', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--ink-cream);
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ================================================================
   Typography
   ================================================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--serif-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-cream);
}

h1 { font-size: 3.5rem; line-height: 1.1; letter-spacing: 0.04em; }
h2 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.75rem; color: var(--gold-bright); }
h4 { font-size: 1.15rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.5rem; }

p { margin-bottom: 1.1rem; color: var(--ink-soft); }

p.lead {
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink-cream);
  font-style: italic;
  font-family: var(--serif-italic);
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--ink-cream);
  border-color: var(--gold-bright);
}

.eyebrow {
  font-family: var(--serif-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: inline-block;
}

/* ================================================================
   Layout
   ================================================================ */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--rule);
}

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

/* ================================================================
   Nav
   ================================================================ */

nav.site-nav {
  background: rgba(15, 16, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

nav.site-nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

nav.site-nav .brand {
  font-family: var(--serif-display);
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-cream);
  border-bottom: none;
}

nav.site-nav .brand:hover { color: var(--gold-bright); }

nav.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav.site-nav ul a {
  font-family: var(--serif-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: none;
}

nav.site-nav ul a:hover,
nav.site-nav ul a.active {
  color: var(--gold-bright);
}

/* ================================================================
   Hero
   ================================================================ */

.hero {
  padding: 7rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(201, 169, 110, 0.08), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(122, 34, 48, 0.05), transparent 60%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.hero .tagline {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto;
}

.ornament {
  display: block;
  margin: 2rem auto;
  width: 120px;
  height: auto;
  opacity: 0.7;
}

/* ================================================================
   World page hero
   ================================================================ */

.world-hero {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
}

.world-hero .key-art {
  width: 100%;
  max-width: 900px;
  height: 380px;
  margin: 0 auto 3rem;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-night));
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.world-hero .key-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(201, 169, 110, 0.15), transparent 60%);
}

.world-hero .key-art .placeholder {
  font-family: var(--serif-italic);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.world-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
}

.world-hero .logline {
  font-family: var(--serif-italic);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--gold-bright);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ================================================================
   World cards (home page)
   ================================================================ */

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.world-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.world-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.world-card .card-art {
  height: 180px;
  margin: -2.5rem -2rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-night), var(--bg-card));
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.world-card.moon .card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(240, 230, 210, 0.18), transparent 55%);
}

.world-card.flux .card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(184, 115, 51, 0.18), transparent 55%);
}

.world-card.seam .card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(122, 34, 48, 0.2), transparent 60%);
}

.world-card .card-art .symbol {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.85;
  letter-spacing: 0.08em;
}

.world-card h3 {
  font-family: var(--serif-display);
  font-size: 1.6rem;
  color: var(--ink-cream);
  margin-bottom: 0.75rem;
}

.world-card .blurb {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.world-card .arrow {
  color: var(--gold-bright);
  font-family: var(--serif-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ================================================================
   Content blocks for world pages
   ================================================================ */

.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block + .content-block { margin-top: 2.5rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.glance-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem 2.5rem;
  margin-top: 1.5rem;
}

.glance-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-soft);
}

.glance-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--gold);
  font-size: 0.85rem;
}

.glance-list li strong {
  color: var(--ink-cream);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

/* Sample / story seed cards */

.seed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.seed-card {
  background: var(--bg-card);
  border-left: 2px solid var(--gold);
  padding: 1.5rem 1.75rem;
}

.seed-card h4 {
  color: var(--gold-bright);
  font-family: var(--serif-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.seed-card p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* Excerpt / passage block */

.passage {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  border-left: 2px solid var(--gold);
  background: var(--bg-card);
  font-family: var(--serif-italic);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink-cream);
}

.passage p { color: var(--ink-cream); }
.passage p:last-child { margin-bottom: 0; }

/* ================================================================
   CTA / button
   ================================================================ */

.cta-row {
  text-align: center;
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--serif-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
}

.btn.solid {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn.solid:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* ================================================================
   About / Method blocks
   ================================================================ */

.about-block {
  max-width: 740px;
  margin: 0 auto;
  text-align: left;
}

.about-block h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.method-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.pillar {
  background: var(--bg-card);
  border-top: 2px solid var(--gold);
  padding: 2rem;
}

.pillar h3 {
  color: var(--gold-bright);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pillar .pillar-num {
  font-family: var(--serif-display);
  color: var(--ink-muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  display: block;
}

/* ================================================================
   Footer
   ================================================================ */

footer {
  padding: 4rem 0 3rem;
  background: var(--bg-night);
  border-top: 1px solid var(--rule);
  text-align: center;
}

footer .ornament-row {
  font-family: var(--serif-display);
  color: var(--gold);
  letter-spacing: 0.5em;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

footer .contact {
  font-family: var(--serif-display);
  color: var(--ink-cream);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

footer .contact a {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(201, 169, 110, 0.4);
}

footer .small {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-family: var(--serif-display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ================================================================
   Helpers
   ================================================================ */

.center { text-align: center; }
.divider {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto;
  opacity: 0.6;
}

/* ================================================================
   Responsive — Tablet and Phone
   ================================================================ */

/* Tablet (max 960px) — slight tightening */
@media (max-width: 960px) {
  body { font-size: 18px; }
  .wrap { padding: 0 1.5rem; }
  section { padding: 4rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .worlds-grid { gap: 1.5rem; }
  .method-pillars { gap: 1.5rem; }
}

/* Phone (max 720px) — major restructure */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { padding: 0 1.25rem; }

  /* Typography scales down */
  h1 { font-size: 2.1rem; line-height: 1.15; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1rem; letter-spacing: 0.12em; }
  p.lead { font-size: 1.15rem; }

  /* Sections and hero get tighter */
  section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero .tagline { font-size: 1rem; }

  /* Navigation stacks vertically on phone */
  nav.site-nav { padding: 0.85rem 0; }
  nav.site-nav .wrap {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }
  nav.site-nav .brand {
    font-size: 1rem;
    letter-spacing: 0.18em;
  }
  nav.site-nav ul {
    gap: 0.85rem 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  nav.site-nav ul a {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  /* World hero (per-world page) */
  .world-hero { padding: 3rem 0 2rem; }
  .world-hero .key-art {
    height: 220px;
    margin-bottom: 1.75rem;
  }
  .world-hero .key-art .placeholder { font-size: 0.85rem; padding: 1rem; }
  .world-hero h1 { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .world-hero .logline { font-size: 1.05rem; line-height: 1.45; }

  /* World cards (home page) — stack 1-up */
  .worlds-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .world-card { padding: 2rem 1.5rem; }
  .world-card .card-art {
    height: 140px;
    margin: -2rem -1.5rem 1.25rem;
  }
  .world-card .card-art .symbol { font-size: 2.25rem; }
  .world-card h3 { font-size: 1.4rem; }

  /* Glance list (World at a Glance) — single column */
  .glance-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .glance-list li { padding-left: 1.25rem; font-size: 0.95rem; }

  /* Seed grid (Story Seeds, POVs) — single column */
  .seed-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .seed-card { padding: 1.25rem 1.4rem; }

  /* Two-column blocks collapse */
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Passage / excerpt blocks — tighter padding */
  .passage {
    padding: 1.5rem 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
  }

  /* Method pillars stack */
  .method-pillars {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .pillar { padding: 1.5rem 1.4rem; }

  /* Buttons — full width on phones for easier tap targets */
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.78rem;
  }
  .cta-row { display: flex; flex-direction: column; gap: 0.85rem; align-items: stretch; }
  .cta-row .btn { width: 100%; box-sizing: border-box; text-align: center; }

  /* About block — tighter */
  .about-block { padding: 0; }

  /* Footer */
  footer { padding: 3rem 0 2.5rem; }
  footer .contact { font-size: 0.95rem; word-break: break-word; }
  footer .ornament-row { letter-spacing: 0.4em; }
}

/* Small phone (max 420px) — final squeeze */
@media (max-width: 420px) {
  body { font-size: 16px; }
  .wrap { padding: 0 1rem; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 2.75rem 0 2rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero .tagline { font-size: 0.95rem; }
  section { padding: 2.5rem 0; }
  .world-hero { padding: 2.5rem 0 1.75rem; }
  .world-hero .key-art { height: 180px; }
  .world-hero h1 { font-size: 1.85rem; }
  .world-hero .logline { font-size: 0.98rem; }
  .world-card { padding: 1.75rem 1.25rem; }
  .world-card .card-art { height: 120px; margin: -1.75rem -1.25rem 1rem; }
  .world-card h3 { font-size: 1.25rem; }
  .world-card .blurb { font-size: 0.95rem; }
  .passage { padding: 1.25rem 1.2rem; font-size: 1rem; }
  .seed-card { padding: 1.1rem 1.2rem; }
  .seed-card p { font-size: 0.95rem; }
  nav.site-nav ul { gap: 0.7rem 1rem; }
  nav.site-nav ul a { font-size: 0.68rem; letter-spacing: 0.12em; }
  footer .contact a { font-size: 0.9rem; }
}
