/* Hallmark · checked: 2026-10-29 · genre: playful (inferred: community, poster tone)
 * floor: 0 FAIL · fixed: 7 (24b, 34, 48, 54, 63, 67, 7b) · structural: 1 printed (58)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark · waive 26b · no disabled attribute and no aria-disabled anywhere on the bio page · the Copiar buttons and the Pix amount chips are never disabled, so that style would be dead CSS */
/* Hallmark · answered F5 · the ink coin with the yellow arrow repeats the motto pill, part of the poster vocabulary of the page */

/* Cozinheiros do Bem · bio page. Layout from project/Bio Cozinheiros do Bem.dc.html. */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-v1.woff2') format('woff2');
  font-weight: 500 900;
  font-stretch: 100% 125%;
  font-display: swap;
}

:root {
  /* Palette from the logo (site/assets/logo.jpg): rose, deep maroon, near-white. */
  --brand: #E85E77;
  --highlight: #F9D3DA;
  --highlight-hover: #F4B9C4;
  --surface: #FDF5F6;
  --paper: #FFFBFB;
  --ink: #2E1419;
  --muted: #6B3A44;
  --accent: #B0243F;
  --shadow-soft: rgb(46 20 25 / 0.25);
  --font-body: 'Archivo', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; background: var(--brand); overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
::selection { background: var(--ink); color: var(--highlight); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
}
.stack { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Header ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-top: 8px; }
.logo {
  width: 112px; height: 112px; border-radius: 50%;
  border: 4px solid var(--ink); background: var(--highlight);
  overflow: hidden; box-shadow: 6px 6px 0 var(--ink);
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.title {
  margin: 0; font-size: clamp(29px, 9.4vw, 44px); line-height: 0.9; font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -0.01em;
  color: var(--surface); text-shadow: 3px 3px 0 var(--ink);
}
.about { margin: 4px auto 0; font-size: 16px; line-height: 1.4; font-weight: 500; max-width: 340px; text-align: center; text-wrap: pretty; }
.motto {
  display: inline-flex; padding: 8px 12px; border-radius: 999px;
  background: var(--ink); color: var(--highlight); font-size: 13px; font-weight: 700;
}

/* ---------- Donate card ---------- */
.card {
  background: var(--surface); border: 3px solid var(--ink); border-radius: 24px;
  box-shadow: 8px 8px 0 var(--ink);
}
.donate { padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
/* The title never breaks; on common phone widths (360 to 400px) the hint drops below it instead. */
.donate__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.donate__title { margin: 0; font-size: 30px; line-height: 1; font-weight: 900; font-stretch: 125%; text-transform: uppercase; white-space: nowrap; }
.donate__hint { font-size: 13px; font-weight: 700; color: var(--accent); }

.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip {
  min-height: 48px; padding: 0; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font-size: 15px; font-weight: 800; white-space: nowrap;
}
.chip:hover { background: var(--highlight); }
.chip:active { transform: translate(1px, 1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--highlight); }

.qr-wrap { display: flex; justify-content: center; }
/* 220px of code plus padding and border; shrinks with the card on narrow phones. */
.qr {
  width: min(258px, 100%); aspect-ratio: 1; padding: 16px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 18px;
}
.qr svg { width: 100%; height: 100%; display: block; }
.qr-caption { margin: -4px 0 0; text-align: center; font-size: 14px; font-weight: 600; }

.btn-primary {
  width: 100%; min-height: 60px; padding: 0 12px; cursor: pointer;
  border: 3px solid var(--ink); border-radius: 16px;
  background: var(--brand); color: var(--ink);
  font-size: clamp(14px, 4.2vw, 18px); font-weight: 900; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
}
/* Small phones (320 to 359px): tighter hero so the donate card starts higher, roomier card interior. */
@media (max-width: 359px) {
  .page { padding-top: 20px; }
  .hero { gap: 12px; padding-top: 0; }
  .logo { width: 88px; height: 88px; box-shadow: 4px 4px 0 var(--ink); }
  .donate { padding: 20px 14px 16px; }
  .btn-primary { font-stretch: 100%; letter-spacing: 0; }
  .amounts { gap: 6px; }
  .chip { font-size: 13px; }
  .motto, .badge { border-radius: 16px; }
  .link { padding-left: 16px; padding-right: 12px; }
}
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

.key { display: flex; flex-direction: column; gap: 8px; }
.key__label { font-size: 14px; font-weight: 700; }
.key__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.key__value {
  flex: 999 1 auto; min-width: 0; display: flex; align-items: center;
  padding: 0 16px; min-height: 52px;
  border: 2px solid var(--ink); border-radius: 14px; background: var(--paper);
  font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  white-space: nowrap;
}
/* E-mail and random keys can outgrow the row; phone, CPF and CNPJ never break. */
.key__value[data-kind="email"], .key__value[data-kind="random"] { white-space: normal; overflow-wrap: anywhere; }
.btn-key {
  flex: 1 0 96px; max-width: 100%; min-height: 52px; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 14px;
  background: var(--highlight); color: var(--ink); font-size: 15px; font-weight: 800;
}
.btn-key:hover { background: var(--highlight-hover); }
.btn-key:active { transform: translate(1px, 1px); }
.key__note { font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ---------- Links ---------- */
.links { display: flex; flex-direction: column; gap: 12px; }
.link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 10px 16px 10px 20px;
  border: 3px solid var(--ink); border-radius: 16px;
  background: var(--surface); box-shadow: 4px 4px 0 var(--ink);
}
.link:hover { background: var(--highlight); }
.link:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.link__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link__title { font-size: 17px; line-height: 1.2; font-weight: 800; }
.link__sub { font-size: 13px; line-height: 1.3; font-weight: 500; color: var(--muted); }
.link__icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--highlight);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}

/* ---------- Footer ---------- */
.foot { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-top: 8px; }
.badge {
  display: inline-flex; padding: 8px 16px; border-radius: 999px;
  background: var(--highlight); border: 2px solid var(--ink); font-size: 13px; font-weight: 800;
}
.foot__note { font-size: 12px; font-weight: 600; }

/* ---------- Toast ---------- */
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
  padding: 12px 20px; border-radius: 20px;
  background: var(--ink); color: var(--highlight);
  font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 20px var(--shadow-soft);
  animation: toastIn .2s ease-out;
}
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .btn-primary:active, .chip:active, .btn-key:active, .link:active { transform: none; }
}
