@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  --bg: #f7f3ea;
  --bg-panel: #fffdf8;
  --bg-alt: #efe8d8;
  --border: #ddd2b8;
  --text: #211d16;
  --text-dim: #6e6555;
  --accent: #0d6e5c;
  --accent-dark: #094e41;
  --accent-warm: #a8621e;
  --radius: 8px;
  --max-width: 1120px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo span { color: var(--accent); }

nav.main-nav {
  display: flex;
  gap: 30px;
}

nav.main-nav a {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 8px 0 16px;
}
.mobile-nav a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; }

body.nav-open .mobile-nav { display: flex; }

@media (max-width: 760px) {
  nav.main-nav { display: none; }
  .menu-btn { display: flex; }
}

/* Hero */
.hero {
  padding: 64px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.14;
  margin: 0 0 30px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.chromo-art {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(30, 25, 10, 0.1));
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { text-align: center; }
  .hero-actions { justify-content: center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fdfbf5; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; border-color: var(--text); color: var(--text); }
.btn-secondary:hover { background: var(--bg-alt); }

/* Category index */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 700;
  margin: 0 0 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 72px;
}
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(30, 25, 10, 0.04), 0 10px 24px -18px rgba(30, 25, 10, 0.25);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--c, var(--accent));
  box-shadow: 0 4px 10px rgba(30, 25, 10, 0.06), 0 18px 30px -16px rgba(30, 25, 10, 0.28);
}
.card .icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c, var(--accent)) 15%, white);
  color: var(--c, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a:hover { color: var(--text); }

/* Placeholder pages */
.placeholder {
  padding: 80px 0 120px;
  text-align: center;
}
.placeholder h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}
.placeholder p {
  color: var(--text-dim);
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.breadcrumb a:hover { color: var(--text); }
