/* Free & True Studio. Colours lifted from the book cover: its sky, grass,
   rainbow and the warm ink of the line art. */
@font-face {
  font-family: "Chewy";
  src: url("/assets/fonts/Chewy.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --sky: #71caf7;
  --sky-deep: #2f8fc8;
  --grass: #7cc35b;
  --sun: #ffd23f;
  --berry: #e8546b;
  --ink: #2d2a28;
  --ink-soft: #5b5650;
  --paper: #fffaf0;
  --card: #ffffff;
  --line: #e8dfcf;
  --focus: #1d6fa5;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1d2228;
    --card: #262c33;
    --ink: #f4efe6;
    --ink-soft: #c5bfb4;
    --line: #3a424b;
    --sky-deep: #8fd2fa;
    --focus: #8fd2fa;
  }
}
:root[data-theme="dark"] {
  --paper: #1d2228;
  --card: #262c33;
  --ink: #f4efe6;
  --ink-soft: #c5bfb4;
  --line: #3a424b;
  --sky-deep: #8fd2fa;
  --focus: #8fd2fa;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Nunito", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

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

/* Header: a strip of sky with the studio name. */
.site-head {
  background: var(--sky);
  border-bottom: 6px solid var(--grass);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font: 400 1.6rem/1 "Chewy", "Nunito", sans-serif; color: #fff; text-decoration: none;
  text-shadow: 0 2px 0 rgba(0,0,0,.18); letter-spacing: .5px; }
.site-head nav a { color: #fff; font-weight: 800; text-decoration: none; }
.site-head nav a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: "Chewy", "Nunito", sans-serif; font-weight: 400; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .3px; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }

.hero { padding-block: 48px 32px; display: grid; gap: 36px; align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero img { border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.18); transform: rotate(-2deg); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 28px; } .hero img { max-width: 360px; margin-inline: auto; } }

.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--berry); color: #fff;
  font: 800 1.1rem/1 "Nunito", sans-serif;
  padding: 16px 26px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 4px 0 #b83b50;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b83b50; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* The preview grid of free pages. */
.pages { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 8px; list-style: none; }
@media (max-width: 820px) { .pages { grid-template-columns: repeat(2, 1fr); } }
.pages li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.pages img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.pages span { display: block; font-size: .9rem; text-align: center; color: #5b5650; padding-top: 6px; font-weight: 700; }

section { padding-block: 32px; }

.card {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 36px);
}
.get { max-width: 620px; margin-inline: auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input[type="email"], .field input[type="text"] {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--line); border-radius: 14px; padding: 13px 15px;
}
.field input:focus { border-color: var(--sky-deep); outline: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--berry); }
.hint { font-size: .9rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-weight: 700; }
.msg.error { background: #fde4e7; color: #8a1f30; }
.msg[hidden] { display: none; }
.cf-turnstile { margin-bottom: 18px; min-height: 65px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--sun); color: #2d2a28; font: 400 1.3rem/1 "Chewy", sans-serif; margin-bottom: 8px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.download { text-align: center; }
.download .btn { font-size: 1.25rem; padding: 20px 32px; }

.site-foot { border-top: 2px solid var(--line); margin-top: 40px; padding-block: 24px 40px; color: var(--ink-soft); font-size: .92rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
