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

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Source Sans 3", Arial, sans-serif;
  --type-label: 12px;
  --type-small: 14px;
  --type-body: 17px;
  --type-subhead: 20px;
  --type-section: clamp(28px, 3.2vw, 36px);
  --type-hero: clamp(40px, 5.7vw, 64px);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body) !important;
  font-synthesis: none;
}

[style*="Iowan Old Style"],
.serif {
  font-family: var(--font-display) !important;
}

[style*="ui-monospace"] {
  font-family: var(--font-body) !important;
}

[style*="font-size:11px"],
[style*="font-size:12px"],
[style*="font-size:13px"] {
  font-size: var(--type-label) !important;
}

[style*="font-size:14px"],
[style*="font-size:15px"] {
  font-size: var(--type-small) !important;
}

[style*="font-size:16px"],
[style*="font-size:17px"],
[style*="font-size:18px"],
[style*="font-size:19px"] {
  font-size: var(--type-body) !important;
}

[style*="font-size:20px"],
[style*="font-size:22px"] {
  font-size: var(--type-subhead) !important;
}

h1[style] {
  font-family: var(--font-display) !important;
  font-size: var(--type-hero) !important;
  font-weight: 400 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.018em !important;
}

h2[style] {
  font-family: var(--font-display) !important;
  font-size: var(--type-section) !important;
  font-weight: 400 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.012em !important;
}

h3[style] {
  font-size: var(--type-subhead) !important;
  line-height: 1.3 !important;
}

blockquote[style] {
  font-family: var(--font-display) !important;
  font-size: clamp(21px, 2.4vw, 30px) !important;
  font-weight: 400 !important;
  line-height: 1.42 !important;
}

header a,
footer,
footer a,
figcaption,
dt {
  font-size: var(--type-small) !important;
}

[style*="text-transform:uppercase"] {
  font-family: var(--font-body) !important;
  font-size: var(--type-label) !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
}

strong,
b,
[style*="font-weight:600"] {
  font-weight: 600 !important;
}

:where(a, button, input, select, textarea, iframe):focus-visible {
  outline: 2px solid #7a4023;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: #211e1a;
  color: #faf8f4;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Project navigation uses the existing subheading and caption scale. */
.related-project {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #D9D3C9;
  color: #211E1A;
  font-family: var(--font-display);
  font-size: var(--type-subhead);
  line-height: 1.3;
  text-decoration: none;
}

.related-project__title {
  display: block;
}

.related-project__meta {
  display: block;
  margin-top: 6px;
  color: #5A544B;
  font-family: var(--font-body);
  font-size: var(--type-small);
  line-height: 1.5;
}

.related-project:hover .related-project__title,
.related-project:focus-visible .related-project__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-card h2 {
  font-size: var(--type-subhead) !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

.project-film {
  border-bottom: 1px solid #D9D3C9;
}

.project-film__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) 24px;
}

.project-film h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: var(--type-section);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
}

.project-film__player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #211E1A;
}

.project-film__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-film p {
  margin: 16px 0 0;
  font-size: var(--type-small);
}

.project-card__meta {
  font-family: var(--font-body);
  font-size: var(--type-small) !important;
  line-height: 1.5;
}

@media (max-width: 480px) {
  :root {
    --type-body: 16px;
    --type-subhead: 19px;
    --type-section: 28px;
    --type-hero: 40px;
  }
}
