/* The Architecture of Obligations: presentation site (V3 Demo).
   The site's own text is plain Instrument Sans (Louis, 26 Nov): serif italic stays in the tools and diagrams.
   No bullet points: items are separated by space. Black ground, white text. Each section is a screen. */
:root { --ground: #000; --white: #fff; --dim: rgba(255,255,255,.62); --faint: rgba(255,255,255,.18);
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; --measure: 64ch; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 50px; }
body { margin: 0; background: var(--ground); color: var(--white); font-family: var(--sans); font-size: 18px; line-height: 1.55; }
a { color: inherit; text-underline-offset: 3px; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px;
       padding: 12px clamp(16px, 3vw, 40px); background: rgba(0,0,0,.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--faint); }
.bar .name { font-weight: 600; text-decoration: none; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; }
.bar nav a { text-decoration: none; color: var(--dim); }
.bar nav a:hover, .bar nav a.on { color: var(--white); }

.sec { min-height: calc(100vh - 48px); padding: clamp(48px, 9vh, 96px) clamp(20px, 7vw, 120px); border-bottom: 1px solid var(--faint);
       display: flex; flex-direction: column; justify-content: center; }
.sec.wide { padding-left: 0; padding-right: 0; justify-content: flex-start; }
.sec.wide .inner { padding: 0 clamp(20px, 7vw, 120px); }
.sec.center-sec { align-items: center; text-align: center; }
.kicker { font-size: 14px; color: var(--dim); margin: 0 0 14px; }
h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; font-weight: 600; margin: 0 0 28px; max-width: 15ch; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 500; margin: 0 0 30px; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; font-weight: 500; margin: 40px 0 20px; }
.title-line { font-size: clamp(20px, 2vw, 26px); line-height: 1.3; color: var(--dim); margin: 0 0 22px; }

.text { max-width: var(--measure); }
.text p { margin: 0 0 1.1em; }
.text strong { font-weight: 600; }
.text em { font-style: italic; }
/* no bullet points: separate lines with room between them */
.text ul { list-style: none; margin: 0 0 1.8em; padding: 0; }
.text li { margin: 0 0 1.3em; }
.text.quiet { color: var(--dim); font-size: 16px; }
.between { display: block; width: 64px; height: 1px; background: var(--white); margin: 12px 0; opacity: .7; }

/* statement lines (>) and the bold, wide, centred questions (>>) */
.text blockquote { margin: 0 0 .4em; padding: 0; border: 0; }
.text blockquote p { font-size: clamp(22px, 2.1vw, 30px); line-height: 1.3; font-weight: 400; color: var(--white); margin: 0; }
.text blockquote.big { margin: 70px auto 40px; text-align: center; max-width: min(1080px, 100%); }
.text blockquote.big p { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.22; font-weight: 600; }
.statements { max-width: 60ch; }
.statements.wide { max-width: min(1150px, 100%); }
.statements.wide > p, .statements.wide > ul, .statements.wide > blockquote:not(.big) { max-width: 70ch; }
.statements > p { color: var(--white); font-size: 19px; margin-bottom: 1.8em; }
.statements > blockquote + p { color: var(--dim); font-size: 14px; margin-bottom: 2.6em; }
.statements > blockquote.big + p { color: var(--white); font-size: 19px; margin-bottom: 1.8em; }
#problem .statements > p:first-child { color: var(--dim); font-size: 15px; margin-bottom: 2.4em; }
.statements ul { font-size: 18px; max-width: 70ch; margin: 1.8em 0 2.4em; }
.statements li { margin-bottom: 1.8em; }
#premises .statements blockquote p { max-width: 48ch; }
#question .statements { width: min(1100px, 100%); max-width: none; }
#question blockquote.big { margin: 0 auto; }

.cols3 { max-width: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; grid-auto-flow: column; grid-template-rows: auto auto; }
@media (max-width: 980px) { .cols3 { grid-template-columns: 1fr; grid-auto-flow: row; } }

/* Why obligation: the triangle. The sculptor sits above its top point; tools and political sit under its two lower points, centred.
   The registers and the questions share one slot each, so nothing moves when they swap. */
