:root {
    --ink: #17211d;
    --muted: #5b6861;
    --paper: #f4f1e9;
    --white: #fff;
    --forest: #173f35;
    --forest-light: #2c6655;
    --clay: #a7452d;
    --gold: #d5aa4f;
    --sky: #47788a;
    --line: #d7d4ca;
    --shadow: 0 14px 35px rgba(20, 34, 28, .13);
    --radius: 6px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: var(--forest-light); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--white); padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { max-width: 800px; }
.band { padding: 78px 0; }
.band-white { background: var(--white); }
.band-dark { background: var(--forest); color: var(--white); }
.band-clay { background: var(--clay); color: var(--white); }
.site-header {
    min-height: 74px;
    padding: 0 max(20px, calc((100vw - var(--container)) / 2));
    background: rgba(244, 241, 233, .96);
    border-bottom: 1px solid rgba(23, 33, 29, .12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
}
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 38px; height: 38px; display: grid; place-items: center;
    background: var(--forest); color: var(--white); border-radius: 50%;
    font-family: Georgia, serif; font-size: 21px;
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 20px; line-height: 1; }
.brand small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 11px; font-size: 14px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--clay); border-color: var(--clay); }
.site-nav .language-link { margin-left: 8px; border: 1px solid var(--line); border-radius: var(--radius); }
.menu-toggle { display: none; border: 1px solid var(--ink); background: transparent; padding: 8px 12px; border-radius: var(--radius); }
.hero {
    min-height: min(72svh, 700px);
    display: grid;
    align-items: end;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    color: var(--white);
}
.hero--home { background-image: url('/assets/img/gateway.jpg'); }
.hero--english { background-image: url('/assets/img/sf-dumitru.jpg'); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 19, 15, .88), rgba(9, 19, 15, .28) 70%, rgba(9, 19, 15, .12)); }
.hero-content { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; padding: 84px 0 92px; position: relative; }
.hero-content h1, .page-intro h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: .96; letter-spacing: 0; }
.hero-content h1 { max-width: 760px; font-size: clamp(58px, 10vw, 126px); }
.hero-content > p:not(.eyebrow) { max-width: 620px; margin: 24px 0 30px; font-size: clamp(17px, 2vw, 22px); }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 17px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.button-primary { color: var(--ink); background: var(--gold); }
.button-primary:hover { color: var(--ink); background: #e2bd68; }
.button-secondary { color: var(--white); border: 1px solid rgba(255,255,255,.55); }
.button-secondary:hover { color: var(--white); border-color: var(--white); }
.fact-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 25px 24px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: Georgia, serif; font-size: 31px; color: var(--forest); }
.fact span { color: var(--muted); font-size: 13px; }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 68px; align-items: center; }
.split.reverse { grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr); }
.split-media { min-height: 520px; height: 100%; width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.15; letter-spacing: 0; }
h2 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 25px; margin: 0 0 10px; }
.lead { font-size: 19px; color: var(--muted); }
.band-dark .lead, .band-clay .lead { color: rgba(255,255,255,.78); }
.text-link { display: inline-block; margin-top: 14px; font-weight: 750; }
.band-dark .text-link, .band-clay .text-link { color: var(--gold); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 22px; }
.card-body p { color: var(--muted); margin-bottom: 0; }
.page-intro { padding-top: 100px; background: var(--forest); color: var(--white); }
.page-intro h1 { font-size: clamp(46px, 7vw, 82px); }
.page-intro .lead { color: rgba(255,255,255,.78); }
.prose { max-width: 790px; }
.prose h2 { margin-top: 46px; font-size: 36px; }
.prose p { font-size: 17px; }
.source-note { border-left: 4px solid var(--gold); padding: 16px 20px; background: #ebe7dc; color: var(--muted); }
.timeline { max-width: 900px; margin: 0 auto; }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; gap: 36px; padding: 32px 0; border-top: 1px solid var(--line); }
.timeline-year { font-family: Georgia, serif; font-size: 34px; color: var(--clay); }
.timeline-item p { margin: 7px 0 0; color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.person { background: var(--paper); padding: 32px; }
.person p { color: var(--muted); }
.gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.gallery-tabs a { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--white); }
.gallery-tabs a[aria-current="page"], .gallery-tabs a:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { background: var(--white); border-radius: var(--radius); overflow: hidden; min-height: 210px; }
.gallery-item img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; transition: transform .2s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 48px 72px; border: 0; background: rgba(12, 20, 17, .96); color: var(--white); }
.lightbox[open] { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 18px; }
.lightbox::backdrop { background: rgba(12, 20, 17, .88); }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 96px); margin: auto; object-fit: contain; }
.lightbox-close, .lightbox-nav { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: var(--white); cursor: pointer; }
.lightbox-close { position: fixed; z-index: 2; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; }
.lightbox-nav { width: 48px; height: 64px; border-radius: var(--radius); font-size: 40px; line-height: 1; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, .18); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination a, .pagination span { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); text-decoration: none; }
.pagination span { background: var(--forest); color: var(--white); }
.link-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.resource { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.resource strong { display: block; margin-bottom: 5px; }
.resource p { color: var(--muted); margin: 0 0 12px; }
.notice { padding: 20px; background: #ebe7dc; border-left: 4px solid var(--clay); }
.site-footer { background: #111a16; color: rgba(255,255,255,.72); padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 46px; }
.footer-title { color: var(--white); font: 38px Georgia, serif; margin: 0; }
.footer-label { color: var(--gold); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: 1.4px; }
.site-footer a { display: block; width: fit-content; color: rgba(255,255,255,.8); margin: 7px 0; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px; padding-top: 20px; font-size: 12px; }

@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .site-nav { display: none; position: absolute; inset: 74px 0 auto; background: var(--paper); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 4px; }
    .site-nav .language-link { margin: 6px 0 0; text-align: center; }
    .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
    .split.reverse .split-media { order: 2; }
    .cards { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .container, .hero-content { width: min(calc(100% - 28px), var(--container)); }
    .band { padding: 56px 0; }
    .hero { min-height: 66svh; }
    .hero-content { padding: 70px 0 60px; }
    .hero-content h1 { font-size: 57px; }
    .facts { grid-template-columns: 1fr; }
    .fact { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
    .cards, .people-grid, .link-list { grid-template-columns: 1fr; }
    .card img { height: 220px; }
    .split-media { min-height: 360px; }
    .section-head { display: block; }
    .timeline-item { grid-template-columns: 1fr; gap: 4px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item, .gallery-item img { min-height: 150px; }
    .lightbox { padding: 56px 12px 16px; }
    .lightbox[open] { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 6px; }
    .lightbox img { max-height: calc(100vh - 72px); }
    .lightbox-nav { width: 40px; height: 54px; font-size: 34px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { display: block; }
    .footer-bottom span { display: block; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gallery-item img { transition: none; }
}
