:root{color-scheme:light;--ink:#382339;--plum:#72365e;--pink:#f2cadb;--paper:#fff9ef;--line:#e9d8d8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.6 system-ui,sans-serif}a{color:inherit}a:focus-visible,button:focus-visible{outline:3px solid #a24d83;outline-offset:5px}.wrap{width:min(1120px,calc(100% - 48px));margin-inline:auto}nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}nav div{display:flex;gap:clamp(12px,3vw,35px)}nav a{text-decoration:none;font-size:.9rem}nav a:hover,footer a:hover{text-decoration:underline}.brand{font-weight:750}.brand span{margin-left:4px}.hero{display:grid;grid-template-columns:1.14fr .86fr;gap:9%;align-items:center;padding:clamp(36px,8vw,94px) clamp(0px,3vw,38px) 64px}.tag{margin:0 0 8px;text-transform:uppercase;letter-spacing:.17em;font-size:.73rem;font-weight:800;color:var(--plum)}h1,h2{font-family:Georgia,serif;font-weight:normal;line-height:.97;margin:0;letter-spacing:-.055em}h1{font-size:clamp(4.4rem,10vw,9rem)}h1 em{color:var(--plum)}h1 span{font-size:.2em;color:#b34f84;vertical-align:top;margin-left:.35em}h2{font-size:clamp(2.6rem,6.5vw,5rem);line-height:1.03}.intro{max-width:34ch;font-size:clamp(1rem,2vw,1.24rem);margin:24px 0}.pill{display:inline-flex;gap:18px;align-items:center;padding:12px 21px;border-radius:32px;background:var(--plum);color:white;text-decoration:none;font-weight:650}.pill:hover{background:#55274a}figure{margin:0}.cover{position:relative;background:#fff;padding:12px 12px 4px;transform:rotate(3deg);box-shadow:0 14px 38px #58344825;border:1px solid var(--line)}.cover:before{content:"";position:absolute;top:-12px;left:calc(50% - 45px);width:90px;height:27px;background:#f2afcbd9;transform:rotate(-8deg)}.cover img{width:100%;height:clamp(300px,41vw,495px);object-fit:cover;object-position:50% 33%;display:block}figcaption{padding:9px 4px 3px;font-size:.91rem;text-align:center;color:#604255}.chapters{border-top:1px solid var(--line)}.chapter{padding:56px 0;border-bottom:1px solid var(--line);scroll-margin:16px}.chapter header{margin-bottom:27px}.chapter header>p:last-child{max-width:58ch;margin:14px 0 0}.gallery,.videos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.gallery figure,.videos figure{background:#fff;padding:8px;border:1px solid var(--line);border-radius:5px;box-shadow:0 4px 12px #5834480c}.gallery a{display:block;cursor:zoom-in}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.gallery img{display:block;width:100%;height:auto;border-radius:2px}.videos{grid-template-columns:repeat(4,minmax(0,1fr))}video{display:block;width:100%;aspect-ratio:3/4;background:#362633}.letter{text-align:center;padding:clamp(30px,7vw,76px) clamp(18px,6vw,58px);margin:55px 0 0;border:1px solid #ebc4d3;border-radius:40px 9px;background:#fae0e9}.letter>span{font-size:2.4rem;color:var(--plum)}.letter p:not(.tag){max-width:55ch;margin:20px auto 0}.sign{color:var(--plum)}footer{padding:24px 0 35px;text-align:center}dialog{border:0;border-radius:12px;background:var(--paper);color:var(--ink);padding:12px;max-width:94vw;max-height:94dvh;text-align:center}dialog::backdrop{background:#251426ce}dialog img{display:block;max-width:86vw;max-height:75dvh;margin:auto}dialog p{margin:6px 0 0}dialog form{text-align:right}dialog button{border:0;background:transparent;color:inherit;font-size:1.8rem;line-height:1;min-width:44px;min-height:44px;cursor:pointer}@media(max-width:650px){.wrap{width:calc(100% - 30px)}.hero{grid-template-columns:1fr;gap:30px;padding:42px 5px}.cover{width:min(85%,365px);justify-self:center}.cover img{height:clamp(290px,86vw,410px)}.gallery{grid-template-columns:minmax(0,1fr);gap:18px}.videos{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.chapter{padding:39px 0}.letter{margin-top:38px}}@media(max-width:350px){nav a{font-size:.78rem}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Molduras do álbum */
.gallery {
  column-gap: clamp(22px, 4vw, 48px);
  row-gap: clamp(29px, 4vw, 52px);
  padding-block: 8px 6px;
}

.gallery figure,
.cover {
  position: relative;
  padding: clamp(11px, 1.8vw, 19px);
  background: #fffefa;
  border: 1px solid #e2ced2;
  border-radius: 3px;
  box-shadow: 0 2px 4px #58344814, 0 14px 24px -10px #58344839;
}

.gallery figure::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -9px;
  left: 50%;
  width: 82px;
  height: 23px;
  background: #edb9cce0;
  transform: translateX(-50%) rotate(-5deg);
  pointer-events: none;
}

