/* The Game of Life companion. Tokens and rules from design/styleboard.html and design/spec.md section 4. One look: paper and ink in any light. */
:root {
  --paper: #ebe4dc;
  --paper-2: #f4efe8;
  --ink: #2b2521;
  --ink-soft: #6b5f58;
  --rule: #b9ada3;
  --rose: #c47f7c;
  --rose-deep: #953f44;
  --cloth: #2f3d2b;
  --leaf: #7d8a5e;
  --gold: #9a8750;
  --lily: #f8f4ec;
  --lit: #f3e4e0;
  --display: 'Linden Hill', 'Sorts Mill Goudy', Georgia, 'Times New Roman', serif;
  --body: 'Sorts Mill Goudy', 'Linden Hill', Georgia, 'Times New Roman', serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 19px; line-height: 1.45; font-variant-numeric: oldstyle-nums;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: normal; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
.loading { padding: 2rem var(--gutter-r) 2rem var(--gutter); color: var(--ink-soft); font-style: italic; }

/* the running head, as on a book page */
.runhead {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1em;
  padding: 12px var(--gutter-r) 8px var(--gutter);
  background: var(--paper); border-bottom: 1px solid var(--rule);
  text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--ink-soft);
}
.runhead a { text-decoration: none; }
.rh-left { padding: .9em 0; margin: -.9em 0; }
.rh-left { flex-shrink: 0; white-space: nowrap; }
.rh-right { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the title page moment: the share image's lockup, small */
.lockup { margin: .4rem 0 20px; }
/* Home has no running head: the lockup is its top edge, 20px under the window (spec 13.1) */
.screen.home { padding-top: 20px; }
.screen.home .lockup { margin-top: 0; }
.screen.home .sec { scroll-margin-top: 16px; }
.runhead.turn { animation: turn 120ms ease-out; }
.walk-card .walk-new { font-size: 19px; line-height: 1.35; margin: 0 0 10px; }
.lockup .l1 { font-family: var(--display); font-style: italic; font-size: 30px; line-height: 1.05; }
.lockup .l2 { font-family: var(--display); font-size: 19px; line-height: 1.2; margin-top: 12px; }
.lockup .l-rule { width: 48px; height: 2px; background: var(--gold); margin: 12px 0; }
.lockup .l3 { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--gold); }

main { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter-r) 2rem var(--gutter); }
.screen { padding-top: 1rem; }
.title { font-family: var(--display); font-size: 40px; line-height: 1.05; margin: 4px 0 10px; }
.lede { font-size: 17px; color: var(--ink-soft); margin: 0 0 24px; }
.sec { scroll-margin-top: 64px; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; line-height: 1.3; color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin: 24px 0 8px; }
.cap { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--ink); display: block; margin: 24px 0 8px; }
.note { font-size: 16px; color: var(--ink-soft); margin: .6em 0 .8em; }
.note.center { text-align: center; margin: .3em 0 .4em; }
.note a { display: inline-block; padding: .4em 0; margin: -.4em 0; }
.ours { font-size: 17px; }
.ours .cap { margin: 24px 0 8px; }
.mark-body > .ours:first-child .cap, .mark-body .who + .ours .cap { margin-top: 16px; }
.ours p, p.who, .speak .pre { margin-left: 1.25em; margin-right: 1.25em; }
.notfound .ours { margin-left: 0; margin-right: 0; text-align: center; }
.notfound { text-align: center; }
.notfound .btn { margin-top: 1rem; }
.src { font-size: 14px; color: var(--ink-soft); margin: .4em 0 .6em; }
figcaption { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--ink-soft); margin-top: .5em; text-align: center; }
figcaption .t { display: block; text-transform: none; letter-spacing: 0; font-style: italic; font-size: 15px; }
figcaption .s { display: block; margin-top: .15em; }

