/* Usher — site styles.
   One bold idea: the ledger. What a couple budgets on the left, what the day
   actually charges on the right. Everything else stays quiet. */

:root{
  color-scheme: light;

  --ink:#342A2E;
  --muted:#6B5D62;
  --faint:#9C8C91;

  --ivory:#FBF8F4;
  --paper:#FFFFFF;
  --blush:#F4E7E6;
  --blush-deep:#E8D2D1;

  --rose:#9C5668;        /* dusty rose, pink-leaning not clay */
  --rose-deep:#7E4254;
  --plum:#5E3A47;
  --sage:#879A84;
  --sage-soft:#E9EDE6;
  --gold:#BFA06A;

  --line:#E9DED8;
  --err:#9A3F43;

  --display:"Cormorant Garamond",Georgia,serif;
  --text:"Karla",system-ui,-apple-system,sans-serif;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
html,body{margin:0}
body{
  background:var(--ivory); color:var(--ink);
  font-family:var(--text); font-size:17px; line-height:1.68; font-weight:400;
  padding-inline:22px;
  padding-block:0 calc(70px + env(safe-area-inset-bottom,0px));
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:640px; margin:0 auto}
p{margin:0}
.muted{color:var(--muted)}
img,svg{max-width:100%}
a{color:var(--rose-deep)}

/* ---------- masthead ---------- */
.masthead{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  max-width:640px; margin:0 auto;
  padding-block:calc(26px + env(safe-area-inset-top,0px)) 26px;
}
.brand{display:flex; align-items:center; gap:11px; text-decoration:none; color:var(--ink)}
.brand svg{width:27px; height:27px; flex:none}
.brand .name{
  font-family:var(--display); font-weight:500; font-size:27px;
  letter-spacing:.09em; line-height:1;
}
.masthead nav{display:flex; align-items:center; gap:20px}
.masthead nav a{font-size:15px; text-decoration:none; color:var(--muted)}
.masthead nav a:hover{color:var(--ink)}
.masthead nav a.go{
  background:var(--rose); color:#fff; padding:10px 20px; border-radius:2px;
  font-size:14.5px;
}
.masthead nav a.go:hover{background:var(--rose-deep); color:#fff}

/* ---------- type ---------- */
h1{
  font-family:var(--display); font-weight:400;
  font-size:clamp(42px,11vw,66px); line-height:1.02;
  margin:0 0 22px; letter-spacing:.002em; text-wrap:balance;
}
h2{
  font-family:var(--display); font-weight:400; font-size:clamp(29px,6.4vw,37px);
  margin:0 0 14px; line-height:1.12; text-wrap:balance;
}
h3{font-family:var(--display); font-size:24px; font-weight:500; margin:0 0 7px; line-height:1.22}
.standfirst{color:var(--muted); font-size:18.5px; max-width:44ch}

section{margin-bottom:84px}
.wrap > header{margin-bottom:76px}

/* ---------- buttons ---------- */
.btn{
  display:inline-block; border:0; background:var(--rose); color:#fff;
  border-radius:2px; padding:16px 34px; font:inherit; font-size:16px;
  font-weight:500; cursor:pointer; text-decoration:none; text-align:center;
  transition:background .18s ease;
}
.btn:hover{background:var(--rose-deep); color:#fff}
.btn.quiet{background:transparent; color:var(--rose-deep); border:1px solid var(--blush-deep)}
.btn.quiet:hover{background:var(--blush); color:var(--rose-deep)}
.btn:focus-visible, a:focus-visible, summary:focus-visible{outline:2px solid var(--rose); outline-offset:3px}
.actions{display:flex; flex-wrap:wrap; gap:13px; margin-top:32px}
.footnote{font-size:14.5px; color:var(--faint); margin-top:16px}

/* ---------- the ledger ---------- */
.ledger{
  background:var(--paper); border:1px solid var(--line);
  display:grid; grid-template-columns:1fr 1fr;
}
.ledger .side{padding:26px 22px}
.ledger .side + .side{border-left:1px solid var(--gold)}
.ledger .cap{
  font-family:var(--display); font-size:20px; font-weight:500; color:var(--ink);
  padding-bottom:14px; margin-bottom:6px; border-bottom:1px solid var(--line);
}
.ledger .side.real .cap{color:var(--rose)}
.ledger .item{
  display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  padding:11px 0; font-size:15.5px; line-height:1.4;
}
.ledger .item + .item{border-top:1px dotted var(--line)}
.ledger .fig{white-space:nowrap; font-size:14.5px; color:var(--muted); font-variant-numeric:tabular-nums}
.ledger .side.real .fig{color:var(--rose)}
.ledger .side.real .item{opacity:0; transform:translateY(5px)}
.ledger .side.real .item.in{opacity:1; transform:none; transition:opacity .5s ease, transform .5s ease}
.ledger-note{
  font-family:var(--display); font-size:19px; font-style:italic; color:var(--muted);
  text-align:center; margin-top:20px; max-width:38ch; margin-inline:auto; line-height:1.4;
}
@media (max-width:560px){
  .ledger{grid-template-columns:1fr}
  .ledger .side + .side{border-left:0; border-top:1px solid var(--gold)}
}
@media (prefers-reduced-motion:reduce){
  .ledger .side.real .item{opacity:1; transform:none}
}

/* ---------- what it does: marginalia, not cards ---------- */
.entry{
  display:grid; grid-template-columns:118px 1fr; gap:26px;
  padding:30px 0; border-top:1px solid var(--line);
}
.entry:last-of-type{border-bottom:1px solid var(--line)}
.entry .tag{
  font-family:var(--display); font-size:19px; color:var(--rose); line-height:1.3;
  padding-top:3px;
}
.entry p{color:var(--muted); font-size:16.5px}
.entry.gift{
  grid-template-columns:1fr; background:var(--sage-soft); border:0;
  padding:30px 28px; margin-top:22px;
}
.entry.gift .tag{color:#4F6049; margin-bottom:6px; font-size:20px}
.entry.gift p{color:#45503F}
.entry.gift h3{color:#2F3A2B}
@media (max-width:560px){
  .entry{grid-template-columns:1fr; gap:8px}
}

/* ---------- the note from the founder ---------- */
.note{
  background:var(--blush); padding:34px 30px; border:0;
}
.note p{font-size:17.5px; line-height:1.72; color:var(--plum)}
.note p + p{margin-top:15px}
.note .sign{
  font-family:var(--display); font-style:italic; font-size:20px;
  color:var(--rose-deep); margin-top:22px;
}

/* ---------- price ---------- */
.price{text-align:center; padding:12px 0}
.price .amount{
  font-family:var(--display); font-weight:400; font-size:clamp(62px,16vw,92px);
  line-height:.95; color:var(--ink); margin:0;
}
.price .once{font-family:var(--display); font-size:21px; color:var(--muted); font-style:italic; margin-top:10px}
.price p{max-width:40ch; margin:20px auto 0; color:var(--muted); font-size:16.5px}
.price .free{
  display:inline-block; background:var(--sage-soft); color:#4F6049;
  padding:7px 18px; font-size:14.5px; margin-bottom:22px; border-radius:2px;
}

/* ---------- questions ---------- */
details{border-bottom:1px solid var(--line); padding:20px 0}
details:first-of-type{border-top:1px solid var(--line)}
details summary{
  font-family:var(--display); font-size:22px; cursor:pointer; list-style:none;
  display:flex; justify-content:space-between; align-items:baseline; gap:18px;
}
details summary::-webkit-details-marker{display:none}
details summary::after{content:"+"; color:var(--gold); font-family:var(--text); font-size:19px}
details[open] summary::after{content:"\2212"}
details p{font-size:16.5px; color:var(--muted); margin-top:12px; max-width:56ch}

/* ---------- journal ---------- */
.reads{display:flex; flex-direction:column}
.read{
  display:block; padding:26px 0; text-decoration:none; color:inherit;
  border-top:1px solid var(--line);
}
.read:last-child{border-bottom:1px solid var(--line)}
.read .kicker{font-size:14.5px; color:var(--gold)}
.read h3{margin:7px 0 8px; font-size:26px; font-weight:400}
.read p{color:var(--muted); font-size:16.5px}
.read:hover h3{color:var(--rose-deep)}
.read .len{font-size:14px; color:var(--faint); margin-top:12px}

article.post{max-width:640px; margin:0 auto}
article.post .when{font-size:14.5px; color:var(--faint); margin-bottom:12px}
article.post h1{font-size:clamp(35px,8vw,52px); margin-bottom:18px}
article.post .standfirst{font-size:19.5px; margin-bottom:38px; max-width:42ch}
article.post h2{font-size:31px; margin:50px 0 14px}
article.post h3{font-size:23px; margin:34px 0 8px}
article.post p{margin-bottom:18px; font-size:17.5px; line-height:1.76}
article.post ul,article.post ol{margin:0 0 20px; padding-left:22px}
article.post li{margin-bottom:10px; font-size:17.5px; line-height:1.7}
article.post strong{font-weight:700; color:var(--ink)}
article.post hr{border:0; border-top:1px solid var(--gold); width:60px; margin:46px auto}
article.post blockquote{
  margin:0 0 20px; padding:22px 26px; background:var(--blush); border:0;
}
article.post blockquote p{
  margin:0; font-family:var(--display); font-size:21px; font-style:italic;
  color:var(--plum); line-height:1.45;
}
.tablewrap{overflow-x:auto; margin-bottom:24px; border:1px solid var(--line); background:var(--paper)}
article.post table{border-collapse:collapse; width:100%; font-size:15.5px}
article.post th,article.post td{text-align:left; padding:14px 16px; border-bottom:1px solid var(--line); vertical-align:top}
article.post th{font-family:var(--display); font-weight:500; font-size:17px; color:var(--rose); background:var(--blush)}
article.post tr:last-child td{border-bottom:0}

.endnote{background:var(--blush); padding:32px 30px; margin-top:52px; text-align:center}
.endnote h3{font-size:27px; font-weight:400; margin-bottom:11px}
.endnote p{font-size:16.5px; margin-bottom:0; color:var(--plum); max-width:46ch; margin-inline:auto}
.endnote .actions{justify-content:center}

.colophon{
  max-width:640px; margin:78px auto 0; color:var(--faint); font-size:14.5px;
  border-top:1px solid var(--line); padding-top:26px;
  display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between;
}
.colophon a{color:var(--faint); text-decoration:none}
.colophon a:hover{color:var(--ink)}

/* ---------- media slots ----------
   Each figure on the page waits for a named file in /assets/media/.
   Until the file exists the figure stays hidden, so the live page never
   shows an empty frame. */
.media{margin:26px 0 0; background:var(--paper); border:1px solid var(--line)}
.media video,.media img{display:block; width:100%; height:auto}
.media.hero{margin-top:40px}
.media.phone{max-width:300px}
.media figcaption{
  font-size:13.5px; color:var(--faint); padding:10px 14px;
  border-top:1px solid var(--line);
}

/* ---------- the tutorial ---------- */
.steps{margin-top:6px}
.step{
  display:grid; grid-template-columns:46px 1fr; gap:20px;
  padding:26px 0; border-top:1px solid var(--line);
}
.step:last-of-type{border-bottom:1px solid var(--line)}
.step .n{
  font-family:var(--display); font-size:31px; font-weight:400;
  color:var(--rose); line-height:1; padding-top:2px;
}
.step h3{font-size:21.5px; margin-bottom:5px}
.step p{color:var(--muted); font-size:16px}
@media (max-width:560px){
  .step{grid-template-columns:34px 1fr; gap:14px}
}

/* ---------- forms (supplier intake, waitlist) ---------- */
.fld{display:block; margin-bottom:20px}
.fld .lab{display:block; font-size:14px; font-weight:700; margin-bottom:7px}
.fld .lab b{color:var(--rose); font-weight:700}
.fld .hint{font-size:14px; color:var(--muted); margin:-2px 0 9px; max-width:52ch}
/* password belongs here too: without it the password box was unstyled, and a
   show/hide toggle that swaps type would have resized the field on every tap. */
input[type=text],input[type=email],input[type=tel],input[type=url],input[type=number],input[type=password],select,textarea{
  width:100%; border:1px solid var(--line); background:var(--paper); color:var(--ink);
  border-radius:2px; padding:13px 14px; font:inherit; font-size:16px;
}
textarea{resize:vertical; min-height:84px}
select{appearance:none; background-image:none}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--rose); outline-offset:2px}
.fld.inline{display:flex; align-items:center; gap:10px; font-size:16px}
.fld.inline input{width:auto; flex:none}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:0 16px}
@media (max-width:560px){ .grid2{grid-template-columns:1fr} }
.peso{display:flex; align-items:stretch; border:1px solid var(--line); background:var(--paper)}
.peso span{display:flex; align-items:center; padding:0 12px; color:var(--muted); border-right:1px solid var(--line)}
.peso input{border:0; background:none}
.checks{display:grid; grid-template-columns:repeat(2,1fr); gap:7px 14px}
@media (max-width:560px){ .checks{grid-template-columns:1fr} }
.chk{display:flex; align-items:center; gap:9px; font-size:15px; color:var(--ink)}
.chk input{flex:none}
.consent{font-size:14px; color:var(--muted); background:var(--blush); padding:15px 17px; margin:4px 0 22px; max-width:none}
form .btn{width:100%}
form .err{color:var(--err); font-size:15px; margin-top:14px}
.thanks{text-align:center; padding-top:30px}
.thanks .standfirst{margin-inline:auto}
.thanks .actions{justify-content:center}

/* ---------- directory ---------- */
.dirbar{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:28px}
@media (max-width:560px){ .dirbar{grid-template-columns:1fr} }
.dircount{font-size:14.5px; color:var(--faint); margin-bottom:18px}
.dircard{border-top:1px solid var(--line); padding:22px 0}
.dircard:last-child{border-bottom:1px solid var(--line)}
.dircard h3{font-size:23px; margin-bottom:3px}
.dircard .meta{font-size:14px; color:var(--rose); margin-bottom:8px}
.dircard .about{color:var(--muted); font-size:16px; margin-bottom:10px}
.dircard .links{display:flex; flex-wrap:wrap; gap:8px 16px; font-size:14.5px}
.dircard .links a{color:var(--rose-deep)}
.dircard .from{font-size:14.5px; color:var(--muted); margin-top:8px; font-variant-numeric:tabular-nums}
.dirnote{background:var(--sage-soft); color:#45503F; padding:18px 20px; font-size:15px; margin-bottom:30px}
.dirempty{text-align:center; padding:46px 0; color:var(--muted)}

/* ---------- the launch date line ---------- */
.opens{
  display:inline-block; background:var(--blush); color:var(--plum);
  font-size:14px; padding:8px 15px; margin-bottom:22px; border-radius:2px;
}
.opens b{font-weight:700}
.opens span{color:var(--rose-deep)}

/* ---------- the sales page: launch line + feature inventory ---------- */
.launch{
  display:inline-block; background:var(--blush); color:var(--plum);
  font-size:14.5px; line-height:1.5; padding:10px 16px; margin-top:22px;
  border-radius:2px; max-width:46ch;
}
.launch b{font-weight:700; color:var(--rose-deep)}

/* the launch offer, inside the price block */
.offer{
  border:1px solid var(--line); background:var(--blush);
  padding:20px 22px; max-width:40ch; margin:26px auto 0; text-align:left;
}
.offer h4{
  font-family:var(--display); font-size:19px; font-weight:400;
  color:var(--plum); margin:0 0 10px;
}
.offer ul{list-style:none; margin:0; padding:0}
.offer li{
  position:relative; padding-left:17px; margin-bottom:7px;
  font-size:15.5px; color:var(--plum); line-height:1.55;
}
.offer li:last-child{margin-bottom:0}
.offer li::before{
  content:""; position:absolute; left:0; top:8px;
  width:5px; height:5px; border-radius:50%; background:var(--rose);
}

/* ---------- the feature grid ----------
   Twelve things the app does, one line each. It replaced about 1,800 words of
   prose: a couple deciding whether to try something does not read, they scan,
   and a mark plus four words plus one line is what scanning is for. */
.fgrid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px 30px}
@media (max-width:820px){ .fgrid{grid-template-columns:repeat(2,1fr); gap:24px} }
@media (max-width:520px){ .fgrid{grid-template-columns:1fr; gap:20px} }
.fcard h3{font-size:18.5px; margin:11px 0 4px}
.fcard p{font-size:15.5px; line-height:1.55; color:var(--muted); margin:0}
.fcard .mk{
  width:26px; height:26px; display:block; overflow:visible;
  fill:none; stroke:var(--rose); stroke-width:1.1;
  stroke-linecap:round; stroke-linejoin:round;
}

/* ---------- the over-budget demo ----------
   Drawn in HTML rather than screenshotted, so it stays sharp at any size, reads
   in dark mode, and cannot drift away from what the app actually looks like
   without someone noticing. */
.demo{display:grid; gap:14px; max-width:30rem}
.dcard{border:1px solid var(--line); background:var(--card); padding:14px 16px; border-radius:2px}
.dcard .drow{display:flex; justify-content:space-between; align-items:baseline; gap:12px}
.dname{font-weight:700; font-size:15px}
.dnum{font-size:15px; white-space:nowrap; font-variant-numeric:tabular-nums}
.dnum .dof{font-size:13px; color:var(--muted); font-weight:400}
.dbar{height:5px; background:var(--line); margin:11px 0 9px; overflow:hidden}
.dbar i{display:block; height:100%; background:var(--sage)}
.dbar i.o{background:#B4565B}
.dstate{font-size:13px; color:var(--muted)}
.dcard.over{background:#FBEDED; border-color:#B4565B; box-shadow:inset 4px 0 0 #B4565B}
.dcard.over .dname{color:#A8494E}
.dcard.over .dnum.neg{color:#A8494E; font-weight:700}
.dcard.over .dstate{color:#A8595C}
