/* Dane Delattre design system · dd.css v1 (eng-1099, 01/11). Reference + copy rules: https://ds.danedelattre.com/sistema/
   Daniel's pick (01/11 ~17:00): 3b2 "jornal". Warm newsprint, ink, Instrument Serif, DM Sans + DM Mono, double rules,
   square ink buttons, and the volt ONLY as a marker behind words (volt text on paper fails contrast).
   Brand idea: "Eu peço, meu agente faz: ao vivo, com a tela e o número de verdade." Real proof is the signature.
   LANGUAGE IS PART OF THE SYSTEM: run copy.md's checklist and `python3 dd-lint.py page.html` before shipping anything.
   There are NO eyebrow/tag/badge/pill classes on purpose. The only small mono line is .dd-source: where a number came from and when.
   FAVICON: none until Daniel picks one (01/11: the drawn one was "AI slop", then "pode tirar essa porcaria"). Pages declare
   <link rel="icon" href="data:,"> so the browser doesn't ask for one.
   Use: <link rel="stylesheet" href="https://ds.danedelattre.com/dd.css"> + <body class="dd">. Prefixed (--dd-*, .dd-*) so it can
   sit beside a page's old CSS while it migrates.
   PRODUCT ACCENT: set --dd-accent on the page; it is the marker behind words, never text color. Allowed (all ≥ 4.5:1 with ink):
   volt #D5EF8A (default, the brand) · coral #FFD2C2 · céu #CFE3FF · areia #F3E2A6 · lilás #E3D7FF. */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:opsz,wght@9..40,400..700&family=DM+Mono:wght@400;500&display=swap");

:root {
  /* color */
  --dd-paper: #EFEEE9; --dd-surface: #E4E2DA; --dd-white: #FFFFFF;
  --dd-ink: #0F0F0E; --dd-ink2: #42413C; --dd-ink3: #57564F; --dd-line: rgba(15, 15, 14, .3); --dd-hair: rgba(15, 15, 14, .16);
  --dd-volt: #D5EF8A; --dd-accent: var(--dd-volt);
  --dd-ok: #2E6B2F; --dd-err: #A3261B;
  --dd-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  /* type */
  --dd-serif: "Instrument Serif", Georgia, serif; --dd-sans: "DM Sans", system-ui, sans-serif; --dd-mono: "DM Mono", ui-monospace, Menlo, monospace;
  --dd-t-display: clamp(46px, 11.5vw, 92px); --dd-t-h2: clamp(32px, 7vw, 58px); --dd-t-h3: 26px; --dd-t-num: clamp(68px, 17vw, 112px);
  --dd-t-lead: 18px; --dd-t-body: 17px; --dd-t-small: 14px; --dd-t-source: 11px;
  /* space (4 px base), radius (square: it's a newspaper), layout, motion */
  --dd-s1: 4px; --dd-s2: 8px; --dd-s3: 12px; --dd-s4: 16px; --dd-s5: 20px; --dd-s6: 24px; --dd-s8: 32px; --dd-s10: 40px; --dd-s12: 48px; --dd-s16: 64px; --dd-s22: 88px;
  --dd-r: 0; --dd-max: 1180px; --dd-gutter: 20px;
  --dd-ease: cubic-bezier(.2, .8, .2, 1); --dd-fast: .15s;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --dd-gutter: 40px; } }

/* base */
.dd, .dd * { box-sizing: border-box; }
.dd { margin: 0; background: var(--dd-grain), var(--dd-paper); color: var(--dd-ink); font: 400 var(--dd-t-body)/1.55 var(--dd-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.dd :where(h1, h2, h3, p, ul, ol, blockquote, figure, pre) { margin: 0; padding: 0; }
:where(.dd) img { display: block; max-width: 100%; height: auto; }
:where(.dd) a { color: inherit; text-underline-offset: 3px; }   /* zero specificity: components (.dd-btn …) always win */
.dd [hidden] { display: none !important; }   /* any display rule would otherwise beat [hidden] (the 'Entrando…' bug) */
.dd :focus-visible { outline: 2px solid var(--dd-ink); outline-offset: 3px; }
.dd-wrap { max-width: var(--dd-max); margin: 0 auto; padding: 0 var(--dd-gutter); }

/* type */
.dd-display { margin: 0 0 18px; font: 400 var(--dd-t-display)/.96 var(--dd-serif); letter-spacing: -.02em; text-wrap: balance; }
.dd-h2 { margin: 0 0 16px; font: 400 var(--dd-t-h2)/1 var(--dd-serif); letter-spacing: -.02em; text-wrap: balance; }
.dd-h3 { font: 400 var(--dd-t-h3)/1.1 var(--dd-serif); }
.dd-lead { max-width: 32em; color: var(--dd-ink2); font-size: var(--dd-t-lead); }
.dd-p { max-width: 36em; color: var(--dd-ink2); }
/* the dateline: ONLY where a number/screen came from and when ("AbacatePay · lido há 41 min"). Never a section tag. */
.dd-source { display: block; padding-top: 8px; border-top: 1px solid var(--dd-ink); color: var(--dd-ink2); font: 400 var(--dd-t-source)/1.4 var(--dd-mono); letter-spacing: .05em; text-transform: uppercase; }
/* the marker: the one place the accent touches type; it follows the words, not the box */
.dd-mark { font-style: italic; text-decoration: underline; text-decoration-color: var(--dd-accent); text-decoration-thickness: .42em; text-underline-offset: -.3em; text-decoration-skip-ink: none; }

/* buttons: square ink */
.dd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 0; background: var(--dd-ink); color: var(--dd-paper); text-decoration: none; font: 600 16px/1 var(--dd-sans); cursor: pointer; transition: transform var(--dd-fast) var(--dd-ease); }
.dd-btn:hover { transform: translateY(-1px); }
.dd-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.dd-btn--line { background: transparent; color: var(--dd-ink); box-shadow: inset 0 0 0 1px var(--dd-ink); }
.dd-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* nav: the masthead */
.dd-nav { position: sticky; top: 0; z-index: 30; background: var(--dd-paper); border-bottom: 4px double var(--dd-ink); }
.dd-nav .dd-wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.dd-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--dd-serif); }
.dd-nav a:not(.dd-brand) { font-size: 15px; }

