@import url('../fonts/fonts.css');

/* Viisik concept — one app, two design languages.
   Structure is shared. A theme only changes the surfaces and the type scale. */

:root {
  --paper: #FAF7F2;
  --ink: #17140F;
  --desk: #EFEBE4;
  --red: #E8452C;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --soft: cubic-bezier(.22, .9, .24, 1);
  --spring: cubic-bezier(.3, 1.45, .45, 1);

  /* Calm scale */
  --t-title: 48px;
  --t-big: 34px;
  --t-words: 31px;
  --t-note: 25px;
  --t-card: 23px;
  --t-why: 22px;
  --t-inv: 30px;
  --t-inv-full: 40px;
  --w-1: 700;
  --w-2: 600;
  --stretch: 100%;
  --dot: 66px;
  --dot-xl: 84px;
  --radius: 28px;
}

body[data-theme="bold"] {
  --t-title: 68px;
  --t-big: 46px;
  --t-words: 41px;
  --t-note: 37px;
  --t-card: 29px;
  --t-why: 27px;
  --t-inv: 37px;
  --t-inv-full: 52px;
  --w-1: 800;
  --w-2: 700;
  --stretch: 80%;
  --dot: 70px;
  --dot-xl: 100px;
  --radius: 32px;
}

/* ---------- Surfaces ---------- */
.s-base, .s-home {
  --bg: var(--paper);
  --fg: var(--ink);
  --mute: #7C766C;
  --faint: #B4AEA3;
  --hair: #EAE5DC;
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --card: #fff;
  --card-fg: var(--ink);
  --card-mute: #7C766C;
  --card-line: #EAE5DC;
  --card-btn-bg: var(--ink);
  --card-btn-fg: #fff;
  background: var(--bg);
  color: var(--fg);
}

.s-tint,
body[data-theme="bold"] .s-home.has-feat {
  --bg: var(--c);
  --fg: var(--ink);
  --mute: rgba(23, 20, 15, .68);
  --faint: rgba(23, 20, 15, .42);
  --hair: rgba(23, 20, 15, .16);
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  background: var(--bg);
  color: var(--fg);
}

