@font-face {
  font-family: Questrial;
  src: url("questrial.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f2eee5;
  --ivory: #fbf9f4;
  --sand: #e9e1d4;
  --ink: #24231f;
  --muted: #544e45;
  --line: #cfc4b6;
  --blue: #133e50;
  --rust: #92452f;
  --rust-hover: #783724;
  --display: Questrial, "Helvetica Neue", sans-serif;
  --body: system-ui, sans-serif;
  --gutter: clamp(1.125rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--body);
  font-kerning: normal;
}

a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.3rem, 4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); }

.wrap { width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto; }

.skip {
  position: absolute;
  top: .75rem;
  left: 1rem;
  z-index: 2;
  padding: .65rem 1rem;
  background: var(--ivory);
  transform: translateY(-200%);
}
.skip:focus { transform: translateY(0); }

.header { background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 4.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: fit-content;
  white-space: nowrap;
  text-decoration: none;
}
.brand img { width: 2.35rem; height: 2.35rem; mix-blend-mode: multiply; }
.brand span { font: 1.4rem/1 var(--display); }
nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem clamp(.9rem, 3vw, 2.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  font: 400 1rem/1.25 var(--display);
  letter-spacing: .025em;
}
.nav-link:hover, .nav-link[aria-current] { text-decoration: underline; }
.header-contact { color: var(--rust); }

.eyebrow {
  color: var(--rust);
  font: 400 .925rem/1.4 var(--display);
  letter-spacing: .025em;
}
.hero { padding-top: clamp(1.25rem, 3.1vw, 3rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  background: var(--ivory);
}
.hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(1.75rem, 5vw, 5rem);
}
.hero-copy .eyebrow { margin-bottom: .85rem; }
.hero h1 { font-size: clamp(2.15rem, 3.65vw, 3.65rem); }
.hero-summary { margin-top: 1rem; color: var(--muted); max-width: 43ch; }
.hero-photo { position: relative; min-height: clamp(27rem, 42vw, 35rem); background: var(--sand); }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.15rem; margin-top: 1.4rem; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  border: 1px solid var(--rust);
  padding: .55rem 1.1rem;
  background: var(--rust);
  color: var(--ivory);
  font: 400 1rem/1.3 var(--display);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--rust-hover); }
.button.secondary { background: transparent; border-color: var(--blue); color: var(--blue); }
.button.secondary:hover { background: var(--sand); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--blue);
  font: 400 1rem/1.35 var(--display);
}

.section { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.intro-grid, .info-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1rem, 7vw, 6.5rem);
  align-items: start;
}
.intro-grid .eyebrow, .info-grid .eyebrow, .section-head .eyebrow { margin-bottom: .55rem; }
.hero + .tint { margin-top: clamp(2.5rem, 6vw, 5.5rem); }
.research-feature { align-items: center; }
.research-feature img { width: 100%; height: auto; }
.research-feature h2 + p { margin-top: .7rem; }
.prose { max-width: 66ch; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose h2, .prose h3 { color: var(--ink); margin: 2rem 0 .6rem; }
.tint { background: var(--ivory); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: .9rem 2rem;
  align-items: end;
  margin-bottom: 1.65rem;
}
.section-head .prose { margin-top: .4rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3.35rem) clamp(1rem, 2vw, 1.75rem);
}
.card { min-width: 0; display: flex; flex-direction: column; gap: .42rem; }
.card-media {
  width: 100%;
  aspect-ratio: 5 / 4;
  display: block;
  background: var(--sand);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-link { display: grid; gap: .9rem; text-decoration: none; }
.card-link h3 { text-wrap: pretty; }
.card-link:hover h3 { text-decoration: underline; }
.card-text {
  justify-content: center;
  min-height: 13rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--sand);
}
.meta { color: var(--muted); font-size: .875rem; }

.contact-strip { border-top: 1px solid var(--line); }
.tint + .contact-strip { border-top: 0; }
.footer { background: var(--blue); color: var(--ivory); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .7rem 2rem;
  min-height: 6rem;
  padding-block: 1rem;
}
.footer .brand img { filter: invert(1); mix-blend-mode: screen; }
.footer nav ul { column-gap: 1.45rem; }
.footer .text-link { color: inherit; }

.page-head {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.25rem, 6vw, 5rem);
}
.page-head .eyebrow { margin-bottom: .65rem; }
.page-head h1 { max-width: 23ch; }
.page-head .summary { color: var(--muted); max-width: 64ch; }
.page-head h1 + p.summary { margin-top: .8rem; }
.summary p + p { margin-top: .7rem; }
.tour-intro {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.25rem, 5vw, 5rem);
  align-items: start;
}
.tour-intro h1 { max-width: 100%; }
.place-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  padding: .8rem 0 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font: 400 1rem/1.4 var(--display);
  list-style: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: center;
}
.contact-photo { max-width: 32rem; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 46%; }

.article-page .page-head .text-link { margin-bottom: .45rem; }
.article-page .page-head .meta { margin-top: .75rem; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 6vw, 5.5rem);
  align-items: start;
}
.article-content { grid-column: 1; grid-row: 1; }
.article-image { grid-column: 2; grid-row: 1; width: 100%; }
.article-content p { margin-bottom: 1em; }
.article-content .details {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 2.1fr);
  gap: .55rem 1rem;
  padding-block: 1rem;
  margin-block: 1.4rem;
  border-block: 1px solid var(--line);
}
.details dt { font-weight: 600; color: var(--ink); }
.details dd { margin: 0; overflow-wrap: break-word; }
.article-nav {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.article-nav a { display: grid; align-content: start; gap: .25rem; color: var(--blue); }
.article-nav a:last-child:not(:first-child) { text-align: right; }

.share-dialog {
  max-width: min(92vw, 30rem);
  width: 100%;
  padding: 1.5rem;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--line);
}
.share-dialog::backdrop { background: #24231f9e; }
.share-dialog label { display: block; font-weight: 600; }
.share-dialog input { width: 100%; margin-top: .4rem; padding: .6rem; color: inherit; background: white; border: 1px solid var(--ink); font: inherit; }
.share-status { font-size: .875rem; }

@media (max-width: 52rem) {
  .hero-copy { padding: clamp(1.5rem, 4vw, 2.5rem); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 39rem) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: .3rem; padding-block: .65rem .25rem; }
  .header nav ul { gap: 0 .9rem; }
  .nav-link { font-size: .925rem; }
  .hero-grid, .intro-grid, .info-grid, .contact-grid, .tour-intro, .article-layout { grid-template-columns: 1fr; }
  .hero-photo { min-height: 0; aspect-ratio: 6 / 5; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .article-image, .article-content { grid-column: auto; grid-row: auto; }
  .article-image { max-width: 24rem; }
}

@media (max-width: 27rem) {
  .cards { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 6 / 4; }
}

[hidden] { display: none !important; }
