/* manrope-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

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

/* manrope-greek-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* manrope-vietnamese-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* manrope-latin-ext-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  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;
}

/* manrope-latin-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  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 {
  font-family: 'Manrope Variable', 'Segoe UI', sans-serif;
  --ink: #152b28;
  --paper: #f7f5ef;
  --line: rgba(21, 43, 40, .16);
  --link: #9c4419;
  --focus: #9c4419;
}
html { scroll-padding-top: 84px; }
button, input, select, textarea { font-family: inherit; }

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid transparent;
  transition: height 180ms ease, background 180ms ease, border-color 180ms ease;
}

.topbar--scrolled {
  height: 62px;
  background: rgba(247, 245, 239, 0.94);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.topbar--static { position: sticky; background: var(--paper); border-color: var(--line); }
.site-skip { position: absolute; top: 8px; left: 18px; z-index: 1; padding: 9px 14px; color: var(--paper); background: var(--ink); transform: translateY(-160%); }
.site-skip:focus { transform: translateY(0); }
.brand { display: inline-flex; align-items: center; gap: 9px; padding: 0; color: var(--ink); font-size: 15px; font-weight: 760; text-decoration: none; transition: transform 150ms ease; }
.brand:hover { transform: translateY(-1px); }
.brand-word { color: var(--ink); letter-spacing: -0.01em; }
.brand-mark { width: 26px; height: 26px; display: inline-block; flex: 0 0 auto; }
.brand-mark-tile { fill: #0c1613; }
.brand-mark-lines { stroke: #fdfbf4; }
.brand-mark-nodes { fill: #fdfbf4; }

.nav-links { display: flex; justify-content: center; align-items: center; gap: 24px; white-space: nowrap; }
.nav-links a { color: #415550; font-size: 13px; font-weight: 660; text-decoration: none; transition: color 150ms ease; }
.nav-links a:hover { color: var(--link); }
.nav-links a[aria-current="page"], .footer-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav-actions { min-height: 40px; display: flex; align-items: center; gap: 20px; }
.nav-login { color: #415550; font-size: 13px; font-weight: 690; text-decoration: none; }
.nav-login:hover { color: var(--link); }
.nav-login[aria-current="page"] { padding: 7px 0 5px; border-bottom: 1px solid var(--ink); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0 5px; color: var(--ink); border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 720; text-decoration: none; }
.nav-actions a[aria-current="page"] { color: var(--ink); }
.nav-account-link { display: none; }
.nav-context { color: #52635e; font-size: 11px; font-weight: 720; white-space: nowrap; }
.nav-signout { color: #52635e; border: 0; background: transparent; font-size: 13px; font-weight: 690; cursor: pointer; }
.nav-signout--desktop { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.nav-signout:hover { color: var(--link); background: rgba(21, 43, 40, 0.05); }
.nav-signout:disabled { opacity: .55; cursor: wait; }

.menu-button { display: none; width: 44px; height: 44px; padding: 0; place-items: center; color: var(--ink); background: transparent; border: 0; cursor: pointer; }
.site-menu { display: none; }
.brand:focus-visible, .nav-links a:focus-visible, .nav-cta:focus-visible, .nav-login:focus-visible, .nav-signout:focus-visible, .menu-button:focus-visible, .footer-links a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-footer { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 28px; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px 36px; border-top: 1px solid var(--line); }
.site-footer > .brand { min-height: 44px; }
.site-footer > p { grid-column: 1 / -1; margin: 0; color: #52635e; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 20px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #415550; font-size: 13px; font-weight: 660; text-decoration: none; }
.footer-links a:hover { color: var(--link); }

@media (max-width: 1100px) {
  .topbar { height: 62px; padding: 0 18px; grid-template-columns: 1fr auto; }
  .topbar--scrolled { height: 58px; }
  .menu-button { display: grid; grid-column: 2; }
  .site-menu { display: block; grid-column: 2; }
  .site-menu summary { list-style: none; }
  .site-menu summary::-webkit-details-marker { display: none; }
  .nav-actions { display: none; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; padding: 12px 18px 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: rgba(247,245,239,.99); border-bottom: 1px solid var(--line); box-shadow: 0 18px 34px rgba(21,43,40,.08); }
  .nav-links--open, .site-menu[open] .nav-links { display: flex; max-height: calc(100dvh - 62px); overflow-y: auto; justify-content: flex-start; }
  .nav-links a, .nav-links .nav-signout { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
  .nav-links .nav-account-link { display: flex; }
  .nav-links .nav-signout { gap: 8px; padding: 0; border-radius: 0; text-align: left; }
}

@media (max-width: 760px) {
  .site-footer { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 8px; }
  .footer-links { justify-content: flex-start; gap: 0 16px; }
}
