﻿/* LICA — capa do projeto (paleta Folhetim de rua) */
:root {
  --bg: #f7f0e2;            /* papel de leitura */
  --bg-soft: #ebe0bc;
  --bg-card: #fff8eb;
  --fg: #211a15;            /* tinta sépia-escura */
  --fg-soft: #48372c;
  --muted: #716454;
  --accent: #8f3027;        /* carmim de folhetim */
  --accent-dark: #641f1a;
  --accent-verde: #2f6b45;  /* verde urbano/mata */
  --accent-ouro:  #8a6105;  /* ouro queimado */
  --accent-azul:  #1f5d75;  /* anil */
  --rule: #b8a98a;
  --shadow: 0 1px 2px rgba(34, 29, 24, 0.06), 0 6px 18px rgba(34, 29, 24, 0.10);
  --shadow-hover: 0 2px 4px rgba(34, 29, 24, 0.10), 0 14px 38px rgba(34, 29, 24, 0.20);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { max-width: 68ch; }

/* ---- Hero ---- */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.2em 1.5em 1.2em;
  text-align: left;
}
.hero-top {
  display: flex;
  align-items: center;
  gap: 1.4em;
  flex-wrap: wrap;
}
.logo {
  width: 168px;
  height: 120px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  object-position: center;
}
.brand {
  min-width: 0;
}
.brand h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--accent);
}
.brand-expand {
  font-family: var(--sans);
  font-size: 0.9em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin: 0.3em 0 0;
}
.lead {
  margin: 1.4em 0 0;
  font-size: 1.18em;
  line-height: 1.45;
  max-width: 60ch;
  color: var(--fg);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.lead strong { color: var(--accent-dark); }

/* Parágrafos das seções: justificados como em prosa de livro.
 * Cards/blurbs/footer não — colunas estreitas justificadas ficam feias. */
section p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
}

/* ---- Main ---- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5em 4em;
}

section {
  margin-top: 3em;
  padding-top: 2.4em;
  border-top: 1px solid var(--rule);
}
section h2 {
  font-family: var(--sans);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8em;
}
section p {
  margin: 0 0 0.85em;
  color: var(--fg-soft);
}
section p strong { color: var(--fg); }
section p em { color: var(--accent-dark); font-style: italic; }

/* ---- Shelf (Google Books style) ---- */
.shelf-help {
  font-family: var(--sans);
  font-size: 0.88em;
  color: var(--muted);
  margin-bottom: 1.4em;
}
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6em;
  margin-top: 0.5em;
}

.card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.1em;
  padding: 1.1em;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow);
  color: var(--fg);
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  text-decoration: none;
}
.card-cover {
  width: 130px;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10), inset -2px 0 6px rgba(0,0,0,0.08);
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  min-width: 0;
}
.card-meta h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45em;
  line-height: 1.15;
  color: var(--fg);
}
.card-author {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92em;
  color: var(--fg-soft);
  font-style: italic;
}
.card-year {
  margin: 0 0 0.3em;
  font-family: var(--sans);
  font-size: 0.78em;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.card-blurb {
  margin: 0.2em 0 0.5em;
  font-size: 0.93em;
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: none;
}
.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.7em;
  margin: 0 0 0.5em;
  font-family: var(--sans);
  font-size: 0.78em;
  color: var(--muted);
  max-width: none;
}
.card-stats span {
  background: var(--bg);
  padding: 0.15em 0.55em;
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.card-cta {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 0.86em;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.card:hover .card-cta {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ---- Meta / Footer ---- */
.meta ul {
  font-family: var(--sans);
  font-size: 0.93em;
  padding-left: 1.2em;
  color: var(--fg-soft);
  line-height: 1.6;
}
.meta li { margin: 0.3em 0; }
.meta strong { color: var(--fg); }

footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2em 1.5em 3em;
  border-top: 1px solid var(--rule);
}
.muted { color: var(--muted); }
.small { font-size: 0.84em; }
footer p { max-width: 75ch; }

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .hero { padding: 2em 1.2em 0.5em; }
  main  { padding: 0 1.2em 3em; }
  .hero-top { gap: 1em; }
  .logo { width: 118px; height: 84px; }
  .card {
    grid-template-columns: 90px 1fr;
    gap: 0.8em;
    padding: 0.9em;
  }
  .card-cover { width: 90px; }
  .card-meta h3 { font-size: 1.2em; }
  .lead { font-size: 1.05em; }
}