/* a button: a filled ink box with lily small capitals is the one thing to do; a quiet box is a second choice */
.btn {
  display: inline-block; background: var(--ink); color: var(--lily);
  padding: .7em 1.1em .6em; letter-spacing: .14em; text-indent: .14em; text-align: center; font-size: 14px; text-transform: uppercase; white-space: nowrap;
  text-decoration: none; margin: 6px 12px 0 0; border: 1.5px solid var(--ink); min-height: 44px; line-height: 1.3;
}
.btn.quiet { background: transparent; color: var(--ink); }
.btn:active { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn.quiet:active { background: var(--paper-2); color: var(--ink); }
.btn.on, .btn.quiet.on { background: var(--ink); color: var(--lily); }
.btn.small { min-height: 44px; padding: .5em .8em .4em; font-size: 13px; }
.btn.xs { min-height: 44px; padding: .3em .8em .25em; font-size: 13px; margin: 0; }
.back { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; color: var(--ink-soft); text-decoration: none; margin: .2rem 0 0; padding: .6em 0; min-height: 44px; }
.nw { white-space: nowrap; }
.note.cold { margin: -.2em 0 .8em; }
.row-link { text-decoration: none; display: inline-block; padding: .4em 0; }
.foot-link { margin: 2rem 0 0; font-size: 16px; }
.foot-link a { color: var(--ink-soft); display: inline-block; padding: .75em 0; }

/* the first-run guide: a panel in paper 2, read once */
.guide { background: var(--paper-2); border: 1px solid var(--rule); padding: 1rem 1rem .9rem; margin: .4rem 0 1rem; scroll-margin-top: 59px; }
.guide ol { margin: .4em 1.25em .2em; padding: 0 0 0 1.5em; font-size: 17px; }
.guide li { margin-bottom: .45em; padding-left: .2em; }
.guide li::marker { color: var(--rose-deep); font-family: var(--display); }
.guide .note { margin: .4em 0 .2em; }

/* the board: a double ink rule around ten chapters, four colored sides, a cloth band in the middle */
.board-wrap { position: relative; margin: .6rem 0 .2rem; padding: 26px; }
.bar { position: absolute; display: flex; align-items: center; justify-content: center; text-decoration: none; pointer-events: none; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--ink); }
.bar.t { top: 0; left: 26px; right: 26px; height: 24px; background: var(--leaf); }
.bar.b { bottom: 0; left: 26px; right: 26px; height: 24px; background: var(--rose); }
.bar.r { right: 0; top: 26px; bottom: 26px; width: 24px; background: var(--gold); writing-mode: vertical-rl; }
.bar.l { left: 0; top: 26px; bottom: 26px; width: 24px; background: var(--cloth); color: var(--lily); writing-mode: vertical-rl; transform: rotate(180deg); }
.board { position: relative; border: 4px double var(--ink); background: var(--paper-2); display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, auto); }
.cell {
  border: 1px solid var(--rule); font-size: 15px; line-height: 1.1; font-family: var(--display);
  padding: 8px 7px 9px; min-width: 0; min-height: 96px;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 4px;
  text-decoration: none; color: inherit;
}
.cell b { font-weight: normal; font-size: 19px; }
.walk-card .walk-n { margin: 0 0 8px; }
.cell span { hyphens: manual; }
.cell:active { background: var(--paper); }
.cell.on { background: var(--rose-deep); color: var(--lily); }
.mid {
  grid-column: 2 / 4; grid-row: 2; background: var(--cloth); color: var(--lily);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 10px 10px; min-width: 0; text-decoration: none;
}
.mid .cap { color: var(--gold); font-size: 13px; letter-spacing: .14em; margin: 0; }
.mid .line { font-family: var(--display); font-size: 19px; line-height: 1.2; margin-top: 6px; }
.mid .line i { font-style: italic; }
.mid .msrc { display: block; color: var(--gold); font-size: 13px; margin-top: 5px; }
.side-boxes { display: flex; gap: 6px; margin: .3rem 0 0; }
.cap.center { text-align: center; }
.side-block { margin-top: 20px; }
.side-block .cap { margin: 0 0 8px; }
.side-boxes .btn { flex: 1; margin: 0; text-align: center; padding: .7em .1em .6em; letter-spacing: .1em; text-indent: .1em; font-size: 13px; }
.place-block { position: relative; margin: .8rem 0 0; padding: 0 0 .6rem; overflow: hidden; }
.place-block .ours, .place-block .btn { position: relative; z-index: 1; }
.place-block .ours { max-width: 58%; min-height: 150px; margin-bottom: .4em; }
.place-actions { position: relative; z-index: 1; }
.place-actions .btn { display: block; width: 100%; text-align: center; margin: 6px 0 0; }
.place-block .stem { position: absolute; right: -24px; top: -12px; width: 42%; max-width: 220px; height: 160px; object-fit: contain; object-position: right top; pointer-events: none; }

