/*
|--------------------------------------------------------------------------
| BeginnerSkate global design system
|--------------------------------------------------------------------------
*/

:root {
  --color-ink: #101426;
  --color-muted: #667085;
  --color-surface: #ffffff;
  --color-background: #f4f7ff;
  --color-background-strong: #e9efff;

  --color-primary: #5b4bff;
  --color-primary-dark: #4032d8;
  --color-secondary: #ff4f8b;
  --color-accent: #18c6a3;
  --color-warning: #ffbe3d;

  --color-border: rgba(16, 20, 38, 0.1);

  --shadow-small:
    0 12px 30px rgba(54, 64, 126, 0.08);

  --shadow-medium:
    0 20px 50px rgba(54, 64, 126, 0.14);

  --shadow-large:
    0 35px 90px rgba(54, 64, 126, 0.2);

  --radius-small: 14px;
  --radius-medium: 22px;
  --radius-large: 34px;

  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(91, 75, 255, 0.14),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 10%,
      rgba(255, 79, 139, 0.13),
      transparent 30%
    ),
    linear-gradient(
      180deg,
      #f9faff 0%,
      var(--color-background) 100%
    );

  color: var(--color-ink);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

#siteHeader {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--color-border);

  backdrop-filter: blur(22px);
}

.header-inner {
  width: min(
    var(--page-width),
    calc(100% - 32px)
  );

  min-height: 76px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-logo {
  position: relative;

  color: var(--color-ink);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.site-logo::after {
  content: "";

  position: absolute;
  right: -13px;
  top: 1px;

  width: 9px;
  height: 9px;

  background:
    linear-gradient(
      135deg,
      var(--color-secondary),
      var(--color-primary)
    );

  border-radius: 50%;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-navigation a {
  padding: 10px 14px;

  border-radius: 999px;

  color: #4c5569;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.header-navigation a:hover {
  background: rgba(91, 75, 255, 0.1);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin: 0;

  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 24px;
  height: 3px;

  background:
    linear-gradient(
      90deg,
      var(--color-primary),
      var(--color-secondary)
    );

  border-radius: 999px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 0 21px;

  border-radius: 999px;

  font-weight: 850;
  text-decoration: none;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button {
  background:
    linear-gradient(
      135deg,
      var(--color-primary),
      var(--color-secondary)
    );

  color: #ffffff;

  box-shadow:
    0 15px 35px rgba(91, 75, 255, 0.28);
}

.secondary-button {
  background: #ffffff;
  border: 1px solid var(--color-border);

  color: var(--color-ink);

  box-shadow: var(--shadow-small);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px);
}

#siteFooter {
  margin-top: 80px;

  background: #111426;
  color: #ffffff;
}

.footer-inner {
  width: min(
    var(--page-width),
    calc(100% - 32px)
  );

  margin: 0 auto;
  padding: 54px 0;
}

.footer-inner strong {
  display: block;
  margin-bottom: 12px;

  font-size: 1.2rem;
}

.footer-inner p {
  max-width: 700px;
  margin: 6px 0;

  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.loading-page,
.error-page,
.not-found-page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
}

@media (max-width: 840px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;

    padding: 18px 0;
  }

  .header-navigation {
    width: 100%;

    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-navigation a {
    flex: 0 0 auto;
  }
}

