/* predetach.com — caderno de campo. Cores do plano: terra-queimada, azul-céu (só destaque), tinta-lápis, fundo caderno. */

@font-face { font-family: "Gabarito"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/gabarito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Gabarito"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/gabarito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/sarabun-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/sarabun-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/sarabun-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sarabun"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/sarabun-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #FFFBEB;
  --sheet: #FFFEF7;
  --ink: #1C1917;
  --terra: #9A3412;
  --sky: #38BDF8;
  --sky-tint: #E1F4FD;
  --terra-tint: #FBE7DA;
  --paper-deep: #F8EFC8;
  --grid: rgba(56, 189, 248, .2);
  --grid-major: rgba(56, 189, 248, .36);
  --radius: 14px;
  --shadow: 6px 6px 0 var(--sky);
  --font-head: "Gabarito", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Sarabun", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  font: 400 1.125rem/1.7 var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 140px 140px, 140px 140px, 28px 28px, 28px 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; padding-bottom: 3rem; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--terra); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 3px; }
strong { font-weight: 700; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .3em; }
.small { font-size: .95rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--sky); border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: .75rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: .75rem; }
.hl { background: linear-gradient(transparent 58%, rgba(56, 189, 248, .55) 58%); padding-inline: .1em; }
.eyebrow { display: flex; align-items: center; gap: .65rem; font: 600 1.05rem/1.2 var(--font-head); color: var(--terra); margin: 0 0 .85rem; }
.eyebrow::before { content: ""; flex: none; width: 2.4rem; border-top: 3px dashed var(--terra); }
.eyebrow a { color: inherit; }
.lead { font-size: 1.25rem; line-height: 1.6; }
.icon { vertical-align: -.2em; flex: none; }
.icon--sm { width: 1rem; height: 1rem; }
.btn .icon { width: 1.2rem; height: 1.2rem; }

/* Cabeçalho */
.site-header { background: var(--paper); border-bottom: 2px dashed var(--ink); position: relative; z-index: 5; }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__name { font: 800 1.65rem/1 var(--font-head); letter-spacing: -.02em; }
.brand__dot { color: var(--terra); }
.brand--footer { margin: 0 0 .75rem; }
.primary-nav ul { display: flex; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav li { margin: 0; }
.primary-nav a { display: inline-block; padding: .35rem .15rem; font: 600 1.05rem var(--font-head); color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.primary-nav a:hover { border-bottom-color: var(--sky); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--terra); }
.index-tabs { background: var(--paper-deep); border-top: 1px solid rgba(28, 25, 23, .25); }
.index-tabs ul { display: flex; gap: .4rem; list-style: none; margin: 0 auto; padding-block: .55rem; overflow-x: auto; scrollbar-width: thin; }
.index-tabs li { margin: 0; flex: none; }
.index-tabs a { display: block; padding: .3rem .85rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--sheet); color: var(--ink); font: 600 .95rem var(--font-head); text-decoration: none; white-space: nowrap; }
.index-tabs a:hover { background: var(--sky-tint); }
.index-tabs a[aria-current="page"] { background: var(--terra); color: var(--paper); }

/* Trilha de navegação */
.breadcrumb { padding-block: 1rem .25rem; font-size: .95rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .1rem .5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--terra); }
.breadcrumb a { color: var(--ink); }
.breadcrumb [aria-current] { font-weight: 600; }