/* rows: a name in Linden Hill with one plain line under it, on dotted hairlines */
.rows li, .list li { border-bottom: 1px dotted var(--rule); }
.rows a, .list a { display: block; padding: 12px 28px 12px 0; text-decoration: none; position: relative; }
.rows a::after, .list a::after, .inthis > a::after, .inthis details a::after { content: "\2192"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 19px; }
.list li.with-remove a::after { content: none; }
.list li.with-remove a { padding-right: 0; }
.rows.tight { margin-top: .6rem; }
.rows.tight .t { font-size: 19px; }
.rows .t { font-size: 19px; line-height: 1.25; display: block; }
.list .t { font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.2; display: block; }
.list .t i { font-style: normal; }
.rows .s, .list .s { display: block; font-size: 14px; color: var(--ink-soft); margin-top: .15em; }
.list li.with-remove { display: flex; align-items: center; gap: 10px; }
.list li.with-remove a { flex: 1; min-width: 0; }

/* the contents page */
.toc li { border-bottom: 1px dotted var(--rule); }
.toc a { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 0 8px; align-items: end; padding: 10px 0; text-decoration: none; background: radial-gradient(circle, var(--ink-soft) .8px, transparent 1.1px) repeat-x 0 calc(100% - 16px); background-size: 5px 5px; }
.toc .tt, .toc .pg, .toc b { background: var(--paper); }
.toc .tt { padding-right: 6px; justify-self: start; }
.toc .pg { padding-left: 6px; }
.toc b { align-self: stretch; padding-right: 8px; margin-right: -8px; position: relative; z-index: 1; }
.toc .leader { display: none; }
.toc li.on a .tt, .toc li.on a .pg, .toc li.on a b { background: var(--paper-2); }
.toc b { font-weight: normal; font-family: var(--display); font-size: 19px; }
.toc .pg { color: var(--ink-soft); font-size: 15px; font-variant-numeric: oldstyle-nums; }
.toc li.on a { background: var(--paper-2); outline: 1.5px solid var(--rose-deep); outline-offset: 2px; }
.toc .here { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--rose-deep); }

