@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/eb-garamond-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/fonts/source-sans-3-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --ui-paper: #f4f0e8;
  --ui-surface: #faf7f1;
  --ui-surface-muted: #eae4d9;
  --ui-ink: #142c3a;
  --ui-muted: #52606a;
  --ui-nav: #132a38;
  --ui-nav-text: #f4f0e8;
  --ui-rule: #d5cdbf;
  --ui-control-border: #80786a;
  --ui-rust: #a74124;
  --ui-green: #246458;
  --ui-danger: #a32925;
  --ui-focus: #a74124;
  --ui-radius: 2px;
}

* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--ui-paper);
  color: var(--ui-ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font: inherit;
}
strong,
b,
th {
  font-weight: 400;
}
h1,
h2,
h3,
h4,
h5,
h6,
.ui-heading {
  font-family: var(--font-heading);
  font-weight: 550;
  letter-spacing: normal;
  text-wrap: balance;
}
h1 {
  font-size: 32px;
  line-height: 38px;
}
h2 {
  font-size: 24px;
  line-height: 30px;
}
h3,
h4,
h5,
h6 {
  font-size: 20px;
  line-height: 26px;
}
p {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--ui-focus);
  outline-offset: 3px;
}
button:disabled {
  cursor: not-allowed;
}
table {
  font-variant-numeric: tabular-nums;
}
img,
video {
  max-width: 100%;
  height: auto;
}
.ui-caption {
  font-size: 12px;
  line-height: 16px;
  color: var(--ui-muted);
}
.ui-number {
  font-variant-numeric: tabular-nums;
}
.ui-skeleton {
  background: var(--ui-surface-muted);
  border-radius: var(--ui-radius);
}
.ui-notice {
  padding: 16px;
  border: 1px solid var(--ui-rule);
  background: var(--ui-surface);
}
.ui-error {
  color: var(--ui-danger);
}
.ui-app :is(h1, h2, h3, h4, h5, h6),
.ui-app .ui-heading {
  font-family: var(--font-heading);
  font-weight: 550;
  letter-spacing: normal;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
