/* Un campo bordeaux con il mazzo da swipare, poi pagina bianca. Il gesto è lo swipe:
   tutto il resto sta fermo. */
@font-face { font-family: Briets; src: url(fonts/Briets.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Archivo; font-weight: 400; src: url(fonts/Archivo-400.woff) format("woff"); font-display: swap; }
@font-face { font-family: Archivo; font-weight: 600; src: url(fonts/Archivo-600.woff) format("woff"); font-display: swap; }
@font-face { font-family: Archivo; font-weight: 800; src: url(fonts/Archivo-800.woff) format("woff"); font-display: swap; }

:root {
  --wine: #5e1a24;
  --wine-deep: #45121a;
  --rose: #f2c4cb;
  --blush: #f7e9eb;
  --ink: #16110e;
  --brown: #6e4a2c;
  --paper: #fff;
  --logo: Briets, Georgia, serif;
  --text: Archivo, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.5 var(--text); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; }
.looks :focus-visible, .questions :focus-visible { outline-color: var(--wine); }
.wrap {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--wine); padding: 10px 16px; z-index: 20; }
.skip:focus { top: 12px; }

/* ---- campo bordeaux */
.field { background: var(--wine); color: #fff; overflow: hidden; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.wordmark { font: 400 2.25rem/1 var(--logo); text-decoration: none; padding-bottom: 8px; }
.top nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.top nav a { text-decoration: none; font-weight: 600; padding-block: 10px; }
.top nav a:hover { color: var(--rose); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 6vw, 96px); align-items: center; padding-block: clamp(12px, 3vw, 40px) clamp(32px, 5vw, 64px); }
h1 { font-size: clamp(3.4rem, 10.5vw, 9rem); line-height: 0.92; letter-spacing: -0.045em; }
.lead { font-size: clamp(1.125rem, 1.7vw, 1.4rem); line-height: 1.4; max-width: 30em; margin-top: 40px; text-wrap: pretty; }
.soon { margin-top: 28px; font-weight: 600; color: var(--rose); }