/* a chapter page */
.chap-head { margin: 1rem auto .8rem; }
.chap-head img { width: 62%; max-width: 320px; margin: 0 auto; }
.chap-head img { mix-blend-mode: multiply; }
.chap-top { position: relative; overflow: hidden; }
.chap-top.with-stem { min-height: 280px; }
.chap-top.with-stem .chap-top-text { max-width: 58%; }
.chap-top.with-stem .title { max-width: none; width: 172%; position: relative; z-index: 1; }
.chap-top .stem { position: absolute; right: -24px; bottom: -30px; width: 46%; max-width: 250px; max-height: calc(100% - 130px); object-fit: contain; object-position: right bottom; pointer-events: none; }
.chap-num { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; color: var(--ink); margin: 20px 0 2px; }
.epigraph { font-style: italic; color: var(--ink-soft); font-size: 18px; margin: 10px 0 24px; }
.sheet { margin: 1rem 0 1.2rem; }
.sheet img { width: 100%; }
.text p { margin: 0 0 1.1em; line-height: 1.5; scroll-margin-top: 64px; }
.text p.first::first-letter { font-family: var(--display); font-size: 3.1em; float: left; line-height: .82; padding: .08em .08em 0 0; color: var(--rose-deep); }
.text p.lit { background: var(--lit); padding: 8px; margin-left: -8px; margin-right: -8px; }
.text p.lit .folio { position: relative; z-index: 1; }
.text p { text-wrap: pretty; }
.text .sc { text-transform: uppercase; font-size: 16px; letter-spacing: .08em; }
.folio { float: right; clear: right; margin-right: -14px; margin-left: 6px; font-size: 13px; color: var(--ink-soft); line-height: 1.45; user-select: none; }
.blank { display: inline-block; width: 4em; border-bottom: 1px solid var(--ink); vertical-align: baseline; }
.note a { text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.inthis { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0 8px; margin: 24px 0 24px; font-size: 16px; }
.inthis .cap { margin: .6em 0 .2em; }
.inthis .sec { margin: 0 0 8px; border-bottom: 0; padding-bottom: 0; }
.inthis .src { font-size: 14px; margin: 6px 0 16px; }
.inthis .law { font-family: var(--display); font-size: 24px; line-height: 1.25; }
.inthis .law i { font-style: normal; }
.inthis > a { display: block; padding: .5em 28px .5em 0; text-decoration: none; border-top: 1px dotted var(--rule); min-height: 44px; position: relative; }
.inthis > a i { color: var(--ink-soft); }
.inthis details summary { cursor: pointer; list-style: none; padding: .6em 28px .6em 0; min-height: 44px; border-top: 1px dotted var(--rule); position: relative; }
.inthis details summary .t { font-size: 17px; line-height: 1.3; }
.inthis details.fold + details.fold { margin-top: 0; }
.inthis details.fold > div { margin-bottom: .4em; }
.inthis details summary::-webkit-details-marker { display: none; }
.inthis details summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 24px; line-height: 1; }
.inthis details[open] summary::after { content: "\2212"; }
.inthis details a { display: block; padding: .5em 28px .5em 0; text-decoration: none; border-top: 1px dotted var(--rule); min-height: 44px; position: relative; }
.inthis details a i { color: var(--ink-soft); }
.inthis .arow a, .marks a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; padding: .55em 28px .55em 0; text-decoration: none; border-top: 1px dotted var(--rule); position: relative; min-height: 44px; }
.inthis .arow a::after, .marks a::after { content: "\2192"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 19px; }
.inthis .arow .t, .marks .t { font-size: 19px; line-height: 1.25; grid-column: 1; }
.inthis .arow .s, .marks .s { font-style: italic; font-size: 15px; color: var(--ink-soft); grid-column: 1; margin-top: .1em; }
.inthis .arow .s i, .marks .s i { font-style: normal; }
.inthis .arow .pg, .marks .pg { grid-column: 2; grid-row: 1 / 3; align-self: start; font-size: 14px; color: var(--ink-soft); padding-top: .3em; }
.marks li { border-bottom: 1px dotted var(--rule); }
.marks a { border-top: 0; }
.marks .row-foot { display: flex; justify-content: flex-end; padding: 0 0 .5em; }
.chap-top { margin-bottom: .4rem; }
.inthis .note { margin: .8em 0 .2em; }
/* a caption under a paragraph is a full-width box: the deep rose mark and the label at the left, Open at the right; the block opens in place */
details.mark { margin: -.4em 0 24px; }
details.mark summary { cursor: pointer; list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 48px; padding: 12px; background: var(--paper-2); border: 1px solid var(--ink-soft); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; line-height: 1.4; color: var(--ink); }
details.mark summary::-webkit-details-marker { display: none; }
details.mark summary:active { background: var(--paper); }
details.mark summary { color: var(--ink); }
details.mark .m-label { display: block; }
details.mark .m-open { color: var(--ink); flex-shrink: 0; display: flex; align-items: center; min-height: 1.6em; padding-right: 2px; }
details.mark .chev { transition: transform 120ms ease-out; }
details.mark[open] .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { details.mark .chev { transition: none; } }
.mark-body { border-bottom: 1px solid var(--rule); padding: .8rem 0 .9rem; margin-bottom: .4rem; }
.mark-body .who { margin-bottom: .6em; }
.mark-body .for { font-size: 16px; color: var(--ink-soft); margin-bottom: .5em; }
.mark-body .for .cap { display: inline; margin-right: .3em; }
.mark-body .ours p { margin-bottom: .6em; }
.aff-inline { font-family: var(--display); font-size: 24px; line-height: 1.25; margin: .2em 0 .4em; }
.aff-inline i { font-style: normal; }
.who { font-style: normal; color: var(--ink-soft); font-size: 17px; margin: 0 1.25em 1em; }
.band { background: var(--cloth); color: var(--lily); padding: 1.1rem 1.1rem; margin: 1.4rem 0 .4rem; font-family: var(--display); font-size: 24px; line-height: 1.25; }
.band i { font-style: normal; }
.band small { display: block; font-family: var(--body); font-style: normal; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--gold); margin-bottom: .4em; }
.band .band-src { display: block; font-family: var(--body); font-style: normal; font-size: 13px; color: var(--gold); margin-top: .5em; }
.chap-nav { display: flex; justify-content: space-between; gap: 1em; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: .4rem 0; margin-top: 1rem; }
.chap-nav span { min-width: 0; }
.chap-nav span:last-child { text-align: right; }
.chap-nav a { text-decoration: none; font-size: 16px; display: inline-block; padding: .6em 0; min-height: 44px; }

