/* Tallywick site: the app's Kazoo theme on paper. No external requests. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #1e1b22;
  --paper: #fff6e9;
  --quiet: #f7ebd8;
  --pink: #f2479a;
  --sunshine: #ffd447;
  --sky: #74c6ee;
  --mint: #8edcb4;
  --cobalt: #2d5bd6;
  --muted: #6b6470;
  --line: 2.5px;
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Fredoka", ui-rounded, sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: var(--line) solid var(--ink);
}
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: var(--line) solid transparent;
}
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--pink); }

/* Type */
h1, h2, h3 {
  font-family: "Fredoka", ui-rounded, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); margin: 0.2em 0 0.3em; }
h2 { font-size: 1.55rem; margin: 1.8em 0 0.4em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 0.3em; }
p, li { max-width: 62ch; }
a { color: var(--cobalt); text-underline-offset: 3px; }
strong { font-weight: 800; }
.eyebrow {
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { font-size: 1.2rem; color: var(--ink); }
.muted { color: var(--muted); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--quiet);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px 0 8px;
}
.hero-icon {
  width: 148px;
  height: 148px;
  border-radius: 34px;
  border: 3px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}
@media (min-width: 640px) {
  .hero { grid-template-columns: 1fr auto; }
  .hero-icon { width: 200px; height: 200px; border-radius: 46px; }
}
.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 20px;
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  background: var(--sunshine);
  box-shadow: 0 4px 0 var(--ink);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

/* Cards */
.card {
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--ink);
  padding: 20px 22px;
  margin: 18px 0;
}
.card h3 { margin-top: 0.1em; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.grid .card { margin: 0; }
.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  margin-right: 8px;
  vertical-align: -1px;
}
.dot.pink { background: var(--pink); }
.dot.sun { background: var(--sunshine); }
.dot.sky { background: var(--sky); }
.dot.mint { background: var(--mint); }
.dot.cobalt { background: var(--cobalt); }

.promise {
  background: var(--quiet);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.promise ul { margin: 0.4em 0 0; padding-left: 1.2em; }

/* Long pages */
.doc h2 { border-top: var(--line) solid var(--quiet); padding-top: 0.9em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 0.3em 0; }

footer {
  margin: 56px 0 0;
  padding: 26px 0 40px;
  border-top: var(--line) solid var(--quiet);
  font-size: 0.95rem;
  color: var(--muted);
}
footer a { color: var(--muted); }
footer nav { margin-bottom: 8px; }
