:root {
  --paper: #f5f1e8;
  --paper-2: #fbf9f4;
  --ink: #182b3a;
  --muted: #6f6a60;
  --gold: #ae8750;
  --line: #ded6c8;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* =========================
   TOPO
   ========================= */

.topbar {
  height: 78px;
  padding: 0 5vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);

  background: rgba(251, 249, 244, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background: var(--ink);
  color: var(--paper);

  font-family: Georgia, serif;
  font-size: 21px;
}

.brand strong {
  display: block;

  font-family: Georgia, serif;
  font-size: 20px;
}

.brand small {
  color: var(--muted);

  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}

nav a:hover {
  color: var(--gold);
}


/* =========================
   ESTRUTURA
   ========================= */

main {
  max-width: 1240px;
  margin: 0 auto;

  padding: 0 28px 80px;
}


/* =========================
   HERO
   ========================= */

.hero {
  padding: 92px 0 78px;
  max-width: 850px;
}

.eyebrow,
.label {
  color: var(--gold);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero p {
  max-width: 760px;

  margin: 0;

  color: #625f58;

  font-size: 18px;
  line-height: 1.7;
}

.actions {
  display: flex;
  gap: 14px;

  margin-top: 30px;
}


/* =========================
   BOTÕES
   ========================= */

.button {
  border: 1px solid var(--line);
  border-radius: 10px;

  padding: 13px 20px;

  font: inherit;

  cursor: pointer;

  text-decoration: none;

  display: inline-block;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: default;
  opacity: 0.55;
}

.button:disabled:hover {
  transform: none;
}

.primary {
  background: var(--ink);
  color: white;

  border-color: var(--ink);
}

.primary:hover {
  background: #243b4d;
}

.secondary {
  background: var(--white);
  color: var(--ink);
}

.secondary:hover {
  background: #f7f3eb;
}


/* =========================
   BIBLIOTECA
   ========================= */

.dashboard {
  background: var(--paper-2);

  border: 1px solid var(--line);
  border-radius: 18px;

  padding: 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;

  gap: 20px;
}

.section-heading h2 {
  margin: 7px 0 0;

  font-family: Georgia, serif;
  font-weight: 400;

  font-size: 34px;

  letter-spacing: -0.02em;
}

.status {
  font-size: 12px;
  color: var(--muted);
}

.status i {
  display: inline-block;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #5d8d68;

  margin-right: 6px;
}


/* =========================
   FORMULÁRIO DE LIVRO
   ========================= */

.book-form-section {
  margin-top: 28px;
  margin-bottom: 30px;

  padding: 34px;

  background: var(--white);

  border: 1px solid var(--line);
  border-radius: 16px;
}

.book-form-header {
  margin-bottom: 28px;
}

.book-form-header h2 {
  margin: 7px 0 0;

  font-family: Georgia, serif;
  font-weight: 400;

  font-size: 34px;

  letter-spacing: -0.02em;
}


/* =========================
   FORMULÁRIO GERAL
   ========================= */

.form-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px 22px;

  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.form-group.full {
  margin-bottom: 20px;
}

.form-group label {
  color: var(--ink);

  font-size: 13px;
  font-weight: 600;
}

.form-group label span {
  color: var(--gold);
}

.form-group input,
.form-group textarea {
  width: 100%;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: #fffdf9;

  color: var(--ink);

  padding: 13px 14px;

  font: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input {
  height: 46px;
}

.form-group textarea {
  min-height: 120px;

  resize: vertical;

  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a29b91;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);

  box-shadow:
    0 0 0 3px rgba(174, 135, 80, 0.12);
}

.form-actions {
  display: flex;

  gap: 12px;

  margin-top: 6px;
}


/* =========================
   CARDS
   ========================= */

.cards {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 16px;

  margin-top: 0;
}

.card {
  padding: 25px;

  border: 1px solid var(--line);
  border-radius: 13px;

  background: var(--white);
}

.icon {
  color: var(--gold);

  font-size: 11px;

  letter-spacing: 0.14em;
}

.card h3 {
  margin: 16px 0 8px;

  font-family: Georgia, serif;

  font-size: 25px;
  font-weight: 400;
}

.card p {
  color: var(--muted);

  line-height: 1.6;

  font-size: 14px;

  min-height: 68px;
}

.card strong {
  font-size: 12px;

  color: var(--ink);
}


/* =========================
   PESSOAS
   ========================= */

.people-section {
  margin-top: 55px;
}

.people-section > .section-heading {
  padding: 0 2px 22px;
}

.saint-form-section {
  background: var(--paper-2);

  border: 1px solid var(--line);
  border-radius: 18px;

  padding: 40px;

  margin-bottom: 30px;
}

.saint-form-header {
  max-width: 760px;

  margin-bottom: 40px;
}

.saint-form-header h2 {
  margin: 8px 0 12px;

  font-family: Georgia, serif;

  font-weight: 400;

  font-size: 38px;

  letter-spacing: -0.025em;
}

.saint-form-header p {
  margin: 0;

  color: var(--muted);

  line-height: 1.7;

  font-size: 15px;
}


/* =========================
   BLOCOS DA FICHA
   ========================= */

.form-section-block {
  padding: 32px 0;

  border-top: 1px solid var(--line);
}

.form-section-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.form-section-title {
  display: flex;

  align-items: flex-start;

  gap: 15px;

  margin-bottom: 28px;
}

.section-number {
  color: var(--gold);

  font-size: 11px;

  letter-spacing: 0.14em;

  padding-top: 4px;
}

.form-section-title h3 {
  margin: 7px 0 0;

  font-family: Georgia, serif;

  font-size: 25px;

  font-weight: 400;
}


/* =========================
   CHECKBOX
   ========================= */

.checkbox-field {
  display: flex !important;

  flex-direction: row !important;

  align-items: center;

  gap: 10px;

  cursor: pointer;

  font-weight: 600;
}

.checkbox-field input {
  width: 17px !important;
  height: 17px !important;

  margin: 0;

  accent-color: var(--ink);

  box-shadow: none !important;
}

.field-help {
  color: var(--muted);

  font-size: 12px;

  line-height: 1.5;
}


/* =========================
   CAIXA INFORMATIVA
   ========================= */

.info-box {
  margin-top: 24px;

  padding: 18px 20px;

  background: #f3eee4;

  border-left: 3px solid var(--gold);
}

.info-box strong {
  display: block;

  font-family: Georgia, serif;

  font-size: 17px;

  font-weight: 400;
}

.info-box p {
  margin: 7px 0 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.6;
}


/* =========================
   SUBSEÇÕES FUTURAS
   ========================= */

.subsection-placeholder,
.future-section {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 25px;

  margin-top: 25px;

  padding: 22px;

  border: 1px dashed var(--line);

  border-radius: 12px;

  background: rgba(255, 253, 248, 0.6);
}

.subsection-placeholder strong,
.future-section h3 {
  font-family: Georgia, serif;

  font-size: 20px;

  font-weight: 400;
}

.subsection-placeholder p,
.future-section p {
  margin: 6px 0 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.6;

  max-width: 650px;
}

.future-section {
  margin-top: 18px;

  border-style: solid;

  background: var(--paper-2);
}

.future-section h3 {
  margin: 7px 0 0;
}


/* =========================
   ÁREAS DE CONTEÚDO
   ========================= */

.feature-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1px;

  background: var(--line);

  border: 1px solid var(--line);

  margin-top: 55px;
}

.feature {
  background: var(--paper);

  padding: 42px;

  min-height: 220px;
}

.feature h2 {
  margin: 7px 0 0;

  font-family: Georgia, serif;

  font-weight: 400;

  font-size: 34px;

  letter-spacing: -0.02em;
}

.feature p {
  color: var(--muted);

  line-height: 1.7;

  max-width: 480px;
}


/* =========================
   RODAPÉ
   ========================= */

footer {
  border-top: 1px solid var(--line);

  padding: 25px 5vw;

  display: flex;
  justify-content: space-between;

  color: var(--muted);

  font-size: 12px;
}


/* =========================
   RESPONSIVO
   ========================= */

@media (max-width: 800px) {

  .topbar {
    height: auto;

    padding: 18px 5vw;

    gap: 15px;

    flex-wrap: wrap;
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 65px;
  }

  .cards,
  .feature-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;

    flex-direction: column;
  }

  .saint-form-section {
    padding: 25px;
  }

  .subsection-placeholder,
  .future-section {
    align-items: flex-start;

    flex-direction: column;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  footer {
    gap: 10px;

    flex-direction: column;
  }

}