/* Hearth & Paw storefront. Same palette and type as the books: pine, cream, brick, mustard, night blue. */
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(/fonts/fraunces-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --cream: #f6efe1;
  --paper: #fbf6ec;
  --ink: #2b2320;
  --ink-soft: #5d514a;
  --pine: #2f5d46;
  --pine-deep: #1f3f30;
  --brick: #a8352a;
  --brick-deep: #8a2a21;
  --mustard: #c9962b;
  --night: #1d2a44;
  --line: #e2d6c0;
  --ok: #2f6b3c;
  --warn: #9a6512;
  --err: #a8352a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 35, 32, .06), 0 8px 28px rgba(43, 35, 32, .08);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .25  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--cream) var(--grain);
  font: 400 1.0625rem/1.6 "Nunito", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--pine); text-underline-offset: .18em; }
a:hover { color: var(--pine-deep); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; font-variation-settings: "opsz" 48, "SOFT" 60; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.site-head { padding: 18px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: "Fraunces", Georgia, serif; font-weight: 650; font-size: 1.3rem; font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1; }
.logo svg { width: 30px; height: 30px; }
.site-foot { margin-top: 72px; padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: .8em 1.5em;
  border: 0; border-radius: 999px; background: var(--brick); color: #fff8ef; font: 800 1.05rem/1.1 "Nunito", sans-serif;
  text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 var(--brick-deep); transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--brick-deep); color: #fff8ef; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .choice input:focus-visible + span {
  outline: 3px solid var(--mustard); outline-offset: 2px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn.secondary { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 2px var(--pine); }
.btn.secondary:hover { background: var(--pine); color: var(--paper); }

/* hero */
.hero { padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: #efe3cb;
  color: var(--pine-deep); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 em { color: var(--brick); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }
.price-note { font-size: .95rem; color: var(--ink-soft); }
.price-note strong { color: var(--ink); font-size: 1.1rem; }

/* book mockup (a layout illustration, not a generated sample) */
.mock-book { position: relative; aspect-ratio: 1; max-width: 440px; margin-inline: auto; width: 100%;
  border-radius: 6px 14px 14px 6px; overflow: hidden; background: var(--night); box-shadow: 0 30px 60px -20px rgba(29, 42, 68, .45), var(--shadow);
  transform: rotate(-2deg); }
.mock-book::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0)); z-index: 2; }
.mock-book svg { width: 100%; height: 100%; }
.mock-caption { margin-top: 18px; text-align: center; font-size: .85rem; color: var(--ink-soft); }

/* sections */
section { padding: 56px 0; }
.band { background: var(--paper); border-block: 1px solid var(--line); }
.steps { display: grid; gap: 22px; counter-reset: s; margin-top: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 24px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%; background: var(--pine); color: var(--paper); font: 700 1.2rem "Fraunces", serif; }
.includes { display: grid; gap: 10px 28px; padding: 0; margin: 24px 0 0; list-style: none; }
@media (min-width: 700px) { .includes { grid-template-columns: 1fr 1fr; } }
.includes li { position: relative; padding-left: 30px; }
.includes li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--mustard); box-shadow: inset 0 0 0 4px #f3dfae; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.gallery figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.note-card { padding: 22px 24px; border-radius: var(--radius); background: #f0e6d2; border: 1px dashed #cdb98f; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.4rem/1 "Fraunces", serif; color: var(--pine); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* forms */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .card { padding: 32px; } }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { font: 600 1.35rem/1.2 "Fraunces", Georgia, serif; margin-bottom: 14px; padding: 0; }
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 800; margin-bottom: 6px; }
.hint { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #cfc1a6; border-radius: 10px;
  background: #fffdf8; color: var(--ink); font: inherit; }
textarea { min-height: 110px; resize: vertical; }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--err); background: #fff6f3; }
.error { display: block; color: var(--err); font-size: .9rem; font-weight: 700; margin-top: 4px; }
.error:empty { display: none; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid #cfc1a6; background: #fffdf8; font-weight: 700; }
.choice input:checked + span { background: var(--pine); border-color: var(--pine); color: var(--paper); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--pine); }
.counter { float: right; font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* photo drop */
.drop { position: relative; display: grid; place-items: center; gap: 8px; min-height: 190px; padding: 22px; text-align: center;
  border: 2px dashed #bca981; border-radius: var(--radius); background: #fffdf8; cursor: pointer; }
.drop.has-photo { grid-template-columns: 120px 1fr; text-align: left; place-items: center start; min-height: 0; border-style: solid; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.photo-tips { font-size: .9rem; color: var(--ink-soft); margin: 10px 0 0; padding-left: 1.2em; }
.status { padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: .95rem; margin-top: 10px; }
.status.ok { background: #e3efdf; color: var(--ok); }
.status.warn { background: #f7ead0; color: var(--warn); }
.status.err { background: #f8e1dc; color: var(--err); }
.status:empty { display: none; }

.summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 18px 0; margin-bottom: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary .big { font: 650 1.6rem "Fraunces", serif; }
.preview-title { font: italic 600 1.3rem/1.25 "Fraunces", serif; color: var(--pine-deep); font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1; }

.test-banner { background: var(--mustard); color: #2b1d05; text-align: center; font-weight: 800; padding: 8px 16px; font-size: .92rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .mock-book { transform: none; } }