/* Folha, cartões e botões */
.sheet { background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2.25rem); }
.sheet--note { box-shadow: 6px 6px 0 var(--terra-tint); background: var(--sheet); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.25rem; font: 800 1.05rem/1.1 var(--font-head); background: var(--terra); color: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { background: var(--sheet); color: var(--ink); }
.btn--small { padding: .5rem .85rem; font-size: .95rem; border-radius: 10px; }
.btn--danger { background: var(--sheet); color: var(--terra); border-color: var(--terra); box-shadow: 3px 3px 0 var(--terra); }
.btn--danger:hover { box-shadow: 5px 5px 0 var(--terra); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.card { background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--sky); padding: 1.25rem 1.35rem; margin: 0; transition: transform .12s, box-shadow .12s; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.card:hover, .card:focus-within { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--sky); }
.card[hidden] { display: none; }
.article-card__cat { align-self: flex-start; padding: .1rem .7rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--sky-tint); color: var(--ink); font: 600 .85rem/1.35 var(--font-head); margin: 0 0 .85rem; }
.article-card__title { font-size: 1.3rem; margin: 0 0 .5rem; }
.article-card__title a { color: var(--ink); text-decoration: none; }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card { position: relative; }
.article-card__desc { font-size: 1rem; line-height: 1.55; margin-bottom: .9rem; }
.article-card__meta { margin: auto 0 0; font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.card-grid--numbered { counter-reset: n; }
.card-grid--numbered > .article-card::before { counter-increment: n; content: counter(n); position: absolute; top: -.9rem; left: -.6rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; background: var(--terra); color: var(--paper); border: 2px solid var(--ink); border-radius: 50%; font: 800 1rem var(--font-head); }
.card-grid--cats { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }
.cat-card { align-items: flex-start; position: relative; }
.cat-card__title { font-size: 1.25rem; margin: .8rem 0 .4rem; }
.cat-card__title a { color: var(--ink); text-decoration: none; }
.cat-card__title a::after { content: ""; position: absolute; inset: 0; }
.cat-card p { font-size: 1rem; line-height: 1.55; margin: 0; }
.cat-icon { width: 3.5rem; height: 3.5rem; }

/* Seções */
.section { padding-block: 2.5rem 1rem; }
.section__lead { max-width: 46rem; }
.section__more { margin-top: 1.5rem; font-weight: 600; }
.page-head { padding-block: 1.5rem .5rem; }
.page-head h1 { margin-bottom: .4em; }

/* Início */
.hero { padding-block: 2.5rem 1rem; }
.hero h1 { font-size: clamp(2.5rem, 1rem + 5.4vw, 4.7rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: .45em; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.5rem 0 1rem; }
.hero__art { max-width: 30rem; justify-self: center; width: 100%; }
.hero-svg { width: 100%; height: auto; display: block; overflow: visible; }
.preview__sheet { max-width: 54rem; }
.preview__top { display: grid; gap: 1rem 2rem; margin-bottom: 1rem; }
.label { font: 600 1rem/1.2 var(--font-head); color: var(--terra); margin: 0 0 .25rem; }
.preview__foot { margin-top: 1rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2.1rem; margin-bottom: .7rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.3rem; height: 1.3rem; border: 2px solid var(--ink); border-radius: 5px; background: var(--sky-tint); }
.check-list li::after { content: ""; position: absolute; left: .45rem; top: .45rem; width: .35rem; height: .7rem; border: solid var(--terra); border-width: 0 3px 3px 0; transform: rotate(40deg); }

/* Texto longo: artigos, categorias e páginas */
.article-layout { display: grid; gap: 1.5rem 3rem; padding-block: 1rem 2rem; grid-template-columns: minmax(0, 1fr); }
.article-head { grid-area: head; }
.article-head h1 { margin-bottom: .5rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; margin: 0; }
.toc { grid-area: toc; font-size: 1rem; background: var(--sheet); border: 2px dashed var(--ink); border-radius: var(--radius); padding: 1rem 1.25rem; align-self: start; }
.toc__title { font: 800 1.05rem var(--font-head); margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc a { color: var(--ink); }
.article-body { grid-area: body; min-width: 0; }
.article-layout { grid-template-areas: "head" "toc" "body"; }
.prose { overflow-wrap: break-word; }
.prose > .lead p { font-size: 1.28rem; line-height: 1.6; }
.prose h2 { margin-top: 2.2rem; }
.prose h2::after { content: ""; display: block; width: 4rem; margin-top: .5rem; border-bottom: 4px dashed var(--terra); }
.prose h3 { margin-top: 1.6rem; }
.prose-section:first-of-type h2 { margin-top: 1.4rem; }
.prose li { margin-bottom: .45em; }
.table-wrap { position: relative; overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--sheet); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.45; }
caption { text-align: left; font: 600 1rem var(--font-head); padding: .7rem .9rem; background: var(--paper-deep); border-bottom: 2px solid var(--ink); }
th, td { padding: .6rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(28, 25, 23, .3); }
thead th { background: var(--sky-tint); font: 600 .95rem var(--font-head); border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 600; }
tbody tr:nth-child(even) > * { background: rgba(248, 239, 200, .4); }
tbody tr:last-child > * { border-bottom: 0; }
.callout { position: relative; margin: 1.9rem 0 1.6rem; padding: 1.1rem 1.25rem 1rem 1.4rem; border: 2px solid var(--ink); border-left-width: 8px; border-radius: 4px; background: var(--sky-tint); box-shadow: 4px 4px 0 rgba(28, 25, 23, .16); }
.callout p { margin: 0 0 .5em; }
.callout p:last-child { margin-bottom: 0; }
.callout__tag { display: inline-block; padding: .05rem .7rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 .9rem/1.4 var(--font-head); }
.callout__title { font: 800 1.1rem/1.3 var(--font-head); }
.callout--cuidado { padding-top: 1.55rem; background: var(--terra-tint); border-color: var(--ink); border-left-color: var(--terra); }
.callout--cuidado .callout__tag { background: var(--terra); color: var(--paper); }
.callout--dica { background: var(--paper-deep); }
.checklist { margin: 1.5rem 0; padding: 1rem 1.25rem; border: 2px dashed var(--ink); border-radius: 10px; background: var(--sheet); }
.checklist__title { font: 800 1.1rem var(--font-head); margin: 0 0 .6rem; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .box { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .42rem; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); }
.faq { margin: 0; }
.faq__item { margin-bottom: 1.2rem; }
.faq dt { font: 600 1.15rem/1.35 var(--font-head); margin-bottom: .3rem; }
.faq dd { margin: 0; }
.sources { list-style: none; padding: 0; margin: 1rem 0 0; }
.sources li { padding: .7rem 0; border-bottom: 1px dashed rgba(28, 25, 23, .45); margin: 0; }
.sources a { font-weight: 600; overflow-wrap: anywhere; }
.sources__by { display: block; font-size: .95rem; }
.cta-editor { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; margin: 2.4rem 0 1rem; padding: 1.2rem 1.5rem 1.2rem 1.2rem; border: 2px solid var(--ink); border-radius: 6px; background: var(--terra-tint); box-shadow: 5px 5px 0 var(--terra); }
.cta-editor__icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--terra); color: var(--paper); }
.cta-editor__icon .icon { width: 1.7rem; height: 1.7rem; }
.cta-editor__body { padding-left: 1.2rem; border-left: 3px dashed var(--ink); }
.cta-editor__title { font: 800 1.25rem var(--font-head); margin: 0 0 .4rem; }
.cta-editor p:last-child { margin-bottom: 0; }
.article-end { padding-bottom: 2rem; }
.related__title { font: 800 1.5rem var(--font-head); margin: 1rem 0 1.2rem; }
.pager { display: grid; gap: 1rem; margin-top: 2.2rem; }
.pager a { display: block; padding: 1rem 1.2rem; border: 2px solid var(--ink); border-radius: 12px; background: var(--sheet); color: var(--ink); text-decoration: none; font: 600 1.1rem/1.3 var(--font-head); }
.pager a:hover { background: var(--sky-tint); }
.pager span { display: block; font: 600 .95rem var(--font-head); color: var(--terra); margin-bottom: .2rem; }
.pager__next { text-align: right; }
.category-head { display: flex; align-items: center; gap: 1.2rem; padding-block: 1.5rem .8rem; }
.category-head h1 { margin: 0; }
.category-head .cat-icon { width: 4.5rem; height: 4.5rem; }
.category-layout { padding-bottom: .5rem; }
.page-layout { max-width: 56rem; padding-bottom: 2rem; }
.notfound { padding-block: 3rem; max-width: 46rem; }

