
/* Layout: sunburst masthead with the portal's bubble wordmark, a shelf of "portos seguros", then a filterable wall of review cards; each card opens the full review in a reader panel. */
:root {
  --bg: #fbe3ee;
  --paper: #fff8fb;
  --ink: #221419;
  --muted: #74505f;
  --line: #ecc3d5;
  --pink: #d93a7c;
  --pink-soft: #f7c6dc;
  --ray: #f5cfe0;
  --sticker: #ffe16b;
  --sticker-ink: #221419;
  --danger: #b3263e;
  --shadow: 0 2px 0 #221419;
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "Zen Kaku Gothic New", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1116; --paper: #26171f; --ink: #fbe9f1; --muted: #c9a3b4; --line: #4a2c3a;
    --pink: #ff78b0; --pink-soft: #4d2437; --ray: #24151c; --danger: #ff6f86;
    --shadow: 0 2px 0 #000; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1116; --paper: #26171f; --ink: #fbe9f1; --muted: #c9a3b4; --line: #4a2c3a;
  --pink: #ff78b0; --pink-soft: #4d2437; --ray: #24151c; --danger: #ff6f86;
  --shadow: 0 2px 0 #000; color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--pink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Masthead */
.mast {
  position: relative; overflow: hidden;
  background: repeating-conic-gradient(from 0deg at 50% 110%, var(--bg) 0deg 7deg, var(--ray) 7deg 14deg);
  border-bottom: 3px solid var(--ink);
}
.mast .mast-grid { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding-block: 20px 40px; }
.topbar-wrap { padding-block: 14px 0; }
.topbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.seg.mini button { padding: 3px 11px; font-size: 13px; }
.seg.mini { position: relative; z-index: 1; }
.bubble {
  width: 176px; aspect-ratio: 1; max-width: 100%; border-radius: 50%;
  background: var(--pink-soft); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  display: grid; place-content: center; text-align: center; transform: rotate(-6deg);
}
.bubble b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: var(--ink); }
.bubble span { font-family: var(--display); font-size: 25px; line-height: 1.1; color: var(--ink); }
.bubble span em { font-style: normal; color: var(--pink); }
.mast h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 6vw, 60px); line-height: 1.05; margin: 0 0 12px; text-wrap: balance; }
.mast h1 em { font-style: normal; color: var(--pink); }
.mast p { margin: 0; max-width: 56ch; font-size: 17px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; padding: 0; list-style: none; }
.facts li { background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.facts a { color: inherit; text-decoration: none; }
.facts a:hover { text-decoration: underline; }

.zig { height: 12px; background: var(--ink);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%;
  width: 88px; }

section { padding-block: 44px 8px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 8px 0 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 52ch; }

/* Portos seguros shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.spine {
  text-align: left; cursor: pointer; background: var(--pink-soft); border: 2px solid var(--ink); border-radius: 14px;
  padding: 0 0 12px; display: grid; gap: 6px; align-content: start; overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .12s, box-shadow .12s;
}
.spine:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.spine .cover { margin-bottom: 4px; }
.spine .t, .spine .h { padding-inline: 12px; }
.spine .t { font-family: var(--display); font-size: 18px; line-height: 1.15; text-wrap: balance; }
.spine .h { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Filters */
.filters { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-block: 2px solid var(--ink); padding-block: 12px; margin-bottom: 22px; }
.filters .wrap { display: grid; gap: 10px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { flex: 1 1 220px; min-width: 0; display: flex; }
.search input, .sort select {
  width: 100%; font: inherit; font-size: 15px; background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; padding: 7px 16px;
}
.sort { flex: 0 0 auto; }
.sort select { width: auto; padding-right: 12px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 14px; cursor: pointer; font-size: 14px; font-weight: 500; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip { border: 2px solid var(--ink); background: var(--paper); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip.rad { background: repeating-linear-gradient(-45deg, var(--sticker) 0 8px, #fff3b8 8px 16px); color: var(--sticker-ink); border-color: var(--sticker-ink); }
.chip.rad[aria-pressed="true"] { background: repeating-linear-gradient(-45deg, var(--sticker) 0 8px, #221419 8px 16px); color: #221419; border-color: var(--ink); text-shadow: 0 0 3px var(--sticker), 0 0 3px var(--sticker); }
.count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.clear { background: none; border: 0; color: var(--pink); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 0; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card {
  color: inherit; text-decoration: none; overflow: hidden;
  text-align: left; cursor: pointer; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px;
  padding: 0; display: flex; flex-direction: column; min-width: 0;
  transition: transform .12s, box-shadow .12s;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.cover { display: block; aspect-ratio: 1; max-width: 100%; background: var(--pink-soft); border-bottom: 2px solid var(--ink); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cbody { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; }
.date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.15; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.card .hl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); line-height: 1.4; }
.card .ex { font-size: 14.5px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.card .foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 12px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 9px; color: var(--muted); }
.tag.rad { border-color: var(--sticker-ink); color: var(--sticker-ink); background: repeating-linear-gradient(-45deg, var(--sticker) 0 6px, #fff3b8 6px 12px); }
.by { font-size: 12.5px; color: var(--muted); }

.stamp { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 2px 8px; white-space: nowrap; border: 2px solid var(--sticker-ink); }
.stamp.recomenda { background: var(--sticker); color: var(--sticker-ink); transform: rotate(-2deg); }
.stamp.ressalvas { background: var(--paper); color: var(--ink); border-style: dashed; border-color: var(--ink); }
.stamp.nao { background: var(--danger); color: #fff; border-color: var(--danger); transform: rotate(2deg); }
.score { font-size: 13px; font-weight: 700; margin-left: 8px; color: var(--pink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.score .st { letter-spacing: 1px; }
.r-img { display: block; width: min(100%, 440px); height: auto; border: 2px solid var(--ink); border-radius: 12px; margin: 0 0 20px; box-shadow: 4px 4px 0 var(--ink); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 2px dashed var(--line); border-radius: 16px; }

/* Glossary + footer */
.gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; }
.gloss div { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; }
.gloss dt { font-family: var(--display); font-size: 17px; }
.gloss dd { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
footer { margin-top: 56px; border-top: 3px solid var(--ink); background: var(--pink-soft); }
footer .wrap { padding-block: 28px 36px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
footer p { margin: 0; max-width: 60ch; }
footer .big { font-family: var(--display); font-size: 20px; }

/* Reader */
dialog.reader {
  width: min(720px, calc(100% - 24px)); max-height: calc(100% - 32px); padding: 0; border: 3px solid var(--ink); border-radius: 18px;
  background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
dialog.reader::backdrop { background: rgba(34, 20, 25, .55); }
.r-head { position: sticky; top: 0; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.r-close { border: 2px solid var(--ink); background: var(--sticker); color: var(--sticker-ink); border-radius: 999px; padding: 3px 14px; cursor: pointer; font-weight: 700; }
.r-body { padding: 22px clamp(18px, 5vw, 44px) 32px; }
.r-body .hl { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin: 0 0 6px; }
.r-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 5vw, 40px); line-height: 1.08; margin: 0 0 14px; text-wrap: balance; overflow-wrap: anywhere; }
.r-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 22px; }
.r-text p { max-width: 65ch; margin: 0 0 1em; font-size: 17px; line-height: 1.7; }
.r-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 2px dashed var(--line); }
.btn { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); background: var(--paper); cursor: pointer; }
.btn.primary { background: var(--pink); border-color: var(--pink); color: #fff; }

@media (max-width: 640px) {
  .mast .mast-grid { grid-template-columns: 1fr; gap: 22px; padding-block: 16px 28px; }
  .topbar { justify-content: flex-start; }
  .bubble { width: 128px; }
  .bubble b { font-size: 25px; } .bubble span { font-size: 18px; }
  .count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .spine { transition: none; }
  .card:hover, .spine:hover { transform: none; }
}

/* Self-hosted fonts */
@font-face { font-family: "Dela Gothic One"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dela-gothic-one-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-400.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-500.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-700.woff2) format("woff2"); }

body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sticker); color: var(--sticker-ink); padding: 6px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

/* Language links look like the segmented buttons */
.seg a { padding: 3px 11px; font-size: 13px; font-weight: 500; text-decoration: none; color: inherit; }
.seg a + a { border-left: 2px solid var(--ink); }
.seg a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.seg.mini a:hover:not([aria-current]) { background: var(--pink-soft); }

/* Compact header on review pages */
.mast.slim { background: var(--bg); }
.slim-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand .mini-bubble { width: 54px; height: 54px; border-radius: 50%; background: var(--pink-soft); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: grid; place-content: center; text-align: center; transform: rotate(-6deg); flex: none; }
.mini-bubble b { font-family: var(--display); font-weight: 400; font-size: 11px; line-height: 1; }
.mini-bubble span { font-family: var(--display); font-size: 9px; line-height: 1.1; }
.mini-bubble em { font-style: normal; color: var(--pink); }
.brand .name { font-family: var(--display); font-size: 20px; }
.brand .name em { font-style: normal; color: var(--pink); }

/* Review page */
.crumb { padding-block: 26px 10px; }
.crumb a { font-weight: 700; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.rv-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 44px; align-items: start; padding-block: 8px 20px; }
.rv-cover { margin: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 16px); }
.rv-cover img { display: block; width: 100%; height: auto; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); background: var(--pink-soft); }
.rv-main { min-width: 0; }
.rv-main .date { display: block; margin-bottom: 10px; }
.rv-main .hl { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin: 0 0 6px; }
.rv-main h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1.06; margin: 0 0 16px; text-wrap: balance; overflow-wrap: anywhere; }
.rv-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 24px; }
.rv-text p { max-width: 65ch; margin: 0 0 1em; font-size: 17px; line-height: 1.75; }
.rv-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 18px; border-top: 2px dashed var(--line); }
.related { padding-block: 36px 0; }
.nf { text-align: center; padding-block: 80px; }
.nf h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6vw, 48px); margin: 0 0 10px; }
.nf p { margin: 0 0 22px; color: var(--muted); }
.nf .langs-nf { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .rv-grid { grid-template-columns: 1fr; gap: 24px; }
  .rv-cover { position: static; max-width: 440px; }
}
.spine { color: inherit; text-decoration: none; }
.card .ex { margin: 0; }
