@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter/inter-latin-wght-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;
}

:root {
  --nav-safe: clamp(22px, 3.5vw, 64px);
  --nav-height: 96px;
}

html {
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  padding-top: var(--nav-height);
}

header.site-bar {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding: 24px var(--nav-safe);
  margin: 0;
  border: 0;
  box-sizing: border-box;
  font: 16px/1.5 'Inter Variable', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: rgba(17, 19, 17, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f3f4f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.nav-light header.site-bar {
  background: rgba(243, 242, 238, 0.86);
  color: #20231f;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

header.site-bar .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  opacity: 1;
  filter: none;
  flex-shrink: 0;
  font-weight: 400;
}

header.site-bar .wordmark img {
  display: block;
  width: 64px;
  height: auto;
}

header.site-bar .wordmark strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 0;
}

header.site-bar .wordmark span {
  margin: 7px 0 0 0;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.19em;
  line-height: 1;
}

header.site-bar nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 16px;
  font-weight: 400;
}

header.site-bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

header.site-bar nav a:hover {
  color: inherit;
  opacity: 0.7;
}

header.site-bar [hidden] {
  display: none !important;
}

:focus:not(:focus-visible) {
  outline: none;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 1px solid var(--accent, #832b20);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Font Lab sticky sidebar offset adjustment for 96px fixed header */
.lab-layout .settings {
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  height: calc(100dvh - var(--nav-height));
}

@media (max-width: 700px) {
  :root { --nav-height: 80px; }
  header.site-bar { min-height: 80px; padding-block: 16px; }
  header.site-bar .wordmark img { width: 52px; }
  header.site-bar .wordmark strong { font-size: 16px; }
  header.site-bar .wordmark span { font-size: 8px; }
  header.site-bar nav { gap: 22px; }
  header.site-bar nav a { font-size: 13px; }
}

@media (max-width: 560px) {
  header.site-bar { gap: 18px; }
  header.site-bar nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    column-gap: 14px;
    row-gap: 0;
    max-width: 230px;
  }
  header.site-bar nav > a { min-height: 44px; }
}

@media (max-width: 420px) {
  header.site-bar nav { gap: 10px; }
  header.site-bar nav a { font-size: 12px; }
}
