/* Coinz coming-soon site. Brand values come from packages/coinz-ui/src/theme/colors.js. */

@font-face {
  font-family: 'Alata';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/alata-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Khula';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/khula-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Khula';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/khula-600.woff2') format('woff2');
}

:root {
  --blue: #0c6cf2;
  --blue-hover: #0a5ad0;
  /* Brand blue is 4.35:1 on the background, so text links use a darker shade (AA). */
  --link: #0a5ad0;
  --ink: #353f53;
  --ink-strong: #19355c;
  --muted: #59657e;
  --surface: #ffffff;
  --background: #f2f6fa;
  --tint: #e2edfd;
  --border: #dfe5ee;
  --on-blue: #ffffff;
  --mark-opacity: 0.06;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #3b89f6;
    --blue-hover: #64a2f8;
    --link: #64a2f8;
    --ink: #e2e2e2;
    --ink-strong: #ffffff;
    --muted: #b0b0b0;
    --surface: #1a1a1a;
    --background: #121212;
    --tint: #16233a;
    --border: #363636;
    --on-blue: #0b1220;
    --mark-opacity: 0.08;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--ink);
  font-family: 'Khula', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink-strong);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--ink-strong);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 12px;
}

/* Header and footer */

.site-header,
.site-footer {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px;
}

.logo {
  display: inline-flex;
  padding: 4px 0;
}

/* One logo file for both themes: the SVG is a mask, the color comes from the theme. */
.logo-image {
  display: block;
  width: 124px;
  aspect-ratio: 309 / 73;
  background: var(--blue);
  -webkit-mask: url('/assets/logo.svg') center / contain no-repeat;
  mask: url('/assets/logo.svg') center / contain no-repeat;
}

@media (forced-colors: active) {
  .logo-image {
    forced-color-adjust: none;
    background: CanvasText;
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover,
.site-footer a[aria-current='page'] {
  color: var(--ink-strong);
}

/* Coming-soon hero */

.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(92vw, 720px);
  aspect-ratio: 1;
  background: var(--blue);
  -webkit-mask: url('/assets/glyph.svg') center / contain no-repeat;
  mask: url('/assets/glyph.svg') center / contain no-repeat;
  opacity: var(--mark-opacity);
}

.hero-content {
  max-width: 640px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px 4px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--link);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: 'Alata', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.125rem, 6vw, 3.5rem);
  line-height: 1.1;
}

.lead {
  margin: 0 auto 32px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--muted);
  text-wrap: pretty;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--blue-hover);
  color: var(--on-blue);
}

.button svg {
  width: 18px;
  height: 18px;
  margin-top: -2px;
  fill: currentColor;
}

.contact-note {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Legal pages */

.legal {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.legal h1 {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
}

.legal .updated {
  margin: 0 0 32px;
  color: var(--muted);
}

.legal h2 {
  margin: 40px 0 8px;
  font-size: 1.375rem;
  line-height: 1.3;
}

.legal p,
.legal li {
  max-width: 68ch;
}

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

.legal li + li {
  margin-top: 6px;
}

.legal address {
  font-style: normal;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 520px) {
  .site-header,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .legal {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
