/* Karla — arte abstrata original. Telemóvel primeiro, sem dependências. */
:root {
  --tinta: #3b2a20;
  --suave: #6a5243;
  --linha: #e2d3c1;
  --fundo: #f7f0e7;
  --papel: #efe3d4;
  --ouro: #a2482d;
  --erro: #a1261b;
  --ok: #2c5e2e;
  --serif: "EB Garamond", "Cormorant Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --margem: clamp(1.25rem, 5vw, 3.5rem);
  --largura: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--tinta);
  font: 400 1.0625rem/1.7 var(--sans); font-feature-settings: "kern", "liga";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--ouro); }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }
.contentor { max-width: var(--largura); margin: 0 auto; padding: 0 var(--margem); }
.estreito { max-width: 46rem; }
.saltar { position: absolute; left: -999px; top: .5rem; background: var(--tinta); color: #fff; padding: .6rem 1rem; z-index: 10; }
.saltar:focus { left: .5rem; color: #fff; }
.so-leitor { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Cabeçalho */
.topo { border-bottom: 1px solid var(--linha); }
.topo .contentor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.marca { font-family: var(--serif); font-size: 1.9rem; text-decoration: none; letter-spacing: .02em; line-height: 1; }
.marca small { display: block; font-family: var(--sans); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--suave); margin-top: .35rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.nav a, .linguas summary { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; display: inline-block; padding: .55rem 0; min-height: 44px; line-height: 2; }
.nav a[aria-current] { border-bottom: 1px solid var(--tinta); }
.linguas { position: relative; }
.linguas summary { cursor: pointer; list-style: none; }
.linguas summary::-webkit-details-marker { display: none; }
.linguas summary::after { content: " ▾"; }
.linguas ul { position: absolute; right: 0; z-index: 5; background: #fff; border: 1px solid var(--linha); box-shadow: 0 12px 30px -12px rgba(0,0,0,.25); list-style: none; margin: .25rem 0 0; padding: .5rem; columns: 2; column-gap: .5rem; width: min(22rem, 86vw); }
.linguas li a { display: block; padding: .45rem .6rem; text-decoration: none; font-size: .92rem; }
.linguas li a[aria-current="true"] { background: var(--papel); font-weight: 600; }

/* Secções */
main { display: block; }
.secao { padding: clamp(3rem, 9vw, 7rem) 0; }
.secao + .secao { padding-top: 0; }
.kicker { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--suave); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--suave); max-width: 38rem; }

/* Obra como tela numa parede branca */
.tela { background: var(--fundo); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 22px 45px -24px rgba(0,0,0,.45); }
.zoom { display: block; cursor: zoom-in; }

/* Início */
.heroi { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: clamp(2rem, 6vw, 5rem); }
.heroi .legenda h2 { margin-bottom: .3em; }
@media (min-width: 900px) { .heroi { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.frase { padding: clamp(4rem, 12vw, 9rem) 0; text-align: center; background: var(--papel); }
.frase blockquote { margin: 0 auto; max-width: 44rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 4.2vw, 2.6rem); line-height: 1.3; }
.frase cite { display: block; margin-top: 1.5rem; font: normal .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--suave); }

/* Grelha de obras */
.grelha { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem); list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .grelha { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cartao a { text-decoration: none; display: block; }
.cartao h3 { margin: 1.3rem 0 .2rem; }
.cartao .meta { color: var(--suave); font-size: .95rem; margin: 0; }

/* Página da obra */
.migalhas ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1.5rem 0 0; font-size: .82rem; color: var(--suave); }
.migalhas li + li::before { content: "/"; margin-right: .3rem; }
.obra { display: grid; gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 960px) {
  .obra { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); align-items: start; }
  .obra .ficha-lateral { position: sticky; top: 1.5rem; }
}
.original { color: var(--suave); font-style: italic; font-family: var(--serif); font-size: 1.15rem; margin-top: -.4em; }
.preco { font-family: var(--serif); font-size: 2.1rem; margin: .4rem 0 0; line-height: 1.1; }
.preco small { font-family: var(--sans); font-size: .82rem; color: var(--suave); margin-left: .4rem; }
.estado { display: inline-block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; border: 1px solid currentColor; padding: .2rem .6rem; margin: .8rem 0 1.2rem; }
.estado-vendida { color: var(--erro); }
.notas { list-style: none; padding: 0; margin: 1.3rem 0; font-size: .95rem; color: var(--suave); }
.notas li { padding: .55rem 0; border-top: 1px solid var(--linha); }
dl.ficha { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.3rem; margin: 1.6rem 0; font-size: .97rem; }
dl.ficha dt { color: var(--suave); }
dl.ficha dd { margin: 0; }
.descricao { font-size: 1.1rem; }
.pormenores { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .pormenores { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pormenores img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.dupla { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .dupla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--suave); margin-top: .6rem; }

/* Botões e formulário */
.botao, details.pedido > summary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .9rem 1.7rem;
  background: var(--tinta); color: #fff; border: 1px solid var(--tinta); border-radius: 0; cursor: pointer;
  font: 600 .8rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
}
.botao:hover, details.pedido > summary:hover { background: #000; color: #fff; }
.botao.claro { background: transparent; color: var(--tinta); }
.botao.claro:hover { background: var(--tinta); color: #fff; }
details.pedido > summary { list-style: none; width: 100%; }
details.pedido > summary::-webkit-details-marker { display: none; }
details.pedido[open] > summary { background: transparent; color: var(--tinta); }
form.formulario { margin-top: 1.4rem; padding: clamp(1.2rem, 4vw, 2rem); background: var(--papel); }
.campo { margin-bottom: 1.15rem; }
.campo label, .campo .rotulo { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .35rem; }
.campo .nota { font-weight: 400; color: var(--suave); }
.campo .ajuda { display: block; font-size: .85rem; color: var(--suave); margin-top: .3rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--tinta); background: #fff;
  border: 1px solid #8a857d; border-radius: 0; padding: .75rem .85rem; min-height: 48px;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--ouro); outline-offset: 0; border-color: var(--ouro); }
[aria-invalid="true"] { border-color: var(--erro) !important; outline-color: var(--erro); }
.consentimento { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .92rem; margin: 1.2rem 0; }
.consentimento input { width: 1.35rem; height: 1.35rem; margin: .15rem 0 0; accent-color: var(--tinta); }
.isco { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.estado-envio { margin-top: 1rem; font-weight: 600; }
.estado-envio.erro { color: var(--erro); }
.sucesso { padding: 1.4rem; background: #fff; border-left: 3px solid var(--ok); font-size: 1.05rem; }

/* Texto longo */
.texto h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.texto p { max-width: 42rem; }
.sobre p { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.5rem); line-height: 1.55; max-width: 38rem; }
.assinatura { font-style: italic; color: var(--suave); }

/* Ampliar */
dialog.lupa { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(255,255,255,.98); }
dialog.lupa::backdrop { background: rgba(255,255,255,.95); }
.lupa .palco { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; }
.lupa img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; cursor: zoom-in; }
.lupa.ampliada img { max-width: none; max-height: none; cursor: zoom-out; }
.lupa .fechar { position: fixed; top: .8rem; right: .8rem; z-index: 2; }

model-viewer { width: 100%; height: 70vh; background: var(--papel); }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); margin-top: clamp(4rem, 10vw, 7rem); padding: 2.5rem 0 3rem; font-size: .85rem; color: var(--suave); }
.rodape ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
.rodape a { display: inline-block; padding: .35rem 0; }
.rodape .discreto { font-size: .75rem; margin-top: 1.5rem; }
.linguas-raiz { columns: 2; list-style: none; padding: 0; }
@media (min-width: 700px) { .linguas-raiz { columns: 3; } }
.linguas-raiz a { display: inline-block; padding: .5rem 0; font-size: 1.15rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print { .topo nav, .linguas, details.pedido, .rodape .discreto { display: none; } }
