/* Jost is served locally under the SIL Open Font License (see fonts/jost/OFL.txt). */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url('/frontend/assets/fonts/jost/jost-latin-ext-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url('/frontend/assets/fonts/jost/jost-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Jost';
  font-style: italic;
  font-weight: 100 900;
  font-display: optional;
  src: url('/frontend/assets/fonts/jost/jost-latin-ext-italic.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Jost';
  font-style: italic;
  font-weight: 100 900;
  font-display: optional;
  src: url('/frontend/assets/fonts/jost/jost-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --white: rgba(248, 248, 248, 1);
  --border-radius: 12px;

  --primary: rgba(189, 0, 0, 1);
  --primary-hover: rgba(125, 0, 0, 1);
  --primary-soft: rgba(189, 0, 0, 0.14);
  --primary-glow: rgba(189, 0, 0, 0.28);

  --secondary: rgba(10, 10, 10, 1);
  --secondary-hover: rgba(24, 28, 31, 1);
  --secondary-surface: rgba(38, 41, 47, 1);
  --secondary-border: rgba(61, 65, 72, 1);

  --tertiary: rgba(244, 242, 238, 1);
  --tertiary-soft: rgba(199, 194, 187, 0.4);
  --tertiary-muted: rgba(160, 155, 149, 1);

  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-xxl: 1550px;
  --container-padding: 1rem;
  --container-max-sm: 640px;
  --container-max-md: 768px;
  --container-max-lg: 1024px;
  --container-max-xl: 1280px;
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --z-0: 0;
  --z-1: 1;
  --z-10: 10;
  --z-100: 100;
  color-scheme: light;
  --bg: #ffffff;
  --bg-muted: #f5f5f5;
  --surface: #ffffff;
  --border: #d9d9d9;
  --text: #1f1f1f;
  --text-muted: #666666;
  --accent: #1f1f1f;
  --accent-contrast: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Jost, Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
}

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

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 0.125rem 0.375rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-main {
  background: var(--white);
  overflow-x: hidden;
  overflow-x: clip;
}

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

.site-brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav-list {
  align-items: flex-start;
}

.site-nav-link {
  color: var(--text-muted);
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--text);
}

.site-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-title,
.section-title {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

.page-title {
  font-size: 2rem;
}

.section-title {
  font-size: 1.5rem;
}

.card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.site-copy,
.site-meta,
.inline-links,
.article-content {
  color: var(--text-muted);
}

.site-copy,
.inline-links,
.article-content {
  line-height: 1.7;
}

.site-meta {
  font-size: 0.875rem;
}

.inline-links a,
.article-content a {
  text-decoration: underline;
}

.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
}

.content-width-md {
  max-width: 48rem;
}

.content-width-lg {
  max-width: 64rem;
}

.content-image {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.list-plain {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.list-plain li + li {
  margin-top: var(--space-2);
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.site-button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.site-button.secondary {
  background: var(--surface);
  color: var(--text);
}

.site-button.small {
  min-height: 2.25rem;
  padding-inline: 0.875rem;
  font-size: 0.875rem;
}

.site-button:hover,
.site-button:focus-visible {
  background: var(--bg-muted);
}

.site-button.primary:hover,
.site-button.primary:focus-visible {
  background: #333333;
  border-color: #333333;
}

.site-button:disabled {
  background: var(--bg-muted);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
}

.field label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--text-muted);
}

.checkbox-row input {
  margin-top: 0.25rem;
}

.status-box {
  padding: var(--space-4);
  border: 1px solid var(--border);
  background: var(--bg-muted);
}

.status-box strong {
  display: block;
}

.form-message {
  min-height: 1.5rem;
  color: var(--text-muted);
  flex: 1 1 12rem;
}

.form-message.is-success,
.form-message.is-error {
  color: var(--text);
}

.article-content > * {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

.article-content > :last-child {
  margin-bottom: 0;
}

.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}

.site-footer-meta {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .site-nav-list {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }

  .site-footer-meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-title {
    font-size: 2.5rem;
  }
}
