:root {
  --ink: #444444;
  --muted: #7a7a7a;
  --nav: #a1a1a1;
  --nav-active: #011640;
  --accent: #cc2e72;
  --line: #d6d6d6;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: center;
  min-height: 110px;
  align-items: center;
  padding: 0 1.5rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
}

nav a {
  color: var(--nav);
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--nav-active);
}

.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  position: relative;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #727272;
  opacity: 0.64;
}

.hero-inner {
  position: relative;
  width: min(1140px, calc(100% - 3rem));
  padding: 4rem 8%;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 55px);
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.rule {
  display: block;
  width: 10%;
  min-width: 4rem;
  height: 5px;
  margin: 1.5rem auto;
  background: var(--accent);
}

.hero p {
  margin: 0 auto;
  max-width: 40rem;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
}

.prose {
  width: min(1140px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.prose :where(h2, h3) {
  color: #444;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

.prose h2 {
  font-size: clamp(1.6rem, 3vw, 44px);
  margin: 2.5rem 0 0.5rem;
}

.prose h2::after {
  content: "";
  display: block;
  width: 10%;
  min-width: 3.5rem;
  height: 5px;
  margin: 1rem auto 1.5rem;
  background: var(--accent);
}

.prose h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.prose :where(p, li) { color: #54595f; }

.prose a { color: var(--accent); }

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

.intro-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.intro-row img { width: 100%; }

@media (min-width: 768px) {
  .intro-row { grid-template-columns: 23% 52% 25%; }
}

.news-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: left;
}

.news-cols img {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
}

@media (min-width: 900px) {
  .news-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.prose:has(.gallery) {
  width: min(1400px, calc(100% - 2rem));
}

.gallery {
  display: flex;
  flex-flow: row wrap;
  gap: 6px;
}

.gallery h2 {
  flex: 1 0 100%;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  margin: 2rem 0 0.4rem;
}

.gallery h2:first-child { margin-top: 0; }
.gallery h2::after { display: none; }

.gallery p { display: contents; }

.gallery img {
  height: 220px;
  width: auto;
  min-width: 0;
  flex: 1 1 240px;
  max-width: 100%;
  object-fit: cover;
  cursor: zoom-in;
  background: #d8dde4;
}

@supports (width: calc(1px * attr(width number))) {
  .gallery img {
    flex-grow: calc(attr(width number) / attr(height number));
    flex-shrink: 1;
    flex-basis: calc(220px * attr(width number) / attr(height number));
    max-width: calc(340px * attr(width number) / attr(height number));
  }
}

.gallery::after {
  content: "";
  flex-grow: 100;
}

.lightbox {
  width: min(1100px, 94vw);
  height: min(86vh, 900px);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(1, 22, 64, 0.88);
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #011640;
  font: 500 15px/1 Montserrat, sans-serif;
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  padding: 0.7rem 1rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  padding: 0.85rem 1rem;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

footer {
  border-top: 1px dotted var(--line);
  color: rgba(0, 0, 0, 0.39);
  font-size: 13px;
  font-weight: 300;
  text-align: center;
  padding: 2rem 1rem 2.5rem;
}

.page-kyla { background: #e5e9ef; }

.page-kyla .prose {
  width: 100%;
  padding: 0;
}

.page-kyla .split {
  display: grid;
  grid-template-columns: 1fr;
}

.page-kyla .split-photo {
  min-height: 50vh;
  background-position: center;
  background-size: cover;
}

.page-kyla .split-text {
  color: #5f5b5b;
  font-family: Prompt, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  padding: 12% 7% 13%;
}

.page-kyla .split-text :where(h2, h3) {
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: #5f5b5b;
  margin: 1.5rem 0 0.75rem;
}

.page-kyla .split-text h2::after,
.page-kyla .kyla-note h2::after { display: none; }

.page-kyla .split-text :where(p, li),
.page-kyla .kyla-note :where(p, li) { color: #5f5b5b; }

.page-kyla .kyla-note {
  width: min(1140px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
  font-family: Prompt, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}

.page-kyla .kyla-note :where(h2, h3) {
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

@media (min-width: 900px) {
  .page-kyla .split {
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
    align-items: stretch;
  }

  .page-kyla .split-photo { min-height: 100%; }

  .page-kyla .split-text {
    padding: 6% 12% 5% 16%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .gallery img {
    height: 140px;
    flex-basis: calc(50% - 6px);
  }

  @supports (width: calc(1px * attr(width number))) {
    .gallery img {
      flex-basis: calc(140px * attr(width number) / attr(height number));
      max-width: calc(220px * attr(width number) / attr(height number));
    }
  }
  .lightbox-nav { padding: 0.7rem 0.75rem; }
  .hero { min-height: 420px; }
  .hero-inner { padding: 3rem 0; }
  .hero p { font-size: 18px; }
}
