:root {
  --ink: #1d2623;
  --muted: #68736f;
  --paper: #f4f1ea;
  --card: #fffdfa;
  --green: #18342f;
  --green-2: #285248;
  --gold: #b68a4a;
  --line: #ded9cf;
  --shadow: 0 18px 60px rgba(24, 52, 47, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 90% 5%, rgba(182,138,74,.12), transparent 24rem), var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--green-2); text-underline-offset: .18em; }
a:hover { color: var(--gold); }

.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .7rem 1rem; background: #fff; color: #111; border-radius: .4rem; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; color: #fff; background: rgba(24,52,47,.96); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.header-inner { width: min(1180px, calc(100% - 2rem)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-family: Georgia, serif; font-size: 1rem; letter-spacing: .06em; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.13rem; font-weight: 500; letter-spacing: .015em; }
.brand small { margin-top: .18rem; color: rgba(255,255,255,.66); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: .2rem; }
.nav-link { padding: .65rem .8rem; color: rgba(255,255,255,.72); border-radius: .45rem; font-size: .86rem; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-link.active { box-shadow: inset 0 -2px var(--gold); }
.lang-link { display: grid; place-items: center; min-width: 38px; min-height: 38px; margin-left: .3rem; border-radius: .45rem; text-decoration: none; }
.lang-link:hover, .lang-link:focus-visible { background: rgba(255,255,255,.1); }
.lang-flag { position: relative; display: block; width: 22px; height: 15px; overflow: hidden; border: 1px solid rgba(255,255,255,.45); border-radius: 1px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.bg-lang-flag i { display: block; height: calc(100% / 3); }
.bg-lang-flag i:nth-child(1) { background: #fff; }
.bg-lang-flag i:nth-child(2) { background: #00966e; }
.bg-lang-flag i:nth-child(3) { background: #d62612; }
.en-lang-flag { background: linear-gradient(#fff 0 40%, #c8102e 40% 60%, #fff 60%); }
.en-lang-flag::before { content: ""; position: absolute; inset: 0 40%; background: #c8102e; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.menu-toggle { display: none; color: #fff; background: none; border: 0; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: currentColor; }
.menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.subnav { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem; padding: .7rem 1rem; background: rgba(255,253,250,.86); border-bottom: 1px solid var(--line); }
.sub-link { padding: .42rem .7rem; border-radius: 99px; color: var(--muted); font-size: .78rem; text-decoration: none; }
.sub-link:hover, .sub-link.active { color: var(--green); background: #e7ece8; }

#content { width: min(1040px, calc(100% - 2rem)); margin: 0 auto; padding: 4.5rem 0 5rem; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .42fr); align-items: end; gap: 2rem; margin-bottom: 2rem; }
.eyebrow { margin: 0 0 .85rem; color: var(--gold); font-size: .72rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 6vw, 4.7rem); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.hero-line { height: 1px; margin-bottom: .7rem; background: linear-gradient(90deg, var(--gold), transparent); }
.content-card { padding: clamp(1.35rem, 4vw, 3.5rem); background: var(--card); border: 1px solid rgba(222,217,207,.9); border-radius: 1.2rem; box-shadow: var(--shadow); }
.prose { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.02rem, 1.3vw, 1.12rem); line-height: 1.78; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--green); }
.prose em { color: #535d59; }
.prose h2 { margin: 2rem 0 .75rem; color: var(--green); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 500; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin: .55rem 0; }
.prose > img, .prose p > img { display: inline-block; max-height: 160px; width: auto; margin: .4rem .4rem 1.2rem; border-radius: .65rem; box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.prose a[target="_blank"]::after { content: " ↗"; font-size: .75em; }
.translation-note { padding: .85rem 1rem; color: var(--muted); background: #f1efe9; border-left: 3px solid var(--gold); font-family: Inter, sans-serif; font-size: .84rem; line-height: 1.55; }
.timeline-list { list-style: none; padding: 0 !important; }
.timeline-list li { position: relative; margin: 0 !important; padding: .85rem 0 .85rem 1.4rem; border-bottom: 1px solid var(--line); }
.timeline-list li::before { content: ""; position: absolute; top: 1.45rem; left: 0; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }

.gallery-intro { display: flex; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; color: var(--muted); font-family: Inter, sans-serif; font-size: .94rem; border-bottom: 1px solid var(--line); }
.gallery-intro p { max-width: 32rem; margin: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-top: 1.2rem; }
.gallery-item { position: relative; display: block; aspect-ratio: 1 / .84; overflow: hidden; border-radius: .7rem; background: #e9e5dc; color: #fff; text-decoration: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .45s ease; }
.gallery-item span { position: absolute; inset: auto 0 0; padding: 2rem .8rem .65rem; opacity: 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); font-family: Inter, sans-serif; font-size: .72rem; transition: opacity .25s ease; }
.gallery-item:hover img { transform: scale(1.035); filter: saturate(1.05); }
.gallery-item:hover span, .gallery-item:focus-visible span { opacity: 1; }

.lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; grid-template-columns: 64px 1fr 64px; place-items: center; padding: 1.25rem; background: rgba(7,13,12,.94); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(1100px, calc(100vw - 10rem)); max-height: calc(100vh - 3rem); margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 6rem); object-fit: contain; box-shadow: 0 20px 90px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top: .75rem; color: rgba(255,255,255,.72); font-size: .8rem; }
.lightbox button { width: 46px; height: 46px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; }

.site-footer { width: min(1180px, calc(100% - 2rem)); margin: auto; padding: 1.7rem 0 2.5rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; border-top: 1px solid var(--line); }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { color: var(--green); font-family: Georgia, serif; font-weight: 500; }
.site-footer > div > span { margin-top: .3rem; color: var(--muted); font-size: .76rem; }
.stats-link { display: inline-flex; padding: .5rem; border-radius: .35rem; }
.stats-link:hover { background: rgba(24,52,47,.08); }
.bg-flag { display: block; width: 20px; overflow: hidden; border: 1px solid rgba(0,0,0,.15); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bg-flag i { display: block; height: 4px; }
.bg-flag i:nth-child(1) { background: #fff; }
.bg-flag i:nth-child(2) { background: #00966e; }
.bg-flag i:nth-child(3) { background: #d62612; }

.photo-page { color: #fff; background: #0b1110; }
.photo-page main { width: min(1100px, calc(100% - 2rem)); margin: auto; padding: 1.5rem 0; }
.back-gallery { color: rgba(255,255,255,.75); text-decoration: none; }
.photo-page figure { margin: 1.5rem 0; text-align: center; }
.photo-page figure img { max-height: calc(100vh - 10rem); box-shadow: 0 18px 80px rgba(0,0,0,.55); }
.photo-page figcaption { margin-top: .7rem; color: rgba(255,255,255,.6); font-size: .8rem; }
.photo-nav { display: flex; justify-content: space-between; }
.photo-nav a { color: #fff; text-decoration: none; }

@media (max-width: 860px) {
  .header-inner { min-height: 72px; }
  .menu-toggle { display: block; cursor: pointer; }
  .main-nav { position: absolute; top: 100%; right: 1rem; left: 1rem; display: none; padding: .7rem; flex-direction: column; align-items: stretch; background: var(--green); border: 1px solid rgba(255,255,255,.15); border-radius: 0 0 .8rem .8rem; box-shadow: 0 18px 30px rgba(0,0,0,.18); }
  .main-nav.open { display: flex; }
  .nav-link { padding: .8rem 1rem; }
  .lang-link { justify-content: start; padding-left: 1rem; margin-left: 0; }
  #content { padding-top: 3.2rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .brand strong { font-size: 1rem; }
  .brand small { display: none; }
  .page-hero { grid-template-columns: 1fr; gap: 1rem; }
  .hero-line { display: none; }
  .subnav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .sub-link { flex: none; }
  .gallery-intro { display: block; }
  .gallery-intro p + p { margin-top: .7rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .55rem; }
  .gallery-item { border-radius: .45rem; }
  .gallery-item span { display: none; }
  .lightbox { grid-template-columns: 42px 1fr 42px; padding: .5rem; }
  .lightbox figure { max-width: calc(100vw - 6rem); }
  .lightbox button { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
