@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700;800&family=Familjen+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --page-ink: #f7f2e8;
  --page-muted: #cdc2af;
  --page-accent: #ff7d3d;
  --page-accent-soft: #ffbe8b;
  --page-cyan: #82d4ff;
  --page-panel: rgba(28, 24, 34, 0.9);
  --page-border: rgba(255, 214, 168, 0.28);
  --page-shadow: rgba(7, 4, 10, 0.58);
}

body.landing-page,
body.docs-page {
  font-family: 'Familjen Grotesk', sans-serif;
}

body.landing-page {
  color: var(--page-ink);
}

body.landing-page .md-header,
body.landing-page .md-tabs,
body.landing-page .md-sidebar,
body.landing-page .md-footer,
body.landing-page .md-top,
body.landing-page .md-content__button {
  display: none;
}

body.landing-page .md-main {
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 88% 6%, rgba(0, 170, 255, 0.24), transparent 58%),
    radial-gradient(900px 640px at 2% 14%, rgba(255, 109, 46, 0.24), transparent 56%),
    radial-gradient(700px 560px at 52% 104%, rgba(182, 79, 255, 0.18), transparent 58%),
    linear-gradient(152deg, #100f18 0%, #191425 48%, #241621 100%);
}

body.landing-page .md-main__inner,
body.landing-page .md-content,
body.landing-page .md-content__inner,
body.landing-page .md-grid {
  margin: 0;
  padding: 0;
  max-width: none;
}

body.landing-page .md-content__inner:before,
body.landing-page .md-content__title,
body.landing-page .md-typeset > h1:first-child {
  display: none !important;
}

body.landing-page .md-typeset {
  color: var(--page-ink);
  font-size: 1rem;
}

.landing-root {
  width: min(1180px, calc(100vw - clamp(1.2rem, 4vw, 3rem)));
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.8rem) 0 clamp(2.3rem, 7vw, 4rem);
  position: relative;
  animation: rise-in 720ms cubic-bezier(0.17, 0.84, 0.4, 1);
}

.landing-root::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 138, 74, 0.08), transparent 24%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 28px);
  z-index: -1;
}

.landing-title {
  margin: 0 0 clamp(0.9rem, 3vw, 1.4rem);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2.1rem, 8vw, 6.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.94;
  color: #fff4e6;
  text-shadow: 0 8px 22px rgba(255, 98, 34, 0.24);
}

.landing-hero {
  border: 1px solid var(--page-border);
  border-radius: 24px;
  padding: clamp(1rem, 3.8vw, 2rem);
  background:
    linear-gradient(128deg, rgba(255, 137, 74, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(0, 176, 255, 0.12), transparent 72%),
    var(--page-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 213, 0.2),
    0 18px 44px var(--page-shadow);
}

.landing-kicker {
  margin: 0;
  color: #fff4e6;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
}

.landing-kicker-link {
  text-decoration: none;
  color: inherit;
}

.landing-kicker-link:hover {
  color: #fff0db;
}

.landing-topbar {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.8rem;
  margin-bottom: 1.05rem;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  border-top: 1px solid rgba(255, 206, 157, 0.2);
  border-bottom: 1px solid rgba(255, 206, 157, 0.2);
}

.landing-search {
  margin: 0;
  position: relative;
  min-width: 0;
}

.landing-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.landing-search-input {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 208, 150, 0.3);
  background: rgba(18, 21, 34, 0.84);
  color: #fff2e1;
  font: inherit;
  padding: 0.68rem 1rem;
  font-size: 0.94rem;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.landing-search-input::placeholder {
  color: #9e96a7;
}

.landing-search-input:focus {
  outline: 0;
  border-color: rgba(255, 155, 97, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 127, 62, 0.2);
}

.landing-search-button {
  min-height: 2.9rem;
  width: auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 164, 0.42);
  padding: 0.38rem 0.8rem;
  color: #ffe1bf;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  background: rgba(19, 16, 28, 0.96);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.landing-search-button:hover {
  color: #fff4e4;
  border-color: rgba(255, 226, 191, 0.76);
  background: rgba(33, 27, 44, 0.98);
  transform: translateY(-1px);
}

.landing-search-preview {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 999;
  border: 1px solid rgba(255, 205, 151, 0.25);
  border-radius: 14px;
  padding: 0.25rem;
  background: rgba(17, 19, 31, 0.95);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

.landing-search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.landing-search-result {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.52rem 0.56rem;
}

.landing-search-result:hover {
  background: rgba(255, 255, 255, 0.06);
}

.landing-search-result-title {
  display: block;
  color: #ffe0bb;
  font-weight: 600;
}

.landing-search-result-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: #9d9ab1;
}

