@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/poppins-300.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/poppins-500.woff2") format("woff2");
}

:root {
  --accent: #0052cb;
  --text: #232323;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --panel: #f5f6fa;
  --border: #e6e7ec;
  --content-width: 1200px;
  --edge: clamp(16px, 2vw, 32px);
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.8;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main > * {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

strong {
  font-weight: 500;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.site-header .container,
.site-footer .container {
  max-width: none;
  padding: 0 var(--edge);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  display: block;
  height: 50px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a,
.site-nav .nav-folder > button {
  color: var(--text);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav .nav-folder.is-current > button {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-folder {
  position: relative;
}

.nav-folder-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.nav-folder:hover .nav-folder-menu,
.nav-folder:focus-within .nav-folder-menu,
.nav-folder.is-open .nav-folder-menu {
  display: block;
}

.nav-folder-menu a {
  display: block;
  padding: 6px 16px;
  font-weight: 300;
  white-space: nowrap;
}

/* Footer */

.site-footer {
  background: var(--panel);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.site-footer img {
  display: block;
  height: 40px;
  width: auto;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

/* Home */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 64px 0;
  background: url("/assets/img/hero.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
}

.hero .container {
  position: relative;
  max-width: 640px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 32px;
}

.hero-logo {
  display: block;
  width: 240px;
  margin: 0 auto 32px;
}

.hero p {
  margin: 0;
  font-size: 20px;
  line-height: 1.8;
  text-wrap: balance;
}

/* Content pages */

h1 {
  color: var(--accent);
  font-weight: 500;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.page {
  padding: 48px 0 64px;
}

.page h1 {
  margin: 0 0 40px;
}

.page p,
.page li {
  margin: 0 0 14px;
}

.page ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.page ul ul {
  margin: 10px 0 0;
  list-style: circle;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 44px;
  padding: 8px 24px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: #0044a8;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover {
  background: rgba(0, 82, 203, 0.06);
}

.credits {
  margin-top: 40px;
  padding: 32px;
  background: var(--panel);
  border-radius: 6px;
  font-size: 15px;
}

.credits p:last-child {
  margin-bottom: 0;
}

.page-split {
  background: #f9f9f9;
  padding: 120px 0;
}

.page-split .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: 48px;
}

.page-split h4 {
  margin: 0;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.45;
}

.page-split ol {
  margin: 0 0 20px;
  padding-left: 40px;
}

.page-split .content {
  max-width: 780px;
}

.not-found {
  text-align: center;
}

@media (max-width: 600px) {
  .site-header .container {
    gap: 16px;
    min-height: 60px;
  }

  .site-logo img {
    height: 36px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a,
  .site-nav .nav-folder > button {
    font-size: 14px;
  }

  .nav-folder-menu {
    left: auto;
    right: -8px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-logo {
    width: 200px;
  }

  .hero p {
    font-size: 18px;
  }

  .button {
    flex: 1 1 100%;
  }

  .credits {
    padding: 20px;
  }

  .page-split {
    padding: 48px 0;
  }

  .page-split .container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.nowrap {
  white-space: nowrap;
}
