/*
 * Shared by every page on cutzer.com: the two handwritten faces and a small reset.
 * Each page keeps its own colours in its own <style>, so every app can have its own world.
 * The fonts are served from this site, never from Google Fonts: the site tracks no one.
 */

@font-face {
  font-family: "Caveat";
  src: url("fonts/Caveat_600SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/Caveat_700Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/Kalam_400Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kalam";
  src: url("fonts/Kalam_700Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --title: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  /* Caveat draws past its own box; this room after a title keeps its last letter whole. */
  --caveat-room: 0.12em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--hand);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: inherit; }

/* The page column. Side gutters clear a phone's rounded corners and side bars. */
.wrap {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.title { font-family: var(--title); padding-right: var(--caveat-room); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
