/* Viribus Unitis 2026 — fresh responsive design, light theme */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:        #faf6ee;
  --surface:   #ffffff;
  --surface2:  #f0ebe0;
  --border:    #ddd5c0;
  --gold:      #8b6914;
  --gold-dark: #6b4f0e;
  --gold-bg:   #f5edda;
  --text:      #1c1a16;
  --muted:     #6b6355;
  --link:      #7a5c10;
  --radius:    4px;
  --max-w:     1100px;
  --gap:       clamp(1rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.8 Georgia, "Times New Roman", serif;
  min-height: 100vh;
}

a { color: var(--link); text-decoration: underline; }
a:hover { color: var(--gold-dark); }

ul { padding-left: 1.4em; }
li { margin-bottom: 0.5em; }

p { margin: 0 0 1em; }

h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-dark);
}
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); margin-bottom: 0.6em; }
h4 { font-size: clamp(1rem, 2vw, 1.3rem); margin-bottom: 0.5em; }

/* ── Site wrapper ───────────────────────────────────────── */
.site-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── Header / logo ──────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 1rem 0;
}
.site-header .site-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--gold); text-decoration: none; }
.logo span {
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 400;
  font-family: Georgia, serif;
  text-transform: none;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: var(--radius);
  line-height: 1;
}
.site-nav ul {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav a {
  display: block;
  padding: 0.45rem 1rem;
  font-family: Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.sel {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

/* mobile nav */
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    z-index: 100;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--border);
    border-left: none;
  }
  .site-nav a.sel { border-bottom: 1px solid var(--border); }
  .site-header { position: relative; }
}

/* ── Main content area ──────────────────────────────────── */
.site-main {
  padding: calc(var(--gap) * 1.5) 0 var(--gap);
}

/* ── Section ────────────────────────────────────────────── */
.section {
  margin-bottom: calc(var(--gap) * 1.5);
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap);
}
.card + .card { margin-top: var(--gap); }

.card-accent {
  border-top: 3px solid var(--gold);
}

/* ── Two-column layout ──────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Strip / section divider ────────────────────────────── */
.strip {
  background: var(--gold-bg);
  border-left: 4px solid var(--gold);
  padding: 0.7rem 1.5rem;
  margin: calc(var(--gap) * 1.5) 0 1rem;
}
.strip h2 {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  margin: 0;
  color: var(--gold-dark);
}

/* ── Quotes ─────────────────────────────────────────────── */
.quotes {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap);
}
.quotes h3 { margin-bottom: 1em; }
.quotes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.quotes li {
  padding: 0.7em 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}
.quotes li:last-child { border-bottom: none; }
.quotes i { color: var(--text); font-style: italic; }

/* ── Map / image ────────────────────────────────────────── */
.map-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.img-caption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4em;
  font-style: italic;
}

/* ── Video embed ────────────────────────────────────────── */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--surface2);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── Year list ───────────────────────────────────────────── */
.year-list { list-style: none; padding: 0; }
.year-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.year-list li:last-child { border-bottom: none; }
.year-list .yr-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 0.2em;
}
.year-list .yr-title a { color: var(--gold-dark); }
.year-list .yr-title a:hover { color: var(--gold); }
.year-list p { margin: 0.2em 0; font-size: 0.88rem; color: var(--muted); }
.year-list .yr-link { font-size: 0.82rem; margin-top: 0.3em; }

/* ── Person cards ────────────────────────────────────────── */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}
.person-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.person-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--gold);
}
.person-photo-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.5rem;
}
.person-body h4 { margin-bottom: 0.3em; }
.person-body p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-dark); }

/* ── Splash page ─────────────────────────────────────────── */
.splash {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.splash-bg {
  position: absolute;
  inset: 0;
  background: url('img/homepage.jpg') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
}
.splash-content {
  position: relative;
  z-index: 1;
}
.splash-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 0.3em;
}
.splash-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.btn-enter {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 2px solid var(--gold);
  color: var(--gold-dark);
  background: var(--surface);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.btn-enter:hover {
  background: var(--gold);
  color: #fff;
  text-decoration: none;
}

/* ── Sidebar layout ──────────────────────────────────────── */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--gap);
  align-items: start;
}
.with-sidebar > aside {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
@media (max-width: 800px) {
  .with-sidebar { grid-template-columns: 1fr; }
  .with-sidebar > aside { position: static; max-height: none; }
}

/* ── Utility ─────────────────────────────────────────────── */
.text-muted { color: var(--muted); }
.mt-1 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
