﻿:root {
  --bg: #f2efe6;
  --ink: #1b1a17;
  --muted: #6a645a;
  --card: #fcfaf4;
  --line: #cbc2b2;
  --accent: #9b1f1f;
  --accent-soft: #d9703f;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
body {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #f9f5eb 0%, var(--bg) 52%, #e9e1d1 100%);
  line-height: 1.55;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.22;
}
.bg-orb-a { width: 40vw; height: 40vw; background: #e7b37a; top: -8vw; left: -12vw; }
.bg-orb-b { width: 32vw; height: 32vw; background: #9b1f1f; bottom: -10vw; right: -8vw; }

.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 5vw;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 75%, white 25%);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  letter-spacing: 0.03em;
  font-size: 1.3rem;
}

nav { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
nav a.active { border-bottom-color: var(--accent); }
nav a:hover { color: var(--accent); border-bottom-color: color-mix(in srgb, var(--accent) 45%, white 55%); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 0.3rem;
}
.lang-switch a {
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: #f9f4ea;
}
.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

main { width: min(1160px, 92vw); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 2.6rem;
}
.hero-copy h1 {
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  line-height: 0.98;
  margin: 0.3rem 0 1.1rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(30, 20, 14, 0.18);
  background: #7f1717;
}
.btn.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.btn-secondary:hover {
  background: #f5eee2;
  box-shadow: 0 10px 20px rgba(30, 20, 14, 0.12);
}
.hero-art img {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, white 65%);
  box-shadow: 0 18px 50px rgba(22, 16, 12, 0.22);
}

.hero-art img.no-crop {
  object-fit: contain;
  max-height: none;
  height: auto;
  background: #f8f4ea;
}

.section { padding: 2.2rem 0; border-top: 1px solid var(--line); }
h1, h2 {
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.5rem);
  margin-top: 0;
  margin-bottom: 1rem;
}
h3 { margin-top: 0; }
.lead { font-size: 1.08rem; color: #352f27; }
blockquote {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent-soft);
  background: #f6f0e2;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.pdf-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 14, 10, 0.12);
}
.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.card a:hover { text-decoration: underline; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.kpi {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: #f8f3e7;
}
.kpi .kpi-value {
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: 1.55rem;
  color: var(--accent);
  margin: 0;
}
.kpi .kpi-label {
  margin: 0.2rem 0 0;
  color: #3d362d;
  font-size: 0.9rem;
}

.pill-list {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0;
}
.pill {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: #f6f0e3;
  color: #433c33;
}

.cta-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, #f7efe2 76%, #fff 24%);
  padding: 1.1rem 1.2rem;
}
.cta-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.gallery { column-count: 4; column-gap: 0.8rem; }
.gallery figure {
  margin: 0 0 0.8rem;
  break-inside: avoid;
  background: #f8f3e8;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.gallery img { width: 100%; display: block; cursor: zoom-in; }
.gallery figcaption { padding: 0.5rem 0.7rem 0.7rem; font-size: 0.86rem; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.timeline li {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f4ea;
}
.timeline span { font-weight: 700; color: var(--accent); margin-right: 0.45rem; }

.site-footer {
  padding: 1.7rem 5vw 2.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-socials {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  transition: transform 0.15s ease, background 0.15s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: #f4ece0;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.language-home {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.language-panel {
  width: min(560px, 96vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
}
.language-panel h1 {
  font-family: "Bodoni MT", Didot, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 1rem;
}
.language-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.language-actions a {
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.lightbox button {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  border: 0;
  background: #fff;
  border-radius: 999px;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) { .gallery { column-count: 3; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: 1fr; }
  .gallery { column-count: 2; }
}
@media (max-width: 520px) {
  .gallery { column-count: 1; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; text-align: center; }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: center;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .js .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 0.45rem;
    border-top: 1px solid var(--line);
  }

  .js .site-header.nav-open nav { display: flex; }

  .js .site-header nav > a {
    display: block;
    width: 100%;
    padding: 0.26rem 0;
    font-size: 0.82rem;
  }

  .js .site-header nav .lang-switch {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.9rem;
}
.archive-card {
  border: 1px solid var(--line);
  background: #f8f4ea;
  border-radius: 12px;
  overflow: hidden;
}
.archive-media {
  aspect-ratio: 4 / 3;
  background: #efe7d8;
  display: grid;
  place-items: center;
}
.archive-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.archive-meta {
  padding: 0.6rem 0.7rem;
  font-size: 0.85rem;
}
.archive-meta p {
  margin: 0.2rem 0;
}
.no-preview {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  padding: 0.8rem;
}
