@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #22231f;
  --muted: #54564e;
  --rule: #d8d6cd;
  --accent: #9c422a;
  --dark: #242720;
  --light: #fffaf1;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Manrope, "Helvetica Neue", sans-serif;
  --gutter: clamp(1.25rem, 5.55vw, 5.5rem);
}

* { box-sizing: border-box; }

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

h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.028em;
}

a {
  color: inherit;
  text-underline-offset: .3em;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  z-index: 3;
  inset: .5rem auto auto .5rem;
  translate: 0 -150%;
  background: var(--paper);
  padding: .5rem 1rem;
}

.skip-link:focus { translate: 0; }

.site-header { border-bottom: 1px solid var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  gap: 1rem;
}

.wordmark {
  justify-self: start;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .25rem clamp(.5rem, 3vw, 1.75rem);
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav .header-contact {
  padding-inline: clamp(.6rem, 2vw, 1rem);
  border: 1px solid var(--rule);
  color: var(--ink);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--accent); }
.header-contact:hover { border-color: currentColor; }

.eyebrow {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  padding: .625rem 1.125rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--light);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.button-light {
  border-color: var(--light);
  background: var(--light);
  color: var(--ink);
}

.button-light:hover {
  border-color: #ffdfc9;
  background: #ffdfc9;
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .875rem;
  font-weight: 700;
}

.text-link:hover { color: var(--accent); }
.site-footer a:hover { color: #ffdfc9; }

.site-footer {
  background: var(--dark);
  color: var(--light);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr minmax(13rem, 22rem);
  align-items: end;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6.5vw, 6rem);
}

.footer-main .eyebrow { color: #ffcfb5; }
.footer-main h2 { margin-top: .2em; font-size: clamp(3.6rem, 6vw, 6.35rem); }
.footer-main .button { margin-top: 1.125rem; }
.footer-main .button:hover { color: var(--ink); }

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin-top: .5rem;
}

.social-links a { font-size: .875rem; }

.footer-small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-block: 1.125rem;
  border-top: 1px solid #5e6058;
  color: #e0ded5;
  font-size: .8rem;
}

.page-main { padding-block: clamp(3.75rem, 7vw, 7rem); }
.page-heading { max-width: 54rem; }
.page-heading h1 {
  margin-top: .15em;
  font-size: clamp(4rem, 9.4vw, 8.5rem);
}

.page-lead {
  max-width: 39rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.page-body { margin-top: clamp(2.5rem, 5.5vw, 5.5rem); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.archive-main { padding-top: clamp(1.5rem, 4vw, 3.5rem); }

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2rem;
}

.content-grid article { padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.content-grid h2 { font-size: clamp(2.5rem, 4.4vw, 4rem); }
.content-grid p { margin-top: .85rem; color: var(--muted); }

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
}

.archive-filters button {
  min-height: 2.75rem;
  padding: .45rem .8rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}

.archive-filters button:hover { border-color: var(--ink); }
.archive-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--light); }
.archive-filters button:focus-visible { outline-color: var(--accent); }
.archive-count { margin-bottom: .75rem; color: var(--muted); font-size: .875rem; }
.archive-list { margin: 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.archive-list li { border-bottom: 1px solid var(--rule); }

.archive-row {
  display: grid;
  grid-template-columns: minmax(7rem, .55fr) minmax(14rem, 1.35fr) minmax(12rem, 1fr) 6.5rem;
  align-items: center;
  gap: .375rem 1.5rem;
  min-height: 5.25rem;
  padding-block: .875rem;
  text-decoration: none;
}

.archive-row h2 { font-size: clamp(1.95rem, 3vw, 2.75rem); }
.archive-row:hover h2 { color: var(--accent); }
.archive-row .row-detail, .archive-row .row-year { color: var(--muted); font-size: .9rem; }
.archive-row .row-year { text-align: right; }

.back-link { margin-bottom: 1.4rem; }

.record-header { max-width: 55rem; }
.record-header h1 { font-size: clamp(3.5rem, 8vw, 7.25rem); }

.record-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem clamp(2rem, 5vw, 5rem);
  max-width: 61rem;
  margin-top: 2rem;
  padding-block: 1.2rem;
  border-block: 1px solid var(--rule);
}

.record-facts dd { margin-top: .3rem; }
.record-photo { margin-top: clamp(2rem, 4vw, 3.5rem); }
.record-photo img { width: auto; max-height: 49rem; }

@media (max-width: 56rem) {
  .archive-row { grid-template-columns: minmax(6rem, .5fr) minmax(12rem, 1.25fr) minmax(10rem, 1fr) 5rem; }
}

@media (max-width: 42rem) {
  .footer-main { grid-template-columns: 1fr; }
  .archive-row { grid-template-columns: minmax(0, 1fr) auto; }
  .archive-row .eyebrow { grid-area: 1 / 1; }
  .archive-row h2 { grid-area: 2 / 1 / 3 / -1; }
  .archive-row .row-detail { grid-area: 3 / 1 / 4 / -1; }
  .archive-row .row-year { grid-area: 1 / 2; }
}
