:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #202e3c;
  --muted: #536271;
  --powder: #dce9f0;
  --blue: #2d4c65;
  --line: #c8d1d6;
  --error: #8d3029;
  --success: #245544;
  --body-font: "Manrope", sans-serif;
  --display-font: "Bodoni Moda", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.bookshop {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(ellipse at 95% 2%, #e4edf2 0, transparent 35%), var(--paper);
  font-family: var(--body-font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #326d98;
  outline-offset: 5px;
}
::selection { background: #c4dce9; color: #142e42; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; inset: 16px auto auto 16px; z-index: 20; padding: 12px 20px; background: var(--paper); }
.shop-header { display: flex; justify-content: space-between; align-items: center; min-height: 112px; border-bottom: 1px solid var(--line); gap: 28px; }
.wordmark { font: 500 28px/1.1 var(--display-font); text-decoration: none; }
.wordmark span { display: block; margin-top: 9px; font: 500 9px/1.4 var(--body-font); letter-spacing: .19em; text-transform: uppercase; }
.shop-header nav, .shop-footer nav { display: flex; align-items: center; gap: 30px; font-size: 12px; }
.shop-header nav a, .shop-footer nav a { text-decoration: none; padding-block: 12px; }
.shop-header nav a:hover, .shop-footer nav a:hover { text-decoration: underline; }
.nav-account { border: 1px solid var(--line); padding: 10px 18px !important; border-radius: 3px; }
.eyebrow { margin: 0 0 20px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, p, figure { margin-top: 0; }
h1, h2 { font-family: var(--display-font); font-weight: 400; }
em { font-weight: 400; }
.book-hero { display: grid; grid-template-columns: 1fr 1.07fr; align-items: center; gap: 72px; padding-block: 64px 96px; }
.hero-copy { animation: arrive .7s ease-out both; }
.hero-copy h1 { margin-bottom: 24px; font-size: clamp(52px, 6.4vw, 92px); line-height: .98; letter-spacing: -.055em; }
.hero-byline { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 26px; }
.lede { max-width: 45ch; font-size: 15px; color: var(--muted); line-height: 1.9; }
.purchase-line { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.price { margin: 0; white-space: nowrap; }
.price > span { font-size: 30px; font-weight: 500; letter-spacing: -.06em; }
.price small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.button { min-height: 50px; padding: 13px 24px; border: 1px solid var(--blue); border-radius: 3px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 600; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.button:hover:not(:disabled) { background: #203e56; }
.button:disabled { color: #4c5b67; background: #dce1e3; border-color: #bac5cc; }
.button--full { width: 100%; margin-top: 16px; }
.button--secondary { background: transparent; color: var(--blue); }
.button--secondary:hover:not(:disabled) { background: #e0ebf1; }
.fine-print { color: var(--muted); font-size: 11px; line-height: 1.8; }
.hero-copy > .fine-print { margin-block: 17px 8px; }
.text-link { font-size: 12px; font-weight: 600; display: inline-block; padding-block: 10px; }
.text-link span { margin-left: 12px; }
.small-link { font-size: 11px; }
.hero-art { position: relative; min-width: 0; padding: 0 0 28px 30px; animation: arrive 1s .12s ease-out both; }
.photographic-wall { margin: 0; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #cddde7; }
.photographic-wall > img { width: 100%; height: 100%; object-fit: cover; }
.photographic-wall::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, #142c3d99); pointer-events: none; }
.photographic-wall figcaption { position: absolute; bottom: 22px; left: 24px; right: 18px; z-index: 1; color: #fff; font: italic 22px/1.3 var(--display-font); }
.book-object { position: absolute; width: 43%; left: -28px; top: 11%; margin: 0; transform: rotate(-7deg); }
.book-object > img, .cover-fallback { width: 100%; height: auto; aspect-ratio: 595.5 / 842.25; object-fit: contain; box-shadow: 8px 14px 32px #12253540, inset 3px 0 8px #fff; background: var(--paper); border-left: 5px solid #2d4c65; }
.cover-fallback { display: flex; flex-direction: column; justify-content: space-between; padding: 20px 16px; color: var(--ink); background: linear-gradient(135deg, #c7dce8, #f1f5f5); }
.cover-fallback span, .cover-fallback small { font-size: 9px; letter-spacing: .09em; }
.cover-fallback strong { font: 400 clamp(22px, 3vw, 42px)/1 var(--display-font); letter-spacing: -.04em; }
.book-object figcaption { font-size: 9px; margin-top: 16px; text-transform: uppercase; letter-spacing: .12em; }
.art-index { position: absolute; bottom: 0; right: 0; font-size: 9px; letter-spacing: .2em; }
.book-details { display: grid; grid-template-columns: 1fr 1.07fr; gap: 72px; padding-block: 64px 88px; border-top: 1px solid var(--line); }
.book-details h2, .checkout-intro h2, .account-aside h2 { font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -.05em; line-height: 1.08; }
.details-copy { font-size: 14px; color: var(--muted); }
.details-copy strong { color: var(--ink); font-weight: 600; }
.book-specs { margin-block: 32px; display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); gap: 20px; padding-block: 22px; }
.book-specs dt { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.book-specs dd { margin: 4px 0 0; color: var(--ink); font-size: 13px; }
.checkout-section { background: radial-gradient(ellipse at 15% 5%, #eef5f8, transparent 70%), var(--powder); border-block: 1px solid #cbdce7; padding-block: 72px; }
.checkout-grid { display: grid; grid-template-columns: .85fr 1fr; gap: 100px; align-items: start; }
.checkout-intro { padding-block: 24px; }
.purchase-steps { list-style: none; margin: 40px 0 24px; padding: 0; font-size: 12px; }
.purchase-steps li { display: flex; gap: 18px; padding-block: 12px; border-top: 1px solid #b9cbd7; }
.purchase-steps span { font-size: 10px; color: var(--blue); }
.checkout-card, .account-card { min-width: 0; background: #fcfbf8; border: 1px solid #c8d3db; border-radius: 4px; padding: 32px; box-shadow: 0 20px 48px #24455a08; }
.auth-switch { display: flex; gap: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.auth-switch button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 10px 0; font-size: 13px; min-height: 44px; }
.auth-switch button[aria-pressed="true"] { border-bottom-color: var(--blue); font-weight: 700; color: var(--ink); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset > label { display: block; font-size: 12px; font-weight: 600; margin-block: 18px 8px; }
fieldset > label:first-of-type { margin-top: 0; }
input:not([type="checkbox"]), .pix-code { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #aabac6; border-radius: 3px; background: #fff; color: var(--ink); font-size: 16px; }
input:disabled { background: #eeefec; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; margin-block: 20px 8px; font-size: 11px; font-weight: 400; line-height: 1.8; }
.checkbox-label input { width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0 0; accent-color: var(--blue); }
.checkbox-label a { font-weight: 600; }
.field-hint { font-size: 11px; color: var(--muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.status { font-size: 12px; overflow-wrap: anywhere; }
.status:empty, .poll-note:empty { display: none; }
.status:not(:empty) { margin-block: 16px; padding: 12px 14px; background: #edf2f5; border-left: 3px solid #819cb0; }
.status--error:not(:empty) { background: #f7e9e6; border-left-color: var(--error); color: var(--error); }
.status--success:not(:empty) { background: #e8f1ec; color: var(--success); border-left-color: var(--success); }
.sales-status:not(:empty) { padding: 0; background: transparent; border: 0; color: var(--muted); font-size: 11px; }
.member-line { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.member-line .eyebrow { margin-bottom: 6px; }
.member-name { margin: 0; font-size: 19px; font-weight: 500; overflow-wrap: anywhere; }
.text-button { border: 0; padding: 10px 0; background: transparent; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; font-size: 11px; min-height: 44px; }
.text-button:disabled { color: var(--muted); text-decoration: none; }
.checkout-summary { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 14px; }
.checkout-summary strong { white-space: nowrap; }
.payment-brick { margin-top: 24px; min-height: 120px; }
.order-list { display: grid; gap: 16px; margin-block: 24px; }
.order-list:empty { display: none; }
.order-card { border: 1px solid var(--line); border-radius: 3px; padding: 22px; min-width: 0; background: #fffdfa; }
.order-card__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.order-card h3 { font: 400 25px/1.2 var(--display-font); margin: 0; overflow-wrap: anywhere; }
.order-id { font-size: 10px; margin: 8px 0 14px; color: var(--muted); overflow-wrap: anywhere; }
.order-badge { font-size: 9px; font-weight: 700; letter-spacing: .03em; padding: 5px 8px; border: 1px solid var(--line); white-space: nowrap; }
.order-badge[data-state="active"] { color: var(--success); background: #e8f1ec; border-color: #b0cabb; }
.order-badge[data-state="pending"], .order-badge[data-state="verifying"] { background: #f3eddd; color: #695322; border-color: #d7c9a5; }
.order-badge[data-state="refunded"], .order-badge[data-state="rejected"] { background: #f7e9e6; color: var(--error); }
.order-copy { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.countdown { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; align-items: center; }
.order-actions .button { font-size: 11px; }
.payment-instructions { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.pix-qr { width: 180px; max-width: 100%; height: auto; margin: 0 auto 18px; }
.payment-instructions label { font-size: 11px; display: block; margin-bottom: 8px; }
.pix-code { font-size: 12px; min-height: 80px; resize: vertical; overflow-wrap: anywhere; }
.empty-state { padding: 24px; background: #edf2f5; font-size: 13px; }
.empty-state a { display: inline-block; margin-top: 10px; }
.policies { padding-block: 64px; }
.policies details { border-top: 1px solid var(--line); scroll-margin-top: 28px; }
.policies details:last-child { border-bottom: 1px solid var(--line); }
.policies summary { cursor: pointer; font-size: 13px; padding: 22px 0; }
.policies details > div { max-width: 760px; padding-bottom: 18px; color: var(--muted); font-size: 12px; }
.shop-footer { border-top: 1px solid var(--line); min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 10px; color: var(--muted); }
.account-heading { padding-block: 60px 40px; }
.account-heading h1 { font-size: clamp(50px, 6vw, 80px); letter-spacing: -.055em; line-height: 1; margin-bottom: 22px; }
.account-layout { display: grid; grid-template-columns: .65fr 1fr; gap: 80px; align-items: start; padding-bottom: 24px; }
.account-aside { background: linear-gradient(150deg, #d8e7f0, #eaf1f3); padding: 36px; border-left: 1px solid #b9cedb; }
.account-aside h2 { font-size: 50px; margin-bottom: 24px; }
.account-aside > p:not(.eyebrow) { font-size: 12px; color: var(--muted); }
.account-aside > .fine-print { margin-top: 28px; }
.orders-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.orders-heading h2 { font-size: 28px; margin: 0; }
@keyframes arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .book-hero { gap: 96px; } }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .book-hero, .book-details { gap: 40px; }
  .checkout-grid { gap: 44px; grid-template-columns: .8fr 1fr; }
  .account-layout { gap: 40px; }
  .checkout-card, .account-card { padding: 24px; }
  .book-object { left: -10px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .shop-header { min-height: 92px; gap: 12px; }
  .wordmark { font-size: 23px; }
  .wordmark span { font-size: 8px; }
  .shop-header nav { gap: 12px; font-size: 10px; }
  .nav-account { padding: 9px 12px !important; }
  .book-hero { grid-template-columns: 1fr; padding-block: 42px 56px; gap: 40px; }
  .hero-copy h1 { font-size: clamp(54px, 11vw, 82px); }
  .hero-copy .lede { max-width: 48ch; }
  .hero-art { width: min(520px, 100%); margin-inline: auto; padding-left: 32px; }
  .photographic-wall { aspect-ratio: 5 / 4; }
  .book-object { width: 35%; top: 9%; left: 0; }
  .cover-fallback strong { font-size: clamp(20px, 5vw, 32px); }
  .book-details, .checkout-grid, .account-layout { grid-template-columns: 1fr; gap: 24px; }
  .book-details { padding-block: 40px 48px; }
  .book-details h2 { font-size: 46px; }
  .checkout-section { padding-block: 40px; }
  .checkout-intro { padding-top: 0; }
  .checkout-intro h2 { font-size: 48px; }
  .purchase-steps { margin-top: 24px; }
  .policies { padding-block: 40px; }
  .shop-footer { flex-direction: column; justify-content: center; align-items: start; gap: 8px; padding-block: 24px; }
  .shop-footer nav { gap: 24px; font-size: 11px; }
  .account-heading { padding-block: 40px 20px; }
  .account-aside { padding: 24px; }
  .account-aside h2 { font-size: 36px; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 32px); }
  .shop-header nav { gap: 8px; }
  .shop-header nav a { max-width: 88px; }
  .shop-header nav .nav-account { max-width: none; }
  .wordmark { font-size: 20px; }
  .checkout-card, .account-card { padding: 20px 16px; }
  .order-card { padding: 16px; }
  .order-card__heading { flex-direction: column; gap: 8px; }
  .purchase-line { gap: 16px; }
  .purchase-line .button { flex: 1; padding-inline: 14px; }
  .cover-fallback { padding: 12px 8px; }
  .photographic-wall figcaption { font-size: 20px; left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-art { animation: none; }
}
