/*
Theme Name: Merlin's Legacy
Theme URI: https://merlin-66.de
Author: Nous Research / Michael
Author URI: https://merlin-66.de
Description: A digital monument for cats Merlin, Sheela, and Josy. Dark, elegant, bilingual memorial theme.
Version: 2.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: merlins-legacy
*/

:root {
  --color-bg: #0a0a0c;
  --color-surface: #111115;
  --color-text: #e8e6e1;
  --color-text-muted: #8a8780;
  --color-accent: #B1713E;
  --color-accent-dim: rgba(177, 113, 62, 0.15);
  --color-border: rgba(255, 255, 255, 0.06);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --max-width: 680px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.75;
  font-size: 18px;
}

/* ── Navigation / Language Switcher ── */
.top-nav {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 100;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.top-nav a:hover { opacity: 1; }

.lang-sep {
  color: var(--color-text-muted);
  opacity: 0.3;
  margin: 0 0.4rem;
}

/* ── Hero ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-section h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-section h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-section p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  max-width: 400px;
  margin: 0 auto;
}

/* ── Pillar Sections ── */
.pillar-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.pillar-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.pillar-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.pillar-title em {
  font-style: italic;
  color: var(--color-accent);
}

.pillar-section p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.pillar-section p:last-child { margin-bottom: 0; }

.pull-quote {
  border-left: 2px solid var(--color-accent);
  padding-left: 1.5rem;
  margin: 3rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-text);
  opacity: 0.9;
}

/* ── Timeline ── */
.timeline-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.pillar-section + .timeline-section::before,
.pillar-section + .sisters-section::before {
  content: '';
  display: block;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  margin: -1rem auto 2rem;
}

/* ── Sisters ── */
.sisters-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* ── Default section ── */
.default-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* ── Footer ── */
.memorial-footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.memorial-footer p {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.memorial-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .pillar-section,
  .timeline-section,
  .sisters-section {
    padding: 4rem 1.5rem;
  }
  .pull-quote {
    font-size: 1.1rem;
  }
}