/* Bold never goes dark: colour is the person, everything else is warm paper. */
body[data-theme="bold"] .s-home.has-feat {
  --card: var(--paper);
  --card-fg: var(--ink);
  --card-mute: #7C766C;
  --card-line: transparent;
  --card-btn-bg: var(--ink);
  --card-btn-fg: #fff;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--desk); color: var(--ink); font-family: var(--text); -webkit-font-smoothing: antialiased; }
#root { height: 100%; }
h1, h2, h3, p, blockquote { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.solid { fill: currentColor; stroke: none; }

/* ---------- Prototype shell ---------- */
.stage { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 18px 0; }
.viewas { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; }
.seg { display: inline-flex; background: #E3DED5; border-radius: 99px; padding: 3px; }
.seg > * { font-size: 13px; font-weight: 500; color: #7C766C; padding: 7px 13px; border-radius: 99px; white-space: nowrap; }
.seg > .on { background: #fff; color: var(--ink); }
.seg.back > span { color: var(--ink); font-weight: 600; }
.reset { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #7C766C; }
.reset svg { width: 17px; height: 17px; }

.phone {
  position: relative;
  width: 390px;
  height: min(820px, calc(100vh - 96px));
  min-height: 560px;
  border-radius: 44px;
  border: 1px solid #DDD7CC;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

@media (max-width: 520px) {
  .stage { padding: 0; gap: 0; justify-content: flex-start; height: 100%; }
  .viewas { width: 100%; padding: 6px 4px; gap: 4px 6px; }
  .seg > * { font-size: 12px; padding: 6px 9px; }
  #views { order: 2; display: grid; grid-template-columns: repeat(3, auto); border-radius: 18px; }
  #views > * { text-align: center; }
  .reset { order: 1; }
  .phone { width: 100%; flex: 1; height: auto; min-height: 0; border-radius: 0; border: 0; }
}

/* ---------- App frame ---------- */
#base { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.page { flex: 1; min-height: 0; overflow-y: auto; padding: 56px 24px 28px; scrollbar-width: none; }
.page::-webkit-scrollbar, .sheet-body::-webkit-scrollbar { display: none; }

.title, .big, .note-q, .words, .card h3, .why, .invitation h2, .field, .year {
  font-family: var(--display);
  font-stretch: var(--stretch);
}

.title { font-weight: var(--w-1); font-size: var(--t-title); line-height: .94; letter-spacing: -0.035em; }
.big { font-weight: var(--w-1); font-size: var(--t-big); line-height: 1.02; letter-spacing: -0.03em; }
.lead { font-size: 15px; line-height: 1.45; color: var(--mute); margin-top: 12px; }
.label { font-size: 13px; font-weight: 600; color: var(--mute); margin: 30px 0 12px; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 12px; }
.label-row .label { margin: 0; }
.add-link { font-size: 13px; font-weight: 600; padding: 6px 0; }
.add-links { display: inline-flex; gap: 16px; }
body[data-theme="bold"] .year { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--faint); margin: 34px 0 6px; }

/* ---------- People ---------- */
.people { display: flex; gap: 16px; margin-top: 28px; }
.people.tight { gap: 10px; --dot: 58px; }
.who { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.nm { font-size: 13px; font-weight: 500; }
.who.add .nm, .nm.soft { color: var(--mute); }

.dot {
  width: var(--dot);
  height: var(--dot);
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: calc(var(--dot) * .4);
  position: relative;
  transition: transform .3s var(--spring);
}
.dot.photo { background: var(--c) center / cover no-repeat; border: 3px solid var(--c); }
.dot.leo { background: var(--fg); color: var(--bg); }
.dot.sm { --dot: 26px; border-width: 0; }
.dot.s36 { --dot: 36px; border-width: 0; }
.dot.md { --dot: 40px; border-width: 2px; }
.dot.xl { --dot: var(--dot-xl); }
.dot.new::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2.5px solid var(--fg);
  animation: breathe 2.6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: .55; } }
.dot.pending { background: color-mix(in srgb, var(--c) 28%, var(--bg)); border: 1.5px dashed var(--c); color: var(--fg); }
.who:active .dot { transform: scale(.9); }
.who.add .dot { background: transparent; border: 1.5px dashed var(--faint); color: var(--mute); font-weight: 500; }
.dot.ico svg { width: 16px; height: 16px; }

body[data-theme="bold"] .people .dot:not(.pending),
body[data-theme="bold"] .picker .dot { border: 3px solid var(--fg); }
body[data-theme="bold"] .who.add .dot { border: 2px dashed var(--faint); }
body[data-theme="bold"] .dot.new::after { inset: -10px; border-width: 3px; }

/* ---------- Featured note ---------- */
.note { display: block; width: 100%; border-radius: var(--radius); padding: 20px 22px; margin-top: 30px; transition: transform .2s var(--ease); }
.note:active { transform: scale(.985); }
.note-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.note-top > span:last-child { font-weight: 500; opacity: .7; }
.note-who { display: inline-flex; align-items: center; gap: 8px; }
.note-q {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  font-weight: var(--w-2); font-size: var(--t-note); line-height: 1.12; letter-spacing: -0.02em;
  margin-top: 14px;
}
.note-play { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.pbtn { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; }
.pbtn svg { width: 18px; height: 18px; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 26px; }
.wave i { flex: 1; border-radius: 2px; background: var(--fg); opacity: .28; }
.note:not(:has(.note-q)) .wave { height: 54px; }
.plan-note { display: block; font-size: 15.5px; line-height: 1.4; font-weight: 500; color: var(--mute); margin-top: 10px; }
.plan-state { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.plan-when { font-size: 13px; font-weight: 600; color: var(--mute); margin-bottom: 10px; }
.sheet-body > .pair { margin-top: 26px; }

body[data-theme="bold"] .s-home.has-feat .note { background: transparent; padding: 0; border-radius: 0; margin-top: 34px; }
body[data-theme="bold"] .note-q { -webkit-line-clamp: 5; line-height: 1.02; letter-spacing: -0.03em; }
body[data-theme="bold"] .note-play .pbtn { width: 64px; height: 64px; }
body[data-theme="bold"] .note-play .pbtn svg { width: 24px; height: 24px; }
body[data-theme="bold"] .wave { height: 34px; }

/* ---------- Card ---------- */
.card {
  --fg: var(--card-fg);
  --mute: var(--card-mute);
  --btn-bg: var(--card-btn-bg);
  --btn-fg: var(--card-btn-fg);
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 14px;
}
body[data-theme="bold"] .s-home.has-feat .card { margin-top: 30px; }
.card .eyebrow { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.card h3 { font-weight: var(--w-2); font-size: var(--t-card); line-height: 1.12; letter-spacing: -0.02em; }
.card p { font-size: 14.5px; line-height: 1.45; color: var(--mute); margin-top: 8px; }
.card .btn { margin-top: 18px; }
.card .alt { display: block; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.done-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--mute); margin-top: 22px; padding: 0 4px; }
.demo { display: block; margin: 14px auto 0; padding: 8px 12px; font-size: 13px; font-weight: 500; color: var(--mute); border: 1px dashed var(--faint); border-radius: 99px; }
.card .demo { margin-left: 0; }
.foot-link { margin-top: 22px; }
.foot-link .quiet { margin-top: 0; padding: 0; }
.foot-link .demo { margin: 0; }
.empty { font-size: 15px; line-height: 1.45; color: var(--faint); margin-top: 34px; }
.facts { list-style: none; margin: 22px 0 0; padding: 0; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.38; font-weight: 500; padding: 10px 0; }
.facts svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; stroke-width: 2.3; }
textarea.field.short { height: 110px; margin-top: 0; }
.rows.faces { margin-top: 24px; }
.rows.faces .row { gap: 18px; padding: 14px 0; }
.rows.faces .row-q { font-family: var(--display); font-stretch: var(--stretch); font-weight: var(--w-2); font-size: 26px; letter-spacing: -0.02em; }
.rows.faces .row-meta { font-size: 13.5px; margin-top: 4px; }
blockquote.thanks { font-family: var(--display); font-stretch: var(--stretch); font-weight: var(--w-2); font-size: var(--t-why); line-height: 1.2; margin-top: 18px; }
.done-line svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--fg); stroke-width: 2.2; }
.quiet { display: inline-block; margin-top: 14px; padding: 0 4px; font-size: 13.5px; font-weight: 500; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 15px; font-weight: 600;
  padding: 15px 22px; border-radius: 99px;
  transition: transform .2s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.wide { width: 100%; }
.btn.line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn[disabled] { opacity: .3; cursor: default; }
.btn svg { width: 18px; height: 18px; stroke-width: 2; }
.link { font-size: 14px; font-weight: 500; color: var(--mute); padding: 12px; }

/* ---------- Tab bar: three fixed places ---------- */
.tabs {
  flex: 0 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 10px 28px calc(14px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--hair);
}
body[data-theme="bold"] .tabs { background: transparent; --faint: rgba(23, 20, 15, .46); border-top-color: rgba(23, 20, 15, .12); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 6px 0; }
.tab.on { color: var(--fg); }
.tab svg { width: 24px; height: 24px; }
.mic { width: 62px; height: 62px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; transition: transform .2s var(--ease); }
.mic:active { transform: scale(.93); }
.mic svg { width: 26px; height: 26px; }

/* ---------- Rows ---------- */
.rows { margin-top: 4px; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; }
.row-q { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { display: block; font-size: 12.5px; color: var(--mute); margin-top: 3px; }
.row-dur { font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; }

/* ---------- Sheets ---------- */
#sheet { position: absolute; inset: 0; z-index: 5; visibility: hidden; pointer-events: none; }
#sheet.open { visibility: visible; pointer-events: auto; }
.layer { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; will-change: clip-path, transform; transition: background-color .5s var(--soft); }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; min-height: 94px; padding: 50px 18px 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; stroke-width: 2; }
.sheet-bar .mid { font-size: 14px; font-weight: 600; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 24px 0; scrollbar-width: none; }
.sheet-foot { flex: 0 0 auto; padding: 16px 24px calc(28px + env(safe-area-inset-bottom)); }
.sheet-foot.center { text-align: center; }

/* Story player */
.segs { display: flex; gap: 4px; padding: 22px 26px 0; flex: 0 0 auto; }
.segs i { flex: 1; height: 3.5px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.segs b { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--fg); }
.story-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 0 24px; flex: 0 0 auto; }
.story-who { display: flex; align-items: center; gap: 10px; }
.story-who b { display: block; font-size: 14px; font-weight: 600; }
.story-who small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 1px; }
.story-body { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 22px 24px 0; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
#sBody { height: 100%; }
.words { font-weight: var(--w-2); font-size: var(--t-words); line-height: 1.1; letter-spacing: -0.025em; transition: transform .6s var(--soft); }
.words.long { font-size: calc(var(--t-words) * .74); }
.words.xlong { font-size: calc(var(--t-words) * .58); }
.words span { display: inline-block; color: color-mix(in srgb, var(--fg) 24%, transparent); transition: color .25s; }
.words span.on { color: var(--fg); animation: word .34s var(--spring); }
@keyframes word { from { transform: translateY(5px) scale(.94); } }
.peaks { display: flex; align-items: center; gap: 4px; height: 170px; margin-top: 30px; }
.peaks i { flex: 1; border-radius: 4px; background: color-mix(in srgb, var(--fg) 24%, transparent); transition: background .2s, transform .3s var(--spring); }
.peaks i.on { background: var(--fg); transform: scaleY(1.08); }
.flash { position: absolute; left: 50%; top: 46%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; opacity: 0; pointer-events: none; }
.flash svg { width: 32px; height: 32px; }
.flash.go { animation: flash .55s ease-out; }
@keyframes flash { 0% { opacity: .92; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.35); } }
.player-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pp-wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.player-ctrl .pbtn { width: 68px; height: 68px; transition: transform .3s var(--spring); }
.player-ctrl .pbtn:active { transform: scale(.9); }
.player-ctrl .pbtn svg { width: 24px; height: 24px; }
.tnow { font-size: 12.5px; font-weight: 500; color: var(--mute); font-variant-numeric: tabular-nums; }
.nudge { animation: nudge 1.5s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.kept-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--mute); margin-top: 20px; }
.kept-tag svg { width: 14px; height: 14px; stroke-width: 2; }

/* Record / write */
.rec-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rec-zone { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.halo { position: absolute; inset: 18px; border-radius: 50%; background: var(--red); opacity: 0; transition: transform .14s linear, opacity .2s; }
.rec-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rec-ring circle { fill: none; stroke-width: 4; }
.rr-bg { stroke: var(--hair); }
.rr-fg { stroke: var(--red); transition: stroke-dashoffset .12s linear; }
.rec-btn {
  position: relative; width: 100px; height: 100px; border-radius: 50%;
  background: var(--btn-bg); color: var(--btn-fg);
  display: grid; place-items: center;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .35s var(--spring), background .2s, color .2s;
}
.rec-btn:active { transform: scale(.9); }
.rec-btn svg { width: 36px; height: 36px; stroke-width: 1.8; pointer-events: none; }
.rec-btn.live { background: var(--red); color: #fff; transform: scale(.78); }
.rec-btn.live svg { width: 34px; height: 34px; }
.rec-hint { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.live-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 84px; margin-top: 36px; opacity: 0; transition: opacity .3s; }
.live-wave.on { opacity: 1; }
.live-wave i { width: 5px; height: 8%; border-radius: 3px; background: var(--fg); transition: height .1s linear; }
/* On a person's colour, recording is ink instead of red. */
.s-tint .halo { background: var(--ink); }
.s-tint .rr-fg { stroke: var(--ink); }
.s-tint .rec-btn.live { background: var(--ink); }
.notice { font-size: 14px; line-height: 1.4; color: var(--mute); margin-top: 18px; }

.idea { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.idea:last-child { border-bottom: 0; }
.idea b { display: block; font-size: 13px; font-weight: 600; color: var(--mute); margin-bottom: 2px; }
.idea span { font-size: 15.5px; line-height: 1.35; font-weight: 500; }

.picker { display: flex; gap: 14px; margin-top: 24px; --dot: 58px; }
.picker .who .dot { opacity: .35; }
.picker .who.on .dot { opacity: 1; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--fg); }
.picker .who .nm { color: var(--mute); }
.picker .who.on .nm { color: var(--fg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font-size: 14.5px; font-weight: 500; color: var(--mute); padding: 10px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--faint); }
.chip.on { background: var(--btn-bg); color: var(--btn-fg); box-shadow: none; }
.chips.second { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); gap: 6px; }
.chips.second .chip { padding: 10px 13px; }

.sent { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 24px; }
.sent .hero { position: relative; width: max-content; margin-bottom: 28px; animation: pop .7s var(--spring) .12s both; }
.sent .hero .dot.photo { border-color: var(--ink); }
.sent .hero .dot:not(.photo):not(.leo) { background: var(--ink); color: var(--c); }
.badge { position: absolute; right: -8px; bottom: -6px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; animation: pop .55s var(--spring) .45s both; }
.badge svg { width: 21px; height: 21px; stroke-width: 2.6; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s ease-out .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent .big { animation: rise .6s var(--soft) .3s both; }
.sent .lead { animation: rise .6s var(--soft) .4s both; }

/* "You're beside Leo now" */
.beside { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 24px; text-align: left; }
.pair { display: flex; margin-bottom: 30px; }
.pair .dot { border: 4px solid var(--bg); }
.pair .dot:first-child { animation: from-left .9s var(--spring) .1s both; }
.pair .dot:last-child { margin-left: -18px; animation: from-right .9s var(--spring) .1s both; }
@keyframes from-left { from { transform: translateX(-90px); opacity: 0; } }
@keyframes from-right { from { transform: translateX(90px); opacity: 0; } }
.beside .big { display: block; animation: rise .6s var(--soft) .55s both; }
.beside .lead { display: block; animation: rise .6s var(--soft) .7s both; }

/* Fields */
.field {
  width: 100%;
  font-weight: var(--w-2); font-size: 30px; letter-spacing: -0.02em;
  color: var(--fg); background: transparent;
  border: 0; border-bottom: 2px solid var(--fg); border-radius: 0;
  padding: 10px 0 12px; margin-top: 30px; outline: none;
}
.field::placeholder { color: var(--faint); }
.field.small { font-size: 22px; margin-top: 24px; }
textarea.field { font-size: 22px; line-height: 1.25; border: 0; resize: none; height: 220px; padding: 0; margin-top: 24px; }
.steps { display: flex; gap: 5px; }
.steps i { width: 18px; height: 4px; border-radius: 4px; background: var(--hair); }
.steps i.on { background: var(--fg); }

/* Person */
.person-head { flex: 0 0 auto; padding: 0 24px 26px; }
.person-head .sheet-bar { padding-left: 0; padding-right: 0; margin: 0 -6px; }
.person-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.person-top p { font-size: 15px; font-weight: 500; color: var(--mute); margin-top: 8px; }
.ph { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.ph .dot.photo { border-color: var(--ink); }
.ph .dot:not(.photo) { background: transparent; border: 1.5px dashed var(--ink); font-weight: 500; }
.why { font-weight: var(--w-2); font-size: var(--t-why); line-height: 1.2; letter-spacing: -0.015em; }
.by { font-size: 13px; color: var(--mute); margin-top: 10px; }

/* Invitation */
.invitation { border-radius: var(--radius); padding: 24px 22px; }
.invitation .from { font-size: 13px; font-weight: 600; color: var(--mute); }
.invitation h2 { font-weight: var(--w-1); font-size: var(--t-inv); line-height: 1.04; letter-spacing: -0.03em; margin-top: 12px; }
.invitation blockquote { margin-top: 20px; padding-top: 18px; border-top: 1.5px solid var(--hair); font-size: 17px; line-height: 1.42; font-weight: 500; }
.full-invite { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.full-invite .page { padding-top: 72px; }
.full-invite .invitation { padding: 0; border-radius: 0; }
.full-invite .invitation h2 { font-size: var(--t-inv-full); }
.full-invite .invitation blockquote { font-size: 19px; }
.asks { margin-top: 26px; font-size: 14.5px; line-height: 1.45; color: var(--mute); }
.full-invite .link { display: inline-block; margin-top: 4px; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes slide { from { opacity: 0; transform: translateX(34px); } }

.enter > * { animation: rise .7s var(--soft) both; }
.enter > :nth-child(2) { animation-delay: 70ms; }
.enter > :nth-child(3) { animation-delay: 140ms; }
.enter > :nth-child(4) { animation-delay: 210ms; }
.enter > :nth-child(5) { animation-delay: 280ms; }
.enter > :nth-child(n+6) { animation-delay: 340ms; }
.enter > .people { animation: none; }
.enter .people .who { animation: pop .65s var(--spring) both; animation-delay: calc(120ms + var(--n, 0) * 70ms); }
.enter .rows .row { animation: rise .55s var(--soft) both; }
.enter .rows .row:nth-child(2) { animation-delay: 50ms; }
.enter .rows .row:nth-child(3) { animation-delay: 100ms; }
.enter .rows .row:nth-child(4) { animation-delay: 150ms; }
.enter .rows .row:nth-child(n+5) { animation-delay: 200ms; }
.enter .idea { animation: rise .6s var(--soft) both; animation-delay: calc(260ms + var(--n, 0) * 130ms); }
.enter .idea .dot { animation: pop .6s var(--spring) both; animation-delay: calc(260ms + var(--n, 0) * 130ms); }
.fresh-top .row:first-child { animation: rise .6s var(--spring) both; }
.slide-in > * { animation: slide .45s var(--soft) both; }
.slide-in > :nth-child(2) { animation-delay: 50ms; }
.slide-in > :nth-child(3) { animation-delay: 100ms; }
.card-in { animation: pop .7s var(--spring) both; transform-origin: 50% 80%; }

/* The invitation unfolds line by line: this is the moment that has to land. */
.unfold .from { animation: rise .7s var(--soft) .15s both; }
.unfold h2 { animation: rise .9s var(--soft) .35s both; }
.unfold blockquote { animation: rise .9s var(--soft) 1.05s both; }
.unfold .asks { animation: rise .8s var(--soft) 1.6s both; }
.unfold-foot > * { animation: rise .7s var(--spring) 2s both; }

.btn, .mic, .tab, .chip, .icon-btn, .row, .note { transition: transform .3s var(--spring), opacity .2s, background-color .2s, color .2s; }
.mic:active, .icon-btn:active { transform: scale(.88); }
.tab:active, .chip:active { transform: scale(.92); }
.row:active { transform: scale(.985); }
.enter ~ .tabs .tab.on svg { animation: pop .5s var(--spring); }

/* Bold: the whole screen takes the colour of whoever spoke last, and changes like a breath. */
body[data-theme="bold"] #base { background: var(--home, var(--paper)); transition: background-color .8s var(--soft); }
body[data-theme="bold"] .s-home.has-feat { background: transparent; }
body[data-theme="bold"] .year { position: sticky; top: 0; z-index: 1; background: var(--bg); padding: 30px 0 6px; margin: 4px 0 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
