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

:root {
  --bg: #0e0c0a;
  --bg-warm: #161210;
  --fg: #e8e0d4;
  --fg-muted: #9a8e7f;
  --fg-dim: #5c5347;
  --accent: #c4a882;
  --accent-warm: #a67c52;
  --border: rgba(196, 168, 130, 0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* ─── HERO ─── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg-warm) 0%, transparent 40%, rgba(166, 124, 82, 0.03) 100%);
  pointer-events: none;
}

.hero__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 14ch;
}

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

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--fg-muted);
  margin-top: var(--space-md);
  max-width: 38ch;
  line-height: 1.5;
}

.hero__line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin-top: var(--space-lg);
  opacity: 0.5;
}

/* ─── PHILOSOPHY ─── */

.philosophy {
  padding: var(--space-xxl) var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  border-top: 1px solid var(--border);
}

.philosophy__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 0.15em;
}

.philosophy__content {
  max-width: 520px;
}

.philosophy__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: var(--space-md);
}

.philosophy__detail {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 440px;
}

/* ─── MATERIALS ─── */

.materials {
  padding: var(--space-xl) var(--space-lg) var(--space-xxl);
  border-top: 1px solid var(--border);
}

.materials__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
}

.materials__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.materials__count {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding-top: 0.8em;
}

.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.material-card {
  background: var(--bg);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: background 0.4s ease;
}

.material-card:hover {
  background: var(--bg-warm);
}

.material-card__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: auto;
}

.material-card__line {
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: var(--space-sm);
}

.material-card__desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 220px;
}

/* ─── EDITIONS ─── */

.editions {
  padding: var(--space-xxl) var(--space-lg);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.editions__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editions__number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 300;
  line-height: 0.85;
  color: var(--accent);
  opacity: 0.2;
}

.editions__label-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: var(--space-sm);
}

.editions__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-lg);
}

.editions__principle {
  border-left: 1px solid var(--border);
  padding-left: var(--space-md);
}

.editions__principle-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.editions__principle-text {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 380px;
}

/* ─── CLOSING ─── */

.closing {
  padding: var(--space-xxl) var(--space-lg);
  border-top: 1px solid var(--border);
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.closing__text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--fg);
  max-width: 20ch;
  margin-bottom: var(--space-md);
}

.closing__detail {
  font-size: 0.82rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  max-width: 360px;
  line-height: 1.8;
}

/* ─── FOOTER ─── */

.footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.footer__location {
  font-size: 0.72rem;
  color: var(--fg-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {
  .philosophy {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-md);
  }
  .materials {
    padding: var(--space-xl) var(--space-md);
  }
  .materials__grid {
    grid-template-columns: 1fr 1fr;
  }
  .editions {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-md);
  }
  .hero {
    padding: var(--space-md) var(--space-md) var(--space-xl);
  }
  .closing {
    padding: var(--space-xl) var(--space-md);
  }
  .footer {
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .materials__grid {
    grid-template-columns: 1fr;
  }
  .materials__header {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .material-card {
    min-height: 200px;
  }
}