/* Fontes servidas pelo próprio site (subconjunto latino, woff2, licença SIL OFL 1.1) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-600-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4efe6;
  --paper-hi: #fffdf9;
  --ink: #1f2a24;
  --ink-soft: #5b665f;
  --pine: #2f5d4a;
  --pine-deep: #244a3a;
  --clay: #c8643b;
  --rule: #e2d9c9;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(40px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

.sheet {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: settle .5s ease-out both;
}

.intro { display: flex; flex-direction: column; align-items: center; text-align: center; }

.portrait {
  display: block;
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--clay);
  background: var(--rule);
}

.intro-name {
  margin: 22px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.intro-tag {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.intro-motto {
  margin: 12px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-synthesis: none;
  font-size: 1.05rem;
  color: var(--clay);
}

.actions { display: grid; gap: 10px; }

.pill {
  display: block;
  padding: 15px 18px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.pill:active { transform: translate(2px, 2px); }

.pill--solid {
  color: var(--paper-hi);
  background: var(--pine);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.pill--solid:hover, .pill--solid:focus-visible { background: var(--pine-deep); }

.pill--line {
  color: var(--ink);
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
}
.pill--line:hover, .pill--line:focus-visible { background: #fbf6ee; }

.icons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  transition: background-color .12s ease, color .12s ease;
}
.icon-link:hover, .icon-link:focus-visible { background: var(--ink); color: var(--paper); }

.colophon {
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: .74rem;
  color: var(--ink-soft);
}
.colophon a { color: inherit; text-underline-offset: 3px; }
.colophon a:hover, .colophon a:focus-visible { color: var(--clay); }

a:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Página de privacidade */
.notice {
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}
.notice-back { font-size: .82rem; color: var(--ink-soft); text-decoration: none; }
.notice-back:hover { color: var(--clay); }
.notice h1 { margin: 18px 0 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.9rem; }
.notice-date { margin: 4px 0 0; font-size: .8rem; color: var(--ink-soft); }
.notice h2 {
  margin: 28px 0 0;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--clay);
}
.notice p, .notice li { font-size: .95rem; color: #2e3a33; }
.notice p { margin: 8px 0 0; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }
.notice li + li { margin-top: 4px; }
.notice a { color: var(--pine); }

/* Aviso do navegador interno */
.bridge {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(31, 42, 36, .45);
  animation: appear .18s ease-out both;
}
.bridge[hidden], .bridge-fallback[hidden] { display: none; }

.bridge-card {
  width: 100%;
  max-width: 400px;
  padding: 22px 20px 20px;
  text-align: center;
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--clay);
}

.bridge-dots { display: flex; justify-content: center; gap: 6px; }
.bridge-dots i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pine);
  animation: blink 1s infinite ease-in-out;
}
.bridge-dots i:nth-child(2) { animation-delay: .15s; }
.bridge-dots i:nth-child(3) { animation-delay: .3s; }

.bridge-msg { margin: 14px 0 0; font-weight: 700; font-size: .95rem; }
.bridge-fallback { margin-top: 16px; }
.bridge-tip { margin: 10px 0 0; font-size: .76rem; color: var(--ink-soft); }

@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
