Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added drafts/mobile/shots/read/read-before-after.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 22 additions & 5 deletions src/components/CausalDiagram.astro
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const py = (n: typeof diag.nodes[0]) => rowY[n.pos[1]];

<p class="ch-diag-caption">{diag.caption}</p>

<ul class="sr-only" aria-label="Causal links in this diagram">
<ul class="ch-diag-links" aria-label="Causal links in this diagram">
{diag.arcs.map(arc => {
const f = diag.nodes.find(n => n.id === arc.from);
const t = diag.nodes.find(n => n.id === arc.to);
Expand Down Expand Up @@ -153,7 +153,7 @@ const py = (n: typeof diag.nodes[0]) => rowY[n.pos[1]];
padding: clamp(32px,5vw,56px) clamp(20px,5vw,64px) clamp(40px,6vw,64px);
}
.ch-diag-header {
font-size: 11px; letter-spacing: 0.06em;
font-size: 12px; letter-spacing: 0.06em;
color: var(--band-sub);
display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
margin-bottom: 24px;
Expand All @@ -172,7 +172,7 @@ const py = (n: typeof diag.nodes[0]) => rowY[n.pos[1]];
display: flex; flex-direction: column; gap: 6px;
}
.ch-diag-node-id {
font-size: 11px; color: var(--band-mute); letter-spacing: 0.05em;
font-size: 12px; color: var(--band-mute); letter-spacing: 0.05em;
}
.ch-diag-node-lbl {
font: 500 14px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif;
Expand All @@ -191,7 +191,7 @@ const py = (n: typeof diag.nodes[0]) => rowY[n.pos[1]];
margin-bottom: 16px;
}
.ch-diag-latent-label {
font-size: 11px; color: var(--band-mute); letter-spacing: 0.05em;
font-size: 12px; color: var(--band-mute); letter-spacing: 0.05em;
}
.ch-diag-latent-node {
border: 1px dashed var(--band-node-line);
Expand All @@ -213,7 +213,24 @@ const py = (n: typeof diag.nodes[0]) => rowY[n.pos[1]];
padding-top: 18px;
}
.ch-diag-svg-label {
font-size: 11px; letter-spacing: 0.04em;
font-size: 12px; letter-spacing: 0.04em;
color: var(--band-mute); margin: 0 0 10px;
}

/* The causal links as text: always read aloud; on phones also shown, in place of the SVG. */
.ch-diag-links {
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; list-style: none;
}
@media (max-width: 640px) {
/* The SVG scales with the viewport: its 11px labels render at about 7px on a phone. Show the same
links as readable rows instead; the node cards above already give the shape. */
.ch-diag-svg-wrap { display: none; }
.ch-diag-links {
position: static; width: auto; height: auto; margin: 0 0 8px; overflow: visible; clip: auto; white-space: normal;
border-top: 1px solid var(--band-rule); padding-top: 14px;
display: flex; flex-direction: column; gap: 10px;
}
.ch-diag-links li { font-size: 15px; line-height: 1.4; color: var(--band-ink); padding-left: 14px; border-left: 2px solid var(--band-node-line); }
}
</style>
16 changes: 11 additions & 5 deletions src/components/ReaderGate.astro
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const fullHref = `/read/${slug}/full`;
.kw-gate-copy { grid-column: 1 / span 6; }
.kw-gate-action { grid-column: 8 / span 5; }
.kw-gate-eyebrow {
font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
color: var(--band-accent); margin: 0 0 16px;
}
.kw-gate-h {
Expand All @@ -166,16 +166,18 @@ const fullHref = `/read/${slug}/full`;
color: var(--band-sub); margin: 0; max-width: 52ch;
}
.kw-gate-form { display: flex; flex-direction: column; gap: 14px; }
/* display:flex beat the hidden attribute, so a signed-in reader saw the sign-up form under the Continue button */
.kw-gate-form[hidden], .kw-gate-unlocked[hidden] { display: none; }
.kw-gate-field { display: flex; flex-direction: column; gap: 6px; }
.kw-gate-label {
font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace;
font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace;
letter-spacing: .08em; text-transform: uppercase; color: var(--band-sub);
}
.kw-gate-input {
font: 400 16px/1.3 "JetBrains Mono", ui-monospace, monospace;
color: var(--band-ink); background: var(--band-node-bg);
border: 1px solid var(--band-node-line); padding: 12px 14px;
width: 100%;
width: 100%; min-height: 48px;
}
.kw-gate-input:focus-visible { outline: 2px solid var(--band-ink); outline-offset: 2px; }
.kw-gate-input[aria-invalid="true"] { border: 2px solid #ff8a80; }
Expand All @@ -185,17 +187,21 @@ const fullHref = `/read/${slug}/full`;
.kw-gate-check {
display: flex; gap: 10px; align-items: flex-start;
font-size: 14px; line-height: 1.45; color: var(--band-sub); cursor: pointer;
min-height: 44px; align-items: center;
}
.kw-gate-check input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--signal); }
.kw-gate-check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--signal); }
.kw-gate-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.kw-gate-submit { align-self: flex-start; }
.kw-gate-status { font-size: 14px; color: var(--band-ink); margin: 0; min-height: 1em; }
.kw-gate-status:empty { display: none; }
.kw-gate-fine { font-size: 12px; line-height: 1.5; color: var(--band-sub); margin: 0; }
.kw-gate-fine { font-size: 13px; line-height: 1.5; color: var(--band-sub); margin: 0; }
.kw-gate-ok { font-size: 15px; color: var(--band-sub); margin: 0 0 14px; }