/* her large lines start flush: the opening quotation mark hangs into the margin */
.aff-panel .aff, .herline, .inthis .law, .aff-inline, .pwords { text-indent: -.4em; padding-left: .4em; hanging-punctuation: none; }
.speak .aff, .mid .line { hanging-punctuation: first; }
.fleuron { text-align: center; color: var(--rose-deep); font-size: 18px; line-height: 1; margin: .6rem 0 .4rem; }
.fleuron .mark { display: inline-block; height: 18px; width: auto; color: var(--rose-deep); }

/* a story page */
.story-title { font-size: 40px; }
.herline { font-family: var(--display); font-size: 24px; line-height: 1.25; margin: .4em 0; }
.herline i { font-style: normal; }

/* an affirmation panel: her words full width, one stem laid low at the right edge */
.aff-panel { position: relative; background: var(--paper-2); border: 1px solid var(--rule); padding: 24px 18px 22px; margin: .6rem 0 1rem; overflow: hidden; }
.panel-foot { margin-top: 12px; }
.panel-foot.with-stem { min-height: 150px; }
.panel-foot .foot-left { max-width: 58%; position: relative; z-index: 1; }
.panel-foot .note { font-size: 14px; margin: 10px 0 0; }
.aff-panel .stem { position: absolute; right: -18px; bottom: -22px; width: 46%; max-width: 250px; max-height: 72%; object-fit: contain; object-position: right bottom; pointer-events: none; }
.aff-panel .blank-note { font-size: 14px; margin: 0 0 .4em; }
.aff-panel .for { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; color: var(--ink); margin: 0 0 12px; }
.mark-body .for .cap { margin: 0; }
.aff-panel .for .cap { display: inline; margin-right: .3em; }
.aff-panel .aff { font-family: var(--display); font-size: 30px; line-height: 1.2; margin: .5em 0 .6em; position: relative; z-index: 1; }
.aff-panel .aff i { font-style: normal; }
.aff-panel .src { margin: .4em 0 0; }
.aff-panel.small { min-height: 0; padding: 1rem 1rem .9rem; }
.aff-panel.small .aff { font-size: 24px; }
.aff-panel.small .src, .aff-panel.small .tail { max-width: 100%; }
.stem.sheet-small { width: 34%; max-width: 180px; right: 0; bottom: 0; border: 1px solid var(--rule); }
.aff-panel .stem.sheet-small { right: -18px; bottom: -22px; max-height: 60%; }

