/* Paper theme: black and white only, from design/tokens.json */
:root {
  --bg: #ffffff;
  --bg-alt: #f2f2f2;
  --ink: #000000;
  --ink-2: #595959;
  --tone-1: #e6e6e6;
  --tone-2: #d4d4d4;
  --tone-3: #c2c2c2;
  --border: 1px;
  --btn-radius: 8px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--bg); border: var(--border) solid var(--ink); padding: 8px 12px; font-weight: 700; z-index: 10;
}
.skip:focus { top: 16px; }

/* Cards and buttons: hairline ink border, square cards, no shadow */
.card {
  background: var(--bg);
  border: var(--border) solid var(--ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  background: var(--ink); color: var(--bg);
  border: var(--border) solid var(--ink); border-radius: var(--btn-radius);
  font: 700 1.0625rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: opacity 80ms ease;
}
.btn:hover { opacity: 0.8; }
.btn:active { opacity: 0.65; }
.btn:disabled { opacity: 0.4; cursor: progress; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; text-decoration: none; letter-spacing: -0.02em; }
.wordmark-sm { font-size: 1.5rem; }
.top-link { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Hero */
.hero { display: grid; gap: 48px; padding-top: 24px; padding-bottom: 72px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 40px; padding-bottom: 96px; } }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase;
  border: var(--border) solid var(--ink); padding: 4px 10px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.75rem, 9vw, 5.25rem); margin-bottom: 20px; }
.lede { font-size: 1.1875rem; max-width: 34em; margin-bottom: 32px; }

/* Waitlist form */
.join, .joined { padding: 24px; max-width: 560px; }
@media (min-width: 720px) { .join, .joined { padding: 28px 32px 32px; } }
.join-title { font-size: 1.75rem; margin-bottom: 6px; }
.join-sub { color: var(--ink-2); margin-bottom: 20px; }

.row { display: grid; gap: 0 16px; }
@media (min-width: 540px) { .row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-2); }

input[type="email"], input[type="text"], select {
  width: 100%; min-height: 50px; padding: 10px 14px;
  font: 400 1.0625rem/1.3 var(--body); color: var(--ink);
  background: var(--bg); border: var(--border) solid var(--ink); border-radius: var(--btn-radius);
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
input:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--ink); }

.field-error, .status-error {
  margin-top: 8px; font-weight: 700; color: var(--ink);
  padding-left: 12px; border-left: 3px solid var(--ink);
}
.status { margin-top: 14px; min-height: 1.55em; }
.status:empty { margin-top: 0; min-height: 0; }

.join .btn { width: 100%; margin-top: 4px; }
@media (min-width: 540px) { .join .btn { width: auto; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.joined { background: var(--bg-alt); }
.joined:focus { outline: none; }
.joined:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.joined-burst { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.joined-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }

/* Hero illustration: the two-phone loop from the app's connect screen (PhonePair in BumpScreen.swift).
   62x112 outlined phones on a 4s loop: apart (+-84, +-14deg) -> touching (+-48, +-20deg) -> apart. */
.hero-art { --s: 1.4px; position: relative; width: calc(220 * var(--s)); height: calc(220 * var(--s)); max-width: 100%; margin: 0 auto; }
@media (min-width: 960px) { .hero-art { --s: 1.8px; } }
.phone {
  position: absolute; left: 50%; top: 50%;
  width: calc(62 * var(--s)); height: calc(112 * var(--s)); margin: calc(-56 * var(--s)) 0 0 calc(-31 * var(--s));
  background: var(--bg); border: calc(1.5 * var(--s)) solid var(--ink); border-radius: calc(12 * var(--s));
}
.phone::before { content: ""; position: absolute; left: 50%; top: calc(8.5 * var(--s)); width: calc(16 * var(--s)); height: calc(2 * var(--s)); margin-left: calc(-8 * var(--s)); background: var(--ink); }
.phone-left { animation: meet-left 4s infinite; }
.phone-right { animation: meet-right 4s infinite; }
@keyframes meet-left {
  0%, 100% { transform: translateX(calc(-84 * var(--s))) rotate(14deg); }
  12% { transform: translateX(calc(-84 * var(--s))) rotate(14deg); animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95); }
  32%, 48% { transform: translateX(calc(-48 * var(--s))) rotate(20deg); }
  48% { animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95); }
  68% { transform: translateX(calc(-84 * var(--s))) rotate(14deg); }
}
@keyframes meet-right {
  0%, 100% { transform: translateX(calc(84 * var(--s))) rotate(-14deg); }
  12% { transform: translateX(calc(84 * var(--s))) rotate(-14deg); animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95); }
  32%, 48% { transform: translateX(calc(48 * var(--s))) rotate(-20deg); }
  48% { animation-timing-function: cubic-bezier(0.445, 0.05, 0.55, 0.95); }
  68% { transform: translateX(calc(84 * var(--s))) rotate(-14deg); }
}
/* "bumped!" appears on both screens as the phones part (48% -> 80% of the loop). */
.phone b {
  position: absolute; left: 0; right: 0; top: 50%; margin-top: calc(-6 * var(--s)); text-align: center;
  font: 800 calc(11 * var(--s))/1 var(--display); letter-spacing: -0.01em; opacity: 0;
  animation: bumped 4s infinite;
}
@keyframes bumped {
  0%, 46% { opacity: 0; transform: scale(0.8); }
  54% { opacity: 1; transform: scale(1); }
  78% { opacity: 1; transform: scale(1); }
  88%, 100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .phone b { animation: none; opacity: 1; }
  .phone-left { animation: none; transform: translateX(calc(-48 * var(--s))) rotate(20deg); }
  .phone-right { animation: none; transform: translateX(calc(48 * var(--s))) rotate(-20deg); }
}

