:root {
  color-scheme: light;
  --paper: #f3eee6;
  --surface: #fbf8f3;
  --surface-2: #ebe4d9;
  --ink: #1e1a17;
  --ink-2: #5e554d;
  --ink-3: #93887d;
  --line: rgba(30, 26, 23, 0.13);
  --line-strong: rgba(30, 26, 23, 0.32);
  --accent: #b8475e;
  --accent-ink: #9a3248;
  --accent-bg: #f1dede;
  --tape: rgba(222, 205, 176, 0.75);
  --mark-dot: #e48ba0;
  --lift: 0 1px 0 rgba(30, 26, 23, 0.06), 0 34px 60px -32px rgba(30, 26, 23, 0.42);
  --pin: 0 1px 0 rgba(30, 26, 23, 0.05), 0 18px 34px -24px rgba(30, 26, 23, 0.42);
  --grain-opacity: 0.07;
  --avatar-s: 22%;
  --avatar-l: 86%;
  --avatar-ink: 30%;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%235e554d' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #15120f;
  --surface: #1d1916;
  --surface-2: #29231e;
  --ink: #f0e9df;
  --ink-2: #b9ada1;
  --ink-3: #85796e;
  --line: rgba(240, 233, 223, 0.11);
  --line-strong: rgba(240, 233, 223, 0.28);
  --accent: #e48ba0;
  --accent-ink: #efa3b4;
  --accent-bg: rgba(228, 139, 160, 0.13);
  --tape: rgba(120, 104, 84, 0.6);
  --mark-dot: #b8475e;
  --lift: 0 34px 60px -30px rgba(0, 0, 0, 0.8);
  --pin: 0 18px 34px -22px rgba(0, 0, 0, 0.75);
  --grain-opacity: 0.09;
  --avatar-s: 12%;
  --avatar-l: 22%;
  --avatar-ink: 78%;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%23b9ada1' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Film grain over everything, for a printed-paper feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px 48px; }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: italic 400 21px/1.3 var(--serif);
  color: var(--ink-2);
}
.label::before { content: ""; flex-shrink: 0; width: 28px; height: 1px; background: currentColor; }

/* Masthead */
.top {
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 11px; font: italic 400 30px/1 var(--serif); letter-spacing: -0.01em; }
.mark { flex-shrink: 0; width: 34px; height: 34px; }
.mark-bg { fill: var(--ink); }
.mark-f { font-family: var(--serif); font-style: italic; font-size: 80px; fill: var(--paper); }
.mark-dot { fill: var(--mark-dot); }
.tagline { margin: 0; flex: 1; font: italic 400 19px/1.3 var(--serif); color: var(--ink-3); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.nav-link { margin-left: auto; font: italic 400 20px/1 var(--serif); color: var(--ink-2); text-decoration: none; }
.nav-link:hover { color: var(--accent-ink); }

.theme-toggle {
  position: relative;
  flex-shrink: 0;
  width: 60px;
  height: 32px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.35s;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), background 0.35s, color 0.35s;
}
.theme-toggle .knob svg { grid-area: 1 / 1; transition: opacity 0.25s; }
.theme-toggle .moon { opacity: 0; }
:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(28px); }
:root[data-theme="dark"] .theme-toggle .sun { opacity: 0; }
:root[data-theme="dark"] .theme-toggle .moon { opacity: 1; }

/* Controls */
.btn {
  font: 500 14px/1 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn.small { font-size: 13px; height: 32px; padding: 0 12px; border-color: var(--line-strong); }
.btn.small:hover { border-color: var(--ink); }

select {
  appearance: none;
  -webkit-appearance: none;
  font: 500 14px/1 var(--sans);
  color: var(--ink);
  background: transparent var(--chevron) no-repeat right 12px center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  height: 42px;
  padding: 0 34px 0 12px;
  cursor: pointer;
}
select:hover { border-color: var(--ink); }
select option { background: var(--surface); color: var(--ink); }
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  font: 400 16px/1 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  height: 42px;
  padding: 0 2px;
}
input[type="search"]:focus { outline: none; border-bottom-color: var(--ink); }
input[type="search"]::placeholder { color: var(--ink-3); }
.link { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--accent-ink); }

/* Landing */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 64px;
  align-items: center;
  padding: 64px 0 56px;
}
.hero h1 {
  font: 400 clamp(52px, 7.6vw, 88px)/0.96 var(--serif);
  letter-spacing: -0.025em;
  margin: 22px 0 24px;
}
.hero h1 em, .headline em, .receipt-total em { font-style: italic; color: var(--accent); }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0 0 32px; max-width: 32em; }

