/* o que sobrou — estilos do site (identidade da capa: papel claro, aquarela vermelha) */

@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-display: swap; src: url("/assets/fonts/literata-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 500; font-display: swap; src: url("/assets/fonts/literata-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Literata"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/literata-latin-400-italic.woff2") format("woff2"); }

:root {
  --paper: #F2EFE9;
  --paper-2: #E6E6E6;
  --card: #FBFAF7;
  --ink: #1B1B1B;
  --ink-2: #3A3834;
  --muted: #4F4C46;
  --line: #C9C6BF;
  --line-2: #DDD9D1;
  --accent: #A92A21;
  --accent-dark: #8E1F18;
  --ok: #1F6B3A;
  --ok-bg: #E3EFE5;
  --warn: #7A4F08;
  --warn-bg: #FBF0DC;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 20px; padding-right: 20px; } body { font-size: 17px; } }

.sans { font-family: var(--sans); }
.eyebrow { margin: 0; font-family: var(--sans); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow.red { color: var(--accent); }
h1, h2, h3 { font-family: var(--sans); font-weight: 500; margin: 0; letter-spacing: -0.03em; }
.h-display { font-size: clamp(64px, 9vw, 128px); line-height: .92; letter-spacing: -0.04em; }
.h-section { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; }
.muted { color: var(--muted); }

/* Cabeçalho */
.site-header { background: var(--paper-2); border-bottom: 1px solid #D2D0CB; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.brand { font-family: var(--sans); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-family: var(--sans); font-size: 15px; }
.site-nav a { text-decoration: none; }
@media (max-width: 760px) { .site-nav .opt { display: none; } }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-weight: 500; font-size: 17px; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-family: var(--sans); font-size: 15px; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Seções */
.band { background: var(--paper-2); }
.section { padding: 112px 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 24px; }

.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding-top: 48px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-art { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 620px; }
.tagline { margin: 0; font-style: italic; font-size: 22px; line-height: 1.45; max-width: 30ch; color: #2E2C29; }
.price-row { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--sans); font-weight: 500; font-size: 36px; line-height: 1.1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.small { font-size: 15px; }
.prose p { margin: 0 0 20px; font-size: 19px; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }

.excerpt { background: #F7F5F0; padding: 56px; box-shadow: 0 1px 0 #D2D0CB; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 600px) { .excerpt { padding: 32px 24px; } }
.excerpt h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: 0; color: var(--accent); }
.excerpt .poem p { margin: 0 0 18px; font-size: 19px; line-height: 1.55; }

.author-photo { width: 100%; max-width: 600px; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }

.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px 40px; font-size: 16px; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font-family: var(--sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; }

.buy { background: var(--accent); color: #fff; }
.buy a { color: #fff; }
.buy .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; padding-top: 96px; padding-bottom: 96px; }
.buy-cover { flex: 0 1 240px; }
.buy-cover img { max-width: 240px; box-shadow: 0 24px 48px rgba(0,0,0,.28); }
.buy-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.buy h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1; }

.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-family: var(--sans); font-size: 20px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-2); }
.faq-list { border-top: 1px solid var(--line); }

/* Rodapé */
.site-footer { background: var(--ink); color: #E6E3DC; font-size: 15px; }
.site-footer a { color: #E6E3DC; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-family: var(--sans); }
.site-footer .legal { color: #B8B4AC; font-size: 14px; }

/* Páginas de texto */
.page { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 24px; }
.page h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -0.01em; }
.page p, .page li { font-size: 17px; }

/* Formulários e checkout */
.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 36px; }
@media (max-width: 600px) { .panel { padding: 24px 18px; border-radius: 12px; } }
.checkout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; padding-top: 40px; padding-bottom: 96px; }
.checkout main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.checkout aside { flex: 1 1 300px; min-width: 0; background: var(--paper-2); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; font-family: var(--sans); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--sans); font-size: 15px; color: #6B6760; }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps .dot { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; border: 1.5px solid #9C988F; }
.steps li.done { color: var(--ink); }
.steps li.done .dot { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps li.current { color: var(--ink); font-weight: 500; }
.steps li.current .dot { background: var(--accent); color: #fff; border-color: var(--accent); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea { height: 48px; padding: 0 14px; border: 1px solid #B9B5AD; border-radius: 10px; font-family: var(--sans); font-size: 16px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.field .err { color: var(--accent-dark); font-size: 14px; min-height: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--sans); font-size: 15px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; font-size: 22px; cursor: pointer; color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-family: var(--sans); font-weight: 500; font-size: 18px; }

.cart-item { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.cart-item img { width: 96px; box-shadow: 0 8px 20px rgba(0,0,0,.15); }

.options { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.option { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-family: var(--sans); background: transparent; }
.option:has(input:checked) { border: 2px solid var(--accent); background: #fff; }
.option input { width: 18px; height: 18px; accent-color: var(--accent); }
.option .grow { flex: 1 1 auto; display: flex; flex-direction: column; }
.option .sub { font-size: 14px; color: var(--muted); }
.paytabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.sum { margin: 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dd { margin: 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; }
.total strong { font-size: 24px; }

.alert { padding: 14px 18px; border-radius: 12px; font-family: var(--sans); font-size: 15px; }
.alert-error { background: #F6E7E5; color: var(--accent-dark); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }

.pix { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding: 24px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.pix img { width: 220px; height: 220px; image-rendering: pixelated; }
.pix-code { display: flex; flex-wrap: wrap; gap: 8px; }
.pix-code input { flex: 1 1 200px; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #B9B5AD; border-radius: 10px; font-family: ui-monospace, monospace; font-size: 13px; background: #F7F5F0; }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: #C77A12; margin-right: 8px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 18px; padding-bottom: 22px; position: relative; font-family: var(--sans); }
.timeline li::before { content: ""; width: 14px; height: 14px; margin-top: 5px; border-radius: 999px; background: var(--ink); flex: 0 0 auto; }
.timeline li:last-child::before { background: var(--accent); box-shadow: 0 0 0 4px #F6E7E5; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 22px; bottom: 0; width: 2px; background: var(--ink); }
.timeline .when { font-size: 14px; color: var(--muted); }

.hidden { display: none !important; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
