:root {
  --ink: #14110f;
  --paper: #f6f2ea;
  --line: #14110f;
  --muted: #6b635c;
  --band: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 36px 56px 80px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-header,
.site-main,
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.logo__big {
  font-size: 1.8rem;
}

.logo__and {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.logo-subhead {
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-nav a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}

.site-nav a.active {
  border-color: var(--line);
}

.site-main {
  padding-top: 32px;
}

.section {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 3px solid var(--line);
  scroll-margin-top: 24px;
}

.section-home {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.text-band {
  max-width: 720px;
  margin: 0 0 24px 0;
}

.text-band h1,
.text-band h2,
.section-block h3,
.history-section > h2 {
  margin: 0 0 12px 0;
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.inline-link {
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.inline-link:hover {
  background: var(--ink);
  color: var(--paper);
}

.overview-col h3 {
  margin: 0 0 12px 0;
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.facts {
  margin: 0;
  padding-top: 12px;
  border-top: 3px solid var(--line);
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 10px 18px;
}

.facts dt {
  margin: 0;
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
}

.facts dd {
  margin: 0;
}

.section-block {
  margin-top: 32px;
}

.section-block h3 {
  font-size: 0.85rem;
}

.plate {
  margin: 24px calc(50% - 50vw);
  background: var(--band);
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.plate img,
.plate video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.plate.hero video {
  height: 70vh;
  min-height: 320px;
  max-height: 760px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 calc(50% - 50vw);
}

.gallery-item {
  border: 0;
  margin: 0;
}

.gallery-item a {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__inner {
  width: min(1100px, 100%);
  max-height: 90vh;
  background: var(--paper);
  border: 4px solid var(--line);
  display: flex;
  flex-direction: column;
}

.lightbox__header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  border-bottom: 3px solid var(--line);
}

.lightbox__close {
  background: var(--paper);
  border: 3px solid var(--line);
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  padding: 6px 12px;
  cursor: pointer;
}

.lightbox__scroller {
  overflow-y: auto;
  padding: 20px;
  display: grid;
  gap: 20px;
}

.lightbox__item {
  margin: 0;
  border: 3px solid var(--line);
  background: var(--band);
}

.lightbox__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}


.site-footer {
  margin-top: 72px;
  padding-top: 16px;
  border-top: 3px solid var(--line);
}

@media (max-width: 820px) {
  body {
    padding: 28px 24px 64px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo__big {
    font-size: 1.4rem;
  }

  .logo__and {
    font-size: 0.7rem;
  }

  .history-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