/* the practice page: three panels, each with one filled button that does the thing */
.practice { background: var(--paper-2); border: 1px solid var(--rule); padding: 24px 18px 22px; margin: 28px 0; scroll-margin-top: 59px; }
/* room under the last panel only when the address lands on it, so it can sit under the running head */
.screen.land-last { padding-bottom: 60vh; }
.pname { font-family: var(--display); font-size: 30px; line-height: 1.05; margin: 0 0 6px; }
.pline { font-size: 16px; line-height: 1.4; color: var(--ink-soft); margin: 0 0 22px; }
.practice .cap { margin: 24px 0 8px; }
.pwords { font-family: var(--display); font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.pwords i { font-style: normal; }
.pwords.model { font-size: 24px; line-height: 1.25; margin: 24px 0 6px; }
.practice .src { margin: 0 0 18px; }
.practice .btn { margin-top: 8px; }
.field { display: block; width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink-soft); padding: .55em .7em; margin: .4em 0 .2em; min-height: 44px; border-radius: 0; -webkit-appearance: none; }
.field::placeholder { font-style: italic; color: var(--ink-soft); }
.field:focus { outline: 2px solid var(--rose-deep); outline-offset: 1px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; margin: .3em 0 .2em; }
.choices .btn { margin: 0; flex: 0 1 auto; font-size: 13px; letter-spacing: .1em; text-indent: .1em; border-color: var(--ink-soft); }
.choices .btn.on { border-color: var(--ink); }
.note.small { font-size: 15px; margin: .3em 0 .2em; }
.last-row { display: flex; align-items: center; gap: 10px; border-top: 1px dotted var(--rule); border-bottom: 1px dotted var(--rule); margin-top: .3em; }
.row-btn { flex: 1; min-width: 0; min-height: 44px; padding: .6em 28px .6em 0; position: relative; text-align: left; }
.row-btn .t { font-size: 19px; }
.row-btn::after { content: "\2192"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 19px; }
.practice .tail .btn { margin-right: 12px; }

/* the speaking screen: one thing in the middle of a quiet page */
.speak-screen { position: relative; overflow: hidden; }
.speak-screen .stem { position: absolute; right: -24px; bottom: -30px; width: 42%; max-width: 220px; max-height: 200px; object-fit: contain; object-position: right bottom; pointer-events: none; }
.speak .fleuron { margin: 0 0 .6rem; }
.cap.center { text-align: center; }
.speak .pre { font-style: italic; color: var(--ink-soft); font-size: 19px; margin: 0 0 1em; }
.speak .say { font-size: 17px; margin: 24px 0 12px; }
.speak .aff.ours-words { font-style: normal; }
.speak .src { margin-top: .6em; }
.speak { position: relative; z-index: 1; }
.empty-block { position: relative; overflow: hidden; min-height: 150px; }
.empty-block .note { max-width: 58%; position: relative; z-index: 1; }
.empty-block .stem { position: absolute; right: -24px; bottom: -40px; width: 42%; max-width: 220px; pointer-events: none; }
.speak { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 1rem 0 0; }
.speak-screen::after { content: ""; display: block; height: 180px; }
.speak .aff { font-family: var(--display); font-size: 30px; line-height: 1.2; margin: .3em 0; }
.speak .aff i { font-style: normal; }

