/* Chalkday's public pages. Colours are the app's tokens (src/theme/tokens.ts), light and dark. */

:root {
  color-scheme: light dark;
  --bg: #f4efe6;
  --surface: #fffcf6;
  --line: #ece5d9;
  --text: #1d1b18;
  --text2: #665f55;
  --ink: #1d1b18;
  --on-ink: #fffcf6;
  --accent: #c2401b;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1e1b17;
    --line: #2c2823;
    --text: #f3eee5;
    --text2: #a9a195;
    --ink: #f3eee5;
    --on-ink: #141210;
    --accent: #f0794c;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

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

/* The tally mark: four strokes and a diagonal, drawn in the current text colour. */
.mark {
  display: block;
  stroke: currentColor;
  fill: none;
}

.tile {
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--on-ink);
}

/* Pages with text: privacy, terms, support. */

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 20px 20px 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand .tile {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand:hover {
  color: inherit;
}

h1 {
  margin: 28px 0 6px;
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.4em 0 0.4em;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  margin: 1.6em 0 0.2em;
  font-weight: 800;
  font-size: 1.0625rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--text2);
}

strong,
dt {
  font-weight: 800;
}

dd {
  margin: 0 0 1em;
}

.meta {
  margin: 0 0 28px;
  color: var(--text2);
  font-size: 0.9375rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--text2);
}

.card {
  margin: 0 0 1.25em;
  padding: 18px 20px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h2 {
  margin-top: 0;
}

.contents {
  columns: 2 14rem;
  column-gap: 24px;
  padding-left: 1.5em;
}

.contents li {
  break-inside: avoid;
}

.steps li {
  margin-bottom: 0.6em;
}

.site-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text2);
  font-size: 0.9375rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 8px;
  font-weight: 700;
}

.site-footer nav a,
.links a {
  display: inline-block;
  padding: 6px 0;
}

/* The landing page: one calm screen. */

.home {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 32px 20px;
  text-align: center;
}

.home main {
  display: grid;
  justify-items: center;
  max-width: 30rem;
}

.home .tile {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  margin-bottom: 22px;
}

.home h1 {
  margin: 0;
  font-size: clamp(2.75rem, 12vw, 3.5rem);
  line-height: 1;
}

.tagline {
  margin: 14px 0 0;
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.35;
}

.what {
  margin: 12px 0 0;
  color: var(--text2);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
  padding: 9px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9375rem;
}

.soon::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin-top: 36px;
  color: var(--text2);
  font-weight: 700;
}
