/* The client questionnaire page: the look of Rachel's English proposals (build chat 2, 17/11/2026).
   Sources: PROPOSALS\ENGLISH PROPOSAL RULES.md, the machine's DESIGN-RULES.md, DESIGN CONSULT - THE FLOW (17-11).md.
   Every colour, size and space is a variable here, so a look change in the live round is one line. */

@font-face {
  font-family: "Canela Deck Web";
  src: url("fonts/CanelaDeck-Thin-Web.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-latin-ext.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* her proposal's colours (the "g1" set) */
  --paper: #F4F1EB;        /* the page */
  --paper-deep: #D1C6B5;   /* the contents page, as in her proposal */
  --hover: #ECE7DE;        /* a row under the pointer */
  --text: #292929;         /* her text colour (14/11) */
  --soft: #5A5348;         /* small text */
  --gold: #796C58;         /* the one accent: numbers, rules, ticks, the progress fill; never words */
  --line: #B0A798;         /* lines between rows: her line colour, 10% toward the text */
  --on-dark: #F4F1EB;      /* words on a chosen (dark) row */

  --title: "Canela Deck Web", "Canela Deck", Georgia, serif;   /* titles, 28 px and up only */
  --sans: "Jost", "Futura", "Century Gothic", Arial, sans-serif; /* text (Futura's free look-alike) */

  --text-size: 18px;       /* answers and paragraphs; nothing under 16 px */
  --q-size: 20px;          /* the questions */
  --small: 16px;           /* labels, hints */
  --para-lh: 1.8;          /* her paragraph line spacing */
  --row-h: 56px;           /* tap rows, 48 px or more */
  --col: 680px;            /* the one text column */
  --wide: 1120px;          /* the top bar and the footer */
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* added with Part 2 (build chat 2, 17/11) */
  --pad-x: 14px;           /* the side space of a filled block, as the answer rows */
  --thumb: 160px;          /* a photo's thumbnail */
  --space-s: 14px;         /* a small space between stacked pieces */
}
@media (max-width: 380px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--text-size);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }

