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

:root {
  --bg: #faf9f6;
  --bg-alt: #f0eeea;
  --text: #1a1a1a;
  --text-muted: #555;
  --accent: #8b4513;
  --accent-light: #a0522d;
  --border: #d4cfc7;
  --serif: 'EB Garamond', 'Georgia', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --max-width: 780px;
  --max-width-wide: 1100px;
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

/* === Hero === */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: var(--bg);
  position: relative;
}

.hero-inner {
  max-width: 700px;
}

.hero-etymology {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

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

.hero h1 {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto;
}

/* === Sections === */
.section {
  padding: 5rem 2rem;
}

.section-alt {
  background: var(--bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.section-label {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.section h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.section-intro {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* === Prose === */
.prose p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

.prose em {
  font-style: italic;
}

.prose strong {
  font-weight: 600;
}

/* === Domains Grid === */
.section-domains {
  background: var(--bg);
  padding: 5rem 2rem;
}

.section-domains .section-inner {
  max-width: var(--max-width-wide);
}

.section-domains h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.domain-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.domain-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.domain-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.domain-card h3 {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.domain-card p {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === Media Grid === */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.media-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: 4px;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.media-placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

.media-placeholder p {
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Media card (for when content is added) */
.media-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.media-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.media-card-embed {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
}

.media-card-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.media-card-body {
  padding: 1.2rem 1.5rem;
}

.media-card-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.media-card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.media-card-desc {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === Contact === */
.contact-prose {
  text-align: center;
}

.contact-email {
  margin-top: 1.5rem;
}

.contact-email a {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.contact-email a:hover {
  opacity: 0.7;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

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

/* === Responsive === */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
  }

  .hero {
    min-height: 70vh;
    padding: 5rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .domains-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-etymology {
    font-size: 0.75rem;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .prose p {
    font-size: 1rem;
  }
}

/* === Fade-in animation === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