.drop {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 26px 26px 28px;
  font: inherit;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop:hover { border-color: var(--accent); background: var(--accent-bg); }
.drop-text { display: flex; flex-direction: column; gap: 4px; }
.drop-title { font: 400 30px/1.05 var(--serif); letter-spacing: -0.01em; }
.drop-sub { font: italic 400 18px/1.3 var(--serif); color: var(--ink-3); }
.drop-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.drop:hover .drop-arrow { background: var(--ink); color: var(--paper); transform: translateY(2px); }
.fine { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.fine::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.fine + .fine { margin-top: 4px; }

/* The example receipt */
.receipt {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 320px;
  padding: 26px 22px 20px;
  background: var(--surface);
  border-radius: 2px;
  box-shadow: var(--lift);
  font-size: 14px;
  line-height: 1.4;
  transform: rotate(2deg);
}
.receipt::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 104px;
  height: 26px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-4deg);
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
  font: italic 400 17px/1.2 var(--serif);
  color: var(--ink-3);
}
.receipt-total { font: 400 36px/1.02 var(--serif); letter-spacing: -0.01em; margin: 16px 0 12px; }
.receipt-rows { list-style: none; margin: 0; padding: 0; }
.receipt-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.receipt-rows li span:first-child { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-tag { flex-shrink: 0; font: italic 400 16px/1 var(--serif); color: var(--ink-3); }
.r-tag.hot { color: var(--accent); }
.receipt-foot { margin: 14px 0 0; text-align: center; font: italic 400 16px/1 var(--serif); color: var(--ink-3); }

/* How-to */
.howto { border-top: 1px solid var(--ink); margin-top: 8px; }
.howto summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font: 400 32px/1.1 var(--serif);
  letter-spacing: -0.01em;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary:hover { color: var(--accent-ink); }
.howto-time { flex-shrink: 0; font: italic 400 19px/1 var(--serif); color: var(--ink-3); }
.howto-time::after { content: "  +"; white-space: pre; }
.howto[open] .howto-time::after { content: "  −"; }
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 24px;
}
.steps li {
  counter-increment: step;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font: italic 400 34px/1 var(--serif);
  color: var(--accent);
}
.steps b { color: var(--ink); font-weight: 600; }
.tip {
  margin: 8px 0 28px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  font: italic 400 22px/1.35 var(--serif);
  color: var(--ink-2);
  max-width: 34em;
}

/* Results */
.summary { padding: 48px 0 32px; }
.headline {
  font: 400 clamp(44px, 6.4vw, 76px)/1 var(--serif);
  letter-spacing: -0.025em;
  margin: 18px 0 16px;
  max-width: 13em;
}
.compare { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 40em; }
.compare strong { color: var(--ink); font-weight: 600; }
.summary-actions { margin-top: 24px; }
.stale { margin: 16px 0 0; padding: 12px 16px; max-width: 44em; font-size: 15px; line-height: 1.5; color: var(--ink-2); background: var(--accent-bg); }
.stale .link { color: var(--accent-ink); font-weight: 600; }