.col { width: min(var(--col), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- titles, rules, photos ---------- */
.t-xl, .t-l, .t-m { font-family: var(--title); font-weight: 100; margin: 0; letter-spacing: 0; }
.t-xl { font-size: clamp(40px, 6.2vw, 64px); line-height: 1.06; }
.t-l { font-size: clamp(34px, 4.6vw, 44px); line-height: 1.1; }
.t-m { font-size: 28px; line-height: 1.18; }
.num { color: var(--gold); font-variant-numeric: lining-nums; }
.rule { display: block; width: 48px; height: 1px; border: 0; margin: 22px auto 0; background: var(--gold); }
.rule.left { margin-left: 0; }
.band { width: 100%; height: clamp(220px, 40vh, 500px); object-fit: cover; object-position: center 55%; }
.studio { font-size: var(--small); letter-spacing: .08em; color: var(--soft); margin: 16px 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: var(--row-h); padding: 14px 20px;
  border: 0; border-radius: 0;
  background: var(--text); color: var(--on-dark);
  font-family: var(--sans); font-size: var(--text-size); font-weight: 500; letter-spacing: .02em; line-height: 1.3;
  text-align: center; text-decoration: none;
  transition: background-color .12s ease-out;
}
.btn:hover { background: #3B3733; }
.quiet {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 4px;
  background: none; border: 0;
  color: var(--text); font-size: var(--text-size);
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line); text-underline-offset: 9px;
}
.quiet:hover { text-decoration-color: var(--text); }
.actions { display: grid; gap: 6px; justify-items: center; margin-top: 36px; }

/* ---------- the welcome (her cover) ---------- */
.cover { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.cover-head { text-align: center; padding: clamp(56px, 11vh, 120px) var(--gutter) 34px; }
.cover-body { padding: 36px 0 8px; }
.cover-body p { margin: 0; line-height: var(--para-lh); }
.cover .actions { margin-top: 32px; }

/* ---------- the footer (her proposal's footer) ---------- */
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(var(--wide), 100% - 2 * var(--gutter)); margin: auto auto 0;
  padding: 26px 0 30px; border-top: 1px solid var(--line);
}
.foot span { font-size: var(--small); letter-spacing: .08em; color: var(--soft); }
.foot img { width: 44px; height: auto; }
@media (max-width: 520px) {
  .foot { flex-direction: column-reverse; justify-content: center; text-align: center; gap: 14px; }
}
.page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; }
.page .foot { margin-top: 72px; }

/* ---------- the contents page ---------- */
.contents { background: var(--paper-deep); }
.contents .foot { border-top-color: color-mix(in srgb, var(--line) 80%, var(--text)); }
.contents-grid { display: grid; grid-template-columns: 1fr; flex: 1 0 auto; }
.contents-photo { display: none; }
.contents-main { width: min(620px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(48px, 9vh, 104px) 0 0; }
.contents-lead { margin-top: 26px; }
.contents-lead p { margin: 0; line-height: var(--para-lh); }
.contents-lead p + p { margin-top: 8px; }
.contents .actions { justify-items: stretch; margin-top: 28px; }
.parts { list-style: none; margin: 34px 0 0; padding: 0; }
.part-link {
  display: grid; grid-template-columns: 54px 1fr; column-gap: 12px; align-items: baseline;
  padding: 18px 0 16px; min-height: 64px;
  color: inherit; text-decoration: none;
}
a.part-link:hover .part-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 9px; text-decoration-color: var(--gold); }
.part-link .num { font-family: var(--title); font-weight: 100; font-size: 34px; line-height: 1; }
.part-name { display: block; font-family: var(--title); font-weight: 100; font-size: clamp(28px, 3.6vw, 32px); line-height: 1.12; }
.part-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; }
.part-min { font-family: var(--sans); font-size: var(--small); color: var(--soft); line-height: 1.4; }
.part-end { font-size: var(--small); letter-spacing: .04em; white-space: nowrap; }
.part-row.closed .part-name, .part-row.closed .num { opacity: .55; }
.part-row.closed .part-end { color: var(--soft); }
@media (min-width: 960px) {
  .contents-grid { grid-template-columns: minmax(300px, 34%) 1fr; }
  .contents-photo { display: block; position: relative; }
  .contents-photo img { position: sticky; top: 0; width: 100%; height: 100vh; object-fit: cover; }
  .contents-main { margin-inline: 64px auto; width: min(620px, 100% - 128px); }
}

/* ---------- progress lines (one device: a fine line that fills in gold) ---------- */
.pline { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.pline > i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--gold); transition: width .3s var(--ease); }

/* ---------- the top bar on a part ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-in { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.bar a.back { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding-right: 12px; color: var(--text); text-decoration: none; font-size: var(--small); letter-spacing: .06em; }
.bar a.back:hover { text-decoration: underline; text-underline-offset: 9px; text-decoration-color: var(--gold); }
.bar img { width: 32px; height: auto; }
.save { justify-self: end; font-size: var(--small); color: var(--soft); text-align: right; transition: opacity .3s ease-out; }
.save.dim { opacity: .55; }

/* ---------- a part ---------- */
.part-head { text-align: center; padding: clamp(40px, 7vh, 72px) var(--gutter) 30px; }
.part-meta { font-size: var(--small); color: var(--soft); margin: 26px 0 14px; }
.part-hint { font-size: var(--text-size); margin: 0 0 14px; line-height: var(--para-lh); }