.deck { position: relative; aspect-ratio: 640 / 860; width: 100%; touch-action: pan-y; border-radius: 26px; }
.card {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: var(--wine-deep);
  user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform;
  box-shadow: 0 6px 22px rgb(0 0 0 / .3);
}
.card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; pointer-events: none; }
.card .label { position: absolute; inset: auto 0 0; padding: 96px 24px 22px; background: linear-gradient(transparent, rgb(0 0 0 / .82)); }
.card h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.card p { margin-top: 6px; }
/* Le carte dietro mostrano un filo di foto, non la sfumatura scura. */
.card[aria-hidden] .label { visibility: hidden; }
.card .stamp { position: absolute; top: 22px; padding: 8px 16px; border-radius: 12px; background: #fff; color: var(--wine); font-weight: 800; font-size: 1.15rem; opacity: 0; }
.card .stamp.keep { left: 22px; rotate: -8deg; }
.card .stamp.skip-it { right: 22px; rotate: 8deg; background: var(--ink); color: #fff; }
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 48px; }
.controls p { font-variant-numeric: tabular-nums; color: var(--rose); min-width: 5.2em; text-align: center; }
.controls button { min-height: 56px; border-radius: 18px; border: 2px solid #fff; background: #fff; color: var(--wine); font-weight: 800; font-size: 1.125rem; }
.controls .ghost { background: transparent; color: #fff; }
.controls button:hover { background: var(--rose); border-color: var(--rose); color: var(--wine); }

.kept { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: end; padding-block: 0 48px; }
.selfie img { width: 112px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 12%; border-radius: 16px; border: 3px solid #fff; }
.selfie figcaption { margin-top: 8px; font-size: .9375rem; }
.shelf h2 { font-size: 1.25rem; letter-spacing: -0.01em; }
.shelf ul { display: flex; gap: 10px; margin-top: 12px; min-height: 116px; overflow-x: auto; padding-bottom: 4px; align-items: center; }
.shelf li img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; border-radius: 12px; }
.shelf .empty { color: var(--rose); }

/* ---- effetti */
.looks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head compare" "picker compare"; grid-template-rows: auto 1fr; gap: 36px clamp(28px, 6vw, 96px); padding-block: clamp(72px, 10vw, 136px); }
.head p { margin-top: 16px; max-width: 34em; font-size: 1.1875rem; color: var(--brown); text-wrap: pretty; }
.looks .head { grid-area: head; }
.compare { grid-area: compare; position: relative; aspect-ratio: 700 / 900; border-radius: 26px; overflow: hidden; --split: 46%; background: var(--blush); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.compare .before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare .bar { position: absolute; inset-block: 0; left: var(--split); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.compare .bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%; background: #fff; border: 12px solid var(--wine); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare:has(input:focus-visible) { outline: 3px solid var(--wine); outline-offset: 4px; }
.picker { grid-area: picker; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.picker button { text-align: left; border: 0; border-radius: 16px; background: var(--blush); color: var(--ink); padding: 14px 18px; min-height: 68px; display: grid; align-content: center; gap: 3px; }
.picker b { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.picker small { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brown); }
.picker button:hover { background: #efd5d9; }
.picker [aria-pressed="true"], .picker [aria-pressed="true"]:hover { background: var(--wine); color: #fff; }
.picker [aria-pressed="true"] small { color: var(--rose); }

/* ---- strumenti */
.tools { background: var(--blush); padding-block: clamp(72px, 9vw, 120px); }
.toolrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.half { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; }
.half img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.half img + img { clip-path: inset(0 50% 0 0); }
.half::after { content: ""; position: absolute; inset-block: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; }
.toolrow h3 { font-size: 1.1875rem; margin-top: 16px; letter-spacing: -0.015em; }
.toolrow p { margin-top: 6px; color: var(--brown); }

/* ---- domande */
.questions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(28px, 6vw, 96px); padding-block: clamp(72px, 9vw, 128px); }
details { border-bottom: 1px solid #e3c9cd; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; font-weight: 600; font-size: 1.1875rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--wine); font-weight: 400; font-size: 1.6rem; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { max-width: 62ch; padding-bottom: 22px; color: var(--brown); text-wrap: pretty; }

/* ---- piede */
.foot { background: var(--wine); color: #fff; padding-block: 56px 40px; overflow: hidden; }
.foot .big { font: 400 clamp(5rem, 25vw, 21rem)/.9 var(--logo); margin-bottom: .22em; white-space: nowrap; }
.fine { margin-top: 16px; max-width: 76ch; font-size: .875rem; color: var(--rose); }

/* ---- privacy e termini */
.legal-head { padding-block: clamp(20px, 5vw, 64px) clamp(36px, 6vw, 72px); }
.legal-head h1 { font-size: clamp(2.6rem, 8vw, 6rem); }
.legal-head p { margin-top: 18px; color: var(--rose); }
.legal { max-width: 800px; padding-block: 48px 96px; }
.legal h2 { font-size: 1.625rem; margin-top: 48px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.125rem; margin-top: 28px; letter-spacing: -0.01em; }
.legal p, .legal ul { margin-top: 12px; max-width: 68ch; text-wrap: pretty; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
mark { background: #ffe9a8; color: var(--ink); padding: 0 .2em; }
.draft { background: var(--blush); color: var(--wine); font-weight: 600; padding: 16px 20px; border-radius: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-weight: 600; }
.foot.small { padding-block: 28px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .play { max-width: 440px; width: 100%; margin-inline: auto; }
  h1 { font-size: clamp(3.4rem, 17vw, 7rem); }
  .lead, .soon { margin-top: 18px; }
  .looks { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "compare" "picker"; grid-template-rows: auto; gap: 28px; }
  .toolrow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .questions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .top nav a:nth-child(2) { display: none; }
  .wordmark { font-size: 1.9rem; }
  .kept { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; }
  .selfie img { width: 84px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card { transition: none !important; } }
