/* savepieces.com. After dark and editorial: Instrument Serif for the voice, DM Sans for reading, Plex Mono for
   labels, frosted glass for the app's moments. The app itself stays white; the site is the window into it. */

@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #0c0b0a;
  --cream: #f4f1ec;
  --dim: rgba(244, 241, 236, .64);
  --faint: rgba(244, 241, 236, .42);
  --glass: rgba(255, 255, 255, .075);
  --glass-hi: rgba(255, 255, 255, .12);
  --rim: rgba(255, 255, 255, .14);
  --ink: #0b0b0b;
  --ok: #3fae6a;
  --danger: #ff8a7a;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 17px/1.55 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.mono {
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--cream); color: var(--ink); padding: 10px 14px; border-radius: 999px; z-index: 20; }

/* Frosted glass, the app's moments floating over the dark. */
.glass {
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--rim);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
}

/* The room: a warm, blurred photograph, vignetted to black, with a little film grain. */
.room { position: relative; isolation: isolate; overflow: hidden; }
.room::before {
  content: ""; position: absolute; inset: -10%; z-index: -2;
  background: url("img/backdrop.webp") center 30% / cover no-repeat;
  opacity: .95;
  filter: saturate(1.5) contrast(1.05);
  animation: drift 40s ease-in-out infinite alternate;
}
.room::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 35% at 18% 18%, rgba(176, 120, 64, .32), transparent 70%),
    radial-gradient(38% 34% at 84% 30%, rgba(112, 46, 84, .30), transparent 70%),
    radial-gradient(120% 80% at 50% 25%, rgba(12,11,10,0) 0%, rgba(12,11,10,.55) 55%, var(--night) 92%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.12) translate(-2%, 1.5%); } }

