/* Home page, "The Draft Table" (since 2026-11-08): an editor's table instead of a product page.
   Type: Instrument Serif at display sizes (the wordmark's face, now the voice of the page), system sans for
   reading, system mono for labels like frame numbers. Draft red is only ever a mark: the dashed board line,
   the grease-pencil circle, the drag hint. Light only, like the app. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/InstrumentSerif-Regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/InstrumentSerif-Italic.woff2") format("woff2"); }

:root {
  --paper: #f4f3ef;
  --table: #ece9e2;
  --stage: #e3ddd2;
  --ink: #15171c;
  --body: #3e414a;
  --graphite: #5f626a;
  --hair: #d9d6cf;
  --draft: #e0482d;
  --deep: #b5341c; /* 5.0:1 on --table, 5.5:1 on --paper, white on it 6:1: passes AA for the small red words */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --mast: 60px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { :root { --gut: max(32px, env(safe-area-inset-left, 0px)); --gut-r: max(32px, env(safe-area-inset-right, 0px)); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--draft); outline-offset: 3px; }
::selection { background: rgba(224, 72, 45, 0.2); color: var(--ink); }
input { caret-color: var(--deep); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip:focus { top: 12px; }
.mono { font: 500 12px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--graphite); margin: 0; }
.display { margin: 0; font: 400 clamp(44px, 7vw, 104px)/0.96 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.display em, h1 em, h2 em { font-style: italic; }

/* ── Masthead: wordmark, a mono note, one link ── */
.mast { position: fixed; inset: 0 0 auto; z-index: 30; height: calc(var(--mast) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gut-r) 0 var(--gut); display: flex; align-items: center; gap: 16px;
  background: rgba(244, 243, 239, 0.86); background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mast__mark { font: 400 26px/1 var(--serif); color: var(--ink); text-decoration: none; }
.mast__mark em { color: var(--deep); }
.mast__meta { margin-left: auto; display: none; }
.mast__cta { margin-left: auto; display: inline-flex; align-items: center; min-height: 40px; font: 500 15px/1 var(--sans); color: var(--ink); text-decoration: none; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 980px;
  opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease), visibility 0s 240ms, background 150ms ease, color 150ms ease; }
.is-past-hero:not(.is-at-close) .mast__cta { opacity: 1; visibility: visible; transition: opacity 240ms var(--ease), background 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .mast__cta:hover { background: var(--ink); color: #fff; } }
@media (min-width: 720px) { .mast__meta { display: block; } .mast__cta { margin-left: 24px; } }

/* ── Sign-up ── */
.join { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 440px; }
.signup__hint { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--graphite); text-wrap: balance; }
.join input { flex: 1 1 150px; min-width: 0; height: 48px; padding: 0 20px; border: 1px solid var(--hair); border-radius: 980px; background: #fff; font: 400 17px var(--sans); color: var(--ink); }
.join input::placeholder { color: var(--graphite); }
.join input[aria-invalid="true"] { border-color: var(--deep); }
.join button { flex: 1 0 auto; height: 48px; padding: 0 24px; border: 0; border-radius: 980px; background: var(--ink); color: #fff; font: 600 17px/1 var(--sans); cursor: pointer; transition: transform 150ms var(--ease), background 150ms ease; }
.join button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .join button:hover { background: #30333b; } }
.signup__status { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; line-height: 1.45; text-wrap: balance; }
/* A message takes the hint's place, at the same height, so nothing around the form moves. */
.join[data-state="error"] .signup__hint, .join[data-state="done"] .signup__hint, .join[data-state="busy"] .signup__hint { display: none; }
.signup__hint, .signup__status:not(:empty) { min-height: 2.9em; }
/* Empty, it stays in the accessibility tree (only collapsed), so screen readers announce its first message. */
.signup__status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.join[data-state="error"] .signup__status { color: var(--deep); }

/* ── 01 · The table: pinned while the pile becomes a board and the board becomes a look ── */
/* One screen until table.js has laid the table out (so if it never runs, there's no empty scroll), then
   3 screens of scroll for the pinned table. vh lines are fallbacks for browsers without svh. */
.table { position: relative; height: 100vh; height: 100svh; background: var(--table); }
.table.is-laid { height: 300vh; height: 300svh; }
.table__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; touch-action: pan-y; }
/* Paper grain, so the table reads as a surface, not a flat fill. */
.table__pin::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(21, 23, 28, 0.06) 1px, transparent 1px); background-size: 4px 4px; }

/* Centred in the space under the masthead. */
.table__hero { position: absolute; z-index: 3; left: var(--gut); right: var(--gut-r); top: calc(50% + var(--mast) / 2); transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.table__hero > * { pointer-events: auto; }
/* Capped by height too, so the line fits a phone held sideways. */
.table__title { margin: 0; max-width: 12ch; font: 400 clamp(52px, 8.4vw, 128px)/0.92 var(--serif); font-size: clamp(52px, min(8.4vw, 15svh), 128px); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }

/* Until table.js has laid the table out, and without JavaScript, only the hero shows: no pieces in a heap in the
   corner, no full-size photo behind the line. Without JavaScript the table is one screen tall. */
.table:not(.is-laid) :is(.pieces, .finder, .table__say, .table__outline, .table__board-label, .drag-hint, .table__scroll) { visibility: hidden; }
html:not(.js) .table__pin { position: relative; }
/* Too short for the pinned table (a phone at large text, a laptop at 400% zoom): the hero is an ordinary
   section and the rest of the opening is left out; the contact sheet below carries the looks. */
.table.is-flat { height: auto; }
.table.is-flat .table__pin { position: relative; height: auto; padding: calc(var(--mast) + 24px) 0 40px; }
.table.is-flat .table__hero { position: relative; top: auto; left: auto; right: auto; padding: 0 var(--gut-r) 0 var(--gut);
  transform: none !important; opacity: 1 !important; visibility: visible !important; }
.table.is-flat :is(.pieces, .finder, .table__say, .table__outline, .table__board-label, .drag-hint, .table__scroll) { display: none; }
.table__lede { margin: 20px 0 0; max-width: 36ch; font-size: 17px; line-height: 1.5; color: var(--body); text-wrap: pretty; }
.is-short .table__lede { display: none; } /* sideways phones and short windows: the line beside the finished table says it */
.table__hero .join { margin-top: 24px; }

.pieces { list-style: none; margin: 0; padding: 0; }
/* pan-y: a vertical swipe that starts on a piece still scrolls the page; a sideways one drags it. */
.piece { position: absolute; left: 0; top: 0; z-index: 2; width: 160px; margin: 0; cursor: grab; user-select: none; -webkit-user-select: none;
  transform-origin: 50% 50%; will-change: transform; touch-action: pan-y; }
.piece.is-dragging { cursor: grabbing; z-index: 6; }
.piece img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #fff; border-radius: 4px;
  box-shadow: 0 1px 0 rgba(21, 23, 28, 0.06), 0 10px 30px rgba(21, 23, 28, 0.12); transition: box-shadow 200ms var(--ease); }
.piece.is-dragging img { box-shadow: 0 24px 50px rgba(21, 23, 28, 0.22); }
.piece span { position: absolute; left: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 1px; padding: 4px 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 11px; transition: opacity 200ms var(--ease); }
.piece span b { font-weight: 500; color: var(--graphite); } /* the price kept with the saved piece */
/* On the phone board the cards are a fifth of the width and the tags would shrink to 5px: hide them there. */
.table.is-narrow.is-gathered .piece span { opacity: 0; }
.table.is-gathered .piece { cursor: default; touch-action: pan-y; }

.drag-hint { position: absolute; z-index: 5; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  background: var(--deep); color: #fff; pointer-events: none; transform: translate(-50%, -50%); transition: opacity 240ms var(--ease); }

.table__outline { position: absolute; z-index: 1; overflow: visible; pointer-events: none; }
.table__outline rect { fill: rgba(255, 255, 255, 0.45); stroke: var(--draft); stroke-width: 1.5; stroke-dasharray: 7 6; }
.table__board-label { position: absolute; z-index: 2; color: var(--deep); }

.finder { position: absolute; z-index: 2; margin: 0; }
.finder__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 2px; background: var(--stage); }
.finder__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--ink); }
.finder__corner--tl { left: -12px; top: -12px; border-left-width: 1.5px; border-top-width: 1.5px; }
.finder__corner--tr { right: -12px; top: -12px; border-right-width: 1.5px; border-top-width: 1.5px; }
.finder__corner--bl { left: -12px; bottom: -12px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.finder__corner--br { right: -12px; bottom: -12px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.finder__cap { position: absolute; left: 0; right: 0; top: calc(100% + 18px); display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; }
.is-short .finder__cap { left: -12px; right: -12px; } /* the finder is narrow on a sideways phone: run out to the corners */

.table__say { position: absolute; z-index: 2; }
.table__say-title { margin: 0; font: 400 clamp(40px, 4.6vw, 72px)/0.96 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.table__say p { margin: 16px 0 0; max-width: 32ch; font-size: 17px; line-height: 1.5; }
.is-narrow .table__say { text-align: center; }
.is-narrow .table__say p { display: none; }
.table__scroll { position: absolute; z-index: 3; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); }

/* ── 02 · Contact sheet ── */
.sheet { padding: 120px var(--gut-r) 96px var(--gut); background: var(--paper); }
.sheet__head { display: grid; gap: 14px; max-width: 1200px; margin: 0 auto 48px; }
.sheet__head .display { max-width: 14ch; }
.sheet__note { margin: 0; max-width: 46ch; font-size: 15px; color: var(--graphite); }
.who { display: inline-flex; gap: 4px; padding: 4px; justify-self: start; border: 1px solid var(--hair); border-radius: 980px; }
.who__btn { min-height: 40px; padding: 0 18px; border: 0; border-radius: 980px; background: none; font: 500 15px/1 var(--sans); cursor: pointer; transition: background 150ms ease, color 150ms ease; }
.who__btn.is-on { background: var(--ink); color: #fff; }
.frames { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.frame { position: relative; margin: 0; }
.frame__img { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; aspect-ratio: 9 / 14; overflow: hidden; border-radius: 2px; background: var(--stage); cursor: pointer; }
.frame__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: opacity 320ms var(--ease), transform 600ms var(--ease); }
.frame__board { opacity: 0; transform: scale(1.04); background: #fff; object-position: 50% 50% !important; }
.frame.is-board .frame__board { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .frame:hover .frame__board { opacity: 1; transform: none; } }
.frame p { display: flex; justify-content: space-between; margin-top: 10px; }
.frame.is-pick p span:last-child { color: var(--deep); }
/* Sized from the photo (9 : 14), not the frame, so the circle rings the photo and passes above the caption. */
.pick { position: absolute; left: -9%; top: -4%; width: 118%; height: auto; aspect-ratio: 118 / 168; overflow: visible; pointer-events: none; z-index: 2; }
.pick path { fill: none; stroke: var(--draft); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 1100ms var(--ease) 200ms; }
.frames.is-seen .pick path { stroke-dashoffset: 0; }
@media (min-width: 900px) {
  .sheet { padding-top: 160px; }
  .sheet__head { grid-template-columns: 1fr auto; align-items: end; }
  .sheet__head .display, .sheet__note { grid-column: 1; }
  .who { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: end; }
  .frames { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

/* ── 03 · Dress Me index ── */
.index { position: relative; overflow: hidden; overflow: clip; padding: 96px var(--gut-r) 120px var(--gut); background: var(--paper); border-top: 1px dashed var(--draft); }
.index__head { display: grid; gap: 14px; max-width: 1200px; margin: 0 auto 40px; }
.index__head .display { font-size: clamp(36px, 4.8vw, 68px); max-width: 20ch; }
.index__note { margin: 0; max-width: 52ch; color: var(--body); }
.index__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; }
.index__row { border-top: 1px solid var(--hair); }
.index__row:last-child { border-bottom: 1px solid var(--hair); }
.index__row button { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  padding: 18px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.index__name { font: 400 clamp(40px, 8vw, 120px)/1 var(--serif); letter-spacing: -0.02em; color: var(--graphite); transition: color 200ms var(--ease), transform 300ms var(--ease); }
.index__row.is-on .index__name { color: var(--ink); font-style: italic; }
/* Touch screens: the chosen occasion opens inline, the look beside the closet pieces it came from. */
.index__inline { display: none; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; align-items: end; max-width: 520px; margin: 0 0 20px; }
.index__row.is-on .index__inline { display: grid; }
.index__inline > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 2px; background: var(--stage); }
.closet { margin: 0; }
.closet img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; background: #fff; }
.closet figcaption { margin-top: 6px; }
.index__float { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .index__row .index__inline, .index__row.is-on .index__inline { display: none; }
  .index__row:hover .index__name { transform: translateX(16px); }
  /* The weather sits in a left column; the photo keeps to a column on the right and moves only up and down. */
  .index__row button { display: grid; grid-template-columns: 13em minmax(0, 1fr); align-items: baseline; gap: 24px; }
  .index__name { font-size: clamp(56px, 6.4vw, 96px); }
  .index__meta { order: -1; }
  .index__float { display: block; position: absolute; left: 0; top: 0; z-index: 3; width: min(26vw, 340px); aspect-ratio: 3 / 4; pointer-events: none;
    will-change: transform; }
  .index__float > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: 2px; box-shadow: 0 30px 60px rgba(21, 23, 28, 0.2); }
  /* The closet pieces lie on the photo's corner like a print on the table. */
  .index__float .closet { position: absolute; right: -6%; bottom: -7%; width: 42%; padding: 6px 6px 8px; background: #fff; border-radius: 2px;
    transform: rotate(3deg); box-shadow: 0 14px 30px rgba(21, 23, 28, 0.18); }
  .index__float .closet figcaption { margin-top: 6px; font-size: 11px; }
}

/* ── 04 · Closing ── */
.close { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--stage); }
.close__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* A paper scrim behind the line, the form and its notes, clearing towards the wordmark. */
.close::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(244, 243, 239, 0.92), rgba(244, 243, 239, 0.8) 55%, rgba(244, 243, 239, 0.2) 80%, rgba(244, 243, 239, 0.4)); }
.close__top { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
  padding: calc(var(--mast) + 14vh) var(--gut-r) 0 var(--gut); }
.close__top .display { max-width: 12ch; }
.close__meta { max-width: 52ch; color: var(--ink); text-wrap: balance; }
.close__meta span, .close__meta a { white-space: nowrap; } /* each fact stays on one line */
.close .signup__hint { color: var(--body); }
.close__meta a { color: inherit; }
.close__word { position: relative; z-index: 2; margin: 0; padding: 0 0 0 1vw; font: 400 26.5vw/0.78 var(--serif); letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; transform: translateY(6%); }
.close__word em { color: var(--deep); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: 28px var(--gut-r) max(28px, env(safe-area-inset-bottom)) var(--gut); background: var(--paper); border-top: 1px solid var(--hair); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.foot a { display: inline-block; padding: 11px 0; text-decoration: none; } /* 44px tall to tap */
@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--deep); } }

/* Reduced motion: the table isn't scrubbed. It shows the pile, then crossfades once to the finished board and look. */
@media (prefers-reduced-motion: reduce) {
  .piece, .finder, .table__say, .table__outline, .table__board-label, .table__hero { transition: opacity 300ms linear; }
  .table__pin { transition: opacity 200ms linear; } /* table.js fades it out, swaps the state, fades it back */
  .pick path { transition: none; stroke-dashoffset: 0; }
  .frame__img img, .index__name { transition: none; }
}

/* Footer fine print, kept from the earlier home page (the LLC-SWITCH line in index.html). */
.foot__fine { margin: 0; max-width: 62ch; font-size: 13px; line-height: 1.5; color: var(--graphite); }
