@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #191918;
  --panel: #2c2a25;
  --foreground: #f4f1e9;
  --muted: #b5afa3;
  --accent: #e6ad71;
  --button-text: #241a10;
  --border: #3e3b34;
  --control-border: #897c69;
  --danger: #f1a596;
  --success: #b7c8a3;
  --radius: 6px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font:
    400 16px/1.7 "DM Sans",
    system-ui,
    sans-serif;
}
h1,
h2,
h3,
p,
ul,
figure {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: var(--foreground);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
}
h1 {
  font-size: clamp(44px, 5.5vw, 72px);
}
h2 {
  font-size: clamp(30px, 3.2vw, 42px);
}
h3 {
  font-size: 23px;
}
p {
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:disabled:hover {
  transform: none;
}
button {
  color: inherit;
}
button,
input,
select {
  min-height: 44px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  color: var(--button-text);
  background: var(--accent);
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 40px;
}
.eyebrow {
  font:
    500 12px/1.6 "Space Grotesk",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-decoration: none !important;
}
.brand-mark {
  width: auto;
  height: 42px;
  display: block;
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--button-text);
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
}
.button:hover {
  filter: brightness(1.08);
}
.button.subtle {
  background: var(--panel);
  color: var(--foreground);
  border-color: var(--control-border);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  color: var(--accent);
  font-size: 14px;
}
.tags {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.tags li {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 200;
  background: var(--accent);
  color: var(--button-text);
  padding: 12px 18px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 30px;
  padding-bottom: 28px;
  position: relative;
}
.site-header:after {
  content: "";
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 40px;
  background: var(--border);
}
.site-header nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.site-header nav a {
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.menu-toggle {
  display: none;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}
.site-footer div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-heading h2,
.section-heading p {
  margin: 0;
}
dialog {
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  box-shadow: 0 24px 100px #0008;
}
dialog::backdrop {
  background: #000c;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font-size: 28px;
  margin: 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.field label,
.field-label {
  color: var(--muted);
  font-size: 14px;
}
input:not([type="checkbox"]):not([type="range"]),
select {
  width: 100%;
  background: #24231f;
  color: var(--foreground);
  border: 1px solid var(--control-border);
  border-radius: 4px;
  padding: 10px 12px;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  min-height: 0;
}
input[type="range"] {
  accent-color: var(--accent);
  width: 100%;
}
.empty-state {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 6px;
}
.empty-state h3 {
  font-size: 23px;
}
.empty-state p {
  margin-bottom: 0;
}
.muted {
  color: var(--muted);
}
.status-message {
  font-size: 14px;
  color: var(--danger);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1023px) {
  .shell {
    padding-inline: 24px;
  }
  .site-header:after {
    left: 24px;
    right: 24px;
  }
}
@media (max-width: 767px) {
  .shell {
    padding-inline: 20px;
  }
  .site-header {
    padding-top: 22px;
    padding-bottom: 22px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .site-header:after {
    left: 20px;
    right: 20px;
  }
  .brand {
    font-size: 18px;
  }
  .brand-mark {
    height: 38px;
  }
  .js .menu-toggle {
    display: inline-flex;
  }
  .site-header nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px 24px;
  }
  .js .site-header nav:not(.is-open) {
    display: none;
  }
  .site-header nav a {
    padding: 6px 0;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .button {
    gap: 16px;
    padding: 12px 16px;
  }
  .site-footer {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .site-footer div {
    gap: 20px;
  }
  dialog {
    padding: 18px;
  }
  .dialog-heading {
    gap: 12px;
  }
  .dialog-heading h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