.gallery figure:nth-child(even)::before {
  background: #dfd0ebe8;
  transform: translateX(-50%) rotate(6deg);
}

.gallery a {
  border: 1px solid #e9dadb;
  padding: 4px;
  background: #fff;
}

.gallery img,
.cover img {
  border-radius: 1px;
}

.gallery figcaption,
.cover figcaption {
  padding: 15px 5px 6px;
}

.gallery figcaption strong,
.cover figcaption strong {
  display: block;
  color: var(--plum);
  font: 600 clamp(1.42rem, 2.7vw, 1.95rem)/1.09 Georgia, serif;
}

.gallery figcaption span,
.cover figcaption span {
  display: block;
  max-width: 37ch;
  margin: 7px auto 0;
  font-size: .95rem;
  line-height: 1.45;
}

.gallery {
  row-gap: clamp(17px, 2.6vw, 30px);
}

@media (min-width: 651px) {
  .gallery {
    align-items: stretch;
  }

  .gallery figure {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  .gallery img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 35%;
  }

  .gallery img[src$="235104.webp"],
  .gallery img[src$="234947.webp"] {
    object-fit: contain;
    background: #f8eeef;
  }

  .gallery figcaption {
    align-self: center;
  }

  .gallery figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 430px);
  }
}

@media (max-width: 650px) {
  .gallery {
    padding-block: 4px 0;
  }

  .gallery figure {
    padding: 9px;
  }

  .gallery figcaption {
    padding: 11px 4px 4px;
  }

  .gallery figcaption span {
    margin-top: 5px;
  }
}

.tribute {
  padding: clamp(23px, 5vw, 62px);
  margin-top: clamp(30px, 5vw, 64px);
  background: #f5ebf5;
  border: 1px solid #e3d2e4;
  border-radius: 28px 8px;
}

.tribute-heading {
  text-align: center;
  margin: 0 auto 30px;
}

.tribute-heading > p:last-child,
.tribute-note {
  max-width: 55ch;
  margin: 13px auto 0;
}

.tribute .tribute-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  --tribute-gap: clamp(13px, 2.4vw, 28px);
  column-gap: var(--tribute-gap);
}

.tribute-gallery img {
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
}

.tribute-note {
  margin-top: clamp(20px, 4vw, 38px);
  color: var(--plum);
  font: italic clamp(1.12rem, 2vw, 1.4rem)/1.45 Georgia, serif;
  text-align: center;
}

@media (max-width: 650px) {
  .tribute {
    padding: 24px 12px;
  }

  .tribute .tribute-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .tribute-gallery img {
    aspect-ratio: auto;
  }
}

@media (min-width: 651px) {
  .family-gallery figure:nth-child(-n + 2) img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }

  .family-gallery figure:last-child:nth-child(odd) {
    width: min(100%, 710px);
  }

  .family-gallery figure:last-child img {
    aspect-ratio: auto;
  }
}

/* Retrato de abertura */
.hero {
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 62px);
}

.hero h1 {
  font-size: clamp(3.4rem, 7.9vw, 7rem);
}

.hero .cover {
  transform: rotate(1.5deg);
}

.hero .cover img {
  height: auto;
  object-fit: contain;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .cover {
    width: min(100%, 570px);
    justify-self: center;
    transform: none;
  }
}

/* Abertura e navegação */
.album-menu {
  gap: 14px;
  border: 0;
  margin-top: 14px;
  padding: 11px 16px;
  background: #fff;
  border-radius: 23px;
  box-shadow: 0 5px 18px #643d5820;
}

.album-menu .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #643057;
}

.album-menu .menu-links {
  gap: 8px;
}

.menu-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px clamp(8px, 2vw, 18px);
  border-radius: 100px;
  color: #4a2d43;
  background: #f9d4e6;
  font-weight: 750;
}

