/* The house: a quiet Victorian page in black and white.
   Type: Playfair Display for headings and her name, EB Garamond for reading, Inter only for small
   form controls. Thin rules instead of boxes, nothing that glows or bounces. */
:root {
  --ground: #0b0b0b; --raise: #141414; --line: #2b2b2b; --line2: #3f3f3f;
  --text: #ececec; --muted: #b8b8b8; --dim: #8f8f8f;
  --accent: #ffffff;
  --head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* older names the pages still use */
  --rose: #ececec; --rose-hi: #fff; --gold: #d0d0d0; --gold-hi: #fff; --blood: #3a3a3a; --blood-hi: #8f8f8f; --black: var(--head);
  --r: 3px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 19px/1.75 var(--serif); min-height: 100vh; background: var(--ground); }
::selection { background: #fff; color: #000; }
a { color: var(--text); text-decoration: underline; text-decoration-color: #5a5a5a; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--text); }
code { font: 14px ui-monospace, Consolas, monospace; background: var(--raise); border: 1px solid var(--line); padding: 1px 6px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: .005em; margin: 0 0 .7em; line-height: 1.25; }
h1 { font-size: clamp(34px, 5vw, 50px); }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
h4 { font: italic 400 18px var(--serif); color: var(--muted); margin: 32px 0 12px; letter-spacing: 0; text-transform: none; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 16px; }
.warn { color: var(--text); font-style: italic; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.orn { display: block; width: 160px; height: 18px; margin: 22px auto 0; color: #6a6a6a; }
.fog { display: none; }

/* ---------- masthead ---------- */
.top { max-width: 1120px; margin: 0 auto; padding: 30px clamp(20px, 5vw, 56px) 0; text-align: center; }
.mast { padding-bottom: 20px; }
.status-line { margin: 0 0 10px; font-size: 14px; color: var(--dim); }
.status-line a { color: var(--dim); }
.brand { display: inline-block; font: 400 clamp(30px, 4.6vw, 44px)/1.1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.brand:hover { color: #fff; }
.top nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 38px; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 14px 0; }
.top nav a { color: var(--muted); text-decoration: none; font: 400 15px var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--muted); }
.pill { display: inline; font-size: 14px; color: var(--dim); }
.pill i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #555; margin-right: 6px; vertical-align: middle; }
.pill.on { color: var(--muted); }
.pill.on i { background: #e8e8e8; }

/* ---------- layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) 90px; }
section { margin: 64px 0; }
.hero { margin: 72px auto 48px; text-align: center; max-width: 720px; }
.hero h1 { text-wrap: balance; }
.hero.narrow { max-width: 600px; }
.hero.grand { margin: 80px auto 64px; }
.hero.grand .lede { font-size: 23px; }
.kicker { font: italic 400 18px var(--serif); color: var(--dim); margin: 0 0 10px; letter-spacing: 0; text-transform: none; }
.kicker a { color: inherit; }
.lede { font: 400 21px/1.55 var(--serif); color: var(--muted); }
.wordmark { font: 400 clamp(42px, 7.5vw, 76px)/1.1 var(--head); letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 16px; color: var(--text); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.two > section { margin: 0; }
.two.tight { gap: 40px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 64px 72px; }
.grid3 > section { margin: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.wrap { gap: 8px; }
.more { margin-top: 14px; }
main > section > h2, .panel > h2 { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px; }

/* ---------- surfaces: mostly just rules ---------- */
.panel { position: relative; }
.card { border: 1px solid var(--line); padding: 32px 34px; background: transparent; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
a.card { display: block; color: var(--text); text-decoration: none; }
a.card:hover { border-color: #6a6a6a; }
.card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 14px; }
.card header h3, .card header h2 { margin: 0; }
.card header h3 a { text-decoration: none; }
.card.busy, .card.live { border-color: var(--line2); }
.who { font: 500 22px var(--serif); margin: 4px 0 0; }
.now { color: var(--muted); font: italic 400 19px var(--serif); margin: 2px 0 18px; }
.blurb { font-style: italic; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; padding: 14px 0; margin: 0; }
.notice { border-left: 2px solid var(--muted); padding: 6px 0 6px 16px; margin-top: 26px; color: var(--muted); font-style: italic; }

/* ---------- the three ways in on the home page ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 80px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.door { display: block; padding: 44px 36px 40px; text-align: center; color: var(--text); text-decoration: none; }
.door + .door { border-left: 1px solid var(--line); }
.door:hover h2 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.door .arch { display: block; font-size: 20px; color: var(--dim); margin-bottom: 6px; }
.door h2 { font-size: 26px; margin-bottom: 6px; border: 0; padding: 0; }
.door p { color: var(--muted); margin: 0 0 8px; }
.door small { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

/* ---------- progress ---------- */
.prog { margin: 18px 0 14px; }
.prog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.prog-head b { font: 500 20px var(--serif); }
.prog-head span { color: var(--dim); font-size: 16px; }
.bar { height: 3px; background: #262626; }
.bar span { display: block; height: 100%; background: #e6e6e6; transition: width .8s ease; }
.bar.gold span { background: #fff; }
.chart { margin: 14px 0 4px; color: #d8d8d8; }
.chart svg { width: 100%; height: 100px; display: block; border-bottom: 1px solid var(--line); }
.chart .lockline { stroke: #777; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart figcaption { font-size: 15px; color: var(--dim); margin-top: 6px; font-style: italic; }
.chip { display: inline-block; font: 400 12px var(--serif); letter-spacing: .08em; text-transform: uppercase; padding: 1px 8px; border: 1px solid var(--line2); color: var(--muted); margin: 0 0 4px 4px; white-space: nowrap; }
.chip.rose, .chip.gold { color: var(--text); border-color: #777; }
.chip.dim { color: var(--dim); }

/* ---------- feed and boards ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 20px 1fr auto; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.feed li:last-child { border-bottom: 0; }
.feed b { color: var(--dim); font-weight: 400; text-align: center; font-size: 14px; }
.feed time { color: var(--dim); font-size: 15px; white-space: nowrap; font-style: italic; }
.board { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 38px 1fr auto; align-items: baseline; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.rank { font: 400 17px var(--head); color: var(--dim); text-align: center; }
.board .r1 .rank { color: var(--text); }
.board li.me { background: #161616; }
.nm { display: flex; flex-direction: column; min-width: 0; }
.nm small { color: var(--dim); font-size: 15px; font-style: italic; }
.val { font: 500 18px var(--serif); white-space: nowrap; }
.tabs { display: flex; gap: 8px 34px; justify-content: center; flex-wrap: wrap; margin: -10px 0 56px; }
.tabs a { color: var(--muted); text-decoration: none; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; padding-bottom: 2px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); border-bottom: 1px solid var(--text); }
.tabs.sticky { position: sticky; top: 0; z-index: 10; background: var(--ground); padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }

/* ---------- name chain, charms, notes ---------- */
.chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; align-items: baseline; margin-bottom: 8px; }
.chain li { font-size: 18px; color: var(--dim); }
.chain li + li::before { content: '→'; margin: 0 10px; color: #555; }
.chain li.past { text-decoration: line-through; text-decoration-color: #666; }
.chain li.now { color: var(--text); font-style: italic; }
.lost { margin: 0; padding-left: 20px; }
.lost.soft { color: var(--muted); }
.charms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 36px; }
.charm { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.charm b { display: block; font-weight: 500; font-size: 18px; }
.charm small { font-size: 15px; font-style: italic; }
.charm.got { color: var(--text); }
.charm.got b::before { content: '✓ '; color: var(--muted); }
.charm.got small { color: var(--muted); }
.notes { list-style: none; padding: 0; margin: 14px 0 0; }
.notes li { border-left: 1px solid var(--line2); padding: 6px 0 6px 20px; margin-bottom: 22px; }
.notes p { margin: 0; font-style: italic; }
.notes small { color: var(--dim); font-size: 15px; }
.note-in { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: 44px 0; }
.note-in blockquote { font: italic 400 25px/1.45 var(--serif); margin: 0 0 10px; }
.note-form { display: grid; gap: 10px; }
.rules { padding-left: 22px; margin: 0; color: var(--muted); }
.rules li { margin-bottom: 14px; }
.steps li { margin-bottom: 10px; }

/* ---------- the wardrobe ---------- */
.hanger { position: relative; padding-top: 44px; }
.hanger .hook { position: absolute; top: -1px; left: 50%; width: 26px; height: 20px; margin-left: -13px; border: 1.5px solid #8a8a8a; border-bottom: 0; border-radius: 13px 13px 0 0;
  transform-origin: 50% -10px; animation: sway 7s ease-in-out infinite; }
.hanger .hook::after { content: ''; position: absolute; left: 50%; top: -11px; width: 1.5px; height: 11px; background: #8a8a8a; }
a.hanger:hover .hook { animation-duration: 2.5s; }
/* bars fill in when a page opens; afterwards they slide to new values */
.bar span { animation: fill 1.4s cubic-bezier(.25, .8, .25, 1) both; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }
/* the name, stage by stage, appears one step at a time; the current one breathes */
.chain li { animation: appear .7s ease both; }
.chain li:nth-child(2) { animation-delay: .15s; } .chain li:nth-child(3) { animation-delay: .3s; } .chain li:nth-child(4) { animation-delay: .45s; }
.chain li:nth-child(5) { animation-delay: .6s; } .chain li:nth-child(6) { animation-delay: .75s; }
.chain li.now { animation: appear .7s ease both, breathe 4s ease-in-out 1.2s infinite; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } }
@keyframes breathe { 50% { opacity: .55; } }
/* earned charms catch the light now and then */
.charm.got b { background: linear-gradient(100deg, var(--text) 40%, #fff 50%, var(--text) 60%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glint 9s ease-in-out infinite; }
.charm:nth-child(3n) b { animation-delay: -3s; }
.charm:nth-child(3n+1) b { animation-delay: -6s; }
.fresh { animation: appear .6s ease both; }
/* level charts draw themselves */
.chart path:last-child { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2.2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- the kennel: engraved tags ---------- */
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 56px 48px; margin: 20px 0 80px; }
.tag-card { display: block; color: var(--text); text-decoration: none; text-align: center; }
.tag-card .ring { display: block; width: 22px; height: 22px; margin: 0 auto -8px; border: 3px solid #b0b0b0; border-radius: 50%; position: relative; z-index: 1; }
.tag { width: 160px; height: 160px; margin: 0 auto; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 18px; position: relative;
  background: radial-gradient(circle at 34% 26%, #ffffff 0%, #e4e4e4 22%, #a9a9a9 58%, #6e6e6e 82%, #4a4a4a 100%); color: #111;
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .9), inset 0 -6px 12px rgba(0, 0, 0, .35), inset 0 4px 8px rgba(255, 255, 255, .6);
  transform-origin: 50% -14px; animation: sway 6s ease-in-out infinite; }
.tag::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(0, 0, 0, .3); border-radius: 50%; }
.tag::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 48%, transparent 60%);
  background-size: 250% 100%; animation: glint 7s ease-in-out infinite; pointer-events: none; }
.tag-card:nth-child(2n) .tag { animation-delay: -2s; }
.tag-card:nth-child(3n) .tag { animation-delay: -4s; }
.tag-card:nth-child(2n) .tag::after { animation-delay: -3s; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes glint { 0%, 70% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.tag small { font: 400 11px var(--serif); letter-spacing: .2em; text-transform: uppercase; }
.tag b { font: 400 17px/1.15 var(--head); margin: 4px 0; text-align: center; }
.tag span { font: 600 15px/1.1 var(--serif); text-transform: uppercase; letter-spacing: .12em; text-align: center; }
.tag-card:hover .tag { animation-duration: 3s; }
.tag-body { margin-top: 28px; text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.tag-card.ghost .tag { filter: grayscale(1) brightness(.45); }
.kennel-empty .hooks { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 20px 0 30px; }
.kennel-empty .tag-card { width: 180px; }

/* ---------- buttons and forms ---------- */
.btn { font: 400 15px var(--serif); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--text); color: #0b0b0b; background: var(--text); padding: 8px 18px; border-radius: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover { background: #fff; color: #000; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn.ghost, .btn.sm:not(.on):not(.danger) { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover, .btn.sm:not(.on):not(.danger):hover { border-color: var(--text); }
.btn.on { background: var(--text); color: #0b0b0b; border-color: var(--text); }
.btn.danger { background: transparent; color: var(--text); border-color: var(--text); }
.btn.danger:hover { background: var(--text); color: #0b0b0b; }
.btn.danger.ghost { border-color: var(--line2); color: var(--muted); }
.link { background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; font-size: 16px; padding: 0; text-decoration: underline; text-decoration-color: #5a5a5a; text-underline-offset: 3px; text-align: left; }
.icon { background: none; border: 1px solid var(--line2); color: var(--muted); width: 32px; height: 32px; cursor: pointer; flex: none; }
.icon:hover { color: var(--text); border-color: var(--text); }
input, select, textarea { font: 400 15px var(--sans); color: var(--text); background: #101010; border: 1px solid var(--line2); border-radius: 0; padding: 8px 10px; min-width: 0; }
textarea { font: 400 17px/1.45 var(--serif); width: 100%; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 1px solid var(--text); outline-offset: 0; border-color: var(--text); }
input:disabled, select:disabled { opacity: .55; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 16px; color: var(--muted); margin-bottom: 18px; }
label output { color: var(--text); }
label.inline { flex-direction: row; align-items: center; gap: 10px; margin: 0; }
label.check { flex-direction: row; align-items: flex-start; gap: 9px; color: var(--text); margin: 0 0 6px; cursor: pointer; }
label.check input { margin-top: 6px; accent-color: #e6e6e6; width: 15px; height: 15px; flex: none; }
label.check small { display: block; color: var(--dim); font-size: 15px; font-style: italic; }
label.check b { font-weight: 400; }
input[type=range] { accent-color: #e6e6e6; padding: 0; background: none; border: 0; }
input[type=color] { width: 44px; height: 32px; padding: 2px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 20px; }
.checks.one { grid-template-columns: 1fr; }
.radios { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-bottom: 10px; }
.radios.big { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.radio-card { border: 1px solid var(--line2); padding: 12px 16px; cursor: pointer; color: var(--text); position: relative; margin: 0; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card b { font: 400 22px var(--head); }
.radio-card small { color: var(--muted); font-size: 16px; font-style: italic; }
.radio-card:has(input:checked) { border-color: var(--text); }
.radio-card:has(input:checked) b::after { content: ' ✓'; font-size: 16px; color: var(--muted); }
.radio-card:has(input:focus-visible) { outline: 1px solid var(--text); }
.switch { flex-direction: row; align-items: center; gap: 10px; color: var(--text); cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 34px; height: 18px; border: 1px solid var(--line2); position: relative; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; background: #666; transition: transform .2s; }
.switch input:checked + span { border-color: var(--text); }
.switch input:checked + span::after { transform: translateX(16px); background: var(--text); }
.switch input:focus-visible + span { outline: 1px solid var(--text); }
.edit .save { justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.edit .save .all { margin: 0 auto 0 0; color: var(--muted); }
.edit.dirty .save .btn:not(.ghost)::after { content: ' •'; }
.cmd .row input[name=text] { flex: 1; min-width: 200px; }
.slash { font: 400 18px var(--head); color: var(--muted); }
.narrow-box { max-width: 460px; margin: 0 auto; }
.status { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.status > div:first-child { flex: 1 1 320px; }
.status h2 { margin: 0 0 4px; font-size: 24px; border: 0; padding: 0; }
.actions { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* the action editor */
.act-head, .act-row { display: grid; grid-template-columns: 90px 120px 76px 1fr 1fr 1fr 32px; gap: 8px; align-items: center; }
.act-head { font-size: 14px; color: var(--dim); font-style: italic; margin-bottom: 6px; }
.act-row { margin-bottom: 8px; }
.act-row input, .act-row select { width: 100%; padding: 6px 8px; font-size: 14px; }
.bl-row { display: grid; grid-template-columns: 1fr 1.6fr 32px; gap: 8px; margin-bottom: 8px; }
.stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.stage-grid[data-off] { opacity: .45; }
.stage-grid fieldset { border: 1px solid var(--line); padding: 8px 12px; margin: 0; }
.stage-grid legend { font: italic 400 17px var(--serif); color: var(--muted); padding: 0 6px; }
.stage-grid label.check { font-size: 16px; }
.looks { list-style: none; padding: 0; margin: 0; }
.looks li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.looks small { color: var(--dim); flex: 1; font-style: italic; }

/* the trance preview keeps its colour: it shows what the captive will see */
.trance-wrap { display: grid; grid-template-columns: 160px 1fr; gap: 26px; align-items: center; }
.spiral { width: 160px; height: 160px; border-radius: 50%; position: relative; overflow: hidden; border: 1px solid var(--line2); background: #000; }
.spiral i { position: absolute; inset: -20%; opacity: calc(.15 + var(--a) * .85);
  background: repeating-conic-gradient(from 0deg, var(--tint) 0 12deg, transparent 12deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 6%, #000 7% 60%, transparent 72%); mask: radial-gradient(circle, transparent 0 6%, #000 7% 60%, transparent 72%);
  animation: spin var(--spin, 2s) linear infinite; }
.spiral[data-still] i { animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.swatches { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sw { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #555; cursor: pointer; padding: 0; }
.sw:hover { border-color: #fff; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th { text-align: left; font: italic 400 16px var(--serif); color: var(--dim); padding: 8px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td form.row { flex-wrap: nowrap; }
td input { width: 100%; min-width: 160px; }
td .switch { margin: 0; }

/* ---------- footer, toast ---------- */
.foot { max-width: 1120px; margin: 0 auto; text-align: center; color: var(--dim); font-size: 16px; padding: 10px 20px 40px; }
.foot .orn { margin: 0 auto 10px; }
.foot a { color: var(--muted); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); opacity: 0; background: #ececec; color: #0b0b0b; padding: 10px 18px;
  font: 400 17px var(--serif); transition: opacity .25s; z-index: 50; pointer-events: none; max-width: calc(100vw - 40px); }
#toast.show { opacity: 1; }
#toast.err { background: #0b0b0b; color: #fff; border: 1px solid #fff; }
.stale { position: fixed; right: 20px; bottom: 20px; z-index: 40; }
main { transition: opacity .15s ease; }
body.leaving main { opacity: .6; }

/* ---------- pictures ---------- */
.portrait { margin: 0; }
.portrait .frame { display: block; position: relative; overflow: hidden; }
.portrait img, .portrait svg { display: block; width: 100%; height: 100%; object-fit: cover; background: #151515; }
.portrait img.over { position: absolute; inset: 0; background: transparent; pointer-events: none; animation: overlay-in 1.6s ease both; }
.portrait img.over.contain { object-fit: contain; }
@keyframes overlay-in { from { opacity: 0; transform: scale(1.06); } }
.portrait figcaption { font-style: italic; color: var(--muted); font-size: 16px; margin-top: 8px; text-align: center; }
.portrait.small { width: 120px; }
.portrait.small figcaption { display: none; }
.portrait.small .frame { height: 90px; border: 1px solid var(--line2); }
.card.live .portrait.small, .card.cap .portrait.small { width: 100%; margin-bottom: 18px; }
.card.live .portrait.small .frame, .card.cap .portrait.small .frame { height: 180px; }
.portrait.hero-pic { width: 240px; margin: 0 auto 28px; }
.portrait.hero-pic .frame { height: 180px; border: 1px solid var(--line2); }
.faces { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 14px; flex-wrap: wrap; }
.faces .portrait { width: 220px; }
.faces .portrait .frame { height: 165px; border: 1px solid var(--line2); }
.faces .was img, .faces .was svg { opacity: .4; filter: grayscale(1); }
.faces-arrow { font-size: 26px; color: var(--dim); }
.faces-note { font-style: italic; color: var(--muted); margin: 0 0 30px; }
.lost-all { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.lost-all h2 { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.lost.big { list-style: none; padding: 0; margin: 0 0 16px; font-size: 21px; }
.lost.big li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lost.big li:last-child { border-bottom: 0; }
.lost.big li { animation: appear .6s ease both; }
.lost.big li:nth-child(2) { animation-delay: .12s; } .lost.big li:nth-child(3) { animation-delay: .24s; } .lost.big li:nth-child(4) { animation-delay: .36s; }
.lost.big li:nth-child(5) { animation-delay: .48s; } .lost.big li:nth-child(n+6) { animation-delay: .6s; }
.rec-grid { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: start; }
.pic-edit { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.pic-edit summary { cursor: pointer; color: var(--muted); font-style: italic; }
.pic-edit form { margin-top: 14px; }
input[type=file] { font: 400 15px var(--sans); border: 1px dashed var(--line2); padding: 10px; }

.claimed { font-style: italic; color: var(--dim); margin-top: -6px; }
.about-edit { max-width: 640px; margin: 22px auto 0; text-align: left; }
td small { display: block; margin-top: 4px; }

.also .card + .card { margin-top: 28px; }

/* written about them as the item */
.as-item { margin: 26px 0 6px; padding: 18px 24px; border-left: 1px solid var(--line2); font-style: italic; font-size: 20px; color: var(--text); }
.as-item p:last-child { margin: 0; }

/* the timeline */
.timeline { list-style: none; margin: 0 0 10px; padding: 0 0 0 24px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line2); }
.timeline li { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 12px 0; animation: appear .6s ease both; }
.timeline li::before { content: ''; position: absolute; left: -24px; top: 21px; width: 11px; height: 11px; border-radius: 50%; background: var(--ground); border: 1px solid #9a9a9a; }
.timeline li.tl-note::before { background: var(--text); border-color: var(--text); }
.timeline time { color: var(--dim); font-style: italic; }
.timeline p { margin: 0; }
.timeline small { color: var(--dim); font-style: italic; display: block; margin-top: 4px; }
.timeline time { display: flex; flex-direction: column; }
.tl-kind { font-style: normal; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.tl-body h3 { font-size: 21px; margin: 0 0 6px; }
.tl-body p { margin: 0 0 6px; }
.tl-body blockquote { margin: 0 0 6px; font: italic 400 24px/1.4 var(--serif); }
.tl-body blockquote::before { content: '\201C'; } .tl-body blockquote::after { content: '\201D'; }
.tl-pic { display: block; margin: 10px 0 8px; max-width: 520px; }
.tl-pic img { display: block; width: 100%; max-height: 380px; object-fit: cover; border: 1px solid var(--line2); transition: border-color .2s; }
.tl-pic:hover img { border-color: var(--text); }
.timeline li.tl-milestone::before { width: 15px; height: 15px; left: -26px; top: 19px; transform: rotate(45deg); border-radius: 0; background: var(--text); }
.timeline li.tl-confession .tl-body { border-left: 1px solid var(--line2); padding-left: 16px; font-style: italic; }
.timeline li.tl-photo::before { border-radius: 2px; }
.tl-add { margin-top: 18px; }
.timeline .tl-x { font-size: 14px; color: var(--dim); }
.tl-edit summary { cursor: pointer; color: var(--dim); font-size: 14px; font-style: italic; }
.tl-edit form { margin-top: 10px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  body { font-size: 18px; }
  .two, .doors { grid-template-columns: 1fr; gap: 36px; }
  .doors { gap: 0; }
  .door + .door { border-left: 0; border-top: 1px solid var(--line); }
  .top nav { gap: 4px 18px; }
  .top nav a { font-size: 14px; }
  .act-head { display: none; }
  .act-row { grid-template-columns: 1fr 1fr 70px 32px; padding: 10px; border: 1px solid var(--line); }
  .act-row input[name$=priv], .act-row input[name$=pub], .act-row input[name$=you] { grid-column: 1 / -1; }
  .act-row .icon { grid-row: 1; grid-column: 4; }
  .trance-wrap { grid-template-columns: 1fr; justify-items: center; }
  .radios.big { grid-template-columns: 1fr; }
  .cards.wide { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
