/* =========================================
   GEMNOTE — Literary Magazine Theme
   ========================================= */

/* Fonts */
:root {
  --font-serif: 'EB Garamond', Georgia, serif;
  --font-sans: 'Instrument Sans', system-ui, sans-serif;

  /* Palette */
  --bg: #FAF7F0;
  --bg-warm: #F4EFE6;
  --fg: #1C1814;
  --fg-muted: #5C5347;
  --fg-faint: #9C8F82;
  --accent: #C8953A;
  --accent-light: #E8C47A;
  --border: #DDD5C4;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* =========================================
   HERO
   ========================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

/* Background geometric */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at center, #E8D5B0 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

/* Vertical gold rule */
.hero::after {
  content: '';
  position: absolute;
  right: 38%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
  opacity: 0.25;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.4;
  margin-bottom: 32px;
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 440px;
}

/* Cover mockup */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cover-mock {
  width: 240px;
  background: var(--fg);
  border-radius: 2px;
  box-shadow:
    0 2px 4px rgba(28,24,20,0.08),
    0 12px 40px rgba(28,24,20,0.18),
    0 32px 80px rgba(28,24,20,0.12);
  position: relative;
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.cover-mock:hover {
  transform: rotate(-1deg) translateY(-4px);
}

.cover-gold-line {
  height: 4px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.cover-inner {
  padding: 32px 28px 36px;
}

.cover-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
}

.cover-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--bg);
  line-height: 1;
  margin-bottom: 24px;
}

.cover-line {
  height: 1px;
  background: rgba(250,247,240,0.2);
  margin-bottom: 10px;
}

.cover-line.short { width: 60%; }
.cover-line.medium { width: 80%; margin-bottom: 20px; }

.cover-gem {
  display: flex;
  justify-content: center;
  opacity: 0.7;
}

/* =========================================
   MANIFESTO
   ========================================= */

.manifesto {
  background: var(--fg);
  padding: 100px 48px;
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 40px;
}

.manifesto-quote {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.75;
  color: #E8DFD0;
}

.manifesto-quote p {
  margin-bottom: 20px;
}

.manifesto-quote p:last-child {
  margin-bottom: 0;
}

.manifesto-quote p + p::before {
  content: '';
  display: block;
  height: 1px;
  width: 24px;
  background: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}

/* =========================================
   HOW IT WORKS
   ========================================= */

.how {
  padding: 100px 48px;
  background: var(--bg);
}

.how-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 56px;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step {
  padding: 0 40px;
}

.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }

.step-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}

.step-divider {
  width: 1px;
  height: 100px;
  background: var(--border);
  margin-top: 28px;
}

/* =========================================
   VOICES / TRAITS
   ========================================= */

.voices {
  background: var(--bg-warm);
  padding: 100px 48px;
}

.voices-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.voices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  margin-top: 0;
}

.trait {
  padding: 0;
}

.trait-icon {
  margin-bottom: 16px;
}

.trait-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 10px;
}

.trait-body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-muted);
}

/* =========================================
   CLOSING STATEMENT
   ========================================= */

.closing {
  padding: 100px 48px;
  background: var(--bg);
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing-rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 40px;
}

.closing-text {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.65;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 32px;
}

.closing-sub {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background: var(--fg);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-gem {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--bg);
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(250,247,240,0.4);
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {
  .hero {
    padding: 80px 24px 60px;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero::after { display: none; }

  .hero-visual {
    order: -1;
  }

  .cover-mock {
    width: 180px;
  }

  .manifesto {
    padding: 72px 24px;
  }

  .manifesto-quote {
    font-size: 17px;
  }

  .how {
    padding: 72px 24px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-divider { display: none; }
  .step { padding: 0; }

  .voices {
    padding: 72px 24px;
  }

  .voices-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .closing {
    padding: 72px 24px;
  }

  .closing-text {
    font-size: 19px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* =========================================
   SCROLLBAR
   ========================================= */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-faint); }