.menu-links a:nth-child(2) { background: #ddd4ff; }
.menu-links a:nth-child(3) { background: #fce6a6; }

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  padding: clamp(29px, 5vw, 65px) clamp(17px, 4vw, 50px);
  margin-block: 18px 24px;
  border-radius: 30px 30px 55px 30px;
  background: radial-gradient(circle at 12% 72%, #ffedb0 0, transparent 44%),
              linear-gradient(125deg, #f9d9ec, #e7dfff 72%, #dbf5ef);
}

.hero .cecilia-cover {
  width: min(100%, 425px);
  justify-self: center;
}

.family-highlight {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(16px, 5vw, 52px);
  padding: clamp(19px, 4vw, 45px);
  margin-bottom: 25px;
  border-radius: 30px;
  background: #e6f6ed;
}

.family-highlight h2 {
  font-size: clamp(2.2rem, 5.5vw, 4.25rem);
}

.family-cover img {
  height: auto;
  object-fit: contain;
}

/* Borboletas decorativas */
.butterfly {
  --wing: #dc5795;
  display: inline-block;
  flex: 0 0 auto;
  position: relative;
  width: 2.3rem;
  height: 1.8rem;
  transform: rotate(-18deg);
  pointer-events: none;
}

.butterfly::before,
.butterfly::after {
  content: "";
  position: absolute;
  top: 0;
  width: 48%;
  height: 92%;
  background: radial-gradient(circle at 42% 31%, #fff8 0 13%, transparent 15%),
              linear-gradient(150deg, var(--wing), #ffffff);
  border: 1px solid var(--wing);
  border-radius: 78% 52% 66% 47%;
  transform: rotate(-27deg);
}

.butterfly::before { left: 3%; }
.butterfly::after { right: 3%; transform: scaleX(-1) rotate(-27deg); }
.brand .butterfly { width: 1.65rem; height: 1.25rem; }
.chapter header, .tribute-heading, .letter, .family-highlight header { position: relative; }
.chapter header { padding-right: 55px; }
.chapter header .butterfly, .tribute-heading .butterfly, .letter .butterfly {
  position: absolute;
  right: 6px;
  top: 0;
}

.chapter:nth-of-type(3n + 1) .butterfly { --wing: #bc66c8; }
.chapter:nth-of-type(3n + 2) .butterfly { --wing: #42a7c1; transform: rotate(19deg); }
.chapter:nth-of-type(3n) .butterfly { --wing: #e89130; }
.family-highlight .butterfly { --wing: #ee9d32; margin-top: 15px; }
.tribute-heading .butterfly { --wing: #967ac3; }
.letter .butterfly { --wing: #4eabb7; top: 17px; right: 19px; }

/* Capas de vídeo */
#videos {
  background: #f0eaff;
  padding: clamp(17px, 4vw, 42px);
  border-radius: 28px;
  border-bottom: 0;
  margin-block: 22px;
}

.videos {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(9px, 1.7vw, 20px);
}

.videos figure {
  border-radius: 17px;
  padding: 7px;
}

.video-stage {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #362633;
}

.video-stage video {
  aspect-ratio: 9 / 14;
}

.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  color: #472742;
  background: #30122f29;
  cursor: pointer;
}

.video-play span {
  display: grid;
  place-items: center;
  width: clamp(44px, 6vw, 62px);
  aspect-ratio: 1;
  margin: auto;
  padding-left: 3px;
  border-radius: 50%;
  background: #ffe4f4;
  box-shadow: 0 4px 16px #27101f66;
}

.video-play:hover span, .video-play:focus-visible span { background: #fff; }
.video-play:focus-visible { outline-offset: -3px; }

.clip-length {
  position: absolute;
  right: 7px;
  top: 7px;
  padding: 2px 7px;
  border-radius: 20px;
  background: #291a2be0;
  color: #fff;
  font-size: .76rem;
  pointer-events: none;
}

.videos figcaption {
  text-align: left;
  line-height: 1.25;
  padding: 8px 5px 6px;
}

@media (max-width: 760px) {
  .album-menu {
    flex-direction: column;
    padding: 10px 8px;
    gap: 8px;
  }

  .album-menu .menu-links { width: 100%; justify-content: center; }
  .menu-links a { flex: 1; }
  .hero, .family-highlight { grid-template-columns: minmax(0, 1fr); }
  .hero .cecilia-cover { width: min(100%, 360px); }
  .family-highlight .cover { width: 100%; transform: none; }
  .family-highlight header { padding-right: 40px; }
  .family-highlight .butterfly { position: absolute; right: 0; top: 0; margin: 0; }
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.music-player {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2;
  display: flex;
  align-items: end;
  flex-direction: column-reverse;
  gap: 5px;
}

.music-player[hidden], .music-status:empty {
  display: none;
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid #fff;
  border-radius: 100px;
  padding: 6px 14px;
  background: var(--plum);
  color: #fff;
  font: 700 .9rem/1.2 system-ui, sans-serif;
  box-shadow: 0 3px 12px #38233940;
  cursor: pointer;
}

.music-status {
  max-width: 16rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  font-size: .85rem;
}

footer {
  padding-bottom: calc(65px + env(safe-area-inset-bottom));
}

@media (min-width: 651px) {
  .tribute-gallery figure:last-child:nth-child(odd) {
    width: calc((100% - var(--tribute-gap)) / 2);
  }
}
