  :root {
    --bg: #F3F3F3;
    --ink: #374258;
    --accent: #F74464;
    --muted: #6A7285;
    --line: #C4C4C4;
    --white: #FFFFFF;
    --dark: #374258;
    --dark-line: #4A5570;
    --dark-muted: #A9B0C0;
    --dark-fg: #F3F3F3;
    --serif: Spectral, Georgia, serif;
    --display: Fraunces, Georgia, serif;
    --sans: Inter, system-ui, -apple-system, sans-serif;
    --wrap: 1080px;
    --wrap-narrow: 680px;
  }

  * { box-sizing: border-box; }

  html { background: var(--bg); scroll-behavior: smooth; }
  body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  a { color: var(--ink); }
  a:hover { color: var(--accent); }

  .accent { color: var(--accent); }
  em { font-style: italic; }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(243, 243, 243, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .brand {
    font-family: var(--display);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
  }
  .brand:hover { color: var(--ink); }
  .site-nav {
    display: flex;
    gap: 26px;
    font-family: var(--sans);
    font-size: 14px;
  }
  .site-nav a { text-decoration: none; }

  /* ---------- Main ---------- */
  main { flex: 1; }

  .section {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 88px 24px 64px;
  }
  .section-narrow {
    max-width: var(--wrap-narrow);
    margin: 0 auto;
    padding: 64px 24px 96px;
  }

  /* ---------- Home / hero ---------- */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 22px;
  }
  .eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    display: inline-block;
  }
  .hero-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 0;
    max-width: 17em;
    text-wrap: pretty;
  }
  .hero-lead {
    font-size: 20px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 34em;
    margin: 28px 0 40px;
    text-wrap: pretty;
  }

  /* ---------- Hero layout + Polaroid ---------- */
  .hero {
    display: flex;
    align-items: center;
    gap: 56px;
    flex-wrap: wrap;
  }
  .hero-text { flex: 1 1 460px; min-width: 0; }
  .hero-photo { flex: 0 0 auto; }

  .polaroid {
    margin: 0;
    width: 300px;
    max-width: 100%;
    background: #FFFFFF;
    padding: 14px 14px 52px;
    border-radius: 2px;
    box-shadow: 0 16px 34px rgba(55, 66, 88, 0.20), 0 3px 8px rgba(55, 66, 88, 0.12);
    transform: rotate(-3deg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .polaroid:hover {
    transform: rotate(0deg);
    box-shadow: 0 22px 44px rgba(55, 66, 88, 0.24), 0 4px 10px rgba(55, 66, 88, 0.14);
  }
  .polaroid-img {
    position: relative;
    width: 100%;
    height: 340px;
    background: #E7E5E1;
    overflow: hidden;
  }
  .polaroid-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .polaroid-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    padding: 12px;
  }
  .polaroid figcaption {
    margin-top: 16px;
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    color: var(--ink);
  }

  /* ---------- Avise-me card ---------- */
  .notify-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 28px;
    max-width: 520px;
  }
  .notify-card .card-title {
    font-family: var(--display);
    font-size: 22px;
    margin-bottom: 4px;
  }
  .notify-card .card-title.done { margin-bottom: 6px; }
  .notify-card p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 18px;
  }
  .notify-card p.no-gap { margin: 0; }
  .notify-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .notify-row input {
    flex: 1;
    min-width: 200px;
    font-family: var(--sans);
    font-size: 15px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
    outline: none;
  }
  .notify-row input:focus { border-color: var(--ink); }

  /* ---------- Buttons ---------- */
  .btn {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 14px 28px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
    text-decoration: none;
    display: inline-block;
  }
  .btn:hover { background: var(--ink); color: var(--white); }
  .btn.btn-compact { padding: 13px 24px; }
  .btn:disabled { opacity: 0.6; cursor: default; }

  /* ---------- Progresso (dark) ---------- */
  .progress-band {
    background: var(--dark);
    color: var(--dark-fg);
  }
  .progress-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 72px 24px;
  }
  .progress-inner h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 30px;
    margin: 0 0 8px;
  }
  .progress-inner .band-sub {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--dark-muted);
    margin: 0 0 40px;
  }
  .volume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--dark-line);
  }
  .volume-card {
    background: var(--dark);
    padding: 28px 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .volume-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .volume-n {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .volume-status {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark-muted);
    border: 1px solid var(--dark-line);
    border-radius: 999px;
    padding: 4px 10px;
  }
  .volume-desc {
    font-family: var(--display);
    font-size: 19px;
    line-height: 1.4;
    text-wrap: pretty;
  }
  .volume-track {
    height: 4px;
    border-radius: 999px;
    background: var(--dark-line);
    overflow: hidden;
    margin-top: 4px;
  }
  .volume-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
  }

  /* ---------- Convite ---------- */
  .invite {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 72px 24px 96px;
    text-align: center;
  }
  .invite h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(26px, 3.5vw, 34px);
    margin: 0 auto 16px;
    max-width: 20em;
    line-height: 1.25;
    text-wrap: pretty;
  }
  .invite p {
    font-size: 18px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 36em;
    margin: 0 auto 32px;
    text-wrap: pretty;
  }

  /* ---------- Sobre ---------- */
  .page-title {
    font-family: var(--display);
    font-weight: 500;
    font-size: 44px;
    margin: 0 0 36px;
    letter-spacing: -0.01em;
  }
  .photo-wrap {
    width: 100%;
    max-width: 420px;
    margin-bottom: 12px;
  }
  /* Placeholder for the author photo. Replace the whole .photo-slot element
     with <img src="..." alt="José Raimundo Bandeira" class="photo-img"> when
     the family provides the picture. */
  .photo-slot {
    width: 100%;
    height: 300px;
    border: 1.5px dashed rgba(55, 66, 88, 0.3);
    border-radius: 4px;
    background: rgba(55, 66, 88, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 13px;
    text-align: center;
  }
  .photo-slot svg { opacity: 0.45; }
  .photo-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
  }
  .photo-caption {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 40px;
  }
  .prose {
    font-size: 19px;
    line-height: 1.8;
  }
  .prose p { margin: 0 0 24px; }
  .prose p:last-child { margin: 0; }
  .sobre-cta {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .sobre-cta a {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
  }

  /* ---------- Contato ---------- */
  .contato-lead {
    font-size: 19px;
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 40px;
    text-wrap: pretty;
  }
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
  }
  .field input,
  .field textarea {
    font-family: var(--sans);
    font-size: 16px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    outline: none;
  }
  .field textarea {
    font-family: var(--serif);
    font-size: 17px;
    resize: vertical;
  }
  .field input:focus,
  .field textarea:focus { border-color: var(--ink); }
  .field input[type="file"] {
    border: none;
    padding: 0;
    font-size: 14px;
    color: var(--muted);
    background: transparent;
    font-weight: 400;
  }
  .consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
    cursor: pointer;
  }
  .consent input {
    margin-top: 3px;
    accent-color: var(--accent);
  }
  .consent a { color: var(--ink); text-decoration: underline; }
  .form-error {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--accent);
    margin: 0;
  }
  .success-card {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    padding: 32px;
  }
  .success-card .success-title {
    font-family: var(--display);
    font-size: 24px;
    margin-bottom: 8px;
  }
  .success-card p {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
  }

  /* ---------- Privacidade ---------- */
  .legal {
    font-size: 18px;
    line-height: 1.8;
  }
  .legal h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 26px;
    margin: 0 0 12px;
  }
  .legal p { margin: 0 0 32px; }
  .legal p:last-child { margin: 0; }

  /* ---------- Footer ---------- */
  .site-footer {
    background: var(--dark);
    color: var(--dark-fg);
  }
  .footer-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 56px 24px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
  }
  .footer-about {
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .footer-brand {
    font-family: var(--display);
    font-weight: 600;
    font-size: 20px;
  }
  .footer-about p {
    font-family: var(--sans);
    font-size: 13px;
    line-height: 1.6;
    color: var(--dark-muted);
    margin: 0;
  }
  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--sans);
    font-size: 14px;
  }
  .footer-nav a {
    text-decoration: none;
    color: var(--dark-fg);
  }
  .footer-nav a.muted { color: var(--dark-muted); }
  .footer-nav a:hover { color: var(--accent); }
  .footer-bottom {
    border-top: 1px solid var(--dark-line);
  }
  .footer-bottom-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 18px 24px;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--dark-muted);
  }
  .footer-bottom-inner a {
    color: var(--dark-fg);
    text-decoration: none;
  }
  .footer-bottom-inner a:hover { color: var(--accent); }

  @media (max-width: 860px) {
    .hero { gap: 40px; }
    .hero-photo { width: 100%; display: flex; justify-content: center; }
  }
  @media (max-width: 560px) {
    .section { padding: 56px 24px 48px; }
    .page-title { font-size: 36px; }
  }

  /* ---------- Política de Privacidade (legal) ---------- */
  .legal { font-size: 18px; line-height: 1.8; }
  .legal .lead { color: var(--muted); margin: 0 0 40px; }
  .legal h2 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 26px;
    margin: 44px 0 12px;
  }
  .legal h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 20px;
    margin: 28px 0 8px;
  }
  .legal p { margin: 0 0 20px; }
  .legal ol, .legal ul { margin: 0 0 20px; padding-left: 1.4em; }
  .legal li { margin: 0 0 10px; }
  .legal address {
    font-style: normal;
    line-height: 1.7;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px 22px;
    margin: 0 0 20px;
  }
  .legal a { color: var(--ink); text-decoration: underline; }
  .legal a:hover { color: var(--accent); }

  /* ---------- Back link (sobre / contato / privacidade) ---------- */
  .back-link {
    display: inline-block;
    margin-top: 44px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
  }
