/* makeART Coloring Book site: warm paper, glass, and the colorful ART letters.
   Tokens mirror the app: paper #F6F2EB, ink #1D1B20, teal #2E8B7F, pastel A #FFAFAF, R #CCC0DE, T #FFEE8F. */
:root {
  --paper: #f6f2eb;
  --paper-2: #efe9de;
  --card: #ffffff;
  --ink: #1d1b20;
  --ink-2: #77727c;
  --hairline: #d9d2c7;
  --teal: #2e8b7f;
  --teal-deep: #1f6e65;
  --pink: #ffafaf;
  --lilac: #ccc0de;
  --butter: #ffee8f;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -18px rgba(60, 40, 20, 0.35);
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-deep); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; position: relative; }

/* Header */
header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0 8px; position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 14px -6px rgba(10, 20, 50, .5); }
.brand-mark { height: 20px; width: auto; }
nav.top { display: flex; align-items: center; gap: 6px; }
nav.top a {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
nav.top a:hover { background: rgba(255,255,255,.7); }
nav.top a.pill {
  background: var(--ink); color: #fff; padding: 9px 18px;
}
nav.top a.pill:hover { background: #000; }

/* Glass */
.glass {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 28px;
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: var(--shadow);
}

/* Document pages (privacy, support, terms) */
main.doc { max-width: 720px; margin: 28px auto 64px; padding: 34px 34px 40px; }
main.doc h1 { font-family: var(--serif); font-size: 42px; line-height: 1.1; margin: 0 0 8px; letter-spacing: -.5px; }
main.doc .updated { color: var(--ink-2); margin: 0 0 24px; font-size: 15px; }
main.doc h2 { font-family: var(--serif); font-size: 24px; margin: 34px 0 6px; letter-spacing: -.2px; }
main.doc p, main.doc li { font-size: 17px; }
main.doc ul { padding-left: 22px; }
main.doc li { margin: 6px 0; }
main.doc .lead { font-size: 19px; }
.doc-art { display: flex; gap: 10px; margin: 18px 0 6px; }
.doc-art img { width: 84px; border-radius: 14px; box-shadow: 0 10px 22px -12px rgba(60,40,20,.5); }
.doc-art img:nth-child(2n) { transform: rotate(3deg); }
.doc-art img:nth-child(2n+1) { transform: rotate(-3deg); }

footer.site {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 26px 0 40px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--hairline); margin-top: 40px;
}
footer.site a { color: var(--ink-2); text-decoration: none; margin-right: 18px; }
footer.site a:hover { color: var(--teal-deep); }

/* Drifting color behind everything */
.washes { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.washes i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: drift 28s ease-in-out infinite alternate;
}
.washes i:nth-child(1) { background: var(--pink); left: -20vmax; top: -22vmax; }
.washes i:nth-child(2) { background: var(--lilac); right: -24vmax; top: 8vmax; animation-delay: -9s; }
.washes i:nth-child(3) { background: var(--butter); left: 10vmax; bottom: -34vmax; animation-delay: -17s; opacity: .6; }
@keyframes drift { to { transform: translate3d(9vmax, 5vmax, 0) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .washes i { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 640px) {
  main.doc { padding: 24px 20px 30px; margin-top: 12px; }
  main.doc h1 { font-size: 34px; }
  nav.top a:not(.pill) { display: none; }
}
