@font-face {
  font-family: "Lilita One";
  src: url("/fonts/lilita-one-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-latin-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Caveat;
  src: url("/fonts/caveat-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #141414;
  --paper: #fffdf8;
  --cream: #fff4d6;
  --pink: #ff3b90;
  --pink-deep: #ff2a82;
  --pink-lite: #ff6aab;
  --teal: #12c4c0;
  --teal-deep: #0aa8a6;
  --teal-lite: #3ad4d0;
  --yellow: #ffe14a;
  --yellow-deep: #f5c400;
  --display: "Lilita One", "Arial Black", "Noto Sans Display", sans-serif;
  --body: Nunito, "Noto Sans", sans-serif;
  --script: Caveat, "Segoe Script", cursive;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --radius: 22px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.45;
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--yellow);
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  z-index: 5;
}

.skip:focus { transform: none; }

.sun-pink {
  background-color: var(--pink);
  background-image: repeating-conic-gradient(
    from -4deg at 50% -10%,
    var(--pink-lite) 0deg 9deg,
    var(--pink-deep) 9deg 18deg
  );
}

.sun-teal {
  background-color: var(--teal);
  background-image: repeating-conic-gradient(
    from -4deg at 50% -10%,
    var(--teal-lite) 0deg 9deg,
    #0eaaa8 9deg 18deg
  );
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 0.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--line);
  background: var(--yellow);
}

.header-link {
  font-weight: 800;
  text-decoration: none;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.outline {
  color: #fff;
  -webkit-text-stroke: 0.045em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.06em 0.06em 0 var(--ink);
}

h1, h2, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 10vw, 5rem);
  margin: 0.35rem 0 0.8rem;
}

.kicker {
  display: inline-block;
  margin: 0.4rem 0 0;
  background: var(--yellow);
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  box-shadow: 3px 3px 0 var(--ink);
}

.lead {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
  max-width: 38rem;
}

.hero { padding: 0.4rem 0 0.2rem; text-align: center; }
.hero .lead { margin-inline: auto; }

.card {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card {
  text-align: left;
  padding: 1.15rem 1.1rem 1.2rem;
  max-width: 34rem;
  margin: 0 auto 1.6rem;
}

.form-card h2 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

label span { display: block; margin-bottom: 0.3rem; }

.optional {
  font-weight: 700;
  color: #444;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  font: 1.05rem/1.3 var(--body);
  color: var(--ink);
  background: #fff;
  border: var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  min-height: 3.25rem;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
}

input[aria-invalid="true"] { border-color: #9d1230; background: #fff5f7; }

.error {
  background: #fff;
  border: 2px solid #9d1230;
  color: #9d1230;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.6rem;
  padding: 0.85rem 1.2rem;
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.button:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.button:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.button:disabled { cursor: progress; transform: none; }

.button.inline {
  width: auto;
  min-width: min(100%, 22rem);
  padding-inline: 1.6rem;
}

.privacy-line {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}

.privacy-line a { font-weight: 800; }

.section { margin: 0 0 1.7rem; }
.section h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 0.75rem;
  text-align: center;
}

.preview-grid,
.steps,
.series {
  display: grid;
  gap: 0.9rem;
}

.series {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.series .book.featured { grid-column: 1 / -1; }

.preview {
  margin: 0;
  background: var(--paper);
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview img { width: 100%; background: #fff; }
.preview figcaption {
  padding: 0.45rem 0.7rem 0.6rem;
  font-weight: 800;
  text-align: center;
}

.steps article,
.rule-card,
.book,
.plain-card {
  background: var(--paper);
  border: var(--line);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.95rem 1rem 1rem;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--pink);
  color: var(--ink);
  border: var(--line);
  font-family: var(--display);
  font-size: 1.2rem;
}

.steps h3, .book h3, .plain-card h3 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0.45rem 0 0.25rem;
  line-height: 1;
}

.steps p, .book p, .plain-card p { margin: 0; font-weight: 700; }

.rules { list-style: none; margin: 0; padding: 0; }
.rules li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 800;
  margin: 0.45rem 0;
}
.rules li::before {
  content: "★";
  color: var(--yellow-deep);
  text-shadow: 1px 1px 0 var(--ink);
  font-size: 1.15rem;
  line-height: 1.3;
}

.book picture { display: block; }
.book img, .cover-shot {
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto 0.7rem;
  border: var(--line);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
  background: #fff;
}
.series .book.featured img { width: min(100%, 420px); }

.book { text-align: center; }
.book .tag {
  display: inline-block;
  font-family: var(--display);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.95rem;
}
.book .subtitle {
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.book .amazon {
  display: inline-block;
  margin-top: 0.65rem;
  text-decoration: none;
}
.book .amazon .todo { margin-left: 0; }

.site-footer {
  padding: 0.4rem 0 1.6rem;
  text-align: center;
}

.script {
  font-family: var(--script);
  font-size: 2rem;
  margin: 0.2rem 0 0.4rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  font-weight: 800;
}

.site-footer nav a { text-underline-offset: 3px; }

.fine { margin: 0.45rem 0 0; font-size: 0.95rem; font-weight: 700; }

.todo {
  display: inline-block;
  margin-left: 0.35rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.book-links { display: grid; gap: 0.7rem; }
.book-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  background: var(--paper);
  border: var(--line);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.9rem 1rem;
}

.note {
  font-weight: 800;
  margin: 0.8rem 0 0;
}

.prose {
  width: min(42rem, calc(100% - 2rem));
  margin: 0.6rem auto 2rem;
  background: #fff;
  border: var(--line);
  border-radius: 20px;
  padding: 1.2rem 1.15rem 1.4rem;
  box-shadow: var(--shadow);
}

.prose h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.prose h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 1.2rem 0 0.3rem;
}
.prose p, .prose li { font-weight: 700; }
.prose ul { padding-left: 1.2rem; }

.noscript {
  background: var(--yellow);
  border: var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.page-privacy .site-header .brand,
.page-privacy .site-footer { color: var(--ink); }

@media (min-width: 800px) {
  .wrap { width: min(1080px, calc(100% - 3rem)); }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-grid.two { grid-template-columns: 1fr 1fr; max-width: 720px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .series { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 1.4rem 1.4rem 1.3rem; }
  .hero { padding-top: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