/* Sections */
section h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 16px; }
.section-lede { font-size: 1.1875rem; max-width: 36em; margin-bottom: 32px; }

.how { background: var(--bg-alt); border-top: var(--border) solid var(--ink); border-bottom: var(--border) solid var(--ink); padding: 72px 0; }
.how h2 { margin-bottom: 32px; }
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 24px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 24px; }
.step h3, .promise h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px;
  border: var(--border) solid var(--ink); border-radius: 50%; background: var(--bg);
  font-family: var(--display); font-weight: 800; font-size: 1.375rem;
}

.features { padding-top: 72px; padding-bottom: 72px; }
.features h2 { margin-bottom: 32px; }
.privacy { padding-top: 72px; padding-bottom: 72px; }
/* Every other section sits on the grey band, like "How it works". */
.band { background: var(--bg-alt); border-top: var(--border) solid var(--ink); border-bottom: var(--border) solid var(--ink); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(2, 1fr); } }
.promise { padding: 24px; }
.promise p, .step p { color: var(--ink-2); }

.cta { text-align: center; padding-top: 72px; padding-bottom: 88px; border-bottom: 0; }
.cta h2 { margin-bottom: 24px; }

/* Footer */
.foot { border-top: var(--border) solid var(--ink); padding: 28px 0; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { font-weight: 500; text-underline-offset: 4px; }

/* Simple text pages (terms, privacy) */
.page { padding-top: 24px; padding-bottom: 88px; max-width: 720px; }
.page h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); margin-bottom: 20px; }
.page p { margin-bottom: 16px; }
.page h2 { font-size: 1.5rem; margin: 36px 0 12px; }
.page ul { margin: 0 0 16px; padding-left: 1.25rem; }
.page li { margin-bottom: 8px; }
.page .updated { color: var(--ink-2); font-size: 0.9rem; }

/* FAQ */
.faq { padding-top: 72px; padding-bottom: 72px; }
.faq h2 { margin-bottom: 32px; }
.faq-list { display: grid; gap: 16px; max-width: 760px; }
.qa { padding: 0; }
.qa summary { cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.125rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-family: var(--display); font-weight: 800; }
.qa[open] summary::after { content: '–'; }
.qa summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.qa p { padding: 0 24px 20px; color: var(--ink-2); }

/* Blog */
.post h1 { line-height: 1.1; }
.post ol { margin: 0 0 16px; padding-left: 1.25rem; }
.post h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.post code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }
.post pre { background: var(--bg-alt); border: var(--border) solid var(--tone-2); padding: 16px; overflow-x: auto; margin-bottom: 16px; border-radius: 8px; }
.post pre code { background: none; padding: 0; }
.post blockquote { border-left: 3px solid var(--ink); margin: 0 0 16px; padding-left: 16px; color: var(--ink-2); }
.post-list { list-style: none; padding: 0 !important; }
.post-list li { border-top: var(--border) solid var(--tone-2); padding-top: 24px; margin-bottom: 24px; }
.post-list h2 { margin: 0 0 4px; }
.post-list a { text-decoration: none; }
.post-list a:hover h2 { text-decoration: underline; }

