/* The create page (public/create.html). It rides on studio.css, the same
   tokens and controls, and adds only what the studio has no use for: the
   colour looks, the words, the signup panel and the live design. */

/* The two faces the photo-first designs set in, both open licence and
   credited on /licenses: a bold serif for the big line, a script for the name. */
@font-face { font-family: "Playfair Display"; src: url("/fonts/playfair-display-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("/fonts/pacifico-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.pick-big { justify-self: stretch; min-height: 64px; font-size: 16px; border-color: var(--lit); }

/* One column on a phone, in the order she uses it: her line, the design,
   the signup, then the choices. On a wide screen the design stays beside
   everything else. Every track is minmax(0, ...) so no row of text can widen
   its column and slide under the design (Brock, 2026-11-26: "its covering
   over itself"). */
.create.studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "out" "more"; gap: 22px; }
.create .make-top { grid-area: top; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.create .make-more { grid-area: more; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; align-content: start; }
.create .steps { grid-template-columns: minmax(0, 1fr); }
.create .sub { margin: 0; text-align: center; }
.create .sentence { display: block; text-wrap: balance; }
.create .title { display: grid; gap: 2px; min-width: 0; }
/* Its own title rules, so the page reads the same whichever studio.css it is
   served beside: one uppercase row per sentence, centred, fitted by
   type-rows.js to the column. */
.create .title-row { display: block; min-width: 0; width: 100%; text-align: center; text-transform: uppercase; }
.create .thought-title-line { display: inline-block; max-width: 100%; }

.tones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tones label { position: relative; display: grid; justify-items: center; gap: 6px; width: 72px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.tones input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tone { display: block; width: 52px; height: 52px; border-radius: 12px; border: 2px solid transparent; position: relative; overflow: hidden; }
.tone::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; }
.tones input:checked ~ .tone { border-color: var(--lit); }
.tones input:checked ~ span:last-child { color: var(--ink); font-weight: 600; }
.tones input:focus-visible ~ .tone { outline: 2px solid var(--ice); outline-offset: 2px; }
.tone-scarlet { background: #ba0c2f; } .tone-scarlet::after { background: #ffd166; }
.tone-sunshine { background: #ffd23f; } .tone-sunshine::after { background: #e4572e; }
.tone-mint { background: #bfead6; } .tone-mint::after { background: #ff6f59; }
.tone-navy { background: #14213d; } .tone-navy::after { background: #fca311; }
.tone-blush { background: #ffd6e0; } .tone-blush::after { background: #c2185b; }
.tone-chalk { background: #22352b; } .tone-chalk::after { background: #f2c14e; }

.pick { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 99px; border: 1.5px dashed var(--line); background: var(--ground-2); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; justify-self: start; }
.pick:hover { border-color: var(--lit); }
.pick .file { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

.words summary { cursor: pointer; list-style: none; min-height: 44px; }
.words summary::-webkit-details-marker { display: none; }
.more-cue { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border-radius: 99px; border: 1px solid var(--line); font: 600 16px/1 var(--body); color: var(--ink-2); transition: transform .18s var(--ease); }
.words[open] .more-cue { transform: rotate(45deg); }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.field input { min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--ground-2); color: var(--ink); font: 400 15px/1.3 var(--body); }
.field input:focus { outline: none; border-color: var(--ice); }

.signup { display: grid; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--ground-2); border: 1px solid var(--line); }
.signup .hint .sentence { display: block; }
.signup a { color: var(--ice); font-weight: 600; overflow-wrap: anywhere; }

.create .out { grid-area: out; display: grid; gap: 14px; align-content: start; min-width: 0; }
.stage { display: grid; place-items: center; min-width: 0; padding: 12px; border-radius: var(--r); background: var(--ground-2); border: 1px solid var(--line); }
.stage canvas { display: block; max-width: 100%; border-radius: 6px; box-shadow: 0 18px 50px -22px #000; }
.create .acts { grid-template-columns: 1fr 1fr; }
.create .acts .post { height: 52px; font-size: 15px; }

@media (min-width: 980px) {
  .create.studio { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); grid-template-areas: "top out" "more out"; grid-template-rows: auto 1fr; align-items: start; column-gap: 40px; }
  .create .out { position: sticky; top: 16px; }
}

/* The sample on an empty page (2026-11-26): faded, tagged, never shared. */
.create .stage { position: relative; }
.create .stage.is-sample canvas { opacity: .55; }
.create .stage.is-sample { padding-top: 56px; }
.create .sample-tag { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 99px; background: #0f0d0dd9; color: #fff; font: 600 12px/1.2 var(--body, system-ui); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.create .try { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 13px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: border-color .18s, background-color .18s; }
.create .try:hover { border-color: var(--brand); background: color-mix(in oklab, var(--brand) 14%, transparent); }
.create .try:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
