@import url("./styles.css");

:root {
  --font-aquavit: "aquavit", sans-serif;
  --font-inter: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  background: #000;
  font-family: var(--font-aquavit);
}

/* ShaderGradient canvas sits behind all page content */
.shader-gradient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page {
  position: relative;
  z-index: 1;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 24px 48px;
  text-align: center;
}

/* Base styles use fixed positioning + line-count math tuned for the old
   single-line headline. Let title/subline stack naturally here instead. */
.page .hero-title,
.page .hero-subline {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0;
}

.page .hero-subline {
  margin-top: var(--hero-gap-title-subline);
  max-width: min(640px, calc(100vw - 48px));
  font-family: var(--font-aquavit);
  font-weight: 200;
  letter-spacing: 0.01em;
}

.top-header__brand,
.top-header__nav a {
  font-family: var(--font-aquavit);
  font-weight: 400;
  text-transform: none;
}

.top-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-header__mark {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 24px rgba(0, 0, 0, 0.65));
}

.page h1.hero-title {
  font-family: var(--font-aquavit);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  text-transform: none;
  letter-spacing: -0.02em;
}

.top-header,
.top-header__brand,
.top-header__nav a,
.hero-title,
.hero-subline {
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.65);
}

.site-footer {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.site-footer a {
  font-family: var(--font-aquavit);
  font-size: 13px;
  font-weight: 300;
  color: rgba(253, 246, 227, 0.72);
  text-decoration: none;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.65);
}

.site-footer a:hover {
  color: rgba(253, 246, 227, 0.92);
}

.site-footer a[aria-current='page'] {
  color: rgba(253, 246, 227, 0.92);
}

.page--legal,
.page--docs {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 72px;
  text-align: left;
}

body:has(.page--legal),
body:has(.page--docs) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.legal-body {
  width: min(860px, calc(100vw - 48px));
  margin: 28px 0 0;
  padding: 36px 40px 40px;
  border-radius: 12px;
  background: rgba(253, 246, 227, 0.97);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  color: #595959;
  text-shadow: none;
  white-space: normal;
  overflow-x: auto;
}

.legal-body.termly-policy > span[style*='background: url(data:image/svg'] {
  display: none !important;
}

.legal-body.termly-policy [data-custom-class='body'] {
  background: transparent;
}

.legal-body.termly-policy table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal-body.termly-policy h1,
.legal-body.termly-policy h2,
.legal-body.termly-policy h3 {
  margin: 1.25em 0 0.5em;
  line-height: 1.3;
}

.legal-body.termly-policy h1:first-child,
.legal-body.termly-policy h2:first-child {
  margin-top: 0;
}

.legal-body.termly-policy ul {
  padding-left: 1.25em;
}

.legal-body.termly-policy a[data-custom-class='link'] {
  word-break: break-word;
}

.page--docs {
  align-items: center;
}

.docs-body {
  width: min(720px, calc(100vw - 48px));
  margin: 28px 0 0;
  padding: 36px 40px 44px;
  border-radius: 12px;
  background: rgba(253, 246, 227, 0.97);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  color: #3d3d3d;
  text-align: left;
  text-shadow: none;
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
}

.docs-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7a7a;
}

.docs-body h1 {
  margin: 0 0 16px;
  font-family: var(--font-aquavit);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.docs-lede {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: #4a4a4a;
}

.docs-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.docs-section h2,
.docs-body .docs-section h3.docs-subhead {
  font-family: var(--font-aquavit);
  font-size: 19px;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}

.docs-section h2 {
  margin: 0 0 12px;
}

.docs-body .docs-section h3.docs-subhead {
  margin: 20px 0 8px;
}

.docs-section--appendix .docs-subhead {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.docs-section p,
.docs-section li,
.docs-section a {
  font-family: var(--font-inter);
  font-weight: 400;
}

.docs-section p {
  margin: 0 0 12px;
}

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

.docs-section ul,
.docs-section ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

.docs-section li {
  margin-bottom: 8px;
}

.docs-section li:last-child {
  margin-bottom: 0;
}

.docs-steps li strong {
  font-family: var(--font-inter);
  font-weight: 500;
  color: #1a1a1a;
}

.docs-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: #2a2a2a;
}

.docs-body a {
  color: #3030f1;
  text-decoration: underline;
  text-underline-offset: 2px;
}