/* Header: the wordmark in the middle, as an editorial masthead. */
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 1320px; margin: 0 auto; padding: 22px var(--gutter) 0;
}
/* On the home page the header follows you down, on a strip of dark glass once the page moves. */
.room { padding-top: 66px; }
.room .top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; padding-bottom: 22px; transition: padding .35s var(--ease); }
.room .top::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  background: rgba(12, 11, 10, .62); border-bottom: 1px solid rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.room .top.is-stuck { padding-top: 12px; padding-bottom: 12px; }
.room .top.is-stuck::before { opacity: 1; }
.top .left { justify-self: start; }
.top .right { justify-self: end; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark img { width: 26px; height: 26px; filter: brightness(1.15); }
.wordmark span { font: 800 25px/1 "Inter Tight", sans-serif; letter-spacing: -.045em; }
.pill-link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  font: 500 14px/1 var(--sans); text-decoration: none; color: var(--ink); background: var(--cream);
  transition: transform .25s var(--ease), background .25s;
}
.pill-link:hover { background: #fff; transform: translateY(-1px); }
/* The header's own way in: hidden while the main form is on screen, then a pill that opens into an email field. */
.quick { position: relative; display: flex; justify-content: flex-end; min-height: 44px; align-items: center; }
.quick > * { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.quick .pill-link, .quick-form, .quick-done { position: absolute; right: 0; white-space: nowrap; }
.quick[data-state="hidden"] > *, .quick[data-state="pill"] > :not(.pill-link), .quick[data-state="open"] > :not(.quick-form), .quick[data-state="done"] > :not(.quick-done) {
  opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
}
.quick-form {
  display: flex; align-items: center; gap: 4px; width: 360px; height: 44px; padding: 4px;
  border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
}
.quick-form:focus-within { border-color: rgba(255,255,255,.5); }
.quick-form input:not([type=hidden]) { flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 14px; border: 0; background: none; outline: none; font: 400 15px var(--sans); color: var(--cream); }
.quick-form input::placeholder { color: var(--dim); }
.quick-form button { height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--cream); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; }
.quick-form button:hover { background: #fff; }
.quick-form button[disabled] { opacity: .6; }
.quick-error { position: absolute; top: calc(100% + 8px); right: 0; margin: 0; white-space: nowrap; font-size: 13px; color: var(--danger); }
.quick-done { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; font-size: 14px; color: var(--cream); }
.quick-done .ok { width: 20px; height: 20px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }

@media (max-width: 640px) {
  .room { padding-top: 0; }
  .room .top, .room .top.is-stuck { position: relative; padding: 22px var(--gutter) 0; }
  .room .top::before { display: none; }
  .top { grid-template-columns: 1fr; }
  .top .left, .top .quick, .top .pill-link.right { display: none; }
  .top .wordmark { justify-self: center; }
  .pill-link { height: 36px; padding: 0 14px; font-size: 13.5px; }
}

/* Hero */
.hero { text-align: center; max-width: 980px; margin: 0 auto; padding: clamp(28px, 3.5vw, 48px) var(--gutter) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .5; }
h1 {
  margin: 22px 0 0;
  font: 400 clamp(52px, 6.8vw, 100px)/.92 var(--serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 em { font-style: italic; letter-spacing: -.02em; }
/* A marker stroke under "Pieces", low and warm, like a highlighter pulled across the word. */
h1 mark { position: relative; z-index: 0; color: inherit; background: none; }
h1 mark::before {
  content: ""; position: absolute; z-index: -1; left: -.04em; right: -.02em; bottom: .2em; height: .3em;
  border-radius: .1em .16em .12em .2em; background: rgba(214, 132, 104, .55);
  transform: skewX(-14deg) rotate(-1.5deg);
}
.hero h1 { margin-top: clamp(26px, 3.4vw, 44px); }
.lede {
  margin: 20px auto 0; max-width: 460px;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--dim);
  text-wrap: pretty;
}

/* Waitlist */
.join { margin: 28px auto 0; max-width: 520px; }
.field {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.field:focus-within { border-color: rgba(255,255,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 4px rgba(255,255,255,.06), 0 30px 60px -20px rgba(0,0,0,.55); }
.field input {
  flex: 1; min-width: 0; height: 52px; padding: 0 8px 0 20px;
  border: 0; background: transparent; outline: none;
  font: 400 17px var(--sans); color: var(--cream);
}
.field input::placeholder { color: var(--faint); }
.field button {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px 0 26px; border: 0; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font: 500 16px/1 var(--sans); cursor: pointer;
  transition: transform .2s var(--ease), background .2s, opacity .2s;
}
.field button:hover { background: #fff; }
.field button:hover svg { transform: translateX(3px); }
.field button:active { transform: scale(.97); }
.field button svg { transition: transform .3s var(--ease); }
.field button[disabled] { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.note a { color: var(--dim); text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.note a:hover { color: var(--cream); text-decoration-color: currentColor; }
.error { margin: 12px 0 0; font-size: 14px; color: var(--danger); }

.done { display: none; align-items: center; gap: 16px; text-align: left; padding: 16px 22px 16px 16px; border-radius: 28px; }
.done .tick { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); }
.done strong { display: block; font: italic 400 26px/1.1 var(--serif); }
.done span { display: block; margin-top: 4px; font-size: 15px; color: var(--dim); }
.share {
  padding: 0; border: 0; background: none; cursor: pointer; font-weight: 500; color: var(--cream);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35);
}
.share:hover { text-decoration-color: currentColor; }
.join.joined form { display: none; }
.join.joined .done { display: flex; animation: rise .6s var(--ease) both; }

.field-label { display: none; }
@media (max-width: 520px) {
  /* Mobile: a centered label, the whole width to type on, and the button right beneath the line. */
  .field-label { display: block; margin: 0; text-align: center; }
  .field.glass { flex-direction: column; align-items: stretch; gap: 16px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .field.glass:focus-within { box-shadow: none; }
  .field input { flex: none; height: 60px; padding: 0; text-align: center; font-size: 18px; border-bottom: 1px solid rgba(244, 241, 236, .32); transition: border-color .2s; }
  .field input:focus { border-bottom-color: var(--cream); }
  .field input::placeholder { color: var(--dim); }
  .field button { height: 52px; justify-content: center; font-size: 16px; }
  .note { text-align: center; }
}

/* The stage: a phone with a board on it, and the app's moments around it. */
.stage {
  position: relative; max-width: 1240px; height: clamp(560px, 62vw, 760px);
  margin: clamp(40px, 4vw, 56px) auto 0; padding: 0 var(--gutter);
}
.phone {
  position: absolute; left: 50%; top: 0; width: clamp(270px, 25vw, 330px); aspect-ratio: 9 / 19.2;
  transform: translateX(-50%);
  border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #3a3835, #121110 40%, #2a2826);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 60px 120px -30px rgba(0,0,0,.9), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.screen {
  position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: #fff; color: var(--ink);
  display: flex; flex-direction: column;
}
/* A real screen recording from the app, looping. Its first frame is the poster, so nothing jumps when it starts. */
.screen .demo { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

.ghost {
  position: absolute; top: 9%; width: clamp(200px, 19vw, 250px); aspect-ratio: 9 / 19.2;
  border-radius: 40px; overflow: hidden; background: #fff; opacity: .2; filter: blur(5px) saturate(.6);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8);
}
.ghost img { width: 100%; height: 100%; object-fit: contain; padding-top: 22%; }
.ghost.l { left: 6%; transform: rotate(-3deg); }
.ghost.r { right: 6%; transform: rotate(3deg); }

.moment { position: absolute; z-index: 2; border-radius: 22px; color: var(--cream); }
.toast {
  left: 50%; top: -34px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 14px 22px 14px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 17px;
}
.toast .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; flex: none; }
.piece-card { left: max(var(--gutter), calc(50% - 540px)); top: 58%; width: 380px; padding: 18px; }
.piece-card .row { display: flex; gap: 16px; align-items: center; }
.piece-card .thumb { width: 84px; height: 84px; border-radius: 14px; background: #f4f2ee; display: grid; place-items: center; flex: none; }
.piece-card .thumb img { width: 86%; }
.piece-card .brand { font-size: 14px; color: var(--dim); }
.piece-card .name { margin-top: 2px; font: 400 25px/1.1 var(--serif); }
.piece-card .price { margin-top: 6px; font-size: 14px; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.piece-card .price b { font-weight: 500; color: var(--cream); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 14px; white-space: nowrap; }
.piece-card .add { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.piece-card .add > span { font-size: 14px; color: var(--dim); margin-right: 4px; }
.capsule-card { right: max(var(--gutter), calc(50% - 580px)); top: -4%; width: 280px; padding: 18px; }
.capsule-card.home { top: 50%; right: max(var(--gutter), calc(50% - 520px)); }
.capsule-card.list { right: auto; left: max(var(--gutter), calc(50% - 600px)); top: -2%; width: 260px; }
.capsule-card .items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.capsule-card .items div { aspect-ratio: 1; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.capsule-card .items img { width: 82%; height: 82%; object-fit: contain; }
/* The boards fan across the whole card, so there's no empty space beside them. */
.capsule-card .stack { position: relative; aspect-ratio: 2 / 1; margin-bottom: 14px; }
.capsule-card .stack div { position: absolute; top: 6%; height: 88%; aspect-ratio: 4 / 5; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.capsule-card .stack div:nth-child(1) { left: 2%; }
.capsule-card .stack div:nth-child(2) { left: 30%; }
.capsule-card .stack div:nth-child(3) { left: 58%; }
.capsule-card .stack div:nth-child(1) { transform: rotate(-6deg); }
.capsule-card .stack div:nth-child(3) { transform: rotate(5deg); }
.capsule-card .stack img { width: 100%; height: 100%; object-fit: cover; }
.capsule-card .name { font: italic 400 30px/1 var(--serif); }
.capsule-card p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--dim); }
.capsule-card .mono { margin-top: 12px; font-size: 10px; }

/* Desktop composition: three cards in a zigzag down the phone, each tucked over its edge.
   The clutch shows a saved piece, the wishlist a capsule of pieces, the apartment a capsule of boards. */
.stage { --pw: clamp(270px, 25vw, 330px); --tuck: 64px; }
.capsule-card.paris { display: none; }
.capsule-card.home { left: calc(50% + var(--pw) / 2 - var(--tuck)); right: auto; top: 7%; width: 280px; }
.capsule-card.list { left: calc(50% - var(--pw) / 2 - 260px + var(--tuck)); right: auto; top: 33%; width: 260px; }
.piece-card { left: calc(50% + var(--pw) / 2 - var(--tuck)); top: 64%; width: 380px; }
/* Where a card sits over the white screen, the glass needs more body or its text washes out. */
.stage .piece-card, .stage .capsule-card { background: linear-gradient(180deg, rgba(48, 45, 42, .86), rgba(26, 24, 22, .9)); }

@media (max-width: 1100px) {
  .ghost { display: none; }
  .stage { --tuck: 48px; }
  .piece-card { width: 320px; }
  .piece-card .add { display: none; }
  .capsule-card.list { width: 230px; left: calc(50% - var(--pw) / 2 - 230px + var(--tuck)); }
  .capsule-card.home { width: 250px; }
}
.capsules { display: contents; }
.capsule-card.clone { display: none; }

@media (max-width: 900px) {
  /* Mobile: the headline, the form straight under it, then the product. */
  main { display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); }
  .hero, .hero-side { display: contents; }
  .hero h1 { order: 2; text-align: center; margin-top: clamp(30px, 8vw, 52px); }
  .hero .join { order: 3; width: 100%; margin-top: 26px; }
  .stage { order: 4; }
  .hero .lede { display: none; }

  /* A big phone, then the capsules in a row you swipe, starting on the middle one. */
  .stage { width: 100%; max-width: 440px; height: auto; margin: 34px auto 0; padding: 0; display: grid; }
  .ghost, .toast { display: none; }
  .phone { grid-area: 1 / 1; position: relative; left: auto; top: auto; transform: none; justify-self: center; width: min(78%, 340px); }
  /* Only the top of the phone: the board and the start of each tap, fading into the page. */
  .phone { aspect-ratio: auto; height: min(118vw, 500px); overflow: hidden; container-type: inline-size; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .phone .screen { height: calc((100cqw + 22px) * 19.2 / 9 - 22px); }
  .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
  .moment { font-size: 13px; }
  .stage .piece-card { display: none; }
  .piece-card { grid-area: 1 / 1; position: relative; left: auto; top: auto; align-self: end; justify-self: start; width: 64%; padding: 12px; border-radius: 18px; background: rgba(28, 26, 24, .8); }
  .piece-card .thumb { width: 54px; height: 54px; border-radius: 10px; }
  .piece-card .row { gap: 10px; }
  .piece-card .brand { font-size: 11.5px; }
  .piece-card .name { font-size: 18px; }
  .piece-card .price { font-size: 12px; margin-top: 3px; }
  .piece-card .add { display: none; }

  .capsules {
    display: flex; gap: 12px; margin: 30px calc(var(--gutter) * -1) 0; padding: 4px calc((100vw - min(72vw, 330px)) / 2) 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .capsules::-webkit-scrollbar { display: none; }
  .capsule-card, .capsule-card.home, .capsule-card.list, .capsule-card.paris {
    position: relative; inset: auto; flex: 0 0 min(72vw, 330px); width: auto; padding: 16px; border-radius: 22px;
    scroll-snap-align: center; animation: none; background: rgba(28, 26, 24, .8);
    display: flex; flex-direction: column;
    transition: opacity .4s var(--ease), scale .4s var(--ease);
  }
  .capsules.is-ready .capsule-card:not(.is-on) { opacity: .5; scale: .94; }
  .capsules.is-jumping .capsule-card { transition: none; }
  .capsule-card .name { margin-top: auto; }
  /* Every card gets the same picture area, so the three line up and nothing spills over the edge. */
  .capsule-card .stack, .capsule-card .items { aspect-ratio: 3 / 2; margin: 0 0 14px; }
  .capsule-card .stack { position: relative; display: block; }
  .capsule-card .stack div { position: absolute; top: 7%; height: 84%; width: auto; aspect-ratio: 4 / 5; margin: 0; border-radius: 10px; }
  .capsule-card .stack div:nth-child(1) { left: 3%; }
  .capsule-card .stack div:nth-child(2) { left: 29%; }
  .capsule-card .stack div:nth-child(3) { left: 55%; }
  .capsule-card .items { gap: 5px; grid-template-rows: repeat(2, 1fr); }
  .capsule-card .items div { aspect-ratio: auto; }
  .capsule-card .items div { border-radius: 8px; }
  .capsule-card .name { font-size: 25px; }
  .capsule-card p { font-size: 13px; margin-top: 4px; }
  .capsule-card .mono { font-size: 9px; margin-top: 8px; letter-spacing: .08em; }
}

/* Gentle float on the moments. */
.float-a { animation: bob 8s ease-in-out infinite; }
.float-b { animation: bob 9s ease-in-out -3s infinite; }
.float-c { animation: bob 7s ease-in-out -5s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.in { animation: rise 1s var(--ease) both; }
.in-1 { animation-delay: .05s; } .in-2 { animation-delay: .15s; } .in-3 { animation-delay: .28s; } .in-4 { animation-delay: .4s; } .in-5 { animation-delay: .6s; }

/* Things that rise into place as they scroll into view. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Manifesto: what Pieces is for, said once and plainly. */
.manifesto { max-width: 1120px; margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter) clamp(40px, 6vw, 72px); text-align: center; }
.manifesto p.big { margin: 20px auto 0; max-width: 940px; font: 400 clamp(32px, 4.4vw, 58px)/1.1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.manifesto p.big em { color: var(--dim); }

.how { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--gutter) clamp(72px, 9vw, 120px); }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.how li { padding: 26px 24px 28px; border-radius: 24px; }
.how h2 { margin: 18px 0 0; font: 400 32px/1.05 var(--serif); letter-spacing: -.01em; }
.how h2 em { font-style: italic; }
.how p:not(.mono) { margin: 10px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--dim); }

/* Closing call */
.again { text-align: center; padding: 0 var(--gutter) clamp(80px, 10vw, 130px); }
.again h2 { margin: 0; font: 400 clamp(40px, 6vw, 76px)/1 var(--serif); letter-spacing: -.02em; }
.again h2 em { font-style: italic; }
.again .pill-link { margin-top: 28px; height: 52px; padding: 0 28px; font-size: 16px; }

/* Footer */
.foot {
  max-width: 1320px; margin: 0 auto; padding: 26px var(--gutter) 36px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.08);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--cream); }

/* Privacy policy and small pages */
.doc { max-width: 700px; margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(64px, 8vw, 104px); }
.doc h1 { font-size: clamp(52px, 7vw, 88px); text-align: left; }
.doc .updated { margin-top: 20px; }
.doc .summary { margin: 30px 0 0; font: 400 clamp(22px, 2.4vw, 27px)/1.35 var(--serif); color: var(--cream); }
.doc h2 { margin: 52px 0 0; font: italic 400 30px/1.1 var(--serif); }
.doc p { margin: 12px 0 0; color: var(--dim); }
.doc p b, .doc p strong { font-weight: 500; color: var(--cream); }
.doc a { color: var(--cream); text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.doc a:hover { text-decoration-color: currentColor; }
.page-short { min-height: 70vh; }

:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 8px; }
.field input:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(40, 38, 36, .92); }
}
