/* lychnos.app · identidade Mármore do app (docs/design-v2.md): pergaminho e azul-noite, ouro, mar em camadas, grão */
@font-face { font-family: "Crimson Pro"; src: url(/fonts/CrimsonPro-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/fonts/CormorantGaramond-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/fonts/CormorantGaramond-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(/fonts/CormorantGaramond-Italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/DMSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/fonts/DMSans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "GFS Didot"; src: url(/fonts/GFSDidot-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --fundo: #EEE5D3;
  --superficie: #E2D5B9;
  --tinta: #162033;
  --secundario: #4A546B;
  --ouro: #6C5022;
  --mar: #2F4E6B;
  --oliva: #4F6152;
  --chama: #EFAF55;
  --lamp: #4F6152;
  --fio: rgba(108, 80, 34, .25);
  --cartao: rgba(255, 255, 255, .28);
  --grao: .07;
  --grao-modo: multiply;
  --sombra: 0 18px 50px rgba(22, 32, 51, .18);
  --serif: "Crimson Pro", "Cormorant Garamond", Georgia, serif;
  --citacao: "Cormorant Garamond", Georgia, serif;
  --ui: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #162033;
    --superficie: #22314A;
    --tinta: #EEE5D3;
    --secundario: #A9B4C4;
    --ouro: #D4B177;
    --mar: #8FB0CC;
    --oliva: #8FA08F;
    --lamp: #9FB2A2;
    --fio: rgba(212, 177, 119, .25);
    --cartao: rgba(34, 49, 74, .55);
    --grao: .05;
    --grao-modo: screen;
    --sombra: 0 18px 50px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font: 400 17px/1.6 var(--ui);
  position: relative;
  overflow-x: hidden;
}
/* Grão de papel em todo o fundo, como no app */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url(/img/grao.png) repeat;
  background-size: 256px;
  opacity: var(--grao);
  mix-blend-mode: var(--grao-modo);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-color-scheme: dark) {
  body { background: linear-gradient(180deg, var(--fundo) 0%, var(--superficie) 140%) fixed; }
}
main, header, footer { position: relative; z-index: 1; }

a { color: var(--ouro); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--tinta); color: var(--fundo); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------- topo ---------------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: 18px 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; font: 500 24px/1 var(--citacao); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.top-link { font: 500 14px/1 var(--ui); color: var(--tinta); text-decoration: none; letter-spacing: .02em; }
.top-link:hover { text-decoration: underline; }
.langs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--fio); border-radius: 999px; }
.langs a {
  font: 500 12px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--secundario);
  text-decoration: none; padding: 7px 10px; border-radius: 999px; min-height: 30px; display: inline-flex; align-items: center;
}
.langs a[aria-current="page"] { background: var(--tinta); color: var(--fundo); }
@media (max-width: 400px) {
  .top-right { gap: 12px; }
  .langs a { padding: 7px 8px; }
}

/* ---------------- lamparina ---------------- */
.lamp { display: block; }
.lamp-sm { width: auto; height: 26px; }
.lamp-hero { margin: 0 auto 8px; width: 150px; height: auto; }

/* ---------------- hero ---------------- */
.hero { position: relative; text-align: center; padding: 56px 20px 210px; overflow: hidden; }
.hero-in { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.kicker { font: 500 13px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ouro); margin: 18px 0 6px; }
.hero h1 { font: 500 clamp(56px, 11vw, 96px)/1 var(--serif); margin: 0; letter-spacing: .005em; }
.hero-sub { font: italic 400 clamp(26px, 4.6vw, 38px)/1.2 var(--citacao); margin: 14px auto 0; max-width: 18em; }
.lead { font-size: 18px; color: var(--secundario); max-width: 36em; margin: 20px auto 0; }
.soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 30px 0 0; }
.pill {
  font: 500 13px/1 var(--ui); letter-spacing: .04em; padding: 11px 16px; border-radius: 999px;
  border: 1px solid var(--ouro); color: var(--tinta);
}
.soon-text { flex-basis: 100%; font-size: 14px; color: var(--secundario); }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; }

/* ---------------- seções ---------------- */
.section { padding: 72px 20px; }
.wide { max-width: 1080px; margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }
/* Títulos, subtítulos e frases curtas com linhas equilibradas: quase a mesma largura, sem palavra sozinha na
   última linha (regra do app, 05/10/2026). Não vale para citações nem para os textos legais. */