/* sections: closed rows between fine lines; the open one gets a larger title and more space */
.sec { scroll-margin-top: 64px; }
.sec-h { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.sec-head {
  display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: baseline;
  width: 100%; min-height: 72px; padding: 20px 0 18px;
  background: none; border: 0; border-radius: 0; text-align: left; color: inherit;
}
.sec-title { font-family: var(--title); font-weight: 100; font-size: 28px; line-height: 1.18; }
.sec-hint { display: block; font-family: var(--sans); font-size: var(--small); color: var(--soft); margin-top: 4px; line-height: 1.4; }
.sec-state { font-size: var(--small); color: var(--soft); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.sec-state svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.sec-head:hover .sec-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 9px; text-decoration-color: var(--gold); }
.sec.open .sec-head { padding-top: 30px; }
.sec.open .sec-head:hover .sec-title { text-decoration: none; }
.sec.open .sec-title { font-size: clamp(32px, 4.4vw, 40px); }
.sec-body { padding: 4px 0 52px; }
.sec-end-line { height: 2px; background: var(--line); }

/* ---------- questions ---------- */
.q { margin-top: 44px; }
.sec-body > .q:first-child, .sec-body > .lead:first-child + .q { margin-top: 18px; }
.q-text { font-size: var(--q-size); line-height: 1.5; margin: 0; }
.q-sub { font-size: var(--small); color: var(--soft); margin: 6px 0 0; line-height: 1.5; }
.q-how { font-size: var(--small); color: var(--soft); letter-spacing: .02em; margin: 12px 0 10px; }
.lead { font-size: var(--text-size); line-height: var(--para-lh); margin: 34px 0 0; }
.sec-body > .lead:first-child { margin-top: 14px; }
.lead + .q { margin-top: 22px; }
.entry { margin-top: 26px; }
.entry-name { font-family: var(--title); font-weight: 100; font-size: 28px; line-height: 1.2; margin: 0 0 4px; }
.group-title { font-size: var(--small); letter-spacing: .06em; color: var(--soft); margin: 20px 0 8px; }
.group-title:first-child { margin-top: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .q.reveal { animation: reveal .3s var(--ease) both; }
  .sec.open .sec-body { animation: reveal .3s var(--ease) both; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* answer rows: full width, an empty square; the chosen row fills dark, with a tick */
.opts { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.opts + .opts { margin-top: -1px; }
.opts.two { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: var(--row-h); padding: 12px 14px;
  border-top: 1px solid var(--line);
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .12s ease-out, color .12s ease-out;
}
.opt:hover { background: var(--hover); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.opt .box { flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid var(--text); display: grid; place-items: center; transition: border-color .12s ease-out; }
.opt .box svg { width: 14px; height: 14px; fill: none; stroke: var(--on-dark); stroke-width: 1.8; opacity: 0; transition: opacity .12s ease-out; }
.opt .lab { font-size: var(--text-size); line-height: 1.4; }
.opt.on { background: var(--text); color: var(--on-dark); }
.opt.on .box { border-color: var(--on-dark); }
.opt.on .box svg { opacity: 1; }
.opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: -2px; }
.ends .opt.is-notsure .lab { color: inherit; }

/* typing areas sit between two fine lines, never in a box */
.line, .story {
  display: block; width: 100%;
  background: transparent; color: var(--text);
  border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0;
  font-family: var(--sans); font-size: var(--text-size);
  -webkit-appearance: none; appearance: none;
  transition: border-color .12s ease-out, box-shadow .12s ease-out;
}
.line { min-height: 54px; padding: 12px 2px; line-height: 1.4; }
.story { min-height: 8em; padding: 14px 2px; line-height: 1.7; resize: none; overflow: hidden; }
.line:focus, .story:focus { outline: none; border-bottom-color: var(--gold); box-shadow: inset 0 -1px 0 var(--gold); }
.under { padding: 6px 0 14px 50px; }
.field { margin-top: 18px; }
.field > label, .field > .fl { display: block; font-size: var(--small); color: var(--soft); margin: 0 0 6px; line-height: 1.4; }
.q > .line, .q > .story, .entry > .story, .entry > .line { margin-top: 14px; }

.hints { list-style: none; margin: 14px 0 16px; padding: 0; }
.hints li { position: relative; padding-left: 24px; font-size: var(--small); line-height: 1.6; color: var(--soft); margin: 0 0 6px; }
.hints li::before { content: ""; position: absolute; left: 2px; top: .82em; width: 7px; height: 1px; background: var(--gold); }
.mic { display: none; font-size: var(--small); color: var(--soft); margin: 10px 0 0; line-height: 1.5; }
@media (max-width: 700px), (pointer: coarse) { .mic { display: block; } }

/* the family list: stacked lines per person */
.people { margin-top: 16px; border-top: 1px solid var(--line); }
.person { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.person-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 34px; }
.person-name { font-family: var(--title); font-weight: 100; font-size: 28px; line-height: 1.2; margin: 0; }
.person .line { border-top: 0; min-height: 48px; padding: 8px 2px; }
.bday { display: grid; grid-template-columns: minmax(64px, 1fr) minmax(120px, 2fr) minmax(84px, 1.3fr); column-gap: 18px; }
.bday .field { margin-top: 0; }
.remove { min-height: 48px; padding: 4px 0 4px 12px; background: none; border: 0; font-size: var(--small); color: var(--soft); text-decoration: underline; text-underline-offset: 9px; text-decoration-color: var(--line); }
.add {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: var(--row-h); padding: 12px 14px;
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-size: var(--text-size); text-align: left;
}
.add:hover { background: var(--hover); }
.add svg { width: 22px; height: 22px; padding: 3px; fill: none; stroke: var(--gold); stroke-width: 1.4; }

/* Part 2: the existing classes carry it (the rooms and the kept items are .people / .person / .add / .entry rows);
   only these few rules are new */
.rooms .add { justify-content: space-between; }              /* a room's row: its name, the tick at the right */
.rooms .story { border-top: 0; }                             /* a room's box sits on its row's own line */
.dims { grid-template-columns: repeat(3, minmax(0, 1fr)); }  /* width, height, depth side by side */
.quiet[aria-pressed="true"] { background: var(--text); color: var(--on-dark); text-decoration: none; padding-inline: var(--pad-x); } /* "Later" chosen */
.thumb { width: var(--thumb); max-width: 100%; height: auto; margin-top: var(--space-s); }

/* Rachel's own lines (the project dates) */
.facts { margin: 18px 0 0; padding: 0; }
.facts p { margin: 0 0 6px; line-height: 1.6; }
.facts b { font-weight: 500; }

/* ---------- the end of a section ---------- */
.sec-actions { display: grid; gap: 6px; justify-items: center; margin-top: 48px; }

/* ---------- the recap, then "Send to Rachel" ---------- */
.recap { padding-top: 56px; scroll-margin-top: 64px; }
.recap-h { font-size: var(--small); letter-spacing: .06em; color: var(--soft); font-weight: 500; margin: 30px 0 8px; }
.recap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.recap-list li { border-bottom: 1px solid var(--line); }
.recap-list a { display: block; padding: 12px 0; min-height: 48px; color: inherit; text-decoration: none; line-height: 1.5; }
.recap-list a:hover .rq { text-decoration: underline; text-underline-offset: 9px; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }
.recap-list .rs { display: block; font-size: var(--small); color: var(--soft); }
.recap-list .ra { display: block; font-size: var(--small); color: var(--soft); margin-top: 2px; }
.recap .q { margin-top: 40px; }
.recap .actions { margin-top: 36px; }

/* ---------- the receipt after sending ---------- */
.receipt { text-align: center; padding: clamp(64px, 14vh, 140px) var(--gutter) 0; }
.receipt img { width: 64px; height: auto; margin: 0 auto 30px; }
.receipt .col { text-align: left; margin-top: 30px; }
.receipt .col p { margin: 0; line-height: var(--para-lh); }

/* ---------- the welcome's one staged entrance (first visit only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .stage > * { animation: rise .8s var(--ease) both; }
  .stage > *:nth-child(2) { animation-delay: .08s; }
  .stage > *:nth-child(3) { animation-delay: .16s; }
  .stage > *:nth-child(4) { animation-delay: .24s; }
  .stage > *:nth-child(5) { animation-delay: .32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (min-width: 720px) {
  :root { --q-size: 21px; }
  .opt { padding-inline: 16px; }
}
@media print { .bar, .actions, .sec-actions { display: none; } }
