@font-face {
  font-family: 'ZNVT21';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/znvt21.woff2') format('woff2');
}

@font-face {
  font-family: 'DotGothic16';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dotgothic16-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/lora-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/lora-latin-600-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;

  --bg: #faf9f6;
  --fg: #1c1e21;
  --muted: #5a626a;
  --line: #d6d3cd;
  --field-border: #8e8a82;
  --accent: #2b5c8f;
  --error: #b42318;

  --font-display: 'DotGothic16', ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-title: 'ZNVT21', var(--font-display);
  --font-body: 'Lora', Georgia, 'Times New Roman', Times, serif;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141618;
    --fg: #e8e6e1;
    --muted: #9aa2ab;
    --line: #2e3338;
    --field-border: #5e666e;
    --accent: #7aa7d9;
    --error: #f97066;
  }
}

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

html {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 140ms ease, text-decoration-thickness 140ms ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.external-cue {
  font-size: 0.8em;
  color: var(--muted);
  text-decoration: none;
  margin-left: 0.15em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0.875rem;
  background-color: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

.page {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem);
  overflow-wrap: break-word;
}

.site-header {
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.wordmark {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: 0.03em;
  color: var(--fg);
}

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

.wordmark a:hover,
.wordmark a:focus-visible {
  color: var(--accent);
}

.tagline {
  margin: 0.65rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted);
}

.site-nav {
  margin-top: 1.5rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.25rem;
  font-size: 0.96875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site-nav a:hover .external-cue,
.site-nav a:focus-visible .external-cue {
  color: var(--accent);
}

main {
  display: block;
}

.section {
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-size: 1.625rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.section p {
  margin: 0 0 1.125rem;
  color: var(--fg);
}

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

.section h3 {
  margin: 1.75rem 0 0.625rem;
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.35;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.section h2 + h3 {
  margin-top: 1rem;
}

.section h4 {
  margin: 1.375rem 0 0.5rem;
  font-family: var(--font-title);
  font-size: 1.1875rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--fg);
}

.section p.section-kicker {
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.section p.section-kicker + h3 {
  margin-top: 0;
}

.section ul {
  margin: 0 0 1.25rem;
  padding-left: 1.375rem;
  color: var(--fg);
}

.section li + li {
  margin-top: 0.45rem;
}

.section hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.section figure {
  margin: 0 0 1.25rem;
}

.section figure.lead-photo {
  max-width: 22rem;
  margin: 0 auto 1.25rem;
}

.section figure.cluster-media {
  max-width: min(100%, 30rem);
  margin: 0 auto 1.25rem;
}

.section figure img,
.section figure video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  transition: border-color 140ms ease;
}

.section figure video {
  background-color: var(--bg);
}

.section figure img.cluster-still {
  display: none;
}

.photo-pair {
  display: grid;
  grid-template-columns: 0.747fr 1.333fr;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
}

.photo-pair figure {
  margin: 0;
}

@media (max-width: 34rem) {
  .photo-pair {
    grid-template-columns: 1fr;
  }

  .photo-pair figure {
    max-width: 22rem;
    margin-inline: auto;
  }
}

.section p.meta-links {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.section p.meta-links a {
  display: inline-block;
  padding-block: 0.25rem;
}

.contact-form {
  display: grid;
  gap: 1.125rem;
  margin-top: 1.5rem;
}

.form-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 34rem) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.contact-form label {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--field-border);
  border-radius: 0;
  background-color: transparent;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  appearance: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.contact-form input[type="text"]:focus-visible,
.contact-form input[type="email"]:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-form input[type="text"]:user-invalid,
.contact-form input[type="email"]:user-invalid,
.contact-form textarea:user-invalid {
  border-color: var(--error);
}

.contact-form input[type="text"]:-webkit-autofill,
.contact-form input[type="email"]:-webkit-autofill,
.contact-form textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  box-shadow: 0 0 0 1000px var(--bg) inset;
  transition: background-color 9999s ease-out 0s;
}

.botcheck {
  display: none;
}

.form-actions {
  margin-top: 0.25rem;
}

.btn-submit {
  display: inline-block;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  background-color: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.02em;
  line-height: 1.3;
  cursor: pointer;
  appearance: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background-color: var(--accent);
  color: var(--bg);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.thanks-card h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-title);
  font-size: 1.625rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--accent);
}

.copyright {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  a,
  .site-nav a,
  .section figure img,
  .section figure video,
  .btn-submit {
    transition: none;
  }

  .section figure video.cluster-video {
    display: none;
  }

  .section figure img.cluster-still {
    display: block;
  }
}
