/* arc.css: the ARC tool on Axiom Studio's design system. studio-base.css supplies the clay system and its tokens; this
 * file is the ARC THEME PRESET (paper, ink, magenta, yellow from the original framework, calmer) and the journal layout.
 * Type: Newsreader for reading (the original body face), Archivo for furniture and headings, in reading weights. */
:root {
  --ground: #F7F0DF; --surface: #FFFCF3; --ink: #17140F; --accent: #D6005A; --accent2: #FFD21E;
  --radius: 14px; --depth: .35; --font-head: 'Archivo', system-ui, sans-serif; --font-body: 'Newsreader', Georgia, serif;
  --ink-muted: #55503F; --paper-line: color-mix(in oklab, var(--ink) 14%, transparent);
  --accent-text: #B0004A;   /* magenta text on paper: 6.2:1 (WCAG AA for body text) */
  --measure: 40rem; --gap: clamp(14px, 2.4vw, 24px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]):is([data-design="classic"], :not([data-design])) { --ground: #17140F; --surface: #221E18; --ink: #F7F0DF; --ink-muted: #A39C8A; --accent: #FF5C93; --accent-text: #FF8DB4; color-scheme: dark; }
}
html[data-mode="dark"]:is([data-design="classic"], :not([data-design])) { --ground: #17140F; --surface: #221E18; --ink: #F7F0DF; --ink-muted: #A39C8A; --accent: #FF5C93; --accent-text: #FF8DB4; }

body { font-size: 1.125rem; line-height: 1.6; }
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.measure { max-width: var(--measure); }
.muted { color: var(--ink-muted); }
.small { font-size: .9rem; }
.furniture { font-family: var(--font-head); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }

/* masthead: one clean lockup (the offset double print is gone) */
.mast { border-bottom: 1px solid var(--paper-line); background: var(--ground); position: sticky; top: 0; z-index: 10; }
.mast .wrap { display: flex; align-items: center; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; text-decoration: none; color: var(--ink); font-size: 1.05rem; }
.brand b { color: var(--accent-text); }
.mast nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.mast nav a { font-family: var(--font-head); font-size: .9rem; text-decoration: none; color: var(--ink); padding: 6px 10px; border-radius: 10px; }
.mast nav a[aria-current="page"], .mast nav a:hover { background: color-mix(in oklab, var(--accent2) 45%, transparent); }

h1 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); font-weight: 700; margin: 28px 0 10px; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 650; margin: 22px 0 8px; }
h3 { font-size: 1.1rem; font-weight: 650; margin: 16px 0 6px; }
/* the question: large but a READING weight (the heavy display face read as shouting) */
.question { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.45rem, 3.4vw, 2.1rem); line-height: 1.3; margin: 8px 0 6px; letter-spacing: 0; }
.help { color: var(--ink-muted); font-style: italic; margin: 0 0 14px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--drop); padding: var(--gap); }
.grid3 { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
a.part { text-decoration: none; color: inherit; display: block; }
a.part:hover { box-shadow: var(--drop-lift); }
.tag { display: inline-block; font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--accent2); color: #17140F; }
.tag.off { background: var(--paper-line); color: var(--ink-muted); }

/* buttons: Studio clay, ARC colours */
.btn { font: 600 1rem var(--font-head); border: 0; border-radius: 12px; padding: 11px 18px; cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: var(--drop), var(--inner-hi), var(--inner-lo); min-height: 44px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.quiet { background: transparent; box-shadow: none; text-decoration: underline; padding: 11px 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* slots: real labels, writing space as on paper */
.slots { display: grid; gap: 14px; margin: 10px 0 18px; }
.slot label, .slot .lbl { display: block; font-family: var(--font-head); font-weight: 650; font-size: .95rem; margin-bottom: 4px; }
.slot .sid { font-family: ui-monospace, monospace; font-size: .68rem; color: var(--ink-muted); margin-left: 6px; font-weight: 400; }
.slot textarea, .slot input[type="text"] { width: 100%; font: 1.08rem/1.55 var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--paper-line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--well-shadow); resize: vertical; }
.slot textarea:focus, .slot input:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.slot.protected label::after { content: ' (kept word for word)'; font-weight: 400; color: var(--ink-muted); font-size: .85rem; }
.slot .how { font-size: .78rem; color: var(--ink-muted); margin-top: 3px; }
.group { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.group > legend { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); padding: 0; margin-bottom: 4px; }
.nudge { border-left: 3px solid var(--accent2); padding-left: 12px; }
.nudge .lbl { font-style: italic; font-family: var(--font-body); font-weight: 500; }
.two-col { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.care { font-size: .95rem; color: var(--ink-muted); border-top: 1px solid var(--paper-line); padding-top: 10px; margin-top: 18px; }
.save { font-family: var(--font-head); font-size: .85rem; color: var(--ink-muted); }

/* the journal layout: a quiet question index on desktop, a progress bar and a drawer on a phone */
.journal { display: grid; gap: 28px; grid-template-columns: 1fr; padding-bottom: 96px; }
@media (min-width: 900px) { .journal { grid-template-columns: 15rem 1fr; } }
.index { font-family: var(--font-head); font-size: .9rem; }
.index ol { list-style: none; padding: 0; margin: 0; }
.index li a { display: flex; gap: 8px; align-items: baseline; padding: 4px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.index li a[aria-current="step"] { background: color-mix(in oklab, var(--accent2) 45%, transparent); }
.index .st { width: .7em; height: .7em; border-radius: 50%; border: 1.5px solid var(--ink-muted); flex: none; }
.index .st[data-s="answered"] { background: var(--accent); border-color: var(--accent); }
.index .st[data-s="partial"] { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); border-color: var(--accent); }
.index .st[data-s="skipped"] { border-style: dashed; }
.index h4 { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); margin: 12px 0 4px 8px; }
@media (max-width: 899px) { .index { display: none; } .index[data-open="1"] { display: block; } }
.progress { height: 6px; background: var(--paper-line); border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); }
@media (min-width: 900px) { .phone-only { display: none !important; } }
.navbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 899px) {
  .navbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--ground); border-top: 1px solid var(--paper-line); padding: 10px 16px; z-index: 20; }
  .navbar .btn.primary { margin-left: auto; }
}
.notice { background: color-mix(in oklab, var(--accent2) 30%, var(--surface)); border-radius: 12px; padding: 12px 14px; }
.notice.warn { background: color-mix(in oklab, var(--accent) 12%, var(--surface)); }
table.chapters { width: 100%; border-collapse: collapse; }
table.chapters th { text-align: left; font: 650 .85rem var(--font-head); padding: 4px 6px; }
table.chapters td { padding: 4px 6px; vertical-align: top; }
@media (max-width: 640px) { table.chapters, table.chapters tbody, table.chapters tr, table.chapters td { display: block; width: 100%; } table.chapters thead { display: none; } table.chapters tr { border-top: 1px solid var(--paper-line); padding: 8px 0; } }
footer.site { border-top: 1px solid var(--paper-line); margin-top: 40px; padding: 18px 0 40px; font-size: .9rem; color: var(--ink-muted); }