/* Story card preview */
.share {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 22px 22px 20px;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.share::backdrop { background: rgba(21, 18, 15, 0.6); }
.share-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.share-head h2 { margin: 0; font: 400 36px/1 var(--serif); letter-spacing: -0.01em; }
.share-head h2 em { color: var(--accent); }
.share-head .link { font-size: 14px; color: var(--ink-2); }
.share-preview { display: block; height: min(56vh, 600px); aspect-ratio: 9 / 16; margin: 0 auto; background: var(--surface-2); box-shadow: var(--pin); }
.share-toggle { display: flex; align-items: center; gap: 10px; margin: 18px 0 4px; font-size: 15px; cursor: pointer; }
.share-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.share-hint { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.share-actions { display: flex; gap: 10px; }
.share-actions .btn { flex: 1; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 22px 20px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value { font: 400 56px/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.stat-label { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.stat.hot .stat-value { font-style: italic; color: var(--accent); }

.tabs {
  display: flex;
  gap: 32px;
  margin: 36px 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 14px 0 13px;
  margin-bottom: -1px;
  font: 500 15px/1 var(--sans);
  color: var(--ink-3);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .count { font: italic 400 18px/1 var(--serif); color: var(--ink-3); }
.tab[aria-pressed="true"] .count { color: var(--accent); }

.note { margin: 0 0 20px; font-size: 15px; color: var(--ink-2); max-width: 44em; }
.toolbar { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.toolbar input[type="search"] { flex: 1; }

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.row {
  display: grid;
  grid-template-columns: 30px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.idx { font: italic 400 17px/1 var(--serif); color: var(--ink-3); }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: italic 400 19px/1 var(--serif);
  background: hsl(var(--h) var(--avatar-s) var(--avatar-l));
  color: hsl(var(--h) 25% var(--avatar-ink));
}
.avatar.ring { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--accent); }
.who { min-width: 0; }
.name { font: 600 16px/1.35 var(--sans); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.name:hover { color: var(--accent-ink); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  font: italic 400 17px/1 var(--serif);
  color: var(--ink-3);
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.hot { color: var(--accent); }
.meta { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.check { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 10px; }
.check span { font: italic 400 18px/1 var(--serif); color: var(--accent-ink); }
.check .link { font-size: 13px; color: var(--ink-2); }
.actions { display: flex; gap: 6px; }
.empty-row { padding: 56px 16px; text-align: center; font: italic 400 26px/1.3 var(--serif); color: var(--ink-2); border-bottom: 1px solid var(--line); }

.nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--accent-bg);
}
.nudge p { margin: 0; color: var(--ink-2); }
.nudge em { margin-right: 6px; font: italic 400 26px/1.1 var(--serif); color: var(--accent-ink); }

/* Guestbook */
.guestbook { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--ink); scroll-margin-top: 16px; }
.gb-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; margin-bottom: 32px; }
.gb-head h2 { margin: 0; font: 400 clamp(46px, 6.4vw, 72px)/1 var(--serif); letter-spacing: -0.025em; }
.gb-head h2 em { color: var(--accent); }
.gb-sub { margin: 10px 0 0; font: italic 400 21px/1.3 var(--serif); color: var(--ink-2); }

.gb-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 32px;
  margin-bottom: 40px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.gb-wide { grid-column: 1 / -1; }
.gb-label { display: block; margin-bottom: 6px; font: italic 400 20px/1.2 var(--serif); color: var(--ink-2); }
.gb-form textarea {
  display: block;
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 4px 0 8px;
  font: 400 26px/1.3 var(--serif);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
}
.gb-form textarea::placeholder { color: var(--ink-3); opacity: 0.7; }
.gb-form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.gb-kind { margin: -6px 0 -8px; font: italic 400 17px/1.4 var(--serif); color: var(--ink-3); }
.gb-kind::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 9px; border-radius: 50%; background: var(--accent); vertical-align: 3px; }
.gb-signed { margin: 0; padding: 10px 0 9px; font: 500 18px/1.3 var(--sans); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.gb-locked {
  margin: 0 0 40px;
  padding: 22px 24px;
  font: italic 400 23px/1.35 var(--serif);
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
}
.gb-meta { display: flex; justify-content: space-between; gap: 12px; min-height: 20px; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.gb-error { color: var(--accent-ink); }
.gb-submit { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.gb-privacy { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.gb-actions { display: flex; align-items: center; gap: 20px; }
.gb-actions .link { font-size: 14px; color: var(--ink-2); }

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
  gap: 34px 32px;
  padding: 14px 6px 0;
}
.pin {
  position: relative;
  margin: 0;
  padding: 24px 22px 16px;
  background: var(--surface);
  box-shadow: var(--pin);
  transform: rotate(var(--tilt));
}
.pin:nth-child(3n + 1)::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 84px;
  height: 22px;
  background: var(--tape);
  transform: translateX(-50%) rotate(-3deg);
}
.pin blockquote { margin: 0 0 18px; font: 400 23px/1.28 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.pin blockquote::before { content: "\201C"; display: block; height: 22px; font: italic 400 54px/1 var(--serif); color: var(--accent); }
.pin figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 14px;
}
.pin figcaption a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.pin figcaption span { flex-shrink: 0; font: italic 400 16px/1 var(--serif); color: var(--ink-3); }
.pin.fresh { animation: pin-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pin-in {
  from { opacity: 0; transform: translateY(-18px) rotate(calc(var(--tilt) - 5deg)); }
}
.wall-empty { grid-column: 1 / -1; margin: 0 0 8px; font: italic 400 26px/1.3 var(--serif); color: var(--ink-2); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}
.foot p { margin: 0; }

/* Overlays */
.drop-overlay { position: fixed; inset: 0; z-index: 40; padding: 20px; pointer-events: none; background: color-mix(in srgb, var(--paper) 88%, transparent); }
.drop-overlay > div {
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed var(--accent);
  font: italic 400 clamp(44px, 8vw, 80px)/1 var(--serif);
  color: var(--accent);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 45;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 13px 18px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font: 400 14px/1.4 var(--sans);
}
.toast.error { background: var(--accent-ink); color: #fff; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px 40px; }
  .tagline { display: none; }
  .top-actions { order: 2; width: 100%; }
  .top-actions select { flex: 1; min-width: 0; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 48px; }
  .receipt { justify-self: center; transform: rotate(1.5deg); }
  .drop { padding: 20px; }
  .drop-title { font-size: 26px; }
  .drop-arrow { width: 44px; height: 44px; }
  .howto summary { font-size: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { position: relative; padding: 14px 0 14px 48px; }
  .steps li::before { position: absolute; left: 0; top: 13px; margin: 0; font-size: 28px; }
  .summary { padding: 36px 0 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 18px 0 16px 16px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat-value { font-size: 46px; }
  .tabs { gap: 20px; }
  .tab { font-size: 14px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar input[type="search"] { flex-basis: 100%; }
  .toolbar select, .toolbar .btn { flex: 1; }
  .row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; }
  .idx { display: none; }
  .avatar { width: 40px; height: 40px; font-size: 17px; }
  .badge { display: flex; margin: 4px 0 0; font-size: 16px; }
  .open-label { display: none; }
  .nav-link { font-size: 18px; }
  .nudge { padding: 18px; }
  .nudge .btn { width: 100%; }
  .gb-head .btn { width: 100%; }
  .gb-form { grid-template-columns: 1fr; padding: 20px; }
  .gb-form textarea { font-size: 23px; }
  .wall { padding: 14px 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin.fresh { animation: none; }
}
