:root {
  --paper: #faf8f3;
  --ink: #141414;
  --muted: #5a5750;
  --line: #e4e0d6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; justify-content: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(36px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4.5vw, 40px); text-align: center; margin-bottom: 12px; }
h3 { font-size: 22px; }

section { padding: 72px 0; }
.sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo {
  font-family: var(--serif); font-size: 24px; text-decoration: none;
  display: flex; align-items: center; gap: 7px;
}
.logo .o { width: 17px; height: 17px; border-radius: 50%; background: var(--ink); }
nav { display: flex; gap: 22px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--ink); }

/* Hero: halftone dots behind a paper panel */
.hero {
  text-align: center;
  padding: 72px 20px 80px;
  background-image:
    radial-gradient(circle, var(--ink) 3.2px, transparent 3.8px),
    radial-gradient(circle, var(--ink) 3.2px, transparent 3.8px);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  background: var(--paper);
  border-radius: 28px;
  padding: 44px 32px 48px;
  box-shadow: 0 0 0 10px var(--paper), 0 0 36px 28px var(--paper);
}
.lede { font-size: 20px; color: #33312d; margin: 22px 0 32px; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 9px 18px; font-size: 15px; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-big { padding: 13px 28px; font-size: 17px; }

/* How it works */
.how {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 820px; margin: 32px auto 40px;
}
.how img { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 10px; }
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.steps li { counter-increment: step; padding-top: 56px; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-size: 20px;
  display: grid; place-items: center;
}

/* Books */
#books { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px 28px; margin-bottom: 48px;
}
.book { display: flex; flex-direction: column; }
.cover {
  display: block; margin-bottom: 16px;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 12px 28px -10px var(--cover);
  transition: transform 0.15s ease;
}
.cover:hover { transform: translateY(-4px) rotate(-0.6deg); }
.book p { color: var(--muted); font-size: 15px; margin: 6px 0 14px; flex: 1; }

/* Etsy band */
.band { background: var(--ink); color: var(--paper); text-align: center; }
.band p { margin: 8px 0 28px; color: #d9d5cb; }
.band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }

footer { padding: 36px 0; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  section { padding: 52px 0; }
  .hero { padding: 48px 16px 56px; }
  .hero .wrap { padding: 32px 18px 36px; }
  nav { gap: 14px; font-size: 14px; }
  .how { gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  h3 { font-size: 18px; }
  .btn { padding: 8px 12px; font-size: 13px; }
  .btn-big { padding: 12px 22px; font-size: 16px; }
}
