/* The Holland & Candy page — the "Doce pecado" identity: wine night, wet red latex,
   pink and cream, the party's own serif. Every chapter of the story hides under a
   scratch card, the same way the party's date did. */

@view-transition { navigation: auto; }

@font-face { font-family: 'HC Serif'; src: url('/assets/fonts/hc/hc-serif-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'HC Serif'; src: url('/assets/fonts/hc/hc-serif-700i.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --bg: #170306; --wine: #3E090E; --wine-deep: #2B0609; --red: #BB0918; --pink: #FE738D; --cream: #F1E7CC;
  --soft: rgba(241,231,204,.8); --faint: rgba(241,231,204,.58); --line: rgba(241,231,204,.18);
  --serif: 'HC Serif', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: clip; }
body { background: var(--bg); color: var(--cream); font-family: var(--serif); font-size: 19px; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.t { font-family: var(--serif); font-weight: 700; font-style: italic; }

/* the background: "Doce pecado" written over and over, cherries drifting */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.backdrop .words { position: absolute; top: -18%; left: -40%; width: 180%; transform: rotate(-11deg); font-family: var(--serif); font-weight: 700; font-style: italic; font-size: clamp(56px, 12vw, 110px); line-height: .95; color: #2A050A; white-space: nowrap; opacity: .55; }
.backdrop .words div:nth-child(even) { margin-left: -1.1em; }
.backdrop .cherry { position: absolute; }
.backdrop .c1 { width: 220px; top: 6%; right: -70px; color: var(--red); filter: blur(8px); opacity: .4; }
.backdrop .c2 { width: 170px; bottom: 8%; left: -50px; color: var(--pink); filter: blur(10px); opacity: .22; animation: float 9s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate(14px, -22px) rotate(8deg); } }
.backdrop .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 85% at 50% 38%, transparent 30%, rgba(1,1,1,.78) 100%); }
main, header, footer, nav { position: relative; z-index: 1; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(16px, 4vw, 40px); background: linear-gradient(180deg, rgba(23,3,6,.95), rgba(23,3,6,.6)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bar a { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 18px; text-decoration: none; }
.bar .pill { font-size: 15px; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--pink); }

/* hero: the logo, and the real thing on two phones */
.hero { max-width: 1100px; margin: 0 auto; padding: clamp(36px, 7vh, 80px) 20px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-text { text-align: center; }
.logo { display: block; width: min(56vw, 260px); height: auto; margin: 0 auto; overflow: visible; color: var(--cream); }
.logo path { fill: currentColor; }
.talo { transform-box: fill-box; transform-origin: 50% 0; animation: talo .8s cubic-bezier(.2,1.2,.4,1) .12s both; }
@keyframes talo { from { opacity: 0; transform: translateY(-22%) scaleY(.35); } }
.nome { transform-box: fill-box; transform-origin: 50% 50%; animation: nome .85s cubic-bezier(.2,1.5,.4,1) .5s both; }
@keyframes nome { from { opacity: 0; transform: scale(.5) rotate(-8deg); } }
.e { transform-box: fill-box; transform-origin: 50% 50%; animation: e .75s cubic-bezier(.2,1.6,.4,1) 1s both; }
@keyframes e { from { opacity: 0; transform: scale(0) rotate(-220deg); } }
.doce { transform-box: fill-box; transform-origin: 0 50%; animation: doce .7s cubic-bezier(.2,.9,.3,1) 1.25s both; }
@keyframes doce { from { opacity: 0; transform: translateX(26%) skewX(-14deg); } }
.swing { transform-box: view-box; animation: swing 3.8s ease-in-out 2.1s infinite; }
@keyframes swing { 25% { transform: rotate(2.6deg); } 75% { transform: rotate(-2.6deg); } }
.hero h1 { margin-top: 18px; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; }
.hero p.lede { margin: 14px auto 0; max-width: 440px; color: var(--soft); }
.kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }

.phones { display: flex; justify-content: center; gap: clamp(12px, 3vw, 24px); }
.phone { width: min(44%, 220px); }
.phone .body { border-radius: 30px; padding: 8px; background: #0b0102; box-shadow: 0 0 0 1.5px rgba(241,231,204,.16), 0 26px 60px rgba(187,9,24,.35); }
.phone img { display: block; width: 100%; height: auto; border-radius: 22px; }
.phone span { display: block; margin-top: 10px; text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.phone:nth-child(1) { transform: rotate(-4deg); }
.phone:nth-child(2) { transform: rotate(3deg) translateY(18px); }

/* the scratch chapters */
.story { max-width: 720px; margin: 0 auto; padding: 40px 20px 0; }
.how { text-align: center; margin: 30px auto 36px; max-width: 520px; color: var(--soft); }
.how b { color: var(--pink); }
.chapter { margin-bottom: 56px; }
.chapter h2 { text-align: center; font-size: clamp(26px, 4.4vw, 36px); line-height: 1.1; }
.chapter h2 small { display: block; font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--pink); margin-bottom: 6px; }

.scratch { position: relative; margin: 20px auto 0; width: min(100%, 560px); border-radius: 46% 46% 26px 26px / 22% 22% 26px 26px; overflow: hidden; box-shadow: 0 26px 60px rgba(187,9,24,.32), 0 0 0 1.5px rgba(241,231,204,.14); touch-action: none; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.scratch .under { padding: clamp(56px, 10vw, 84px) clamp(24px, 6vw, 48px) clamp(30px, 6vw, 42px); background: radial-gradient(120% 70% at 50% 18%, #4A0B12 0%, var(--wine-deep) 55%, var(--bg) 100%); }
.scratch .under p { color: var(--cream); font-size: clamp(17.5px, 2.4vw, 19.5px); line-height: 1.6; }
.scratch .under p + p { margin-top: 12px; }
.scratch .under strong { font-style: italic; color: var(--pink); }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scratch canvas:focus-visible { outline: 3px solid var(--pink); outline-offset: -3px; }
.scratch.done canvas { animation: melt .55s ease-in forwards; pointer-events: none; }
@keyframes melt { to { opacity: 0; filter: blur(3px); } }
.scratch.done { cursor: default; touch-action: auto; user-select: text; -webkit-user-select: text; }
.reveal-all { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--faint); font: 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.scratch.done + .reveal-all { visibility: hidden; }
.chapter + .chapter .reveal-all { display: none; }

/* numbers as little hearts */
.hearts { max-width: 820px; margin: 10px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; }
.hearts div { padding: 20px 10px; border-radius: 22px; background: rgba(8,1,2,.66); border: 1px solid var(--line); }
.hearts b { display: block; font-family: var(--serif); font-weight: 700; font-style: italic; font-size: clamp(30px, 5vw, 42px); line-height: 1; color: var(--pink); }
.hearts span { display: block; margin-top: 8px; font-family: var(--sans); font-size: 13px; line-height: 1.4; color: var(--soft); }

.made { max-width: 640px; margin: 80px auto 0; padding: 0 20px; text-align: center; }
.made h2 { font-size: clamp(26px, 4vw, 34px); }
.made p { margin: 12px 0 18px; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.tags li { font-family: var(--sans); font-size: 13px; padding: 5px 14px; border-radius: 999px; border: 1.5px solid var(--pink); }

.list { max-width: 440px; margin: 80px auto 0; padding: 24px 20px 20px; border-radius: 26px; background: rgba(8,1,2,.66); border: 1px solid var(--line); text-align: center; }
.list h2 { font-size: 27px; line-height: 1.1; }
.list p { margin: 8px 0 18px; color: var(--soft); font-size: 17px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 16px 26px; border-radius: 999px; border: 0; background: var(--red); color: var(--cream); font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 21px; text-decoration: none; box-shadow: 0 12px 30px rgba(187,9,24,.45); transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: scale(.97); }
.list small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 13px; color: var(--faint); }

.end { padding: 80px 20px 60px; text-align: center; }
.end a { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 20px; text-decoration: none; }
.end a:hover { color: var(--pink); }
.end-clawd { display: block; width: 64px; margin: 0 auto 16px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.seen { opacity: 1; transform: none; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.7, 0, .2, 1); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hearts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .talo, .nome, .e, .doce, .swing, .backdrop .c2 { animation: none !important; }
  .scratch.done canvas { animation: none; opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* The world card on the home page grows into this full-screen layer: entering a world. */
.vt-portal { position: fixed; inset: 0; pointer-events: none; }
