:root {
  --ink: #120d08;
  --ink-soft: #3a2e22;
  --paper: #f7f1e4;
  --paper-deep: #efe5d0;
  --gold: #b48a3c;
  --gold-light: #d9b36a;
  --rule: rgba(180, 138, 60, .35);
  --font-serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-sans: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
  --bar-height: 60px;
}

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

html {
  scroll-padding-top: var(--bar-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--bar-height);
  background: var(--ink);
  border-bottom: 1px solid rgba(217, 179, 106, .35);
}

.topbar__inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar__brand {
  margin-right: auto;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: #f6ecd6;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  color: #ecd9a8;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color .25s ease, color .25s ease;
}

.topbar__link svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.topbar__link:hover,
.topbar__link:focus-visible {
  background: rgba(217, 179, 106, .15);
  color: #fff;
  outline: none;
}

.topbar__link[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--gold-light);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .topbar__brand {
    font-size: 1.05rem;
  }
}

/* ---------- About page ---------- */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 16px clamp(3rem, 8vw, 6rem);
}

.page-hero {
  max-width: 820px;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--ink);
}

.page-hero h1 em {
  color: var(--gold);
}

.lead {
  margin: 1.5rem auto 0;
  max-width: 640px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--ink-soft);
}

.ornament {
  display: block;
  width: 160px;
  height: 1px;
  margin: 2rem auto 0;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.about__figure {
  position: sticky;
  top: calc(var(--bar-height) + 2rem);
  margin: 0;
}

.about__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--rule);
  box-shadow: 0 20px 40px -20px rgba(18, 13, 8, .45);
}

.about__figure figcaption {
  margin-top: .75rem;
  font-size: .9rem;
  font-style: italic;
  color: #7a6a58;
}

.about__text section + section {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}

.about__text h2 {
  margin: 0 0 .75rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  color: var(--ink);
}

.about__text p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 1rem;
  background: var(--paper-deep);
  border-left: 2px solid var(--gold);
}

.facts strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}

.facts span {
  font-size: .95rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
  padding: .7em 1.4em;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .95rem;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  transition: background-color .25s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--gold);
  outline: none;
}

.footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 16px;
  text-align: center;
  font-size: .9rem;
  color: #7a6a58;
}

@media (max-width: 820px) {
  .about {
    grid-template-columns: 1fr;
  }

  .about__figure {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.gallery__thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(217, 179, 106, .35), rgba(180, 138, 60, .15)),
    var(--paper-deep);
  border: 1px solid var(--rule);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.gallery__title {
  display: block;
  margin-top: .6rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.2;
}

.gallery__item:hover .gallery__thumb,
.gallery__item:focus-visible .gallery__thumb {
  border-color: var(--gold);
  box-shadow: 0 16px 32px -18px rgba(18, 13, 8, .5);
}

.gallery__item:focus-visible {
  outline: none;
}

.gallery__item:hover .gallery__title,
.gallery__item:focus-visible .gallery__title {
  color: var(--gold);
}

.gallery__thumb {
  overflow: hidden;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery__item:hover .gallery__thumb img,
.gallery__item:focus-visible .gallery__thumb img {
  transform: scale(1.04);
}

.gallery__meta {
  display: block;
  margin-top: .15rem;
  font-size: .95rem;
  line-height: 1.35;
  color: #7a6a58;
}

/* ---------- Footer logos ---------- */

.footer__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px clamp(28px, 5vw, 64px);
  max-width: 1000px;
  margin: 1rem auto 1.75rem;
  padding: 0;
  list-style: none;
}

.footer__logos img {
  height: 44px;
  width: auto;
}

/* Logo with a lot of built-in empty space around it */
.footer__logos .footer__logo--tall {
  height: 64px;
}

@media (max-width: 520px) {
  .footer__logos img {
    height: 36px;
  }

  .footer__logos .footer__logo--tall {
    height: 52px;
  }
}
