:root {
  /* Light mode: Vellum, Graphite, Slate, Ink, Marker */
  --bg: #F4F2EC;
  --text: #1B2027;
  --muted: #56606C;
  --drawn: #1F4E8C;
  --code: #D4690F;
  --grid: rgba(31, 78, 140, 0.055);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode: Board, Chalk, Slate Light, Ink Light, Marker Light */
    --bg: #12161B;
    --text: #E9E6DF;
    --muted: #9AA4B0;
    --drawn: #7FA8E6;
    --code: #F39A4C;
    --grid: rgba(127, 168, 230, 0.045);
  }
}

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

html, body { margin: 0; height: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center center;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 640px;
}

.mark {
  display: block;
  width: clamp(72px, 16vw, 104px);
  height: auto;
}

.mark .drawn { fill: var(--drawn); }
.mark .code { fill: var(--code); }

h1 {
  margin: clamp(20px, 4vw, 28px) 0 0;
  line-height: 0;
  font-size: 1rem;
}

.wordmark {
  display: block;
  width: clamp(200px, 60vw, 320px);
  height: auto;
}

.wordmark .duet { fill: var(--text); }
.wordmark .cad { fill: var(--drawn); }

p {
  margin: clamp(28px, 5vw, 40px) 0 0;
  max-width: 100%;
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}