/* Formulários */
.field { margin-bottom: 1.25rem; }
.field label, .field__label, legend { display: block; font: 600 1.05rem var(--font-head); margin-bottom: .35rem; padding: 0; }
input[type="text"], input[type="email"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; font: 400 1.05rem/1.5 var(--font-body); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: .6rem .8rem;
}
textarea { resize: vertical; min-height: 6rem; }
input::placeholder, textarea::placeholder { color: var(--ink); opacity: .62; }
[aria-invalid="true"] { border-color: var(--terra); background: var(--terra-tint); }
.field__error { color: var(--terra); font-weight: 700; margin: .35rem 0 0; font-size: .98rem; }
.field--trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: 2px solid var(--ink); border-radius: 10px; padding: .9rem 1.2rem; margin-bottom: 1.5rem; background: var(--sky-tint); }
.notice p { margin: 0 0 .4em; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice--error { background: var(--terra-tint); border-color: var(--terra); }
.notice--ok { background: var(--sky-tint); }

/* Explorador */
.explorer__form { display: grid; gap: 1.2rem; margin-bottom: 1rem; }
.field__row { display: flex; gap: .75rem; flex-wrap: wrap; }
.field__row input { flex: 1 1 14rem; width: auto; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { width: 100%; }
.chip { display: inline-block; position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: .35rem .95rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--sheet); font: 600 .98rem var(--font-head); }
.chip input:checked + span { background: var(--terra); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--sky); }
.explorer__count { font-weight: 600; margin: 1.2rem 0; }
.explorer__empty { font-weight: 600; padding: 1.5rem; border: 2px dashed var(--ink); border-radius: var(--radius); background: var(--sheet); }