main:focus { outline: none; }
/* WP2: semantic-first extras (quiet; nothing here is a banner) */
.nudge-missing { margin: 4px 0 6px; }
.care-panel { border: 1px solid var(--paper-line); border-left: 4px solid var(--ink-muted); padding: 12px 16px; margin-top: 18px; background: var(--surface); border-radius: 12px; }
.care-panel h2 { font-size: 1.1rem; margin: 0 0 6px; }
.care-panel ul { margin: 6px 0; padding-left: 1.2em; }
.care-stop h1 { margin-top: 0; }
.proposal { margin-top: 10px; }
.proposal .frag { margin: 4px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
details.made { margin-top: 18px; color: var(--ink-muted); }
details.made summary { cursor: pointer; }
/* the ways to answer, linked to each other at the top of Talk it through */
.talk-modes { margin: 18px 0 6px; gap: 8px; }
.talk-modes a.tag { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; font-size: .8rem; text-decoration: none; border-radius: 10px; }
.talk-modes a.tag.off:hover { background: color-mix(in oklab, var(--accent2) 45%, transparent); color: var(--ink); }
#ways { margin-bottom: var(--gap); }
.captions:empty { display: none; }
.team-note { margin-top: 28px; }

/* the design being tried (prototype): a slim strip above the masthead */
.design-bar { background: var(--ink); color: var(--ground); font-family: var(--font-head); }
.design-bar .wrap { min-height: 40px; gap: 8px; padding-top: 4px; padding-bottom: 4px; }
.design-bar .muted { color: color-mix(in oklab, var(--ground) 72%, var(--ink)); }
.design-bar a { color: var(--ground); }
.design-bar select { font: 600 .9rem var(--font-head); min-height: 36px; border-radius: 8px; padding: 4px 8px; background: var(--ground); color: var(--ink); border: 0; }

/* motion pieces (js/motion.mjs): the page shows a SQUARE embed (few words, big type), scaled to the width of its box;
   "Watch full size" opens the wide 1920x1080 original in a dialog. A full-width row caps the square, or it would be huge. */
.motion { margin: var(--gap) 0; min-width: 0; }
.motion-box { position: relative; overflow: hidden; width: 100%; box-sizing: border-box; border-radius: var(--radius); background: #F7F0DF; box-shadow: var(--drop); aspect-ratio: 1 / 1; }
.motion-frame { position: absolute; top: 0; left: 0; width: 1080px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
.motion figcaption { justify-content: space-between; margin-top: 6px; gap: 6px; }
.motion-ctl { gap: 2px; }
.motion-btn { min-height: 44px; }
.ways-sec > .motion, .promises-motion > .motion, .story > .motion, .talk > .motion { max-width: 34rem; margin-left: auto; margin-right: auto; }
.motion-full { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0E0D0A; color: #F7F0DF; }
.motion-full::backdrop { background: rgb(0 0 0 / .8); }
.motion-full[open] { display: grid; grid-template-rows: auto 1fr; }
.motion-full-bar { padding: 8px 16px; gap: 10px; }
.motion-full-bar .small { margin-right: auto; }
.motion-full-bar .btn { background: #F7F0DF; color: #17140F; }
.motion-full-bar .btn.primary { background: #FFD21E; color: #17140F; }
.motion-full-box { position: relative; overflow: hidden; min-height: 0; }
.motion-full-box .motion-frame { transform-origin: 0 0; }

/* home */
.hero { display: grid; gap: var(--gap); align-items: center; padding: 12px 0 8px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.25fr 1fr; } }
.hero h1 { margin-top: 12px; }
.hero-product { display: block; font-size: .5em; font-weight: 700; letter-spacing: .02em; color: var(--ink-muted); }
.hero-title { display: block; }
.hero .lede { font-size: 1.2rem; }
.hero-cta { margin: 18px 0 8px; }
.hero-cta .btn { text-decoration: none; display: inline-flex; align-items: center; }
.hero-art { min-height: 0; }
.promise-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.promise { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--drop); }
.promise strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.motion-row { align-items: center; }
.sitting-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sitting { border-left: 3px solid var(--accent2); padding-left: 14px; }
.sitting .furniture, .sitting h3, .sitting p { margin: 2px 0; }
.parts { margin-top: var(--gap); }
.home section { margin-top: 28px; }
