@font-face { font-family: 'Newsreader'; src: url(/fonts/newsreader.woff2) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url(/fonts/geist.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

/* Cubby before it has taken anyone's shape: warm paper, a green seed, written headings. */
:root {
  color-scheme: light;
  --paper: #f6f4ea; --surface: #fdfcf8; --ink: #1b1b13; --muted: #64645a; --line: #dcdacb; --line-s: #b9b7a6;
  --well: #e9e6d8; --screen: #faf8f0; --t1: #4f7a5c; --t2: #a8863c; --t3: #a5624f; --accent: #2c6b43; --seed-a: #2a6a42; --seed-b: #8fb99b; --glow-a: #d3ecd9; --glow-b: #f4e9cf; --bad: #a12f1b;
  --lift: 0 1px 2px rgb(40 40 20 / .05), 0 10px 30px rgb(40 40 20 / .10);
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --display: 'Newsreader', 'Iowan Old Style', Georgia, serif; --d-weight: 400; --d-track: -0.025em; --d-size: 1;
  --r-box: 28px; --r-send: 50%; --r-mac: 12px; --r-ctl: 12px; --rk: 1;
  --glow-o: .8; --send: var(--ink); --link: var(--ink);
  --pad: clamp(20px, 5vw, 56px); --col: clamp(22rem, 39vw, 30rem); --gap: clamp(32px, 5vw, 72px);
  --row-pad: clamp(48px, 9vh, 112px); --peek: calc(var(--row-pad) + 92px);
  --ease: cubic-bezier(.3, .85, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tone=light]) {
    color-scheme: dark;
    --paper: #0c120f; --surface: #161d19; --well: #060a08; --screen: #101713; --t1: #4f8562; --t2: #a98a3f; --t3: #ab6956; --ink: #eeefe6; --muted: #a1a698; --line: #27302a; --line-s: #47524a;
    --accent: #a9d6b4; --seed-a: #a9d6b4; --seed-b: #e3f3e6; --glow-a: #17331f; --glow-b: #2a2311; --bad: #ff9f88;
    --lift: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px rgb(0 0 0 / .45);
  }
}
:root[data-tone=dark] {
  color-scheme: dark;
  --paper: #0c120f; --surface: #161d19; --well: #060a08; --screen: #101713; --t1: #4f8562; --t2: #a98a3f; --t3: #ab6956; --ink: #eeefe6; --muted: #a1a698; --line: #27302a; --line-s: #47524a;
  --accent: #a9d6b4; --seed-a: #a9d6b4; --seed-b: #e3f3e6; --glow-a: #17331f; --glow-b: #2a2311; --bad: #ff9f88;
  --lift: 0 1px 2px rgb(0 0 0 / .4), 0 10px 30px rgb(0 0 0 / .45);
}
:root[data-shape=crisp] { --r-box: 5px; --r-send: 3px; --r-mac: 4px; --r-ctl: 3px; --rk: .16; }
:root[data-voice=engineered] { --display: var(--sans); --d-weight: 600; --d-track: -0.04em; --d-size: .88; }
:root[data-color=alive] { --t1: #1f8a47; --t2: #dc9a14; --t3: #d4553a; --glow-o: 1; --send: var(--accent); --link: var(--accent); --glow-a: #b9e8c4; --glow-b: #ffdf9e; --accent: #1f7a41; --seed-a: #17803f; --seed-b: #9be0ad; }
@media (prefers-color-scheme: dark) {
  :root[data-color=alive]:not([data-tone=light]) { --glow-a: #1d5a31; --glow-b: #5a4310; --accent: #8fe6a6; --seed-a: #8fe6a6; --seed-b: #e9ffee; }
}
:root[data-color=alive][data-tone=dark] { --glow-a: #1d5a31; --glow-b: #5a4310; --accent: #8fe6a6; --seed-a: #8fe6a6; --seed-b: #e9ffee; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; transition: background-color .5s, color .5s; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .5s; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
p { margin: 0 0 14px; }
h1, h2 { font-family: var(--display); font-weight: var(--d-weight); letter-spacing: var(--d-track); text-wrap: balance; margin: 0; }

.page { max-width: 1280px; margin: 0 auto; padding-inline: var(--pad); }

/* ---------- the privacy page, and any other page of plain writing ---------- */
body:not(.home) main { max-width: 680px; margin: 0 auto; padding: 72px var(--pad) 96px; }
body:not(.home) h1 { font-size: 46px; line-height: 1.08; margin-bottom: 18px; }
body:not(.home) h2 { font-size: 25px; line-height: 1.2; margin: 44px 0 10px; }
body:not(.home) footer { max-width: 680px; margin: 0 auto; padding: 22px var(--pad) 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
body:not(.home) footer a { margin-right: 18px; color: inherit; }
body:not(.home) main ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
body:not(.home) main li { margin: 0 0 .5em; }
.soft { color: var(--muted); }

/* ---------- home ---------- */
.glow { position: absolute; inset: 0 0 auto; height: min(100svh, 900px); overflow: hidden; pointer-events: none; z-index: -1; opacity: var(--glow-o); transition: opacity .6s; }
.glow::before, .glow::after { content: ''; position: absolute; width: 90vmax; height: 90vmax; border-radius: 50%; }
.glow::before { left: -30vmax; top: -52vmax; background: radial-gradient(closest-side, var(--glow-a), transparent); }
.glow::after { right: -44vmax; top: -62vmax; background: radial-gradient(closest-side, var(--glow-b), transparent); }

.top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; height: 64px; padding-top: 18px; }
.wordmark { font-family: var(--display); font-weight: var(--d-weight); letter-spacing: var(--d-track); font-size: calc(25px * var(--d-size)); color: var(--ink); text-decoration: none; }

.row { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); gap: var(--gap); align-items: start; padding-block: var(--row-pad); }
.row + .row { border-top: 1px solid var(--line); }
.words > :last-child { margin-bottom: 0; }
.words p { max-width: 34em; color: var(--muted); text-wrap: pretty; }
h1 { font-size: calc(clamp(34px, 4.1vw, 56px) * var(--d-size)); line-height: 1.06; }
h2 { font-size: calc(clamp(29px, 3.1vw, 40px) * var(--d-size)); line-height: 1.1; margin-bottom: 18px; }
.lead { margin-top: 22px; font-size: 20px; line-height: 1.45; }
.words .lead { color: var(--ink); }

/* The first screen stops short of the window, so the next part shows under it. The proposals stand on the line between them. */
.hero { grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 6vw, 96px); min-height: max(330px, calc(100svh - 64px - var(--peek))); padding-block: 12px 0; align-items: stretch; }
.hero .words { align-self: center; padding-bottom: 28px; }
.hero h1 { max-width: 13.5em; }
.hero .lead { max-width: 29em; }
.hero .shots { align-self: end; }
.hero .ph { width: clamp(250px, 27vw, 340px); aspect-ratio: auto; height: max(310px, calc(100svh - 64px - var(--peek) - 20px)); max-height: 640px; }

.shots { display: grid; justify-items: center; }
.row.last { padding-bottom: 0; }
.row.last h2 { font-size: calc(clamp(24px, 2.3vw, 30px) * var(--d-size)); margin-bottom: 14px; }
.ask { padding-top: clamp(56px, 10vh, 104px); max-width: var(--col); }
.ask p { margin: 0; color: var(--muted); }

/* ---------- Cubby, drawn. Everything inside a frame is sized from the frame's own width, and wears the page's look. ---------- */
.ph, .win { position: relative; container-type: inline-size; overflow: hidden; background: var(--screen); border: 1px solid var(--line); box-shadow: var(--lift);
  transition: border-radius .5s var(--ease), background-color .5s, border-color .5s, box-shadow .5s; }
.ph { width: clamp(230px, 24vw, 300px); aspect-ratio: 9 / 18; }
.ph { border-radius: calc(34px * var(--rk) + 4px); }
.win { aspect-ratio: 16 / 10.2; border-radius: var(--r-mac); }
.ph.open { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.scr { position: absolute; inset: 0; font-size: 5.1cqw; line-height: 1.35; color: var(--ink); padding: 2.2em 1.25em 0; cursor: default; -webkit-user-select: none; user-select: none; }
.win .scr { font-size: 2.2cqw; padding: 0; }
.scr p { margin: 0; max-width: none; color: inherit; }
.scr b { font-family: var(--display); font-weight: var(--d-weight); letter-spacing: var(--d-track); }
.scr svg { display: block; width: 100%; height: 100%; }
.scr *, .tile { transition: background-color .5s, border-color .5s, color .5s, border-radius .5s var(--ease); }

.tile { flex: none; display: grid; place-items: center; width: 2.5em; height: 2.5em; padding: .5em; border-radius: calc(.7em * var(--rk) + .12em); color: #fff;
  background: linear-gradient(color-mix(in oklab, var(--t) 82%, #fff), var(--t)); }
.t1 { --t: var(--t1); } .t2 { --t: var(--t2); } .t3 { --t: var(--t3); }
.s-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(1em * var(--rk) + .15em); padding: .85em; }
.s-h { font-family: var(--display); font-weight: var(--d-weight); letter-spacing: var(--d-track); font-size: calc(1.72em * var(--d-size)); line-height: 1.08; }
.s-sub { font-size: .8em; color: var(--muted) !important; margin: .55em 0 1.1em !important; }
.s-app { display: grid; grid-template-columns: auto 1fr auto; gap: .75em; align-items: start; margin-bottom: .6em; }
.s-app b { display: block; font-size: calc(1.14em * var(--d-size)); line-height: 1.2; }
.s-app p { font-size: .76em; color: var(--muted); margin: .25em 0 .5em; }
.s-app i { display: inline-block; font-style: normal; font-size: .66em; padding: .22em .6em; margin: 0 .35em .35em 0; background: var(--well); border-radius: calc(.5em * var(--rk) + .12em); white-space: nowrap; }
.pick { align-self: center; width: 1.7em; height: 1.7em; padding: .32em; border: 1px solid var(--line-s); border-radius: calc(.42em * var(--rk) + .1em); color: var(--ink); }
.pick.on { background: var(--send); border-color: var(--send); color: var(--paper); }
.s-box { position: absolute; left: 1em; right: 1em; bottom: 1.1em; display: flex; align-items: center; gap: .7em; height: 3.1em; padding: 0 .5em 0 .95em; font-size: .9em; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(1.55em * var(--rk) + .15em); box-shadow: var(--lift); }
.s-box > :nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; }
.s-mark { flex: none; width: 1.05em; height: 1.05em; border-radius: 12% 50% 50% 50%; transform: rotate(45deg); background: radial-gradient(circle at 62% 66%, var(--seed-b), var(--seed-a) 70%); }
:root[data-shape=crisp] .s-mark { border-radius: .16em; transform: none; }
.s-send { flex: none; width: 2.1em; height: 2.1em; padding: .5em; border-radius: var(--r-send); background: var(--line-s); color: var(--paper); }

/* a built app */
.a-bar { display: flex; align-items: center; gap: .2em; font-size: .82em; color: var(--muted); }
.a-bar svg { width: 1.1em; height: 1.1em; }
.a-head { display: flex; align-items: center; gap: .65em; margin-top: 1em; }
.a-head b { font-size: calc(1.3em * var(--d-size)); }
.a-head .tile { width: 2em; height: 2em; padding: .4em; }
.a-num { font-family: var(--display); font-weight: var(--d-weight); letter-spacing: -0.04em; font-size: 4.6em; line-height: 1; margin-top: .3em !important; font-variant-numeric: lining-nums; }
.a-of { font-family: var(--display); font-weight: var(--d-weight); letter-spacing: var(--d-track); font-size: calc(1.15em * var(--d-size)); }
.a-sub { font-size: .78em; color: var(--muted) !important; margin-top: .3em !important; }
.a-track { height: .28em; margin: .9em 0 1.1em; background: var(--well); border-radius: 1em; overflow: hidden; }
.a-track span { display: block; width: 62%; height: 100%; background: var(--t1); }
.s-card > b { display: block; font-size: calc(1.02em * var(--d-size)); margin-bottom: .35em; }
.a-row { display: flex; align-items: center; gap: .6em; font-size: .84em; padding: .42em 0; border-top: 1px solid var(--line); }
.a-row:first-of-type { border-top: 0; }
.a-row.done { color: var(--muted); }
.a-tick { flex: none; width: 1.25em; height: 1.25em; padding: .14em; border: 1px solid var(--line-s); border-radius: calc(.65em * var(--rk) + .1em); color: #fff; }
.done .a-tick { background: var(--t1); border-color: var(--t1); }
.a-tabbar { position: absolute; inset: auto 0 0; display: flex; justify-content: space-around; padding: .85em 0 1.2em; font-size: .78em; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.a-tabbar u, .a-tabs u { text-decoration: none; }
.a-tabbar .on { color: var(--ink); font-weight: 600; }
.win .a-bar { padding: .7em 1em; border-bottom: 1px solid var(--line); }
.win .a-head { margin: 0; padding: .8em 2.4em; border-bottom: 1px solid var(--line); }
.a-tabs { margin-left: auto; display: flex; gap: .3em; font-size: .8em; color: var(--muted); }
.a-tabs u { padding: .35em .8em; border-radius: calc(.5em * var(--rk) + .1em); }
.a-tabs .on { background: var(--well); color: var(--ink); }
.a-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0 2em; padding: 1.3em 2.4em 0; }
.a-beds { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.a-bed { display: grid; grid-template-columns: auto 1fr; gap: .1em .8em; align-items: baseline; font-size: .84em; padding: .55em 0 .6em; border-top: 1px solid var(--line); }
.a-bed:first-of-type { border-top: 0; }
.a-bed em { font-style: normal; color: var(--muted); text-align: right; }
.a-fill { grid-column: 1 / -1; height: .3em; margin-top: .35em; border-radius: 1em; background: linear-gradient(to right, var(--t1) calc(var(--f) * 100%), var(--well) 0); }

.duo { width: 100%; max-width: 640px; }

/* home */
.athome .scr { padding-top: 1.5em; text-align: center; }
.h-word { text-align: left; font-family: var(--display); font-weight: var(--d-weight); letter-spacing: var(--d-track); font-size: calc(1.2em * var(--d-size)); }
.h-date { font-size: .78em; color: var(--muted) !important; margin-top: 4.2em !important; }
.h-hello { font-family: var(--display); font-weight: var(--d-weight); letter-spacing: var(--d-track); font-size: calc(1.9em * var(--d-size)); line-height: 1.1; margin-top: .15em !important; }
.h-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4em; margin-top: 2em; font-size: .68em; }
.h-tiles > span { display: grid; justify-items: center; gap: .55em; white-space: nowrap; }
.h-tiles .tile { font-size: 1.5em; width: 2.75em; height: 2.75em; padding: .62em; }
.h-tiles .more { color: var(--muted); }
.h-tiles .more .tile { background: none; border: 1px solid var(--line-s); color: var(--muted); }

/* ---------- switching the look of this page ---------- */
.looks { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.looks-h { grid-column: 1 / -1; margin: 0 0 4px; color: var(--ink); }
.looks fieldset { margin: 0; padding: 3px; min-width: 0; border: 0; border-radius: var(--r-ctl); background: var(--well); display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  transition: border-radius .5s var(--ease), background-color .5s, border-color .5s; }
.looks legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.looks label { position: relative; display: block; cursor: pointer; }
.looks input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.looks span { display: grid; place-items: center; min-height: 40px; padding: 0 4px; font-size: 14px; white-space: nowrap; color: var(--muted); border-radius: calc(var(--r-ctl) - 3px);
  transition: background-color .25s, color .25s, border-radius .5s var(--ease); }
.looks label:hover span { color: var(--ink); }
.looks input:checked + span { background: var(--surface); color: var(--link); font-weight: 500; box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgb(0 0 0 / .08); }
.looks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- the box: on screen from the first moment, at rest at the end of the page ---------- */
.dock { position: sticky; bottom: 0; z-index: 5; width: var(--col); max-width: 100%; padding: 34px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, transparent, var(--paper) 36px); pointer-events: none; }
.dock > * { pointer-events: auto; }
.box { position: relative; display: flex; align-items: center; height: 56px; padding: 0 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: var(--lift);
  transition: border-radius .5s var(--ease), background-color .5s, border-color .25s, box-shadow .5s; }
.box:focus-within { border-color: var(--line-s); }
.mark { flex: none; width: 54px; display: grid; place-items: center; }
.mark i { display: block; width: 19px; height: 19px; border-radius: 12% 50% 50% 50%; transform: rotate(45deg); background: radial-gradient(circle at 62% 66%, var(--seed-b), var(--seed-a) 70%);
  animation: breathe 4.2s ease-in-out infinite; transition: border-radius .7s var(--ease); }
:root[data-shape=crisp] .mark i { border-radius: 3px; transform: none; }
@keyframes breathe { 50% { scale: 1.09; } }
@keyframes think { 0% { rotate: 0deg; scale: 1; } 50% { rotate: 180deg; scale: .78; } 100% { rotate: 360deg; scale: 1; } }
@keyframes yes { 40% { scale: 1.4; } }
@keyframes nope { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
.box[data-state=sending] .mark i { animation: think 1.1s cubic-bezier(.5, 0, .5, 1) infinite; }
.box[data-state=done] .mark i { animation: yes .6s var(--ease); }
.box.nope { animation: nope .4s; }
.email { flex: 1; min-width: 0; height: 100%; padding: 0 10px 0 0; border: 0; background: transparent; color: var(--ink); font: 17px/1 var(--sans); outline: none; border-radius: 0; -webkit-appearance: none; appearance: none; }
.email::placeholder { color: var(--muted); opacity: .85; }
.email:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 100px var(--surface) inset; }
.box:has(.email:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.send { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: var(--r-send); background: var(--send); color: var(--paper); cursor: pointer;
  transition: background-color .3s, opacity .3s, border-radius .5s var(--ease), scale .15s; }
.send:active { scale: .94; }
.box.empty .send { background: var(--line-s); }
.box[data-state=sending] .send { opacity: .45; pointer-events: none; }
.said { display: none; flex: 1; margin: 0; padding-right: 16px; font-size: 17px; color: var(--ink); outline: none; }
.box[data-state=done] .email, .box[data-state=done] .send { display: none; }
.box[data-state=done] .said { display: block; }
.trap { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.note { margin: 9px 0 0; padding-left: 20px; min-height: 20px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.note.bad { color: var(--bad); }
.note button { font: inherit; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.dock.rest { position: static; }

.foot { display: flex; gap: 22px; padding-block: 26px 44px; font-size: 15px; color: var(--muted); }
.foot a { color: inherit; }

@media (max-width: 899px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 52px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 28px 0; }
  .hero .words { padding-bottom: 0; }
  .hero .ph { width: min(300px, 82%); height: 430px; }
  .ph { width: min(280px, 78%); }
  .win { aspect-ratio: 16 / 12.4; }
  .win .scr { font-size: 2.65cqw; }
  .win .a-head, .a-body { padding-inline: 1.4em; }
  .ask { padding-top: 56px; max-width: none; }
  .dock { width: auto; max-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
  .looks span { min-height: 44px; }
  .dock > * { max-width: 560px; }
  .foot { padding-bottom: 36px; }
}
@media (max-width: 420px) {
  body { font-size: 16.5px; }
  .lead { font-size: 19px; }
  .note { padding-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
