/* Shared foundations and brand components. */
@font-face {
  font-family: 'Case Sans';
  src: url('../assets/fonts/case-sans-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Case Sans';
  src: url('../assets/fonts/case-sans-medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500 650;
  font-display: swap;
}
@font-face {
  font-family: 'Case Sans';
  src: url('../assets/fonts/case-sans-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}
:root {
  --page-white: #fff;
  --header-height: 76px;
  --brand-ink: #00262b;
  --brand-text: #354d51;
  --brand-body: #354d51;
  --brand-muted: #4f6466;
  --brand-link: #437278;
  --brand-mint: #eafde8;
  --brand-surface: #f5f8f6;
  --brand-line: #d9e4df;
  --brand-font: 'Case Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: #fff;
}
body {
  margin: 0;
  color: var(--brand-ink);
  font-family: var(--brand-font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button,
input {
  font: inherit;
}
button,
input,
select,
textarea {
  font-family: var(--brand-font);
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-link);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  z-index: 30;
  left: 20px;
  top: 12px;
  padding: 12px 18px;
  transform: translateY(-180%);
  background: #fff;
  border: 1px solid #171717;
}
.skip-link:focus {
  transform: none;
}

/* Brand image and wordmark have independent size controls. */
.solvefolk-brand {
  --solvefolk-brand-width: 220px;
  --solvefolk-logo-size: 52px;
  --solvefolk-name-size: 32px;
  --solvefolk-brand-gap: 8px;
  display: inline-flex;
  align-items: center;
  gap: var(--solvefolk-brand-gap);
  width: var(--solvefolk-brand-width);
  flex-shrink: 0;
}
.solvefolk-brand .solvefolk-brand-icon {
  position: relative;
  display: block;
  overflow: hidden;
  width: var(--solvefolk-logo-size);
  aspect-ratio: 365 / 347;
  flex-shrink: 0;
}
.solvefolk-brand-icon .solvefolk-logo-source {
  position: absolute;
  display: block;
  width: 396.71233%;
  max-width: none;
  height: auto;
  left: -26.84932%;
  top: -105.4755%;
}
.solvefolk-brand .solvefolk-brand-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}
:is(.wordmark, .footer-brand) .solvefolk-brand .solvefolk-brand-name {
  display: block;
  font-size: var(--solvefolk-name-size);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
:is(.wordmark, .footer-brand) .solvefolk-brand .solvefolk-brand-name > span {
  font: inherit;
  letter-spacing: inherit;
}
.solvefolk-brand .solvefolk-brand-name .solvefolk-name-solve {
  color: #00262b;
}
.solvefolk-brand .solvefolk-brand-name .solvefolk-name-folk {
  color: #00ad84;
}
:is(.footer-brand, .profile-footer .wordmark) .solvefolk-brand {
  --solvefolk-brand-width: 180px;
  --solvefolk-logo-size: 40px;
  --solvefolk-name-size: 26px;
}

/* Shared page header and navigation primitives. */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--page-white);
  border-bottom: 1px solid var(--brand-line);
}
.header-inner {
  display: flex;
  align-items: center;
  width: min(1840px, calc(100% - clamp(32px, 6vw, 96px)));
  height: calc(var(--header-height) - 1px);
  margin-inline: auto;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  flex-shrink: 0;
  gap: 7px;
  margin-right: 46px;
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.desktop-navigation {
  display: flex;
  align-items: center;
}
.navigation-link {
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 150ms ease;
}
.navigation-link:hover {
  color: var(--brand-link);
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.mobile-search {
  display: flex;
  align-items: center;
  width: 278px;
  height: 40px;
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  background: var(--brand-surface);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.mobile-search:focus-within {
  border-color: var(--brand-link);
  box-shadow: 0 0 0 3px rgb(67 114 120 / 10%);
}
.mobile-search input {
  width: 100%;
  min-width: 0;
  padding: 0 0 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--brand-ink);
  font-size: 14px;
  line-height: 1.4;
  appearance: none;
}
.mobile-search input::placeholder {
  color: #716d67;
}
.mobile-search input::-webkit-search-cancel-button {
  margin-right: 5px;
}
.search-button {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #383838;
}
.search-button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.015em;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}
.button:active {
  transform: translateY(1px);
}
.menu-toggle,
.mobile-navigation {
  display: none;
}
@media (max-width: 1200px) {
  .wordmark {
    margin-right: 32px;
  }
}
@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }
  .header-inner {
    width: calc(100% - 32px);
  }
  .wordmark {
    margin-right: 0;
    font-size: 25px;
  }
  .wordmark .solvefolk-brand {
    --solvefolk-brand-width: clamp(130px, calc(100vw - 190px), 180px);
    --solvefolk-logo-size: clamp(30px, 9vw, 38px);
    --solvefolk-name-size: clamp(18px, calc(6vw - 1.2px), 26px);
    --solvefolk-brand-gap: 6px;
  }
  .desktop-navigation,
  .login-button {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 38px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: none;
    color: var(--brand-ink);
  }
  .menu-toggle svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }
  .close-icon {
    display: none;
  }
  .menu-toggle[aria-expanded='true'] .menu-icon {
    display: none;
  }
  .menu-toggle[aria-expanded='true'] .close-icon {
    display: block;
  }
  .mobile-navigation:not([hidden]) {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 22px 24px 26px;
    border-top: 1px solid #efefed;
    border-bottom: 1px solid #e2e2df;
    background: var(--page-white);
    box-shadow: 0 12px 20px rgb(0 0 0 / 10%);
  }
  .mobile-search {
    width: 100%;
    height: 44px;
    margin-bottom: 14px;
  }
  .mobile-search input {
    font-size: 16px;
  }
  .mobile-navigation-link {
    min-height: 48px;
    padding: 12px 0;
    border: 0;
    background: none;
    color: var(--brand-ink);
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
  }
  .mobile-navigation-link:hover {
    color: var(--brand-link);
  }
}
@media (max-width: 360px) {
  .wordmark {
    gap: 5px;
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