/* sections */
.dd-hero { padding: var(--dd-s10) 0 var(--dd-s16); border-bottom: 1px solid var(--dd-line); }
.dd-section { padding: var(--dd-s16) 0; border-bottom: 1px solid var(--dd-line); }

/* proof: the scoreboard (one big real number + rows) */
.dd-num { margin: 10px 0 6px; font: 400 var(--dd-t-num)/1 var(--dd-serif); letter-spacing: -.02em; }
.dd-num small { margin-right: 8px; font-size: .38em; font-style: italic; color: var(--dd-ink2); }
.dd-meta { color: var(--dd-ink2); font: 400 12px/1.4 var(--dd-mono); }
.dd-rows { list-style: none; margin-top: 18px; border-top: 2px solid var(--dd-ink); }
.dd-rows li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 13px 0; border-bottom: 1px dotted var(--dd-line); }
.dd-rows b { font: 400 22px/1.1 var(--dd-serif); } .dd-rows span { grid-row: 2; color: var(--dd-ink3); font-size: 13px; }
.dd-rows i { grid-row: 1 / 3; align-self: center; font: 400 15px/1 var(--dd-mono); font-style: normal; }

/* proof: a chart of real data (<i style="--d:VALUE">, the container sets --dd-max; .is-on = the days that matter) */
.dd-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin: 14px 0 10px; border-bottom: 1px solid var(--dd-ink); }
.dd-bars i { flex: 1 1 0; min-width: 0; min-height: 2px; height: calc(var(--d) / var(--dd-max, 100) * 100%); background: color-mix(in srgb, var(--dd-ink) 16%, transparent); }
.dd-bars i.is-on { background: var(--dd-ink); }

/* his words */
.dd-quote blockquote { max-width: 22em; font: 400 clamp(28px, 6.4vw, 46px)/1.1 var(--dd-serif); text-wrap: pretty; }
.dd-quote cite { display: block; margin-top: 14px; color: var(--dd-ink2); font: 400 12px/1.3 var(--dd-mono); font-style: normal; text-transform: uppercase; letter-spacing: .05em; }

/* checkout: the only place a price appears (Camily's rule) */
.dd-checkout { max-width: 460px; }
.dd-price { margin: 6px 0 20px; font: 400 48px/1 var(--dd-serif); } .dd-price small { display: block; margin-top: 6px; color: var(--dd-ink2); font: 400 12px/1 var(--dd-mono); }
.dd-form { display: grid; gap: 4px; }
.dd-form input { width: 100%; min-height: 52px; padding: 0; border: 0; border-bottom: 1px solid var(--dd-ink); border-radius: 0; background: transparent; color: var(--dd-ink); font: 400 17px/1 var(--dd-sans); }
.dd-form input::placeholder { color: var(--dd-ink3); } .dd-form input:focus { outline: none; border-bottom-width: 2px; }
.dd-form .dd-btn { width: 100%; margin-top: 16px; }
.dd-err { min-height: 1.4em; margin-top: 10px; color: var(--dd-err); font-size: 15px; }
.dd-ok { padding: 16px; background: var(--dd-accent); font-weight: 600; }
.dd-pay { display: grid; justify-items: center; gap: 12px; margin-top: 8px; }
.dd-pay .dd-qr { width: 240px; height: 240px; padding: 12px; background: var(--dd-white); border: 1px solid var(--dd-ink); }
.dd-copy { display: flex; gap: 8px; width: 100%; } .dd-copy input { flex: 1; min-width: 0; min-height: 50px; padding: 0 12px; border: 1px solid var(--dd-ink); background: var(--dd-white); font: 400 14px/1 var(--dd-mono); }
.dd-fine { margin-top: 12px; color: var(--dd-ink3); font-size: 12px; }

