/* Thistledown Tales. Mobile first. Headings in Lilita One (the books' own title font, served from
   this site under its open font licence); body text in system fonts. Nothing is fetched from anyone else. */
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}
:root {
  --paper: #fbf6ea;
  --ink: #2b2233;
  --soft: #5e5566;
  --line: #e6dcc6;
  --card: #ffffff;
  --plum: #5b3a7a;
  --plum-dark: #45295f;
  --leaf: #3f7a4a;
  --sun: #f3c64f;
  --good: #2f6b3a;
  --bad: #a11d1d;
  --title: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 36rem; }
a { color: var(--plum); text-underline-offset: 0.15em; }
a:hover { color: var(--plum-dark); }
h1, h2, h3, .mark { font-family: var(--title); font-weight: 400; color: var(--plum); letter-spacing: 0.005em; }

.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 1rem; padding-bottom: 1rem; border-bottom: 3px solid var(--plum); }
.mark { margin: 0; font-size: 1.6rem; line-height: 1.1; }
.mark span { color: var(--leaf); }
.mark a { text-decoration: none; }
.status { margin: 0; font-size: 0.9375rem; color: var(--soft); }

.hero { display: grid; gap: 1.5rem; padding-top: 2rem; padding-bottom: 1rem; align-items: center; }
h1 { margin: 0 0 1rem; font-size: clamp(2.5rem, 10vw, 4.25rem); line-height: 1.02; }
h1 em { font-style: normal; color: var(--leaf); }
.lede { margin: 0 0 0.9rem; font-size: 1.1875rem; }
.hero-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hero-covers img { border-radius: 10px; box-shadow: 0 6px 18px rgba(43, 34, 51, 0.18); }
.hero-covers img:nth-child(odd) { transform: rotate(-2deg); }
.hero-covers img:nth-child(even) { transform: rotate(2deg); }

section.wrap { padding-top: 1.75rem; padding-bottom: 1.75rem; }
h2 { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 6vw, 2.4rem); line-height: 1.1; }
h3 { margin: 0 0 0.3rem; font-size: 1.4rem; line-height: 1.15; }
p { margin: 0 0 1rem; }
.sub { color: var(--soft); }

.why { border-top: 2px dashed var(--line); }
.cols { display: grid; gap: 1rem; }
.cols > div { background: var(--card); border-radius: 14px; padding: 1.1rem 1.2rem; border-top: 6px solid var(--sun); }
.cols p { margin-bottom: 0; }

.books { border-top: 2px dashed var(--line); }
.book { display: grid; gap: 1rem 1.75rem; padding: 1.5rem 0 2rem; border-bottom: 2px dashed var(--line); }
.book:last-child { border-bottom: 0; }
.book-cover img { border-radius: 10px; box-shadow: 0 6px 18px rgba(43, 34, 51, 0.18); }
.kicker { margin: 0 0 0.25rem; font-size: 0.875rem; font-weight: 700; color: var(--leaf); text-transform: uppercase; letter-spacing: 0.04em; }
.book h3 { font-size: clamp(1.8rem, 6vw, 2.3rem); }
.tagline { font-weight: 700; font-size: 1.125rem; }
.shout { background: var(--card); border-radius: 999px; padding: 0.55rem 1.1rem; display: inline-block; font-weight: 700; color: var(--plum); border: 2px solid var(--plum); }
.shout span { font-weight: 400; color: var(--soft); }
.soon { margin: 0.75rem 0 0; font-weight: 700; color: var(--soft); }
.buys { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.75rem 0 0; }
.buy { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 800; text-decoration: none; padding: 0.7rem 1.1rem; border-radius: 10px; border: 2px solid var(--ink); }
.buy:hover { background: #ffd970; color: var(--ink); }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.samples img { border-radius: 8px; border: 1px solid var(--line); }
.samples a:hover img { outline: 3px solid var(--sun); }

.card { background: var(--card); border: 3px solid var(--plum); border-radius: 18px; padding: 1.25rem; box-shadow: 6px 6px 0 var(--plum); max-width: 40rem; margin: 0 auto; }
form { margin-top: 1rem; }
label { display: block; font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.35rem; }
input[type="email"], input[type="text"], textarea { display: block; width: 100%; font: inherit; padding: 0.75rem; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
textarea { resize: vertical; min-height: 9rem; line-height: 1.45; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
#contact label { margin-top: 1rem; }
#contact button { margin-top: 1.25rem; }
.opt { font-weight: 400; color: var(--soft); }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1rem 0; font-weight: 400; line-height: 1.45; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--plum); }
button, .jump { display: inline-block; width: 100%; font: inherit; font-size: 1.0625rem; font-weight: 800; padding: 0.85rem 1.25rem; border: 2px solid var(--plum); border-radius: 10px; background: var(--plum); color: #fff; cursor: pointer; text-align: center; text-decoration: none; }
button:hover, .jump:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: #fff; }
button[disabled] { opacity: 0.6; cursor: default; }
.msg { margin: 0.9rem 0 0; font-size: 1rem; font-weight: 700; min-height: 1.5rem; }
.msg.good { color: var(--good); font-size: 1.0625rem; }
.msg.bad { color: var(--bad); }
.small { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--soft); }
[hidden] { display: none !important; }
/* honeypot: off-screen for people, present for robots */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.about { border-top: 2px dashed var(--line); max-width: 44rem; }

.foot { padding-top: 1.5rem; padding-bottom: 2.5rem; margin-top: 1rem; border-top: 3px solid var(--plum); font-size: 0.8125rem; line-height: 1.5; color: var(--soft); }
.foot p { margin-bottom: 0.6rem; }
.foot a { color: var(--soft); }

/* privacy notice, contact page and the service's own pages */
.plain main { padding-top: 1.5rem; }
.plain h1 { font-size: clamp(2rem, 7vw, 2.75rem); }
.plain h2 { margin-top: 2rem; font-size: 1.4rem; }
.plain ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.plain li { margin-bottom: 0.4rem; }
.plain .mark { margin: 1.25rem 0 2rem; }
.plain form { margin: 1.5rem 0; }
.updated { font-size: 0.875rem; color: var(--soft); }

@media (min-width: 44rem) {
  .wrap { padding: 0 1.5rem; }
  .hero { grid-template-columns: 1.1fr 1fr; padding-top: 3rem; gap: 2.5rem; }
  .cols { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .book { grid-template-columns: 17rem 1fr; }
  .book-cover { grid-row: span 2; }
  .card { padding: 2rem; }
  button, .jump { width: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