/* Rodapé */
.site-footer { position: relative; background: var(--paper); border-top: 2px dashed var(--ink); padding-block: 3rem 1.5rem; font-size: 1rem; }
.site-footer__grid { display: grid; gap: 2rem; }
.site-footer__title { font: 800 1.1rem var(--font-head); margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--terra); }
.site-footer a[aria-current="page"] { font-weight: 700; color: var(--terra); }
.site-footer__base { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed rgba(28, 25, 23, .5); }
.site-footer__base p { margin: 0; }

@media (min-width: 52rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3rem; }
  .preview__top { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager__next { grid-column: 2; }
  .pager__prev:only-child { grid-column: 1; }
}
@media (min-width: 62rem) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 16rem; grid-template-areas: "head head" "body toc"; align-items: start; }
  .toc { position: sticky; top: 1rem; }
  .article-body.prose, .sheet.prose { padding-left: 4.3rem; background-image: linear-gradient(90deg, transparent 3rem, rgba(154, 52, 18, .45) 3rem, rgba(154, 52, 18, .45) calc(3rem + 2px), transparent calc(3rem + 2px)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .btn:active, .card:hover, .card:focus-within { transform: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .toc, .cta-editor, .related, .pager, .breadcrumb, .index-tabs, .tear, .tear-icon { display: none !important; }
  body { background: #fff; display: block; font-size: 11pt; }
  .sheet, .card { box-shadow: none; border-color: #000; }
  a { color: #000; }
}

/* ===== Acabamento: o destacável (picote, tesoura, cupom, furos de caderno) ===== */
.tear { position: relative; max-width: var(--wrap); margin: 2.6rem auto 0; padding-inline: 1.25rem; height: 0; }
.tear::before { content: ""; display: block; border-top: 2px dashed var(--ink); }
.tear .icon { position: absolute; top: -1rem; left: 2.6rem; width: 2rem; height: 2rem; padding: .2rem; background: var(--paper); color: var(--ink); }
.tear-icon { position: absolute; top: -1.1rem; left: max(1.6rem, calc((100% - var(--wrap)) / 2 + 2.6rem)); z-index: 1; background: var(--paper); line-height: 0; padding: .2rem; }
.tear-icon .icon { width: 2rem; height: 2rem; }

.coupon { display: grid; grid-template-columns: minmax(0, 1fr); margin: 1.6rem 0 0; padding: 0; list-style: none; background: var(--sheet); border: 2px solid var(--ink); border-radius: 8px; box-shadow: var(--shadow); }
.coupon__cell { position: relative; margin: 0; padding: 1.6rem 1.4rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; transition: background-color .15s; }
.coupon__cell:hover, .coupon__cell:focus-within { background: var(--sky-tint); }
.coupon__cell + .coupon__cell { border-top: 2px dashed var(--ink); }
.coupon__cell + .coupon__cell::before, .coupon__cell + .coupon__cell::after { content: ""; position: absolute; width: 11px; height: 22px; background: var(--paper); border: 2px solid var(--ink); }
.coupon__cell + .coupon__cell::before { top: -12px; left: -2px; border-left: 0; border-radius: 0 22px 22px 0; }
.coupon__cell + .coupon__cell::after { top: -12px; right: -2px; border-right: 0; border-radius: 22px 0 0 22px; }
.coupon__title { margin: .9rem 0 .4rem; font-size: 1.3rem; }
.coupon__title a { color: var(--ink); text-decoration: none; }
.coupon__title a::after { content: ""; position: absolute; inset: 0; }
.coupon__cell p { margin: 0; font-size: 1rem; line-height: 1.5; }

.sheet--holes { position: relative; padding-top: calc(clamp(1.25rem, 3vw, 2.25rem) + 1.2rem); }
.sheet--holes::before { content: ""; position: absolute; top: .7rem; left: 1rem; right: 1rem; height: 18px; background: radial-gradient(circle at 12px 9px, var(--paper) 0 5px, var(--ink) 5.5px 7.5px, transparent 8px) 0 0 / 38px 18px repeat-x; pointer-events: none; }

.callout--exemplo::before, .callout--dica::before { content: ""; position: absolute; top: -.8rem; right: 1.6rem; width: 5rem; height: 1.4rem; background: rgba(56, 189, 248, .6); transform: rotate(3deg); }
.callout--dica::before { background: rgba(154, 52, 18, .28); transform: rotate(-3deg); }
.callout--cuidado::before { content: ""; position: absolute; top: -2px; left: -8px; right: -2px; height: .75rem; background: repeating-linear-gradient(135deg, var(--terra) 0 .7rem, var(--paper) .7rem 1.4rem); border: 2px solid var(--ink); border-bottom-width: 2px; border-radius: 3px 3px 0 0; }

@media (min-width: 64rem) {
  .coupon { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .coupon__cell + .coupon__cell { border-top: 0; border-left: 2px dashed var(--ink); }
  .coupon__cell + .coupon__cell::before, .coupon__cell + .coupon__cell::after { width: 22px; height: 11px; }
  .coupon__cell + .coupon__cell::before { top: -2px; left: -12px; right: auto; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 22px 22px; }
  .coupon__cell + .coupon__cell::after { top: auto; bottom: -2px; left: -12px; right: auto; border: 2px solid var(--ink); border-bottom: 0; border-radius: 22px 22px 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__art { animation: folha-cai .9s cubic-bezier(.2, .8, .25, 1) both; }
  @keyframes folha-cai { from { opacity: 0; transform: translateY(-22px) rotate(-5deg); } to { opacity: 1; transform: none; } }
}