.tri { display: flex; flex-direction: column; align-items: center; width: 100%; padding-bottom: 210px; }
.tri .corner { font-size: 17px; text-align: center; width: min(40ch, 42vw); }
.tri .stage .corner { width: min(310px, 29vw); }
.tri .top { margin-bottom: 26px; }
.tri .stage { position: relative; width: min(420px, 60vw); }
.tri .stage .left, .tri .stage .right { position: absolute; top: calc(100% + 26px); transform: translateX(-50%); }
.tri .stage .left { left: 0; } .tri .stage .right { left: 100%; }
.tri .slot { display: grid; }
.tri .slot > p { grid-area: 1 / 1; margin: 0; transition: opacity .35s; }
.tri .top .slot > p { align-self: end; }
.tri .left .slot > p, .tri .right .slot > p { align-self: start; }
.tri .reg b { font-weight: 600; }
.tri .sq { opacity: 0; font-size: 17px; line-height: 1.4; }
.tri .sq b { display: block; font-weight: 500; font-size: 13px; color: var(--dim); margin-bottom: 4px; letter-spacing: .04em; }
.tri.q .reg { opacity: 0; } .tri.q .sq { opacity: 1; }
.tri .mid { all: unset; cursor: pointer; position: relative; display: block; width: 100%; }
.tri .mid svg { width: 100%; height: auto; display: block; overflow: visible; }
.tri .mid polygon { fill: rgba(255,255,255,.07); stroke: var(--white); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill .3s; }
.tri .mid:hover polygon, .tri .mid:focus-visible polygon { fill: rgba(255,255,255,.16); }
.tri .mid span { position: absolute; left: 20%; right: 20%; top: 62%; text-align: center; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; }
@keyframes beckon { 0%, 86%, 100% { fill: rgba(255,255,255,.07); } 92% { fill: rgba(255,255,255,.26); } }
.tri:not(.q) .mid polygon { animation: beckon 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tri .mid polygon { animation: none !important; } }
@media (max-width: 860px) { .tri { padding-bottom: 0; } .tri .stage .left, .tri .stage .right { position: static; transform: none; margin: 20px auto 0; } .tri .corner { width: 100%; } }

figure { margin: 0 0 28px; }
.flow svg { width: 100%; max-width: 1100px; height: auto; display: block; }
.flow .node circle, .flow .node rect { fill: var(--ground); stroke: var(--white); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.flow .node.dashed rect { fill: none; stroke-dasharray: 3 6; stroke: var(--dim); }
.flow .node text { fill: var(--white); font-family: var(--sans); font-size: 16px; text-anchor: middle; }
.flow .node text.small { fill: var(--dim); font-size: 12.5px; }
.flow .link line { stroke: var(--white); stroke-width: 1; opacity: .7; }
.flow .link line.dim { stroke-dasharray: 3 5; opacity: .6; }
.flow .note text { fill: var(--dim); font-family: var(--sans); font-size: 15px; }

.matrix svg { width: 100%; max-width: 980px; max-height: calc(100vh - 220px); height: auto; display: block; margin: 0 auto; }
.matrix .ctx circle { fill: rgba(255,255,255,.07); stroke: var(--white); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.matrix .ctx text { fill: var(--dim); font-family: var(--sans); font-size: 15px; text-anchor: middle; }
.matrix .ctx text.t { fill: var(--white); font-size: 21px; font-weight: 600; }
.matrix .ctx.maybe circle { fill: none; stroke-dasharray: 4 6; stroke: var(--dim); }
.matrix .ctx.maybe text { font-size: 13px; }
.matrix .tension { fill: var(--white); font-family: var(--sans); font-size: 17px; text-anchor: middle; }

.frame { margin: 8px 0 14px; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.frame iframe { display: block; width: 100%; height: calc(100vh - 210px); min-height: 520px; border: 0; background: var(--ground); }
@media (max-width: 860px) { .frame iframe { height: 150vh; } }

.hint { font-size: 13px; color: var(--dim); }
.strip { list-style: none; margin: 14px 0 0; padding: 0 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px);
         gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.strip li { scroll-snap-align: start; min-width: 0; }
.strip .loading { font-size: 13px; color: var(--dim); }
.item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; width: 100%; height: 100%; border: 1px solid var(--faint); overflow: hidden; }
.item:hover, .item:focus-visible, .item.on { border-color: var(--white); }
.item:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: grayscale(1); }
.item .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.item .t { font-weight: 600; font-size: 16px; }
.item .m { font-size: 12px; color: var(--dim); }
.item .n { font-size: 13.5px; color: var(--dim); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; padding: 24px clamp(20px, 7vw, 120px); font-size: 13px; color: var(--dim); }

/* ---- 26 Nov, later: second round of Louis's notes ---- */
/* Bridges before each tool: bigger, like the Economy of Bodies screen */
.sec.bridge h2 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; font-weight: 600; margin-bottom: 36px; max-width: 18ch; }
.sec.bridge .statements > p { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; max-width: 46ch; }
.sec.bridge .statements blockquote p { font-size: clamp(28px, 3vw, 42px); }
.sec.tool { min-height: 0; padding-top: 0; padding-bottom: 20px; }
.sec.tool .frame { margin-top: 0; }
.sec.tool .frame iframe { height: calc(100vh - 52px); }
#housetool-frame .frame iframe { height: calc(100vh - 240px); }
#housetool-frame .strip { padding: 0 clamp(20px, 7vw, 120px) 10px; }
#housetool-frame .hint { padding: 0 clamp(20px, 7vw, 120px); }