/* a situation page */
.sit-top { position: relative; overflow: hidden; min-height: 120px; }
.sit-top .note { margin-top: 0; }
.sit-top-text { max-width: 58%; position: relative; z-index: 1; }
.sit-top .stem { position: absolute; right: -24px; bottom: -30px; width: 42%; max-width: 220px; pointer-events: none; }
.side-rule { width: 72px; height: 4px; margin: -.2em 0 1.2em; }
.side-health { background: var(--leaf); }
.side-money { background: var(--gold); }
.side-love { background: var(--rose); }
.side-work { background: var(--cloth); }

/* about */
.about p { font-size: 17px; }
.sig { width: 260px; margin: 1.6rem auto 0; }

/* the foot navigation */
.foot-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; justify-content: center; gap: 0;
  background: var(--paper); border-top: 1px solid var(--rule);
  padding: 8px var(--gutter-r) calc(8px + env(safe-area-inset-bottom, 0px)) var(--gutter);
}
.foot-nav a { flex: 1; min-width: 0; text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; color: var(--ink-soft); padding: 10px 0; min-height: 44px; border-bottom: 2px solid transparent; overflow: hidden; }
.foot-nav a.on { color: var(--ink); border-bottom-color: var(--rose-deep); }
@media (max-width: 380px) { .runhead { letter-spacing: .1em; gap: .6em; } .btn { letter-spacing: .1em; text-indent: .1em; } .foot-nav a { font-size: 12px; letter-spacing: .02em; } .cell { font-size: 14px; padding: 7px 5px 8px; } }
@media (min-width: 720px) {
  body { font-size: 19px; }
  .cell { min-height: 110px; font-size: 16px; }
  .mid .line { font-size: 19px; }
  .foot-nav a { flex: 0 0 auto; padding: 6px 18px; }
}
@keyframes turn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } #view.turn { animation: turn 120ms ease-out; } }

/* her lines set large are upright, with her own italics kept, as her page sets them; last so nothing above overrides it */
.aff-panel .aff, .herline, .inthis .law, .aff-inline, .pwords, .speak .aff, .band, .mid .line { font-style: normal; }
.aff-panel .aff i, .herline i, .inthis .law i, .aff-inline i, .pwords i, .speak .aff i, .band i, .mid .line i { font-style: italic; }
.speak .aff.ours-words { font-style: normal; }

/* the first-run walkthrough: the page dimmed, one thing left clear with a deep rose rule, a card above the tabs */
.walk { position: fixed; inset: 0; z-index: 7; pointer-events: none; }
.walk-dim { position: absolute; left: 0; right: 0; top: 0; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); pointer-events: auto; }
.walk-nav-dim { position: absolute; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom, 0px)); background: rgba(43, 37, 33, .4); pointer-events: none; }
.walk-clear { position: absolute; outline: 2px solid var(--rose-deep); outline-offset: 0; box-shadow: 0 0 0 9999px rgba(43, 37, 33, .4); pointer-events: none; border-radius: 1px; }
.walk-card { position: absolute; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); background: var(--cloth); color: var(--lily); padding: 22px; pointer-events: auto; box-shadow: 0 6px 24px rgba(43, 37, 33, .28); }
.walk-card .walk-n { color: var(--gold); margin: 0 0 10px; }
.walk-card .walk-her { font-family: var(--display); font-size: 24px; line-height: 1.25; text-indent: -.4em; padding-left: .4em; margin: 0 0 4px; }
.walk-card .walk-her i { font-style: italic; }
.walk-card .walk-src { color: var(--gold); font-size: 14px; margin: 0 0 14px; }
.walk-card .walk-text { font-size: 19px; line-height: 1.4; margin: 0 0 22px; color: var(--lily); }
.walk-card.with-her .walk-text { font-size: 17px; }
.walk-row { display: flex; justify-content: space-between; align-items: center; }
.walk-skip { text-transform: uppercase; letter-spacing: .14em; text-indent: .14em; font-size: 14px; color: var(--gold); min-height: 44px; padding: 0 8px 0 0; }
.walk-next { margin: 0; background: var(--lily); color: var(--cloth); border-color: var(--lily); }
.walk-next:active { background: var(--paper); border-color: var(--paper); }
@media (max-width: 380px) { .walk-card { padding: 16px; } .walk-card .walk-text { font-size: 17px; } }