h1, h2, h3, .hero-sub, .lead, .kicker, .eyebrow, .tag, .soon-text, .name-note, .day-meta, summary, figcaption, .note { text-wrap: balance; }
h2 { font: 500 clamp(30px, 4.6vw, 42px)/1.15 var(--serif); margin: 0 0 28px; }
h3 { font: 500 23px/1.25 var(--serif); margin: 0 0 8px; }
.eyebrow { font: 500 13px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ouro); margin: 0 0 10px; }
.card {
  background: var(--cartao); border: 1px solid var(--fio); border-radius: 22px; padding: 26px 26px 24px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.card p { margin: 0; color: var(--secundario); }
.card.plain p + p { margin-top: 14px; }
.two { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; } }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* amostra do dia */
.day { padding-top: 40px; }
.day-meta { margin: 0 0 22px; color: var(--secundario); font-size: 15px; }
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote blockquote p { font: italic 400 clamp(26px, 4.2vw, 34px)/1.3 var(--citacao); margin: 0; }
.quote figcaption { margin-top: 14px; font: 500 17px/1.3 var(--serif); color: var(--ouro); }
.original { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--fio); }
.label { font: 500 12px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ouro); margin: 0 0 8px; }
.orig-text { font: italic 400 22px/1.45 var(--citacao); margin: 0; }
.orig-text[lang="grc"] { font: 400 22px/1.5 "GFS Didot", var(--citacao); }
.orig-tr { margin: 10px 0 0; color: var(--secundario); font-size: 16px; }
.name-note { margin: 36px 0 0; font-size: 15px; color: var(--secundario); }

/* manhã e noite: a noite é sempre azul-noite, como a aba Reflexão */
.card.evening { background: #162033; border-color: rgba(212, 177, 119, .3); color: #EEE5D3; position: relative; overflow: hidden; }
.card.evening p { color: #A9B4C4; }
.card.evening::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 175, 85, .22), rgba(239, 175, 85, 0) 70%); pointer-events: none;
}

/* capturas */
.screens-sec { padding-left: 0; padding-right: 0; }
.screens-sec .wide { padding: 0 20px; }
.screens {
  display: flex; gap: 22px; overflow-x: auto; padding: 8px 20px 26px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--fio) transparent;
}
/* centrada quando cabe, sem cortar o começo quando não cabe */
.shot:first-child { margin-left: auto; }
.shot:last-child { margin-right: auto; }
.shot { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: center; }
.shot img { width: 220px; height: auto; border-radius: 30px; box-shadow: var(--sombra); border: 1px solid var(--fio); }
.shot figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--secundario); }

/* listas com marca "v" do app */
.checks { list-style: none; padding: 0; margin: 0 0 18px; }
.checks li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--tinta); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px;
  border-left: 1.6px solid var(--ouro); border-bottom: 1.6px solid var(--ouro); transform: rotate(-48deg);
}
.ai { display: flex; flex-direction: column; justify-content: center; }

/* preços */
.price h3 { font-size: 27px; }
.price .tag { color: var(--ouro); font: 500 14px/1.4 var(--ui); margin: 0 0 6px; }
.price.complete { border-color: var(--ouro); }
.note { margin: 18px 0 0; font-size: 14px; color: var(--secundario); text-align: center; }

/* perguntas */
.faq { border-top: 1px solid var(--fio); margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--fio); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font: 500 20px/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.6px solid var(--ouro); border-bottom: 1.6px solid var(--ouro); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 20px; color: var(--secundario); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* páginas internas */
.page { padding: 40px 20px 80px; }
.page h1 { font: 500 clamp(38px, 6vw, 52px)/1.1 var(--serif); margin: 10px 0 14px; }
.page .lead { margin: 0 0 34px; text-align: left; }
.page h2 { font-size: 28px; margin: 44px 0 12px; }
.page h3 { margin-top: 26px; }
.legal p, .legal li { color: var(--tinta); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.toc { margin: 26px 0 8px; padding: 18px 22px; border: 1px solid var(--fio); border-radius: 18px; background: var(--cartao); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc li { margin: 4px 0; break-inside: avoid; }
.table { overflow-x: auto; margin: 18px 0; border: 1px solid var(--fio); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--fio); vertical-align: top; }
th { font-weight: 500; color: var(--ouro); }
tr:last-child td { border-bottom: 0; }
.notfound { text-align: center; }
.notfound div[lang] { margin: 22px 0; }
.notfound h1 { font-size: 34px; }

/* ---------------- rodapé ---------------- */
.foot { border-top: 1px solid var(--fio); padding: 34px 20px 46px; margin-top: 20px; }
.foot-in { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { font-size: 14px; color: var(--tinta); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--secundario); }
@media (prefers-color-scheme: dark) { .card.evening { background: #22314A; } }