/* FAQ + footer */
.dd-faq details { padding: 16px 0; border-bottom: 1px dotted var(--dd-line); }
.dd-faq details:first-child { border-top: 2px solid var(--dd-ink); }
.dd-faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font: 400 22px/1.2 var(--dd-serif); }
.dd-faq summary::-webkit-details-marker { display: none; } .dd-faq summary::after { content: "+"; font: 400 18px/1 var(--dd-mono); }
.dd-faq details[open] summary::after { content: "–"; } .dd-faq details p { margin-top: 8px; color: var(--dd-ink2); }
.dd-footer { padding: 26px 0 44px; border-top: 4px double var(--dd-ink); color: var(--dd-ink2); font: italic 400 20px/1.3 var(--dd-serif); }

/* formats: ad 1080x1350, story 1080x1920 (Meta's safe band: 250 top, 340 bottom), deck slide 1920x1080. A masthead rule on top. */
.dd-ad, .dd-story { position: relative; width: 1080px; display: flex; flex-direction: column; background: var(--dd-grain), var(--dd-paper); color: var(--dd-ink); overflow: hidden;
  box-shadow: inset 0 22px 0 var(--dd-ink), inset 0 30px 0 var(--dd-paper), inset 0 34px 0 var(--dd-ink); }
.dd-ad { height: 1350px; padding: 110px 90px 100px; } .dd-story { height: 1920px; padding: 270px 90px 380px; }
.dd-ad .dd-source, .dd-story .dd-source { font-size: 26px; padding-top: 14px; }
.dd-ad .dd-big, .dd-story .dd-big { margin-top: 70px; font: 400 250px/.9 var(--dd-serif); letter-spacing: -.03em; white-space: nowrap; }
.dd-ad .dd-big small, .dd-story .dd-big small { margin-right: 16px; font-size: .3em; font-style: italic; color: var(--dd-ink2); }
.dd-ad .dd-sub, .dd-story .dd-sub { margin-top: 30px; font: 400 84px/1.05 var(--dd-serif); }
.dd-ad footer, .dd-story footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 4px double var(--dd-ink); }
.dd-ad .dd-brand, .dd-story .dd-brand { font-size: 52px; } .dd-ad footer span:last-child, .dd-story footer span:last-child { font: 400 26px/1 var(--dd-mono); }
.dd-slide { width: 1920px; height: 1080px; display: grid; place-items: center; padding: 90px; background: var(--dd-grain), var(--dd-paper); color: var(--dd-ink); box-shadow: inset 0 0 0 40px var(--dd-paper), inset 0 0 0 44px var(--dd-ink); }
.dd-slide h1 { max-width: 1600px; text-align: center; font: 400 170px/1 var(--dd-serif); letter-spacing: -.02em; }
.dd-slide img { max-width: 100%; max-height: 100%; }

/* stream overlay (1920x1080 over the live picture): newsprint panels with a double rule, the ticker in ink */
.dd-overlay { position: relative; width: 1920px; height: 1080px; overflow: hidden; color: var(--dd-ink); font-family: var(--dd-sans); }
.dd-overlay .dd-live { position: absolute; left: 48px; top: 40px; padding: 10px 14px; background: var(--dd-ink); color: var(--dd-paper); font: 500 24px/1 var(--dd-mono); text-transform: uppercase; }
.dd-overlay .dd-count { position: absolute; right: 48px; top: 40px; padding: 16px 24px; background: var(--dd-paper); border-top: 4px double var(--dd-ink); text-align: right; }
.dd-overlay .dd-count .dd-source { border: 0; padding: 0; font-size: 16px; } .dd-overlay .dd-count b { display: block; margin-top: 6px; font: 400 76px/1 var(--dd-serif); }
.dd-overlay .dd-l3 { position: absolute; left: 48px; bottom: 140px; padding: 14px 26px; background: var(--dd-paper); border-top: 4px double var(--dd-ink); }
.dd-overlay .dd-l3 b { display: block; font: 400 46px/1.05 var(--dd-serif); } .dd-overlay .dd-l3 span { font: italic 400 30px/1.2 var(--dd-serif); }
.dd-overlay .dd-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 72px; display: flex; align-items: center; gap: 70px; padding: 0 48px; background: var(--dd-ink); color: var(--dd-paper); font: 500 22px/1 var(--dd-mono); text-transform: uppercase; white-space: nowrap; overflow: hidden; }

/* email (600 px preview; real sends stay plain text until an HTML send is approved) */
.dd-email { max-width: 600px; margin: 0 auto; padding: 30px 30px; background: var(--dd-grain), var(--dd-paper); color: var(--dd-ink); font: 400 16px/1.65 var(--dd-sans); }
.dd-email header { padding-bottom: 14px; margin-bottom: 22px; border-bottom: 4px double var(--dd-ink); }
.dd-email .dd-subj { margin-bottom: 16px; font: 400 34px/1 var(--dd-serif); } .dd-email p { margin: 0 0 14px; }
.dd-email a { color: var(--dd-ink); font-weight: 600; } .dd-email .dd-sig { font: italic 400 26px/1 var(--dd-serif); }
.dd-email footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--dd-ink); color: var(--dd-ink3); font: 400 12px/1.5 var(--dd-mono); }

@media (prefers-reduced-motion: reduce) { .dd * { transition: none !important; animation: none !important; } }