/* the recorder on the speaking screen */
.rec { margin: 8px 0 16px; }
.rec .btn { margin: 6px 4px 0 0; }
.rec .rec-note { font-size: 14px; margin: 8px 0 0; }
.rec .rec-live { color: var(--rose-deep); margin: 0 0 6px; }
.rec-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.rec-len { font-size: 14px; color: var(--ink-soft); }
.rec-text { text-transform: uppercase; letter-spacing: .14em; text-indent: .14em; font-size: 13px; color: var(--ink-soft); min-height: 44px; padding: 0 8px; }
.done-row { margin-top: 6px; }
.list.recs li { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; }
.list.recs li a { grid-column: 1; }
.list.recs li .btn.small { grid-column: 2; grid-row: 1; margin: 0; }
.list.recs li .row-foot { grid-column: 1 / 3; display: flex; justify-content: flex-end; padding: 0 0 .5em; }
.list.recs .t { font-style: normal; font-size: 19px; }

/* the helper: the field, and the answer in place */
.helper { margin: 0 0 8px; }
.ask-row { display: flex; gap: 8px; align-items: stretch; }
.ask-field { flex: 1; min-width: 0; margin: 0; resize: none; line-height: 1.35; }
.ask-row .btn { margin: 0; align-self: stretch; display: flex; align-items: center; }
.ask-note { margin: 8px 0 0; }
.helper-what { margin-top: 8px; }
.helper-what summary { cursor: pointer; list-style: none; padding: 10px 28px 10px 0; min-height: 44px; border-top: 1px dotted var(--rule); border-bottom: 1px dotted var(--rule); position: relative; }
.helper-what summary::-webkit-details-marker { display: none; }
.helper-what summary .t { font-size: 19px; }
.helper-what summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 24px; line-height: 1; }
.helper-what[open] summary::after { content: "\2212"; }
.helper-what .ours { padding: 8px 0 4px; }
.helper-what .ex-ask { font-style: italic; }
.helper-what .ex-demand, .helper-what .ex-aff { font-family: var(--display); font-size: 19px; line-height: 1.3; }
.helper-what .ex-aff .src { font-family: var(--body); font-size: 14px; }
.answer { margin-top: 12px; overflow-anchor: none; }
.answer .plain { font-size: 17px; margin: 8px 0; }
.helper-what .ex-note { margin: 0 0 10px; }
.ask-band { margin: 0 0 4px; font-family: var(--body); font-size: 19px; }
.ask-band .asked { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ask-band.whole .asked { display: block; -webkit-line-clamp: none; overflow: visible; }
.ask-lead { font-size: 17px; margin: 0 0 10px; }
.keep-note { margin-top: 4px; }
.list.answers .t { font-family: var(--body); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list.answers li .row-foot { display: flex; justify-content: flex-end; padding: 0 0 .5em; }
.kept-answer .row-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.answer .demand-words { font-size: 24px; line-height: 1.25; }
.answer .act { font-size: 17px; color: var(--ink-soft); margin: 4px 0 8px 1.25em; }
.answer .aff-panel.small .aff { font-size: 24px; }
.answer details.mark { margin: 0 0 8px; }
.answer .btn { margin-top: 8px; }
.fit-row { display: flex; gap: 12px; }
.fit-row .btn, .rec-row .btn { margin-right: 0; }
.care { background: var(--paper-2); border: 1px solid var(--rule); padding: 18px; margin-top: 12px; font-size: 17px; }
.care p { margin: 0; }