@media (max-width: 900px) {
.kw-gate-inner { grid-template-columns: 1fr; gap: 28px; }
.kw-gate-copy, .kw-gate-action { grid-column: 1; }
}
@media (max-width: 520px) {
.kw-gate-submit { align-self: stretch; justify-content: center; min-height: 48px; }
}
</style>
20 changes: 19 additions & 1 deletion src/pages/read/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const next = idx < sorted.length - 1 ? sorted[idx + 1] : null;
) : <span />}
{next ? (
<a href={`/read/${next.id}`} class="chapter-nav-link" style="text-align:right">
<span class="mono" style="font-size:11px;color:var(--sub)">Ch. {chapterNum(next.data.n)} →</span>
<span class="mono" style="font-size:12px;color:var(--sub)">Ch. {chapterNum(next.data.n)} →</span>
<span>{next.data.opener}</span>
</a>
) : <span />}
Expand Down Expand Up @@ -199,4 +199,22 @@ const next = idx < sorted.length - 1 ? sorted[idx + 1] : null;
font-size: 11px; letter-spacing: 0.04em;
color: var(--band-mute); margin: 0 0 10px;
}

.chapter-nav-link { min-height: 44px; }

@media (max-width: 640px) {
/* Nine-voices cards: number and tier share the first row, the card body gets the full width
(the 40px number gutter squeezed the cold-open box to two thirds and pushed the tier badge off screen). */
.kw-voice-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "num tier" "body body"; gap: 8px 12px; padding: 18px 0; }
.kw-voice-card > .kw-voice-num { grid-area: num; font-size: 12px; align-self: center; }
.kw-voice-card > .kw-tier { grid-area: tier; font-size: 12px; align-self: center; }
.kw-voice-card > div { grid-area: body; min-width: 0; }
.kw-voice-name { font-size: 17px; }
.voice-cold-open { font-size: 14px; padding: 12px 14px; overflow-wrap: anywhere; }
.kw-voice-role { font-size: 12px; }

.chapter-nav { flex-direction: column; gap: 0; padding-top: 0; padding-bottom: 0; }
.chapter-nav-link { max-width: none; min-height: 72px; justify-content: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.chapter-nav-link[style] { text-align: left !important; }
}
</style>
10 changes: 8 additions & 2 deletions src/pages/read/[slug]/full.astro
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ const fmt = (x: number) => x.toLocaleString('en-US');
}
.kw-full-nav-link--next { text-align: right; margin-left: auto; }
.kw-full-nav-link:hover { color: var(--signal-ink); }
.kw-full-nav-k { font-size: 11px; color: var(--sub); }
.kw-full-foot a { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; }
.kw-full-nav-k { font-size: 12px; color: var(--sub); }
.kw-full-nav-link { min-height: 44px; }
@media (max-width: 520px) {
.kw-full-nav { flex-direction: column; gap: 0; padding-top: 0; padding-bottom: 0; }
.kw-full-nav-link { max-width: none; min-height: 72px; justify-content: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.kw-full-nav-link--next { text-align: left; margin-left: 0; }
}
.kw-full-foot a { color: var(--signal-ink); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 10px 0; }
</style>
4 changes: 2 additions & 2 deletions src/pages/read/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ const totalMinutes = manuscript.reduce((sum, e) => sum + e.data.readMinutes, 0);
padding: 12px 16px; margin: 0 0 24px;
}
.read-num {
font-size: 11px; color: var(--signal-ink); letter-spacing: .08em; flex-shrink: 0; width: 28px;
font-size: 12px; color: var(--signal-ink); letter-spacing: .08em; flex-shrink: 0; width: 28px;
}
.read-body { flex: 1; }
.read-opener {
font: 600 16px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: -.01em; color: var(--ink); margin: 0 0 4px;
}
.read-title {
font: 400 11px/1 "JetBrains Mono", ui-monospace, monospace;
font: 400 12px/1.3 "JetBrains Mono", ui-monospace, monospace;
color: var(--sub); margin: 0; letter-spacing: .04em;
}
.read-arrow { color: var(--sub2); font-size: 13px; flex-shrink: 0; }
Expand Down
Loading