/* "After the boop": a phone drawn in HTML that flips through the app's three tabs, with the matching description
   beside it. The phone's tab bar is real buttons: a tap shows that screen and stops the flipping.
   Everything inside the phone is sized in app points: --u is one point on a 390pt-wide iPhone screen.
   With reduced motion (or no JavaScript) nothing moves: the first screen shows and the tabs switch screens. */
.shots-wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; margin: 0; }
@media (min-width: 720px) { .shots-wrap { flex-direction: row; align-items: center; gap: 72px; } }
.demo-phone {
  position: relative; overflow: hidden; flex: none; container-type: inline-size;
  width: min(280px, 72vw); aspect-ratio: 390 / 848;
  border: var(--border) solid var(--ink); border-radius: 32px; background: var(--bg); color: var(--ink);
  font-family: var(--body); line-height: 1.25;
}
.demo-phone * { --u: calc(100cqw / 390); }
.demo-phone b { font-weight: 800; }

.app-status { position: absolute; top: 0; left: 0; right: 0; height: calc(54 * var(--u)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(30 * var(--u)) 0 calc(48 * var(--u)); }
.app-time { font-weight: 700; font-size: calc(16 * var(--u)); padding-top: calc(4 * var(--u)); }
.app-island { position: absolute; top: calc(11 * var(--u)); left: 50%; width: calc(122 * var(--u)); height: calc(36 * var(--u)); margin-left: calc(-61 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--ink); }
.app-status-icons { display: flex; align-items: center; gap: calc(5 * var(--u)); padding-top: calc(4 * var(--u)); }
.app-status-icons svg { fill: currentColor; height: calc(11 * var(--u)); width: auto; }
.app-status-icons .i-battery { height: calc(12 * var(--u)); }

.app-header { position: absolute; top: calc(54 * var(--u)); left: 0; right: 0; height: calc(58 * var(--u)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(18 * var(--u)) 0 calc(24 * var(--u)); }
.app-wordmark { font-family: var(--display); font-weight: 800; font-size: calc(30 * var(--u)); letter-spacing: -0.01em; }
.app-header-icons { display: flex; gap: calc(16 * var(--u)); }
.app-header-icons svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }

.app-body { position: absolute; top: calc(112 * var(--u)); left: 0; right: 0; bottom: calc(114 * var(--u)); overflow: hidden; }
.shot { position: absolute; inset: 0; margin: 0; padding: calc(6 * var(--u)) calc(24 * var(--u)) 0; background: var(--bg); }
.shot p { margin: 0; }
.app-day { font-family: var(--display); font-weight: 800; font-size: calc(19 * var(--u)); margin: calc(18 * var(--u)) 0 calc(10 * var(--u)) !important; }

/* Calendar */
.cal-nav { display: flex; align-items: center; justify-content: space-between; height: calc(40 * var(--u)); padding: 0 calc(10 * var(--u)); }
.cal-nav b { font-family: var(--display); font-size: calc(22 * var(--u)); }
.cal-nav span { font-size: calc(28 * var(--u)); line-height: 1; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-week { font-size: calc(11 * var(--u)); color: var(--ink-2); margin: calc(8 * var(--u)) 0 calc(4 * var(--u)); }
.cal-days span { position: relative; display: flex; align-items: center; justify-content: center; height: calc(41 * var(--u)); font-size: calc(15 * var(--u)); }
.cal-days .sel::before, .cal-days .today::before { content: ""; position: absolute; top: 50%; left: 50%; width: calc(30 * var(--u)); height: calc(30 * var(--u)); margin: calc(-15 * var(--u)) 0 0 calc(-15 * var(--u)); border-radius: 50%; border: calc(1.5 * var(--u)) solid var(--ink); box-sizing: border-box; z-index: -1; }
.cal-days .sel, .cal-days .today { z-index: 0; }
.cal-days .today { color: var(--bg); }
.cal-days .today::before { background: var(--ink); }
.cal-days .dot { position: absolute; bottom: calc(-2 * var(--u)); left: 50%; width: calc(4.5 * var(--u)); height: calc(4.5 * var(--u)); margin-left: calc(-2.25 * var(--u)); border-radius: 50%; background: var(--ink); }
.cal-days .cake { position: absolute; top: calc(29 * var(--u)); left: 50%; width: calc(10 * var(--u)); height: calc(9 * var(--u)); margin-left: calc(-5 * var(--u)); }
.app-card { border: var(--border) solid var(--ink); padding: calc(12 * var(--u)) calc(15 * var(--u)) calc(14 * var(--u)); margin-bottom: calc(12 * var(--u)); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; font-size: calc(12.5 * var(--u)); color: var(--ink-2); margin-bottom: calc(8 * var(--u)); }
.app-tag { border: var(--border) solid var(--ink); color: var(--ink); font-size: calc(10 * var(--u)); letter-spacing: 0.06em; padding: calc(2 * var(--u)) calc(6 * var(--u)); }
.app-card b { font-family: var(--display); font-size: calc(19 * var(--u)); }

/* Photos */
.ph-filter { display: flex; align-items: center; gap: calc(10 * var(--u)); font-size: calc(13.5 * var(--u)); color: var(--ink-2); padding-top: calc(8 * var(--u)); }
.ph-drop { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); height: calc(42 * var(--u)); padding: 0 calc(12 * var(--u)) 0 calc(14 * var(--u)); border: var(--border) solid var(--ink); color: var(--ink); font-size: calc(14.5 * var(--u)); }
.ph-drop svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(6 * var(--u)); }
.ph-grid i { aspect-ratio: 1; border: calc(2 * var(--u)) solid var(--ink); box-sizing: border-box; }
.demo-phone .t1 { background: #e3e3e3; }
.demo-phone .t2 { background: #d4d4d4; }
.demo-phone .t3 { background: #bcbcbc; }

/* People */
.pp-card { display: flex; align-items: center; gap: calc(14 * var(--u)); height: calc(76 * var(--u)); padding: 0 calc(14 * var(--u)); border: var(--border) solid var(--ink); margin-bottom: calc(15 * var(--u)); box-sizing: border-box; }
.pp-av { flex: none; display: flex; align-items: center; justify-content: center; width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; border: calc(1.5 * var(--u)) solid var(--ink); box-sizing: border-box; font-family: var(--display); font-weight: 800; font-size: calc(16 * var(--u)); }
.pp-card b { display: block; font-family: var(--display); font-size: calc(21 * var(--u)); }
.pp-card small { display: block; font-size: calc(12.5 * var(--u)); color: var(--ink-2); margin-top: calc(2 * var(--u)); }

/* The phone's own tab bar: real buttons. */
.phone-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: calc(114 * var(--u)); display: flex; background: var(--bg); }
.phone-tabs button { flex: 1; display: flex; justify-content: center; align-items: flex-start; margin: 0; padding: calc(22 * var(--u)) 0 0; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); font-family: var(--display); font-weight: 800; font-size: calc(14 * var(--u)); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.phone-tabs button span { padding-bottom: calc(6 * var(--u)); border-bottom: calc(1.5 * var(--u)) solid transparent; }
.phone-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 8px; }
/* Active tab: the first one until a screen is chosen; then whichever is pressed. */
.phone-tabs button:first-child, .phone-tabs button[aria-pressed="true"] { color: var(--ink); }
.phone-tabs button:first-child span, .phone-tabs button[aria-pressed="true"] span { border-bottom-color: currentColor; }
.shots-wrap.manual .phone-tabs button[aria-pressed="false"] { color: var(--ink-2); }
.shots-wrap.manual .phone-tabs button[aria-pressed="false"] span { border-bottom-color: transparent; }

/* Screens and descriptions: stacked; the first shows until one is chosen. */
.shot { transform: translateX(100%); }
.shot:first-child { transform: none; }
.shots-wrap.manual .shot { transform: translateX(100%); }
.shots-wrap.manual .shot.is-before { transform: translateX(-100%); }
.shots-wrap.manual .shot.is-active { transform: none; }
.shot-notes { display: grid; max-width: 30em; }
.shot-note { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.shot-note:first-child { opacity: 1; visibility: visible; }
.shots-wrap.manual .shot-note { opacity: 0; visibility: hidden; }
.shots-wrap.manual .shot-note.is-active { opacity: 1; visibility: visible; }
.shot-note h3 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 12px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.shot-note p { font-size: 1.1875rem; color: var(--ink-2); }

@media (prefers-reduced-motion: no-preference) {
  .shots-wrap:not(.manual) .shot { animation: flip-screen 9s infinite backwards; }
  .shots-wrap:not(.manual) .shot-note { animation: flip-note 9s infinite backwards; }
  .shots-wrap:not(.manual) .phone-tabs button { animation: flip-tab 9s infinite backwards; }
  .shots-wrap:not(.manual) .phone-tabs button span { animation: flip-tab-line 9s infinite backwards; }
  /* Each screen's 3s turn starts 0.36s (the slide-in) early, so the cycle opens on Calendar already in place, even when
     the animation is paused by a hover at load. */
  .shots-wrap:not(.manual) .shot:nth-child(1), .shots-wrap:not(.manual) .shot-note:nth-child(1),
  .shots-wrap:not(.manual) .phone-tabs button:nth-child(1), .shots-wrap:not(.manual) .phone-tabs button:nth-child(1) span { animation-delay: -0.36s; }
  .shots-wrap:not(.manual) .shot:nth-child(2), .shots-wrap:not(.manual) .shot-note:nth-child(2),
  .shots-wrap:not(.manual) .phone-tabs button:nth-child(2), .shots-wrap:not(.manual) .phone-tabs button:nth-child(2) span { animation-delay: 2.64s; }
  .shots-wrap:not(.manual) .shot:nth-child(3), .shots-wrap:not(.manual) .shot-note:nth-child(3),
  .shots-wrap:not(.manual) .phone-tabs button:nth-child(3), .shots-wrap:not(.manual) .phone-tabs button:nth-child(3) span { animation-delay: 5.64s; }
  /* Pause on hover only where there is a real pointer: on touch screens a :hover change can make the first tap a
     hover instead of a click (iOS Safari). */
  @media (hover: hover) { .shots-wrap:hover .shot, .shots-wrap:hover .shot-note, .shots-wrap:hover .phone-tabs button, .shots-wrap:hover .phone-tabs button span { animation-play-state: paused; } }
  .shots-wrap.manual .shot { transition: transform 0.45s ease; }
  .shots-wrap.manual .shot-note { transition: opacity 0.3s ease, visibility 0.3s; }
  .shots-wrap.manual .no-anim { transition: none; }
}
@keyframes flip-screen {
  0% { transform: translateX(100%); }
  4%, 33.33% { transform: translateX(0); }
  37.33%, 100% { transform: translateX(-100%); }
}
@keyframes flip-note {
  0% { opacity: 0; visibility: visible; }
  4%, 33.33% { opacity: 1; visibility: visible; }
  37.33%, 100% { opacity: 0; visibility: hidden; }
}
@keyframes flip-tab {
  0%, 2% { color: var(--ink-2); }
  2.01%, 35.33% { color: var(--ink); }
  35.34%, 100% { color: var(--ink-2); }
}
@keyframes flip-tab-line {
  0%, 2% { border-bottom-color: transparent; }
  2.01%, 35.33% { border-bottom-color: currentColor; }
  35.34%, 100% { border-bottom-color: transparent; }
}

/* Blog definitions: superscript links and the appendix */
/* A paragraph that is all italics (like the note on superscripts) reads as smaller subtext. */
.post article > p > em:only-child { font-size: 0.875em; color: var(--ink-2); }
.def-ref { font-size: 0.7em; line-height: 0; margin-left: 1px; }
.def-ref a { text-decoration: none; font-weight: 700; padding: 0 2px; }
.def-ref a:hover, .def-ref a:focus-visible { text-decoration: underline; }
.definitions { margin-top: 48px; padding-top: 8px; border-top: var(--border) solid var(--ink); }
.definitions ol { padding-left: 1.5rem; }
.definitions li { margin-bottom: 10px; color: var(--ink-2); }
.definitions li strong { color: var(--ink); }
.definitions :target, .post :target { background: var(--tone-1); }
.def-back { text-decoration: none; margin-left: 4px; }
