:root {
  --ink: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #7a1f1f;
  --rule: #e0ddd7;
  --bg: #fdfcfa;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 Georgia, "Times New Roman", serif;
}

img { max-width: 100%; height: auto; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: .5rem 1rem;
  z-index: 10;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 1rem .5rem;
}
.brand { display: inline-block; }
.brand img { width: 200px; }

.main-nav ul {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}
.main-nav > ul > li { position: relative; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-size: .9rem;
  padding: .35rem 0;
  display: inline-block;
}
.main-nav a:hover, .main-nav a:focus { color: var(--accent); text-decoration: underline; }
.main-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.main-nav ul ul {
  margin: 0 0 .5rem .75rem;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--rule);
  padding-left: .75rem;
}
.main-nav ul ul a { font-size: .85rem; color: var(--muted); }

.lang-switch {
  margin-top: .5rem;
  font-family: system-ui, sans-serif;
  font-size: .8rem;
}
.lang-switch a { color: var(--muted); margin-right: .75rem; text-decoration: none; }
.lang-switch a[aria-current="true"] { color: var(--accent); font-weight: 600; }

main { padding: 1.5rem 1rem 3rem; }
.article { max-width: var(--measure); margin: 0 auto; }
.article h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 1rem; }
.article p { margin: 0 0 1.15rem; }
.article a { color: var(--accent); }

.gallery {
  list-style: none;
  margin: 2rem auto;
  padding: 0;
  max-width: 62rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .5rem;
}
.gallery img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--rule); }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  display: grid;
  place-items: center;
  margin: 1.5rem 0;
}
.video iframe { width: 100%; height: 100%; border: 0; }
.video-play {
  font-size: 2rem;
  color: #fff;
  background: rgba(0,0,0,.55);
  border: 2px solid #fff;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  cursor: pointer;
}

.embed { max-width: 62rem; margin: 0 auto; }
.embed iframe { width: 100%; height: 80vh; border: 1px solid var(--rule); }
.fallback { max-width: 62rem; margin: 1rem auto 0; text-align: center; }

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1rem;
  font-family: system-ui, sans-serif;
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer .footer-note { font-style: italic; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog.lightbox img { max-height: 90vh; width: auto; }

/* --- header, matching the original banner-and-centred-menu layout --- */
.site-header { text-align: center; padding-top: .5rem; }
.brand img { width: min(100%, 900px); height: auto; }

.main-nav > ul { justify-content: center; gap: .25rem .5rem; }
.main-nav > ul > li > a {
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: .4rem .9rem;
  background: #fff;
}
.main-nav > ul > li > a[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Submenus stay out of the way until asked for, and open on keyboard focus too. */
@media (min-width: 46rem) {
  .main-nav ul ul {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 5;
    display: none;
    background: #fff;
    border: 1px solid var(--rule);
    border-left-width: 1px;
    margin: 0;
    padding: .4rem .75rem;
    text-align: left;
    min-width: 14rem;
  }
  .main-nav > ul > li:hover ul,
  .main-nav > ul > li:focus-within ul { display: block; }
}

.lang-switch { margin-top: .75rem; }
.lang-switch a { margin: 0 .4rem; }

.article .cta, .cta {
  /* more specific than `.article a`, which would otherwise paint the label
     the same dark red as the button and make it invisible */
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: .7rem 1.4rem;
  border-radius: 3px;
  font-family: system-ui, sans-serif;
}
.article .cta:hover, .article .cta:focus, .cta:hover, .cta:focus { background: #5d1717; color: #fff; }

/* The "@" lives only here, never in the markup, so the HTML holds no address
   pattern. A reader without JavaScript still sees the whole address. */
.email-at::before { content: "\0040"; }

/* --- collapsible menu on narrow screens --- */
.nav-toggle {
  font-family: system-ui, sans-serif;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: .5rem 1.2rem;
  margin-top: .75rem;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --- lightbox controls --- */
.lightbox-controls {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .75rem;
}
.lightbox-controls button {
  font-family: system-ui, sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 3px;
  padding: .55rem 1.1rem;
  cursor: pointer;
}
.lightbox-controls button:hover, .lightbox-controls button:focus { background: rgba(0, 0, 0, .8); }
.lightbox-prev::before { content: "\2190"; }
.lightbox-next::before { content: "\2192"; }
.lightbox-close::before { content: "\00d7"; }
