/* Ana Dicas | link na bio
   Layout: coluna única centralizada (largura de celular), perfil, links, guias, sobre, rodapé.
   Paleta: verde-erva + amarelo-gema sobre papel levemente esverdeado. */

:root {
  --bg: #f4f6f1;
  --surface: #ffffff;
  --ink: #1f2b25;
  --muted: #5d6b63;
  --line: #dde3da;
  --accent: #2f6b4f;
  --accent-ink: #ffffff;
  --yolk: #e9b949;
  --yolk-soft: #fbefcc;
  --berry: #b5486a;
  --berry-soft: #f7e1e8;
  --sky-soft: #e1ecf2;
  --sky: #2f6c8f;
  --shadow: 0 1px 2px rgba(31, 43, 37, 0.06), 0 6px 18px rgba(31, 43, 37, 0.06);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131a16;
    --surface: #1c2520;
    --ink: #eef2ec;
    --muted: #a7b4ab;
    --line: #2c3832;
    --accent: #6fbf95;
    --accent-ink: #0f1a14;
    --yolk: #f0c867;
    --yolk-soft: #3a3220;
    --berry: #e78aa8;
    --berry-soft: #3a2229;
    --sky-soft: #1f2e37;
    --sky: #8cc3e0;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131a16;
  --surface: #1c2520;
  --ink: #eef2ec;
  --muted: #a7b4ab;
  --line: #2c3832;
  --accent: #6fbf95;
  --accent-ink: #0f1a14;
  --yolk: #f0c867;
  --yolk-soft: #3a3220;
  --berry: #e78aa8;
  --berry-soft: #3a2229;
  --sky-soft: #1f2e37;
  --sky: #8cc3e0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--yolk);
  outline-offset: 3px;
  border-radius: 10px;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding-block: 40px 32px;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Perfil */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(var(--yolk), var(--accent), var(--berry), var(--yolk));
  margin-bottom: 8px;
}
.avatar svg,
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg);
  object-fit: cover;
}
.avatar-bg { fill: var(--accent); }
.avatar-letter {
  fill: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 54px;
}

.name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.handle {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.bio {
  margin: 6px 0 0;
  max-width: 34ch;
  color: var(--muted);
}

.tags {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.tags li {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 68px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.link:hover { transform: translateY(-2px); border-color: var(--accent); }
.link:active { transform: translateY(0); }

.link-main {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.link-main .link-text small { color: inherit; opacity: 0.85; }
.link-main .link-icon { background: rgba(255, 255, 255, 0.18); color: inherit; }
.link-main:hover { border-color: var(--yolk); }

.link-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--yolk-soft);
  color: var(--accent);
}
.link-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link-icon svg .dot { fill: currentColor; stroke: none; }

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.link-text strong { font-size: 1rem; }
.link-text small { color: var(--muted); font-size: 0.85rem; }

.link-arrow {
  flex: none;
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.6;
}

/* Divisor em corrente de crochê */
.stitch {
  width: 100%;
  height: 16px;
  color: var(--line);
}
.stitch ellipse {
  fill: none;
  stroke: var(--accent);
  stroke-opacity: 0.45;
  stroke-width: 1.6;
}

/* Seções */
.section h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  text-wrap: balance;
}
.section-lead {
  margin: 0 0 16px;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
}
.card p { margin: 0; color: var(--muted); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.cat-receitas { background: var(--yolk-soft); color: var(--ink); }
.cat-croche { background: var(--sky-soft); color: var(--sky); }
.cat-doces { background: var(--berry-soft); color: var(--berry); }

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}

.card-meta {
  list-style: none;
  margin: 2px 0 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.card-meta li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}

.card-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.card-btn:hover { background: var(--accent); color: var(--accent-ink); }

/* Sobre */
.about p { margin: 0 0 14px; color: var(--muted); }

.share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.share svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share.is-done { border-color: var(--accent); color: var(--accent); }

/* Rodapé */
.footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer p { margin: 4px 0; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 8px;
}
.footer-links a { color: var(--muted); }
.disclaimer { font-size: 0.72rem; opacity: 0.85; }

/* Entrada suave (só quando o JS estiver ativo) */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .link, .card-btn, .js .reveal { transition: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Página de privacidade */
.legal h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 4px;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 24px 0 6px;
}
.legal p, .legal li { color: var(--muted); }
.legal .back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
