/* Site legal do Löffelchen e do Cucchiaino (T-012). Cores do app (src/ui/tokens.ts), Poppins servida daqui. */
@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Poppins_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Poppins_600SemiBold.ttf") format("truetype");
}

:root {
  --background: #F8F8F8;
  --surface: #FFFFFF;
  --surface-muted: #EDEDED;
  --text: #1F1F1F;
  --text-muted: #5C5C5C;
  --primary: #007E65;
  --brand: #00B490;
  --primary-soft: #F0FAF7;
  --info-bg: #E4F1FB;
  --info-text: #1D4A76;
  --warn-bg: #FFF0E1;
  --warn-text: #8A4300;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #121212;
    --surface: #1E1E1E;
    --surface-muted: #2C2C2C;
    --text: #F2F2F2;
    --text-muted: #B8B8B8;
    --primary: #3FD3B2;
    --primary-soft: #123A31;
    --info-bg: #18293A;
    --info-text: #A9CBF0;
    --warn-bg: #3A2614;
    --warn-text: #F7C08A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Poppins", system-ui, sans-serif;
}
.wrap { max-width: 42rem; margin: 0 auto; padding: 0 1rem; }

a { color: var(--primary); text-underline-offset: 0.18em; }
a:focus-visible, .skip:focus { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--surface-muted); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.875rem; padding-bottom: 0.875rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.mark { width: 1.75rem; height: 1.75rem; color: var(--brand); }
.site-header ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.site-header nav a { display: inline-block; padding: 0.25rem 0; font-size: 0.9375rem; color: var(--text); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--primary); text-decoration: underline; }

main { padding-top: 1.5rem; padding-bottom: 3rem; }
h1 { font-weight: 600; font-size: 2rem; line-height: 1.2; margin: 1.25rem 0 1rem; }
h2 { font-weight: 600; font-size: 1.3125rem; line-height: 1.3; margin: 2.5rem 0 0.75rem; }
h3 { font-weight: 600; font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
li { margin-bottom: 0.375rem; }
.lead { font-size: 1.1875rem; color: var(--text-muted); }

.draft { background: var(--info-bg); color: var(--info-text); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.9375rem; margin: 0; }
.todo { background: var(--warn-bg); color: var(--warn-text); border-radius: 6px; padding: 0 0.3em; font-size: 0.9em; overflow-wrap: anywhere; }

.toc { background: var(--surface); border-radius: var(--radius); padding: 1rem 1.25rem 0.5rem; margin: 1.5rem 0; }
.toc h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.toc ol { padding-left: 1.25rem; }

.card { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.card > :last-child { margin-bottom: 0; }
.soft { background: var(--primary-soft); }
dl.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.5rem 1.25rem; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) { dl.facts { grid-template-columns: 1fr; gap: 0.125rem; } dl.facts dd { margin-bottom: 0.625rem; } }
.steps { padding-left: 1.5rem; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 0; list-style: none; }
.stores li { background: var(--surface); border-radius: 999px; padding: 0.625rem 1.25rem; font-weight: 600; }

.site-footer { border-top: 1px solid var(--surface-muted); background: var(--surface); padding: 1.5rem 0 2rem; font-size: 0.875rem; color: var(--text-muted); }
.site-footer ul { margin-bottom: 0.75rem; }
.site-footer a { color: var(--text-muted); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
html { scroll-behavior: smooth; }
.site-header li, .site-footer li { margin: 0; }
