/* ============================================================
   Shared site styles — used by every page
   ============================================================ */
:root {
  --ink: #202020;
  --muted: #5a5a5a;
  --paper: #fff;
  --panel: #e3e3e3;
  --accent: #e7685b;
  --max-width: 1180px;
  --header-height: 160px;
  --footer-height: 42px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--panel);
  font-family: "Helvetica Neue", "Avenir Next", Helvetica, Arial, sans-serif;
  font-weight: 300;
}

/* ---- accessibility ---- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 2; padding: .7rem; color: #000; background: #fff; }

/* ---- site header ---- */
.site-header {
  height: var(--header-height);
  background: #252525;
  color: #fff;
}

.header-inner {
  width: min(100% - 3rem, var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: #fff;
  text-decoration: none;
  flex: 0 0 auto;
  text-align: center;
}

.brand-name {
  display: block;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 300;
  letter-spacing: .22em;
  line-height: 1;
}

.brand-tagline {
  display: block;
  margin-top: .8rem;
  font-size: clamp(.85rem, 1.3vw, 1.1rem);
  letter-spacing: .16em;
}

/* ---- navigation ---- */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 1.1rem .95rem;
  color: #eee;
  font-size: 1.05rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
  background: var(--accent);
}

.site-nav a[aria-current="page"],
.site-nav a[aria-current="page"]:hover {
  color: #444;
  background: #eee;
  position: relative;
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  border: 12px solid transparent;
  border-top-color: #eee;
  border-bottom: 0;
}

/* ---- three-pane page layout ---- */
.page-layout {
  width: 100%;
  height: calc(100vh - var(--header-height) - var(--footer-height));
  display: grid;
  overflow: hidden;
  grid-template-columns: 23% 54% 23%;
  background: var(--panel);
}

/* ---- pane circle images (index page) ---- */
.pane-left, .pane-right {
  background: var(--panel);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.pane-circle {
  position: relative;
  display: block;
  width: min(80cqw, 80cqh);
  height: min(80cqw, 80cqh);
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.pane-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pane-circle:hover,
.pane-circle.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent);
}

.pane-circle-wrap {
  container-type: size;
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pane-circle-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  white-space: nowrap;
  padding: .25rem .65rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  pointer-events: none;
}



.pane-center {
  background: var(--paper);
  padding: 2.5rem 4rem 5rem;
  height: 100%;
}

/* scrollable center pane — add class .pane-center--scroll when needed */
.pane-center--scroll {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pane-center--scroll::-webkit-scrollbar { display: none; }

/* ---- typography ---- */
h1 {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 300;
  line-height: 1.15;
}

/* page-level prose used by pane-center content */
.pane-center > p,
.content-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ---- accent colour ---- */
.accent { color: var(--accent); }

/* ---- button ---- */
.button {
  display: inline-block;
  padding: .9rem 2.2rem;
  border: 0;
  color: #fff;
  background: #595959;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.button:hover { background: var(--accent); }

/* ---- hero (home page and similar landing sections) ---- */
.hero-copy {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.5;
}
.hero-copy p { margin: 0 0 1.3rem; }
.hero-copy strong { font-weight: 700; }
.hero-copy a, .updates a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .12em;
}
.hero-copy a:hover, .updates a:hover { color: var(--accent); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.updates { color: #3f2525; font-size: 1rem; line-height: 1.35; }
.updates p { margin: 0; }

/* ---- gallery / slideshow ---- */
.gallery { margin: 2rem 0 3rem; }

.slides {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .35s ease;
}
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; display: block; object-fit: contain; }
.slide figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .3rem .6rem;
  color: #666;
  background: rgb(255 255 255 / 70%);
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: .85rem;
  font-weight: 700;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: .55rem;
  margin-top: .8rem;
}
.gallery-controls button {
  width: .7rem;
  height: .7rem;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.gallery-controls button:hover,
.gallery-controls button.is-active { border-color: var(--accent); background: var(--accent); }

/* ---- site footer ---- */
.site-footer {
  background: #252525;
  color: #aaa;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: .9rem;
}
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--accent); }

/* ---- responsive ---- */
@media (max-width: 800px) {
  .site-header { height: auto; padding: 1.5rem 0; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 0 1rem; }
  .site-nav ul { justify-content: flex-start; }
  .site-nav a { padding: .6rem .7rem; font-size: .95rem; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .page-layout { display: block; min-height: auto; }
  .pane-center { padding: 2rem 1.2rem 4rem; }
  .hero-actions { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .site-nav a { padding-inline: .4rem; font-size: .85rem; }
}
