@font-face {
  font-family: "Nexa";
  src: url("../fonts/Nexa-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nexa";
  src: url("../fonts/Nexa-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #042818;
  --muted: #245043;
  --line: #c5d5cb;
  --paper: #f3f6f4;
  --field: #ffffff;
  --green: #016038;
  --green-deep: #01482a;
  --leaf: #5dba50;
  --danger: #8d1d1d;
  --danger-ink: #6e1212;
  --danger-bg: #fdecec;
  --ok-bg: #e5f6df;
  --ok-ink: #01482a;
  --navy: #0c2340;
  --teal: #0f766e;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
}

::selection {
  background: #cfe8c4;
  color: var(--ink);
}

body.light {
  color: var(--ink);
  background: var(--paper);
  font-family: "Nexa", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.45;
}

body.light :focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

body.light input,
body.light textarea {
  caret-color: var(--green);
}

body.light ::placeholder {
  color: var(--muted);
  opacity: 1;
}

html:has(body.catalog) {
  background: #050508;
  color-scheme: dark;
  scrollbar-color: #2a2a32 #050508;
}

body.catalog {
  --ink: #f7f7fa;
  --muted: #c8c8d0;
  --line: #2a2a32;
  --paper: #050508;
  --field: #121218;
  --green: #5dba50;
  --green-deep: #016038;
  --leaf: #5dba50;
  --danger: #c62828;
  --danger-ink: #ffb4b4;
  --danger-bg: #2a1214;
  --ok-bg: #102616;
  --ok-ink: #c6f5b4;
  color: #f7f7fa;
  background-color: #050508;
  background-image:
    radial-gradient(ellipse 80% 42% at 12% -10%, rgba(93, 186, 80, 0.08), transparent 58%),
    radial-gradient(ellipse 55% 36% at 50% 110%, rgba(1, 96, 56, 0.16), transparent 60%);
  color-scheme: dark;
  font-family: "Nexa", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.45;
}

body.catalog :focus-visible {
  outline: 3px solid #5ee8ff;
  outline-offset: 2px;
}

body.catalog input,
body.catalog textarea {
  caret-color: #5dba50;
}

body.catalog ::placeholder {
  color: #9a9aa8;
  opacity: 1;
}

body.catalog ::selection {
  background: rgba(93, 186, 80, 0.45);
  color: #f7f7fa;
}

body.catalog,
body.catalog * {
  scrollbar-color: #2a2a32 #050508;
}

* {
  scrollbar-color: var(--green) #e6eee9;
}

.credit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.8rem;
  margin: 2rem 0 0;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
}

.credit-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
  text-decoration: none;
}

.credit-brand strong {
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", sans-serif;
  font-weight: 600;
}

.credit-mark {
  width: 1.15rem;
  height: 0.95rem;
  flex: none;
}

.credit-bar-navy { fill: #0c2340; }
.credit-bar-teal { fill: #0f766e; }
.credit-bar-light { fill: #1a9e7e; }

.credit-brand strong { color: #0f766e; }

.credit-light { color: var(--navy); }
.credit-light .credit-brand,
.credit-light .credit-brand:visited { color: var(--navy); }
.credit-mail { color: var(--teal); }

body.catalog .credit-light { color: #c8c8d0; }
body.catalog .credit-light .credit-bar-navy { fill: #7eadd4; }
body.catalog .credit-light .credit-brand,
body.catalog .credit-light .credit-brand:visited { color: #c8c8d0; }
body.catalog .credit-light .credit-brand strong { color: #1a9e7e; }
body.catalog .credit-light .credit-mail,
body.catalog .credit-light .credit-mail:visited { color: #1a9e7e; }

.credit-kiosk {
  justify-content: center;
  color: #c8c8d0;
}

.credit-kiosk .credit-bar-navy { fill: #7eadd4; }
.credit-kiosk .credit-brand,
.credit-kiosk .credit-brand:visited { color: #c8c8d0; }
.credit-kiosk .credit-brand strong { color: #1a9e7e; }

.credit a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

.req {
  position: relative;
  color: var(--danger-ink);
  font-weight: 700;
  white-space: nowrap;
}

.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 (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
