/*
 * Doko landing page styles.
 *
 * Design rules:
 * - Brand purple #7065F5, sampled from the logo. The logo and wordmark use it
 *   unchanged in both themes (contrast: 4.3:1 on white, 4.5:1 on the dark bg).
 * - Flat colors only. No gradients, glows or shadows, ever.
 * - Light and dark both supported; the page follows the visitor's OS setting
 *   and defaults to dark (ADR-009).
 * Change colors here only.
 */

:root {
  color-scheme: dark light;

  /* Brand */
  --color-brand: #7065f5;

  /* Dark (default) */
  --color-bg: #0e0d12;
  --color-border: #26242e;
  --color-text: #f2f1f7;
  --color-text-muted: #9c99ab;
  --color-link: #8f86ff; /* lighter brand tint for small text: 6.5:1 */

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max-width: 40rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #ffffff;
    --color-border: #ebeaf0;
    --color-text: #15131d;
    --color-text-muted: #6b6879;
    --color-link: #4b3fd6; /* darker brand shade for small text: 7:1 */
  }
}

*,
*::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-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* The pixel logo: crisp edges so the squares never blur. */
.mark {
  display: block;
  flex: none;
  fill: var(--color-brand);
  shape-rendering: crispEdges;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
}

/* ---- Landing ---- */
.hero {
  padding-block: 4rem;
  text-align: center;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 4.5vw, 2rem);
  margin: 0;
  color: var(--color-brand);
  font-size: clamp(1.75rem, 8vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

.lockup .mark {
  width: clamp(3.5rem, 15vw, 5rem);
  height: auto;
}

.coming-soon {
  margin: 2.5rem 0 0;
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 600;
}

.pitch {
  margin: 0.5rem auto 0;
  max-width: 26rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* ---- Small header for inner pages ---- */
.site-header {
  padding-block: 1.25rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
}

.home-link .mark {
  width: 1.75rem;
  height: auto;
}

/* ---- Placeholder legal/support pages ---- */
.doc {
  align-self: flex-start;
  padding-block: 2rem 4rem;
}

.doc h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.notice {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px dashed var(--color-brand);
}

.notice strong {
  color: var(--color-link);
}

/* ---- Footer ---- */
.site-footer {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.mark-404 {
  width: 4rem;
  height: auto;
  margin: 0 auto;
}
