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

:root {
  --color-bg: #faf9f6;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent: #2c2c2c;
  --color-accent-hover: #000;
  --color-border: #e0ddd8;
  --color-card-bg: #fff;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-text);
}

/* Hero */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: italic;
}

.hero p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  font-weight: 300;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-accent-hover);
}

/* Journals */
.journals {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 6rem;
}

.journals h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Card */
.journal-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.journal-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.journal-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.journal-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.journal-card .card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-card-bg);
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-body h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.modal-details {
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.modal-details li {
  padding: 0.3rem 0;
}

.modal-body .btn {
  width: 100%;
  text-align: center;
}

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .journals {
    padding: 1.5rem 1.5rem 4rem;
  }

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

  .modal {
    padding: 2rem 1.5rem;
  }
}