/* The political problem: three points to open, one at a time */
.problem .picks { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 22px; }
.problem .pick { font: inherit; font-size: 18px; font-weight: 600; padding: 12px 22px; border: 1px solid var(--faint); background: transparent; color: var(--white); cursor: pointer; border-radius: 999px; }
.problem .pick:hover, .problem .pick:focus-visible { border-color: var(--white); }
.problem .pick[aria-expanded="true"] { background: var(--white); color: var(--ground); border-color: var(--white); }
.problem .reveal { min-height: 4.6em; max-width: 64ch; font-size: 20px; line-height: 1.45; color: var(--white); }
.problem .reveal p { margin: 0; color: var(--white); font-size: 20px; }

/* Since the last presentation: simple */
.since { max-width: none; }
.since li { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; }
.since .between { width: 120px; margin: 22px 0; }
.since > p { font-size: clamp(24px, 2.6vw, 36px); font-weight: 600; margin-top: 1.2em; }

/* How the data was collected: spread across the screen */
#empirical .text.quiet { max-width: min(1150px, 100%); font-size: 15px; line-height: 1.7; }

/* Rights: three columns with a line between them */
#rights .statements ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: min(1150px, 100%); margin: 2.4em 0 2.4em; }
#rights .statements li { margin: 0; padding: 4px 28px; border-left: 1px solid var(--faint); font-size: 17px; }
#rights .statements li:first-child { padding-left: 0; border-left: 0; }
@media (max-width: 900px) { #rights .statements ul { grid-template-columns: 1fr; } #rights .statements li { border-left: 0; padding: 0 0 1.4em; } }

/* Context Matrix: linked contexts and their tension light up together now and again */
.matrix .ctx circle, .matrix .tension { transition: fill .8s, stroke .8s, opacity .8s; }
.matrix .tension { opacity: .85; }
.matrix .lit circle { fill: rgba(255,255,255,.3); stroke-width: 2.4; }
.matrix .tension.lit { opacity: 1; fill: #fff; font-weight: 600; }

/* Progress: code labels */
.code { display: inline-block; font-size: 12px; letter-spacing: .03em; color: var(--dim); border: 1px solid var(--faint); border-radius: 999px; padding: 1px 10px; margin-right: 10px; vertical-align: 2px; white-space: nowrap; }

/* Year 3 calendar */
.cal { margin: 10px 0 0; width: 100%; }
.cal svg { width: 100%; height: auto; display: block; }
.cal .month { fill: var(--dim); font-family: var(--sans); font-size: 13px; text-anchor: middle; }
.cal .grid { stroke: var(--faint); stroke-width: 1; }
.cal .lane { fill: var(--white); font-family: var(--sans); font-size: 14px; font-weight: 600; }
.cal .bar { stroke: var(--white); stroke-width: 2; stroke-linecap: round; transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform .9s ease-out; }
.cal .bar.tent { stroke-dasharray: 2 7; opacity: .8; }
.cal .dot { fill: var(--white); opacity: 0; transition: opacity .6s; }
.cal .dot.tent { fill: none; stroke: var(--white); stroke-width: 1.5; }
.cal .lbl { fill: var(--white); font-family: var(--sans); font-size: 13.5px; opacity: 0; transition: opacity .6s; }
.cal .lbl.tent { fill: var(--dim); }
.cal.on .bar { transform: scaleX(1); }
.cal.on .dot, .cal.on .lbl { opacity: 1; }
.cal .now { stroke: var(--dim); stroke-dasharray: 3 5; }
@media (prefers-reduced-motion: reduce) { .cal .bar { transform: none; transition: none; } .cal .dot, .cal .lbl { opacity: 1; } }

/* ---- 26 Nov, third round ---- */
/* Weil, bold and large */
#rights .statements > blockquote:first-child p { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.12; font-weight: 600; max-width: 24ch; }
/* Progress and Risks: aligned left; every other line set 20px in, so each reads as a separate thing */
.stepped { max-width: none; }
.stepped li { max-width: 62ch; }
.stepped li:nth-child(even) { margin-left: 20px; }
/* Insights: independent factors in a grid, the question underneath */
.factors { max-width: none; }
.factors > p:first-child { color: var(--dim); font-size: 15px; margin-bottom: 1.4em; }
.factors ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; margin: 0; max-width: none; }
.factors li { margin: 0; font-size: 16px; line-height: 1.5; border-top: 1px solid var(--faint); padding-top: 14px; color: var(--dim); }
.factors li strong { display: block; color: var(--white); font-size: 19px; margin-bottom: 6px; }
@media (max-width: 980px) { .factors ul { grid-template-columns: 1fr; } }
/* Outputs: published on the left; planned on the right, set right-aligned */
.twoside { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: auto auto; gap: 0 80px; }
.twoside > :nth-child(3), .twoside > :nth-child(4) { text-align: right; }
.twoside > :nth-child(4) li { margin-left: auto; }
.twoside li { max-width: 52ch; }
@media (max-width: 980px) { .twoside { grid-template-columns: 1fr; grid-auto-flow: row; } .twoside > * { text-align: left !important; } }
