@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.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+2190-21FF,U+2212,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --paper: #101110;
  --surface: #181a18;
  --raised: #22241f;
  --ink: #f2eee5;
  --sub: #b4b4a9;
  --line: #3e4136;
  --field-line: #666958;
  --accent: #d6c7a7;
  --button-ink: #221c11;
  --gold: #d6c7a7;
  --ancillary: #b7a179;
  --error: #ffd0ca;
  --error-bg: #3a211f;
  --success: #dde7c7;
  --success-bg: #262e20;
  --ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 Manrope, system-ui, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f6f2e8;
  --surface: #fffdf7;
  --raised: #e9e1d0;
  --ink: #25251e;
  --sub: #5a574b;
  --line: #cec3ab;
  --field-line: #88806e;
  --accent: #5c4527;
  --button-ink: #fffdf7;
  --gold: #6e522d;
  --ancillary: #6e522d;
  --error: #802b29;
  --error-bg: #f7e4e0;
  --success: #3e522e;
  --success-bg: #e5eadc;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.04em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
main:focus { outline: none; }
html { scroll-behavior: smooth; }

.wrap {
  width: min(100% - 96px, 1248px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: 12px auto auto 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--button-ink);
  background: var(--accent);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
  margin-top: 16px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.055em;
  white-space: nowrap;
  text-decoration: none;
}
.wordmark img { border-radius: 28%; }

.site-nav, .header-actions, .footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a, .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sub);
  text-decoration: none;
  font-size: 14px;
}

.site-nav a:hover, .footer-links a:hover { color: var(--ink); text-decoration: underline; }
.header-actions { gap: 8px; }

.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 250ms var(--ease), transform 300ms var(--ease), opacity 250ms var(--ease);
}

.button:active, .icon-button:active { transform: translateY(1px); }
.button-outline { border-color: var(--field-line); font-size: 14px; }
.button-outline:hover, .icon-button:hover { background: var(--raised); }
.button-primary {
  min-height: 54px;
  padding-inline: 20px;
  background: var(--accent);
  color: var(--button-ink);
}
.button-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.button-primary:disabled { opacity: .65; cursor: progress; transform: none; }
.button-primary span { font-size: 19px; }

.icon-button { width: 44px; padding: 0; }
.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ancillary);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .045em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1024px) {
  .wrap { width: calc(100% - 64px); }
  .site-nav { gap: 16px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { margin-top: 4px; min-height: 64px; gap: 8px; }
  .site-nav { display: none; }
  .wordmark { font-size: 18px; gap: 8px; }
  .wordmark img { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
