@font-face {
  font-family: "Bw Fusiona";
  src: url("brand/fonts/bw-fusiona-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bw Fusiona";
  src: url("brand/fonts/bw-fusiona-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bw Fusiona";
  src: url("brand/fonts/bw-fusiona-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --core3-ink: #0e1b30;
  --core3-navy: #101b2b;
  --core3-blue: #175fcc;
  --core3-cyan: #7fdaff;
  --core3-sky: #eaf8ff;
  --core3-line: #d7e8f4;
  --core3-muted: #5f7188;
  --core3-panel: #f6fbff;

  --base-font-family: "Bw Fusiona", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --base-font-size: 16px;
  --base-line-height: 1.72;
  --base-background-color: #ffffff;
  --base-color: var(--core3-ink);
  --theme-color: var(--core3-blue);

  --sidebar-width: 300px;
  --sidebar-background: #ffffff;
  --sidebar-border-color: var(--core3-line);
  --sidebar-nav-link-color: var(--core3-ink);
  --sidebar-nav-link-color--active: var(--core3-blue);
  --sidebar-nav-link-font-weight--active: 700;
  --sidebar-name-color: var(--core3-ink);
  --sidebar-name-font-weight: 700;

  --heading-color: var(--core3-ink);
  --heading-h1-font-size: 2.4rem;
  --heading-h2-font-size: 1.55rem;
  --heading-h3-font-size: 1.15rem;
  --heading-h1-margin: 0 0 1rem;

  --link-color: var(--core3-blue);
  --link-color--hover: #0d469f;
  --blockquote-border-color: var(--core3-cyan);
  --blockquote-background: var(--core3-panel);
  --code-inline-background: #eaf3fb;
  --code-inline-color: #0d469f;
  --code-block-background: var(--core3-navy);
  --code-block-color: #f4fbff;
  --table-row-even-background: var(--core3-panel);
  --search-background: #ffffff;
  --search-input-color: var(--core3-ink);
}

body {
  background:
    radial-gradient(circle at right top, rgba(127, 218, 255, 0.18), transparent 34rem),
    var(--base-background-color);
}

.markdown-section {
  max-width: 940px;
  padding: 42px 48px 72px;
}

.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4 {
  letter-spacing: 0;
}

.markdown-section h1 {
  line-height: 1.08;
}

.markdown-section h2 {
  border-bottom: 1px solid var(--core3-line);
  padding-bottom: 0.45rem;
}

.markdown-section strong {
  font-weight: 700;
}

.app-name {
  padding: 28px 28px 16px;
}

.app-name-link img {
  max-width: 172px;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(234, 248, 255, 0.9), rgba(255, 255, 255, 0) 210px),
    var(--sidebar-background);
}

.sidebar-nav {
  padding: 0 18px 32px;
}

.sidebar-nav > ul > li > a {
  color: var(--core3-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-nav li > a {
  border-radius: 8px;
  margin: 2px 0;
  padding: 6px 10px;
}

.sidebar-nav li.active > a,
.sidebar-nav li > a:hover {
  background: var(--core3-sky);
  color: var(--core3-blue);
  text-decoration: none;
}

.search {
  margin: 0 28px 22px;
  padding: 0;
  border-bottom: 0;
}

.search input {
  border: 1px solid var(--core3-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 10px 12px !important;
}

.search input:focus {
  border-color: var(--core3-blue) !important;
}

.search .results-panel {
  border: 1px solid var(--core3-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(14, 27, 48, 0.12);
  margin-top: 8px;
}

.core3-hero {
  --core3-hero-scale: min(1, 100vw / 149.5rem);
  --core3-hero-radius: clamp(1.625rem, 3.35cqw, 5rem);
  --core3-hero-pad-top: clamp(2rem, 6.35cqw, 9.5rem);
  --core3-hero-pad-right: clamp(1.5rem, 3.01cqw, 4.5rem);
  --core3-hero-pad-bottom: clamp(2rem, 5.35cqw, 8rem);
  --core3-hero-pad-left: clamp(2.125rem, 5.52cqw, 8.25rem);
  background: #02050a;
  border: 1px solid #1d2c46;
  border-radius: var(--core3-hero-radius);
  box-shadow: 0 22px 60px rgba(14, 27, 48, 0.18);
  color: #ffffff;
  aspect-ratio: 299 / 135;
  container-type: inline-size;
  margin: 0 0 34px;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.core3-hero::before {
  background:
    linear-gradient(90deg, #02050a 0%, rgba(2, 5, 10, 0.98) 35%, rgba(2, 5, 10, 0.74) 52%, rgba(2, 5, 10, 0.14) 72%, rgba(2, 5, 10, 0) 100%),
    linear-gradient(0deg, rgba(2, 5, 10, 0.16), rgba(2, 5, 10, 0));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.core3-hero__copy {
  align-content: start;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100%;
  max-width: min(62%, 71.875rem);
  padding:
    var(--core3-hero-pad-top)
    var(--core3-hero-pad-right)
    var(--core3-hero-pad-bottom)
    var(--core3-hero-pad-left);
  position: relative;
  z-index: 2;
}

.core3-hero__media {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.core3-hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 4.6cqw, 6.875rem);
  font-style: normal;
  font-weight: 500;
  letter-spacing: clamp(0.01rem, 0.092vw, 0.1375rem);
  line-height: normal;
  margin: 0 0 clamp(1.25rem, 2.3vw, 3.375rem);
  max-width: 71.875rem;
}

.core3-hero p {
  color: #ffffff;
  font-size: clamp(0.875rem, 1.67cqw, 2.5rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: clamp(0.005rem, 0.033vw, 0.05rem);
  line-height: normal;
  margin: 0;
  max-width: min(60.8125rem, 78%);
}

.core3-hero__mark {
  align-self: end;
  display: block;
  margin-top: 0;
  width: clamp(2rem, 3.6cqw, 3.375rem);
}

.core3-hero__media img {
  height: 100%;
  min-height: 100%;
  object-fit: fill;
  object-position: 1.023px 0;
  width: 99.957%;
}

.core3-quick-link {
  background: var(--core3-panel);
  border: 1px solid var(--core3-line);
  border-radius: 8px;
  margin: 28px 0;
  padding: 18px 20px;
}

.core3-quick-link p {
  margin: 0;
}

.markdown-section blockquote {
  border-radius: 0 8px 8px 0;
}

.markdown-section table {
  display: table;
  width: 100%;
}

.markdown-section table th {
  background: var(--core3-ink);
  color: #ffffff;
}

.markdown-section table td,
.markdown-section table th {
  border-color: var(--core3-line);
}

.markdown-section code {
  border-radius: 4px;
}

.markdown-section pre {
  border-radius: 8px;
}

.pagination-item a {
  border-color: var(--core3-line);
  border-radius: 8px;
}

.markdown-section input[type="checkbox"] {
  accent-color: var(--core3-blue);
  margin-right: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --base-background-color: #08111f;
    --base-color: #d7e8f4;
    --theme-color: var(--core3-cyan);
    --sidebar-background: #0a1424;
    --sidebar-border-color: #18304f;
    --sidebar-nav-link-color: #d7e8f4;
    --sidebar-nav-link-color--active: var(--core3-cyan);
    --sidebar-name-color: #ffffff;
    --heading-color: #ffffff;
    --link-color: var(--core3-cyan);
    --link-color--hover: #b9edff;
    --blockquote-background: #0f2036;
    --code-inline-background: #10223a;
    --code-inline-color: var(--core3-cyan);
    --code-block-background: #050b14;
    --table-row-even-background: #0d1b2e;
    --search-background: #0a1424;
    --search-input-color: #ffffff;
  }

  body {
    background:
      radial-gradient(circle at right top, rgba(23, 95, 204, 0.28), transparent 34rem),
      var(--base-background-color);
  }

  .sidebar {
    background:
      linear-gradient(180deg, rgba(23, 95, 204, 0.16), rgba(10, 20, 36, 0) 210px),
      var(--sidebar-background);
  }

  .app-name-link img {
    filter: brightness(0) invert(1);
  }

  .sidebar-nav li.active > a,
  .sidebar-nav li > a:hover {
    background: rgba(127, 218, 255, 0.12);
    color: var(--core3-cyan);
  }

  .search input {
    background: #0d1b2e !important;
    color: #ffffff !important;
    border-color: #18304f !important;
    box-shadow: inset 0 0 0 1px rgba(127, 218, 255, 0.08) !important;
    outline: none !important;
  }

  .search input:focus {
    border-color: var(--core3-cyan) !important;
    box-shadow: 0 0 0 2px rgba(127, 218, 255, 0.18) !important;
  }

  .search input::placeholder {
    color: #8fa5bc !important;
  }

  .search .results-panel {
    background: #0a1424 !important;
    border-color: #18304f;
  }

  .search .results-panel .matching-post {
    border-bottom-color: #18304f !important;
  }

  .search .results-panel .matching-post h2 {
    color: #ffffff !important;
  }

  .search .results-panel .matching-post p {
    color: #bfd1e2 !important;
  }

  .core3-quick-link {
    background: #0d1b2e;
    border-color: #274563;
    color: #d7e8f4;
  }

  .core3-quick-link strong {
    color: #ffffff;
  }

  .core3-quick-link a {
    color: var(--core3-cyan);
  }

  .markdown-section table th {
    background: #10223a !important;
  }

  .markdown-section table td {
    background: #08111f !important;
    border-color: #18304f !important;
    color: #d7e8f4 !important;
  }

  .markdown-section table tr:nth-child(even) td {
    background: #0d1b2e !important;
  }
}

@media (max-width: 760px) {
  .markdown-section {
    padding: 28px 22px 56px;
  }

  .core3-hero {
    border-width: 4px;
    border-radius: 26px;
    aspect-ratio: auto;
    min-height: 620px;
  }

  .core3-hero::before {
    background:
      linear-gradient(180deg, #02050a 0%, rgba(2, 5, 10, 0.98) 46%, rgba(2, 5, 10, 0.46) 70%, rgba(2, 5, 10, 0.04) 100%),
      linear-gradient(90deg, rgba(2, 5, 10, 0.74), rgba(2, 5, 10, 0));
  }

  .core3-hero__copy {
    height: 100%;
    max-width: none;
    padding: 34px 28px 24px;
  }

  .core3-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.05rem);
    letter-spacing: 0.02rem;
    margin-bottom: 20px;
  }

  .core3-hero p {
    font-size: 1.05rem;
    letter-spacing: 0.01rem;
    max-width: 19rem;
  }

  .core3-hero__mark {
    margin-top: 58px;
    width: 38px;
  }

  .core3-hero__media {
    inset: 0;
  }

  .core3-hero__media img {
    object-fit: cover;
    object-position: 58% 100%;
    width: 100%;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .markdown-section {
    padding: 18px 24px 44px;
  }

  .core3-hero {
    aspect-ratio: auto;
    border-width: 1px;
    border-radius: clamp(1.25rem, 3.2cqw, 2.5rem);
    height: clamp(13.5rem, 56vh, 20rem);
    margin-bottom: 26px;
    min-height: 0;
  }

  .core3-hero::before {
    background:
      linear-gradient(90deg, #02050a 0%, rgba(2, 5, 10, 0.98) 32%, rgba(2, 5, 10, 0.64) 50%, rgba(2, 5, 10, 0.1) 68%, rgba(2, 5, 10, 0) 100%),
      linear-gradient(0deg, rgba(2, 5, 10, 0.12), rgba(2, 5, 10, 0));
  }

  .core3-hero__copy {
    max-width: min(58%, 35rem);
    padding:
      clamp(1rem, 3.7cqw, 2rem)
      clamp(1rem, 2.6cqw, 2rem)
      clamp(2.75rem, 6.5cqw, 3.75rem)
      clamp(1.75rem, 5.4cqw, 3.375rem);
  }

  .core3-hero h1 {
    font-size: clamp(1.55rem, 3.6cqw, 2.35rem);
    letter-spacing: 0.03rem;
    line-height: 1.06;
    margin-bottom: clamp(0.6rem, 1.4cqw, 1rem);
  }

  .core3-hero p {
    font-size: clamp(0.7rem, 1.25cqw, 0.86rem);
    letter-spacing: 0.01rem;
    max-width: 19rem;
  }

  .core3-hero__mark {
    bottom: clamp(1rem, 3.8cqw, 2.25rem);
    left: clamp(1.75rem, 5.4cqw, 3.375rem);
    position: absolute;
    width: clamp(1.45rem, 2.8cqw, 2rem);
  }

  .core3-hero__media img {
    object-fit: cover;
    object-position: 72% 44%;
    width: 100%;
  }
}