.landing-search-result-empty {
  display: block;
  padding: 0.6rem 0.56rem;
  color: #a09aac;
  font-size: 0.9rem;
}

.landing-social-row {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-self: center;
  max-width: 100%;
}

.landing-social-link {
  text-decoration: none;
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  color: #ffe1bf;
  border: 1px solid rgba(255, 209, 164, 0.42);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  background: rgba(19, 16, 28, 0.96);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.landing-social-link:hover {
  color: #fff4e4;
  border-color: rgba(255, 226, 191, 0.76);
  background: rgba(33, 27, 44, 0.98);
  transform: translateY(-1px);
}

.landing-social-link-primary {
  color: #ffe1bf;
  background: rgba(19, 16, 28, 0.96);
  border-color: rgba(255, 209, 164, 0.42);
  font-weight: 600;
}

body.landing-page .md-typeset a.landing-social-link,
body.landing-page .md-typeset a.landing-social-link:visited,
body.landing-page .md-typeset a.landing-social-link:link {
  color: #ffe1bf;
}

body.landing-page .md-typeset a.landing-social-link:hover,
body.landing-page .md-typeset a.landing-social-link:focus-visible {
  color: #fff4e4;
}

body.landing-page .md-typeset a.landing-social-link-primary,
body.landing-page .md-typeset a.landing-social-link-primary:visited,
body.landing-page .md-typeset a.landing-social-link-primary:link {
  color: #ffe1bf;
}

body.landing-page .md-typeset a.landing-kicker-link,
body.landing-page .md-typeset a.landing-kicker-link:visited,
body.landing-page .md-typeset a.landing-kicker-link:link {
  color: #fff4e6;
}

body.landing-page .md-typeset a.landing-kicker-link:hover,
body.landing-page .md-typeset a.landing-kicker-link:focus-visible {
  color: #fff9f0;
}

.landing-panels {
  margin-top: clamp(1rem, 3.4vw, 2rem);
  display: grid;
  gap: clamp(0.8rem, 2vw, 1rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-panel {
  text-decoration: none;
  border: 1px solid rgba(255, 205, 151, 0.24);
  border-radius: 18px;
  padding: 1.1rem;
  color: #fff3e0;
  min-height: 172px;
  background:
    radial-gradient(120% 100% at 10% 0, rgba(255, 150, 86, 0.15), transparent 50%),
    radial-gradient(120% 100% at 90% 100%, rgba(98, 218, 255, 0.15), transparent 56%),
    rgba(21, 18, 30, 0.94);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.landing-panel:hover {
  border-color: rgba(255, 220, 183, 0.75);
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(4, 4, 9, 0.45);
}

.landing-panel h2 {
  margin: 0 0 0.65rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  letter-spacing: 0.03em;
  color: #fff4e6;
}

.landing-panel p {
  margin: 0;
  color: #cbbead;
}

.landing-back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #ffd3a9;
  border: 1px solid rgba(255, 206, 160, 0.35);
  border-radius: 999px;
  padding: 0.44rem 0.72rem;
}

.landing-back-link:hover {
  color: #fff4e4;
  border-color: rgba(255, 224, 191, 0.75);
}

.about-header {
  display: grid;
  gap: 0.8rem;
}

.about-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.about-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(140deg, #ff9c64, #6ad6ff);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.about-avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
}

.about-profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.5rem;
}

.about-profile-link {
  text-decoration: none;
  color: #ffddb8;
  border: 1px solid rgba(255, 211, 169, 0.33);
  border-radius: 999px;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.44rem 0.72rem;
}

.about-profile-link:hover {
  color: #fff6ea;
  border-color: rgba(255, 233, 208, 0.75);
}

.about-content {
  margin-top: 1.2rem;
  color: #d1c5b5;
}

.about-lede {
  margin-top: 0;
  color: #f6ebdc;
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.7;
}

.about-content h2 {
  margin: 1.3rem 0 0.58rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #ffe8cb;
}

.about-content ul {
  margin: 0.4rem 0 0.9rem 1.2rem;
}

.about-content li,
.about-content p {
  color: #d3c4b1;
}

.about-content a {
  color: #ffd39f;
}

body.docs-page {
  color: #f2e5d6;
  background:
    radial-gradient(1300px 700px at 92% -4%, rgba(255, 122, 57, 0.18), transparent 60%),
    radial-gradient(1000px 700px at -12% 4%, rgba(80, 217, 255, 0.17), transparent 58%),
    linear-gradient(156deg, #110f18 0%, #1b1625 46%, #251923 100%);
  background-attachment: fixed;
}

body.docs-page .md-header,
body.docs-page .md-tabs,
body.docs-page .md-sidebar__scrollwrap,
body.docs-page .md-footer {
  background: #1a1724;
}

body.docs-page .md-header {
  border-bottom: 1px solid rgba(255, 206, 157, 0.2);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

body.docs-page .md-tabs {
  border-bottom: 1px solid rgba(255, 210, 168, 0.16);
}

body.docs-page .md-main {
  background: transparent;
}

body.docs-page .md-main__inner {
  margin-top: 0;
}

body.docs-page .md-content {
  padding-bottom: 2.2rem;
}

body.docs-page .md-content__inner {
  margin-top: 1.35rem;
  padding: clamp(1rem, 2.2vw, 1.8rem);
  border: 1px solid rgba(255, 211, 163, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(140deg, rgba(255, 146, 75, 0.09), transparent 30%),
    linear-gradient(190deg, rgba(88, 210, 255, 0.09), transparent 45%),
    rgba(22, 19, 33, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 224, 0.09),
    0 24px 44px rgba(0, 0, 0, 0.4);
}

body.docs-page .md-content__inner:before {
  display: none;
}

body.docs-page .md-typeset {
  color: #d3c4af;
  line-height: 1.66;
}

body.docs-page .md-typeset h1,
body.docs-page .md-typeset h2,
body.docs-page .md-typeset h3,
body.docs-page .md-typeset h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #fff0dc;
}

body.docs-page .md-typeset h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  letter-spacing: 0.02em;
}

body.docs-page .md-typeset h2 {
  font-size: clamp(1.26rem, 2.3vw, 1.7rem);
}

body.docs-page .md-typeset a {
  color: #ffc68f;
}

body.docs-page .md-typeset a:hover {
  color: #ffe2be;
}

body.docs-page .md-typeset code {
  font-family: 'IBM Plex Mono', monospace;
  border-radius: 7px;
  background: rgba(8, 10, 19, 0.7);
  color: #ffd39d;
}

body.docs-page .md-typeset pre > code {
  border-radius: 12px;
}

body.docs-page .md-search__form {
  border-radius: 999px;
  background: rgba(16, 14, 25, 0.76);
  border: 1px solid rgba(255, 206, 160, 0.28);
}

body.docs-page .md-search__input {
  color: #ffe9cf;
}

body.docs-page .md-nav__title,
body.docs-page .md-nav__item .md-nav__link,
body.docs-page .md-tabs__link,
body.docs-page .md-header__button,
body.docs-page .md-header__title {
  color: #e8d7bf;
}

body.docs-page .md-nav__item .md-nav__link:hover,
body.docs-page .md-tabs__link:hover {
  color: #ffd19e;
}

body.docs-page .md-tabs__item--active .md-tabs__link,
body.docs-page .md-nav__item .md-nav__link--active {
  color: #ffc07f;
}

body.docs-page .md-nav--primary .md-nav__title {
  border-bottom: 1px solid rgba(255, 212, 171, 0.2);
}

body.docs-page .md-nav__item--active > .md-nav__link {
  font-weight: 600;
}

body.docs-page .md-typeset table:not([class]) {
  border-radius: 13px;
  overflow: hidden;
}

body.docs-page .md-typeset table:not([class]) th {
  background: rgba(255, 151, 85, 0.18);
  color: #ffe5c7;
}

body.docs-page .md-typeset table:not([class]) tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

body.docs-page .md-typeset .admonition,
body.docs-page .md-typeset details {
  border-radius: 12px;
  border: 1px solid rgba(255, 206, 158, 0.28);
  background: rgba(14, 12, 22, 0.74);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .landing-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .landing-topbar {
    grid-template-columns: 1fr;
  }
  .landing-title {
    letter-spacing: 0.03em;
  }
  .landing-social-row {
    justify-content: flex-start;
    align-self: stretch;
  }
  .landing-search-row {
    grid-template-columns: 1fr;
  }
  .landing-search-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .landing-panels {
    grid-template-columns: 1fr;
  }
  .about-profile {
    align-items: start;
    flex-direction: column;
  }
  .about-profile-links {
    justify-content: start;
  }
  .landing-search-preview {
    top: calc(100% + 0.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-root,
  .landing-search-button,
  .landing-social-link,
  .landing-panel {
    animation: none !important;
    transition: none !important;
  }
}
