@font-face { font-family: "Source Serif Pro"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/serif-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif Pro"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/serif-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif Pro"; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/serif-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Serif Pro"; font-weight: 400; font-style: italic; font-display: swap; src: url(/fonts/serif-400i-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --azul: #1c2029; --slate: #3f5462; --band: #e2e7ed; --areia: #cfbda8; --muted: #5c636b; --paper: #faf9f5; --white: #fff;
  --serif: "Source Serif Pro", Georgia, serif; --sans: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--azul); font-family: var(--serif); font-size: 17px; line-height: 1.5; }
a { color: var(--azul); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }
header.top { border-bottom: 1px solid var(--areia); background: var(--paper); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
header.top img { height: 44px; display: block; }
header.top .who { font-family: var(--sans); font-size: 13px; color: var(--muted); display: flex; gap: 16px; align-items: center; }
header.top button { font: inherit; background: none; border: 0; color: var(--slate); cursor: pointer; text-decoration: underline; padding: 0; }
main { padding: 40px 0 72px; }
h1 { font-weight: 600; font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.eyebrow, .label { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.lede { color: var(--slate); margin: 0 0 32px; }
section.sec { margin: 28px 0 0; }
section.sec h2 { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--slate); background: var(--band); padding: 8px 12px; margin: 0; }
.doc { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 12px; border-bottom: 1px solid var(--areia); text-decoration: none; }
.doc:hover { background: var(--white); }
.doc .idx { font-family: var(--sans); font-weight: 600; font-size: 14px; color: var(--slate); }
.doc .t { font-size: 18px; }
.doc .meta { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 2px; }
.badge { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); background: var(--slate); padding: 3px 8px; border-radius: 2px; white-space: nowrap; }
.empty { color: var(--muted); font-style: italic; padding: 14px 12px; }
.card { background: var(--white); border: 1px solid var(--areia); padding: 32px; max-width: 440px; margin: 48px auto; }
.card h1 { font-size: 26px; }
label { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--slate); margin: 20px 0 6px; }
input[type=email], input[type=text] { width: 100%; font: 17px var(--sans); padding: 12px; border: 1px solid var(--slate); background: var(--white); color: var(--azul); border-radius: 2px; }
input.code { letter-spacing: 0.4em; font-size: 24px; text-align: center; }
.btn { display: inline-block; font: 600 15px var(--sans); background: var(--azul); color: var(--white); border: 0; padding: 12px 20px; border-radius: 2px; cursor: pointer; text-decoration: none; margin-top: 20px; }
.btn.secondary { background: none; color: var(--azul); border: 1px solid var(--azul); }
.actions { text-align: center; }
.err { font-family: var(--sans); font-size: 14px; color: #8a1c1c; margin: 16px 0 0; }
.note { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.terms { background: var(--white); border: 1px solid var(--areia); padding: 28px 32px; }
.terms h2 { font-size: 20px; font-weight: 600; margin: 24px 0 8px; }
.terms p, .terms li { font-size: 16px; }
.docbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
#viewer { background: #e9e7e1; padding: 16px 0; min-height: 60vh; }
#viewer canvas { display: block; margin: 0 auto 16px; max-width: calc(100% - 24px); height: auto; box-shadow: 0 1px 3px rgba(0,0,0,.15); background: var(--white); }
footer.bot { font-family: var(--sans); font-size: 12px; color: var(--muted); border-top: 1px solid var(--areia); padding: 20px 0 40px; }
@media (max-width: 600px) {
  html, body { font-size: 16px; }
  header.top .wrap { height: 60px; } header.top img { height: 36px; }
  .doc { grid-template-columns: 40px 1fr; } .doc .badge { grid-column: 2; justify-self: start; }
  .card { margin: 24px 12px; padding: 24px; } .terms { padding: 20px; }
}
