@font-face {
  font-family: Bricolage;
  src: url("/lotfinch/assets/bricolage-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Hanken;
  src: url("/lotfinch/assets/hanken-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Hanken;
  src: url("/lotfinch/assets/hanken-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fbf9f5;
  --white: #fffefa;
  --ink: #162b22;
  --muted: #4c6055;
  --pine: #154535;
  --pine-hover: #0e3628;
  --sage: #ebf0e5;
  --line: #d0dace;
  --soft-line: #e1e6dd;
  --hold-ink: #69451b;
  --hold-paper: #f7ebd8;
  --error-ink: #812e28;
  --error-paper: #faeae6;
  --radius: 14px;
  --heading: Bricolage, ui-sans-serif, sans-serif;
  --body: Hanken, ui-sans-serif, system-ui, sans-serif;
  --width: 1420px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--body);
  accent-color: var(--pine);
}
::selection { background: var(--pine); color: var(--white); }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 4px; }
:focus { scroll-margin: 24px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.027em;
  overflow-wrap: break-word;
}
p, figure, dl { margin: 0; }
a { color: var(--pine); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
fieldset { min-width: 0; }
.site-width { width: min(var(--width), calc(100% - clamp(32px, 6vw, 100px))); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 21px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding-block: 5px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  font: 700 2rem/1 var(--heading);
  letter-spacing: -.03em;
}
.studio-byline { color: var(--muted); padding-left: 21px; border-left: 1px solid var(--line); }
.header-links { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 3vw, 36px); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--pine);
  padding: 0;
  font-weight: 600;
  text-align: left;
  text-underline-offset: .25em;
  text-decoration: underline;
}
.text-link:hover, .site-footer a:hover { text-decoration-thickness: 2px; }
.text-link:disabled { opacity: .55; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  line-height: 1.25;
}
.button-large { min-height: 55px; padding: 12px 23px; font-size: 1.14rem; }
.button-primary { background: var(--pine); color: var(--white); }
.button-primary:hover { background: var(--pine-hover); }
.button-primary:disabled { background: var(--sage); border-color: var(--line); color: var(--muted); }
.button-outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.button-outline:hover { background: var(--sage); }
.button-outline:disabled { color: var(--muted); border-color: var(--line); }
.arrow { display: inline-block; position: relative; width: 16px; height: 2px; background: currentColor; }
.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.skip-link {
  position: absolute;
  z-index: 10;
  left: 16px;
  top: 8px;
  transform: translateY(-200%);
  padding: 12px;
  background: var(--white);
}
.skip-link:focus { transform: none; }
.hero {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(28px, 4.5vw, 68px);
  align-items: center;
  padding-block: clamp(45px, 4.55vw, 75px);
}
.hero h1 {
  font-size: clamp(2.45rem, 4.24vw, 4.125rem);
  letter-spacing: -.038em;
}
.hero-continuation { display: block; color: var(--pine); }
.hero-copy > p:first-of-type {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  max-width: 53ch;
  margin-block: 23px 27px;
}
.trial-note { color: var(--muted); font-size: .92rem; }
.hero-copy .trial-note, .entry-panel .trial-note { margin-top: 14px; }
.hero-figure img, .entry-panel > img { width: 100%; aspect-ratio: 7/5; object-fit: cover; border-radius: var(--radius); background: var(--sage); }
.hero-figure figcaption { padding-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.hero-figure strong { font-weight: 600; font-size: 1.125rem; }
.hero-figure figcaption span { color: var(--muted); }
.walkthrough { background: var(--sage); border-block: 1px solid var(--line); }
.section-pad { padding-block: clamp(42px, 5.4vw, 80px); }
.section-pad h2 { color: var(--pine); font-size: clamp(2rem, 4vw, 3.4rem); text-wrap: pretty; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.steps article { padding-right: clamp(20px, 4vw, 58px); }
.steps article + article { padding-left: clamp(20px, 4vw, 58px); border-left: 1px solid var(--line); }
.steps h3 { font-size: clamp(1.25rem, 2.1vw, 1.62rem); margin-bottom: 10px; }
.steps p, .landing-cta p { color: var(--muted); font-size: 1.1rem; }
.landing-cta { display: flex; gap: 30px 60px; align-items: center; justify-content: space-between; }
.landing-cta p { max-width: 59ch; margin-top: 13px; }
.cta-actions { display: flex; align-items: flex-start; flex-direction: column; flex: none; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 9px 24px; justify-content: space-between; align-items: center; padding-block: 18px; }
.footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px clamp(12px, 2.5vw, 28px); }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .25em; text-decoration-thickness: 1px; }

