/* The pages an owner works in after the front page (11 November 2026): the brief with Webster, the three looks, and
   the approval page. Same world as the front page (white paper, ink, one grease-pencil orange, Archivo, square corners)
   but quiet: this is a place to get a job done on a phone. Motion is opacity and transform only, and off under
   reduced motion. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 99%; ascent-override: 88%; descent-override: 22%; line-gap-override: 0%; }

:root {
  --paper: #fbfbfd; --paper-deep: #eef1f6; --ink: #121212; --ink-2: #4a4a48; --ink-3: #6b6b67; --film: #161616;
  --pencil: #c8431a; --pencil-deep: #b23a14; --line: #d5d9e0; --ok: #1c6b43; --bad: #a3271d;
  --font: "Archivo", "Archivo Fallback", Arial, sans-serif; --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.5rem); }
h2 { font-size: 1.25rem; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
button, textarea, input { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--pencil); outline-offset: 2px; }
[hidden] { display: none !important; }

.strip { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 0 20px; background: var(--paper); border-bottom: 1px solid var(--film); }
.brand { font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; font-size: 1.15rem; text-decoration: none; }
.strip__state { font-size: .86rem; color: var(--ink-2); text-align: right; }
.meter { position: sticky; top: 56px; z-index: 5; height: 3px; background: var(--paper-deep); }
.meter i { display: block; height: 100%; width: 0; background: var(--pencil); transition: width .5s var(--ease); }

main { max-width: 720px; margin: 0 auto; padding: 22px 20px 40px; }
.lede { color: var(--ink-2); margin-top: 8px; max-width: 52ch; }
.small { font-size: .9rem; color: var(--ink-2); }
.fp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: var(--ink-3); word-break: break-all; }

/* ---- The chat ---- */
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.msg { max-width: 88%; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--webster { align-self: flex-start; background: var(--paper-deep); }
.msg--owner { align-self: flex-end; background: var(--film); color: #fff; }
.who { align-self: flex-start; display: flex; align-items: center; gap: 8px; margin: 8px 0 -4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.who img { width: 28px; height: 28px; object-fit: cover; }
.hello { display: flex; align-items: flex-start; gap: 14px; }
.hello img { flex: none; width: 64px; height: 64px; object-fit: cover; border: 1.5px solid var(--film); }
.listen { align-self: flex-start; min-height: 44px; margin: -8px 0 -10px; padding: 0 2px; border: 0; background: none; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--pencil-deep); text-decoration: underline; text-underline-offset: 3px; }
#voice { margin-top: 2px; text-align: left; white-space: normal; color: var(--pencil-deep); font-weight: 600; }
.noted { align-self: flex-start; margin-top: -4px; font-size: .84rem; color: var(--ok); }
.noted b { font-weight: 600; }
.typing { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 16px 14px; background: var(--paper-deep); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dot 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.typing span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 44px; padding: 9px 14px; background: var(--paper); border: 1.5px solid var(--ink); cursor: pointer; font-weight: 600; font-size: .95rem; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.chip:hover { background: var(--ink); color: #fff; }
.chip:active { transform: translateY(1px); }
.chip--quiet { border-color: var(--line); color: var(--ink-2); font-weight: 500; }

.alert { margin-top: 12px; padding: 10px 12px; border: 1.5px solid var(--bad); color: var(--bad); font-weight: 600; font-size: .95rem; }
.say { position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: 8px; margin-top: 12px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--paper); }
.say textarea { flex: 1; min-height: 48px; max-height: 168px; padding: 11px 12px; resize: none; background: #fff; border: 1.5px solid var(--ink); border-radius: 0; line-height: 1.4; }
.say textarea::placeholder { color: var(--ink-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; font-weight: 600; line-height: 1.1; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, color .2s ease, transform .15s ease; }
.btn:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--pencil); border-color: var(--pencil); color: #fff; }
.btn--primary:hover { background: var(--pencil-deep); border-color: var(--pencil-deep); color: #fff; }
.btn[disabled], .chip[disabled] { opacity: .55; cursor: progress; }
.btn--text { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--ink-2); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.btn--text:hover { background: none; color: var(--ink); }

/* ---- Panels under the chat ---- */
.panel { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--film); }
.panel > h2 + p { margin-top: 6px; }
.notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.notes li { padding: 14px; background: var(--paper-deep); }
.notes .acts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
details.known { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
details.known summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 600; list-style: none; }
details.known summary::-webkit-details-marker { display: none; }
details.known summary::after { content: "Show"; font-weight: 500; font-size: .9rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
details.known[open] summary::after { content: "Hide"; }
dl.rows { margin: 0 0 16px; display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: 8px 14px; font-size: .95rem; }
dl.rows dt { color: var(--ink-3); } dl.rows dd { margin: 0; overflow-wrap: anywhere; }
.summary { margin-top: 12px; display: grid; gap: 8px; font-size: .97rem; }
.summary b { font-weight: 600; }
ul.plain { margin: 10px 0 0; padding-left: 20px; } ul.plain li { margin: 4px 0; }
.confirm { margin-top: 18px; display: grid; gap: 10px; justify-items: start; }

/* ---- The three looks ---- */
.tiles { display: grid; gap: 18px; margin-top: 16px; }
.tile { border: 1.5px solid var(--line); background: #fff; }
.tile.is-chosen { border-color: var(--pencil); }
.tile iframe { display: block; width: 100%; height: 420px; border: 0; background: #fff; }
.tile__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.tile__pick { padding: 0 14px 14px; display: grid; gap: 10px; }
.tile__pick textarea { width: 100%; min-height: 72px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 0; background: #fff; }
.tag { display: inline-block; padding: 3px 10px; font-size: .82rem; font-weight: 600; background: var(--paper-deep); }
.tag--ok { background: #dcefe4; color: #0f4d2e; } .tag--warn { background: #fbe6d8; color: #7a2c0c; } .tag--bad { background: #f6dcd9; color: #7a1a14; }

/* ---- Approval ---- */
.shots { display: flex; gap: 10px; overflow-x: auto; margin-top: 14px; padding-bottom: 6px; }
.shots img { height: 240px; width: auto; border: 1px solid var(--line); }
.field { display: grid; gap: 6px; margin-top: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 0; background: #fff; font-weight: 400; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

@media (min-width: 760px) { main { padding-top: 36px; } .msg { max-width: 78%; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: .6; } .meter i, .btn, .chip { transition: none; } }

/* The month page (15 November 2026): one proposed change, with what is there now and what it would become. */
.sub { margin: 16px 0 6px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.change { margin-top: 18px; padding: 14px 0 4px; border-top: 1px solid var(--film); }
.change--held { opacity: .75; }
.change__head { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.change__head input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--pencil); }
.change__why { margin-top: 6px; }
.change__diff { display: grid; gap: 4px 20px; grid-template-columns: 1fr; }
.change__text { font-size: .95rem; color: var(--ink-2); overflow-wrap: anywhere; }
.change__text p + p { margin-top: 8px; }
.change__text--new { color: var(--ink); background: var(--paper-deep); padding: 10px 12px; }
@media (min-width: 760px) { .change__diff { grid-template-columns: 1fr 1fr; } }

/* Choosing a plan (15 November 2026): a radio or a tick box with its words beside it, a full 44px to tap. */
.pick { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 6px 0; cursor: pointer; }
.pick input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--pencil); }
