@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable-latin.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #fafbfc;
  --surface: #fffefd;
  --surface-soft: #f0f1f3;
  --surface-warm: #f6f2ea;
  --ink: #17181c;
  --navy: #0b2342;
  --muted: #61666f;
  --line: rgb(23 24 28 / 13%);
  --pink: #ff6398;
  --red: #ff4040;
  --blue: #2e90cf;
  --green: #3cbf96;
  --sun: #ffdf51;
  --focus: #145bff;
  --display: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --interface: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 0.9rem;
  --radius-md: 1.35rem;
  --radius-lg: 2rem;
  --radius-xl: 2.7rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 1.6rem 4rem -2.8rem rgb(22 30 43 / 35%);
  --shadow-card: 0 1.2rem 2.8rem -2.2rem rgb(22 30 43 / 28%);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #171717;
  --surface: #202124;
  --surface-soft: #27292d;
  --surface-warm: #28251f;
  --ink: #f5f5f2;
  --navy: #f5f5f2;
  --muted: #b5b8be;
  --line: rgb(255 255 255 / 14%);
  --pink: #ff78a7;
  --red: #ff625e;
  --blue: #56a7d9;
  --green: #57cba7;
  --sun: #f5d969;
  --focus: #8db9ff;
  --shadow-soft: 0 1.8rem 4rem -2.2rem rgb(0 0 0 / 70%);
  --shadow-card: 0 1.2rem 3rem -2rem rgb(0 0 0 / 65%);
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--interface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
}

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

a {
  color: inherit;
  text-underline-position: from-font;
  text-decoration-thickness: from-font;
}

button,
summary {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--sun);
  color: #17181c;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  inset: 0.75rem auto auto 0.75rem;
  translate: 0 -200%;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #17181c;
  color: #fafbfc;
  padding-inline: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  translate: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(calc(100% - 2.5rem), 82rem);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(1.25rem);
}

.site-header__inner {
  min-height: 5.25rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  border-block-end: 1px solid var(--line);
}

.brand-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 0.7rem;
  text-decoration: none;
}

.brand-link img {
  width: 7.25rem;
  height: auto;
}

:root[data-theme="dark"] .brand-link img {
  filter: brightness(0) invert(1);
}

.site-nav {
  justify-self: center;
}

.site-nav ul,
.footer-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a,
.footer-nav a {
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.auth-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding-inline: 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    translate 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background 180ms ease;
  touch-action: manipulation;
}

.button:hover {
  translate: 0 -2px;
}

.button--primary {
  background: #17181c;
  color: #fafbfc;
  box-shadow: 0 0.8rem 1.6rem -1.1rem rgb(23 24 28 / 62%);
}

.button--secondary {
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(1rem);
}

.button--quiet {
  color: inherit;
  background: transparent;
}

.section-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.grid-paper {
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 1.55rem 1.55rem;
}

.micro-tag {
  min-height: 1.65rem;
  display: inline-flex;
  align-items: center;
  border-radius: 0.28rem;
  background: var(--tag-color, var(--sun));
  color: #17181c;
  padding-inline: 0.55rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  box-shadow: 0 0.4rem 1rem -0.7rem rgb(23 24 28 / 45%);
}

.artifact-switcher {
  position: fixed;
  z-index: 60;
  inset: auto 1rem 1rem auto;
}

.artifact-switcher a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding-inline: 1rem;
  font-size: 0.77rem;
  font-weight: 500;
  text-decoration: none;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding-inline: 1.2rem;
}

.faq-list summary {
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 58rem;
  margin: -0.2rem 0 1.3rem;
  color: var(--muted);
  line-height: 1.6;
}

[data-reveal] {
  opacity: 1;
  translate: none;
}

.js [data-reveal] {
  opacity: 0;
  translate: 0 1.25rem;
  transition:
    opacity 700ms var(--ease-out),
    translate 700ms var(--ease-out);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

[data-tilt] {
  transform: perspective(80rem) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 280ms var(--ease-out);
}

@media (max-width: 62rem) {
  .site-nav {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .auth-actions {
    justify-self: end;
  }
}

@media (max-width: 42rem) {
  .shell {
    width: min(calc(100% - 1.25rem), 82rem);
  }

  .site-header__inner {
    min-height: 4.65rem;
    gap: 0.65rem;
  }

  .brand-link img {
    width: 6.25rem;
  }

  .auth-actions .button--quiet {
    display: none;
  }

  .button {
    min-height: 2.8rem;
    padding-inline: 1rem;
    font-size: 0.82rem;
  }

  .section-card {
    border-radius: var(--radius-lg);
  }

  .artifact-switcher {
    inset: auto 0.65rem 0.65rem auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
  }
}