.demo-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.demo-main { flex: 1; padding-block: clamp(26px, 5vw, 70px); }
.entry-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(25px, 5vw, 80px); max-width: 1150px; margin: 0 auto; }
.entry-panel h1, .workspace-head h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.entry-panel p:not(.trial-note), .workspace-head p { max-width: 56ch; color: var(--muted); font-size: 1.15rem; margin-top: 12px; }
.entry-panel .actions { margin-top: 22px; }
.workspace-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 25px; }
.workspace-head h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.inventory-summary { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 16px 21px; border-radius: var(--radius); background: var(--sage); color: var(--pine); margin-bottom: 29px; }
.inventory-summary > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.inventory-summary strong { font-family: var(--heading); font-size: 1.25rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.work-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(245px, 1fr); gap: 28px clamp(20px, 3.2vw, 48px); align-items: start; }
.inventory-head, .group-head, .dialog-head, .thread-heading, .thread-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.inventory-head { margin-bottom: 12px; }
.inventory-head h2, .buyer-sidebar h2, .threads-panel > h2 { font-size: 1.58rem; }
.inventory-group { margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.inventory-group:last-child { margin-bottom: 0; }
.group-head { padding: 15px 18px; flex-wrap: wrap; }
.group-head h3 { font-size: 1.27rem; }
.group-head p { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.group-head .actions { gap: 8px 16px; }
.group-photo { display: block; width: 100%; border: none; padding: 0; background: var(--sage); }
.group-photo img { width: 100%; height: clamp(135px, 29vw, 260px); object-fit: cover; }
.group-photo:focus-visible { outline-offset: -4px; }
.inventory-items { list-style: none; margin: 0; padding: 0; }
.item-row { border-top: 1px solid var(--soft-line); }
.item-row label, .item-details { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 60px; padding: 12px 18px; }
.item-row label:has(input:not(:disabled)) { cursor: pointer; }
.item-row label:hover:has(input:not(:disabled)), .item-row label:has(input:checked) { background: var(--sage); }
.item-row input { width: 19px; height: 19px; margin: 0; flex: none; }
.item-name-block { flex: 1 1 150px; min-width: 0; overflow-wrap: anywhere; }
.item-name-block strong { display: block; font-weight: 600; }
.item-name-block small { display: block; color: var(--muted); font-size: .9rem; }
.item-price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--pine); font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.status-reserved { color: var(--hold-ink); }
.status-sold { color: var(--error-ink); }
.buyer-sidebar { position: sticky; top: 16px; display: grid; gap: 16px; }
.selection-card, .value-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.selection-card { background: var(--sage); border-color: transparent; }
.selection-card p { color: var(--muted); margin-block: 8px 14px; }
.selection-card .button { width: 100%; }
.value-card p { color: var(--muted); margin-top: 7px; font-size: .94rem; }
.band-list { margin-top: 14px; }
.band-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-block: 7px; border-top: 1px solid var(--soft-line); }
.band-list dd { margin: 0; text-align: right; color: var(--muted); }
.band-list dt { font-weight: 600; white-space: nowrap; }
.threads-panel { grid-column: 1 / -1; min-width: 0; }
.threads-panel > h2 { margin-bottom: 13px; }
.threads-panel > p { color: var(--muted); }
.seller-mode .work-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
.seller-mode .threads-panel { grid-column: 2; grid-row: 1; }
.thread { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 12px; }
.thread:last-child { margin-bottom: 0; }
.thread summary { cursor: pointer; padding: 15px 18px; font-weight: 600; }
.thread-summary { display: inline-flex; vertical-align: middle; width: calc(100% - 22px); flex-wrap: wrap; }
.thread[open] summary { border-bottom: 1px solid var(--soft-line); }
.thread-content { padding: 16px 18px; }
.thread-items { color: var(--muted); padding-left: 19px; margin: 8px 0 16px; }
.thread-items li + li { margin-top: 3px; }
.messages { list-style: none; padding: 0; margin: 12px 0; }
.message { background: var(--paper); border-radius: 9px; padding: 10px 13px; margin-bottom: 8px; }
.message-seller { background: var(--sage); }
.message-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; font-weight: 600; }
.message time { font-size: .83rem; color: var(--muted); font-weight: 400; }
.message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.thread form { margin-top: 15px; }
.field-stack { display: grid; gap: 12px; justify-items: start; }
.field-stack > * { max-width: 100%; }
.form-field { display: grid; gap: 5px; width: 100%; }
.form-field label { font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--white);
  font-size: 1rem;
  caret-color: var(--pine);
}
.form-field textarea { resize: vertical; }
.thread-actions { margin-block: 16px 0; }
.alert { padding: 10px 14px; border-radius: 8px; background: var(--error-paper); color: var(--error-ink); }
.alert.is-success { background: var(--sage); color: var(--pine); }
#page-message { margin-bottom: 16px; }
.dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  padding: 24px;
  overscroll-behavior: contain;
}
.dialog::backdrop { background: #192d247d; }
.dialog h2 { font-size: clamp(1.45rem, 5vw, 1.9rem); }
.dialog-head { align-items: flex-start; margin-bottom: 13px; }
.dialog-head .text-link, .dialog-head button { white-space: nowrap; }
.dialog > p, .dialog > .form-field { margin-top: 12px; }
.dialog-actions { margin-top: 16px; }
.photo-dialog { width: min(860px, calc(100% - 32px)); }
.photo-dialog img {
  width: 100%;
  max-height: 70vh;
  max-height: 70dvh;
  object-fit: contain;
  border-radius: 9px;
  background: var(--sage);
}
@media (min-width: 1100px) {
  .hero-closing { display: block; }
}
@media (max-width: 850px) {
  .hero { gap: 22px; }
  .hero h1 { font-size: clamp(2.45rem, 5.3vw, 3.6rem); }
  .studio-byline { display: none; }
  .seller-mode .work-grid { grid-template-columns: minmax(0, 1fr); }
  .seller-mode .threads-panel { grid-column: 1; grid-row: 1; }
}
@media (max-width: 650px) {
  .header-inner { min-height: 64px; gap: 10px; }
  .brand { font-size: 1.53rem; gap: 8px; }
  .brand img { width: 32px; height: 32px; }
  .header-links { gap: 11px; font-size: .92rem; }
  .header-links .button { padding-inline: 10px; }
  .header-action { display: none; }
  .hero, .entry-panel { grid-template-columns: 1fr; }
  .hero { padding-block: 34px 28px; gap: 24px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.5rem); }
  .hero-copy > p:first-of-type { margin-block: 16px 20px; }
  .hero-figure img { aspect-ratio: 1.45; }
  .steps { grid-template-columns: 1fr; gap: 17px; margin-top: 22px; }
  .steps article { padding: 0; }
  .steps article + article { border: 0; border-top: 1px solid var(--line); padding: 17px 0 0; }
  .landing-cta { align-items: flex-start; flex-direction: column; gap: 16px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .inventory-summary { gap: 7px 18px; padding: 12px 14px; margin-bottom: 20px; }
  .group-head { padding: 12px 14px; }
  .item-row label, .item-details { padding-inline: 14px; }
  .item-name-block { flex-basis: 100px; }
  .buyer-sidebar { display: contents; }
  .selection-card { display: none; }
  .selection-card.has-selection {
    display: grid;
    position: fixed;
    z-index: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
  .has-selection h2 { display: none; }
  .has-selection p { margin: 0; font-size: .93rem; }
  .demo-page:has(.selection-card.has-selection) .site-footer { margin-bottom: 76px; }
  .dialog { padding: 18px; }
}
@media (max-width: 360px) {
  .brand { font-size: 1.36rem; }
  .brand img { width: 28px; height: 28px; }
  .demo-page .header-links { gap: 8px; }
  .demo-page .header-links .button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .item-row label { transition: background-color 130ms ease-out; }
}
