Skip to content

Commit cbacc87

Browse files
committed
fix: fix ch2 + ch3 headings
1 parent abd9fed commit cbacc87

2 files changed

Lines changed: 46 additions & 44 deletions

File tree

src/lib/components/Inference.svelte

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,19 @@
10181018
back inside the machine · the reply you watched stream in
10191019
</p>
10201020

1021+
<div class="open-below">
1022+
<p class="open-claim open-claim-1">It isn’t typing.</p>
1023+
<p class="open-claim open-claim-2">
1024+
It’s guessing — one token at a time, each guess feeding the
1025+
next.
1026+
</p>
1027+
1028+
<div class="open-title chapter-head">
1029+
<p class="eyebrow">Chapter 03 · the machine’s only trick</p>
1030+
<h2 id="nt-title">Inference</h2>
1031+
</div>
1032+
</div>
1033+
10211034
<div class="open-panel">
10221035
<p class="open-panel-head mono">
10231036
AGENT → YOU · one turn, closing
@@ -1033,19 +1046,6 @@
10331046
>
10341047
</p>
10351048
</div>
1036-
1037-
<div class="open-below">
1038-
<p class="open-claim open-claim-1">It isn’t typing.</p>
1039-
<p class="open-claim open-claim-2">
1040-
It’s guessing — one token at a time, each guess feeding the
1041-
next.
1042-
</p>
1043-
1044-
<div class="open-title chapter-head">
1045-
<p class="eyebrow">Chapter 03 · the machine’s only trick</p>
1046-
<h2 id="nt-title">Inference</h2>
1047-
</div>
1048-
</div>
10491049
</div>
10501050
</div>
10511051

@@ -1898,17 +1898,20 @@
18981898
}
18991899
19001900
.nt-open-stage {
1901+
/* the reply panel stays vertically centered; kicker + headings are
1902+
overlaid top-left so they can drop down without shifting it */
1903+
position: relative;
19011904
height: 100%;
1902-
display: flex;
1903-
flex-direction: column;
1904-
align-items: center;
1905-
justify-content: center;
1906-
gap: clamp(1.4rem, 4vh, 2.6rem);
1905+
display: grid;
1906+
place-items: center;
19071907
padding: 0 var(--page-gutter);
19081908
text-align: center;
19091909
}
19101910
19111911
.open-kicker {
1912+
position: absolute;
1913+
top: clamp(4.5rem, 11vh, 7rem);
1914+
left: var(--page-gutter);
19121915
font-size: 0.72rem;
19131916
letter-spacing: 0.18em;
19141917
text-transform: uppercase;
@@ -1967,7 +1970,10 @@
19671970
}
19681971
19691972
.open-below {
1970-
align-self: stretch;
1973+
position: absolute;
1974+
top: clamp(7rem, 18vh, 12rem);
1975+
left: var(--page-gutter);
1976+
right: var(--page-gutter);
19711977
display: flex;
19721978
flex-direction: column;
19731979
align-items: flex-start;
@@ -1993,7 +1999,7 @@
19931999
19942000
/* ---------- 2 · lede ---------- */
19952001
.nt-head {
1996-
padding: clamp(2.5rem, 7vw, 5rem) var(--page-gutter) 0;
2002+
padding: clamp(1.2rem, 3vw, 2.2rem) var(--page-gutter) 0;
19972003
text-align: center;
19982004
}
19992005

src/lib/components/Tokenization.svelte

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,15 @@
767767
the reading step, up close · what did the model actually receive?
768768
</p>
769769

770+
<div class="tkt-below">
771+
<p class="tkt-claim">The model never saw your words.</p>
772+
773+
<div class="tkt-titleblock chapter-head">
774+
<p class="eyebrow">Chapter 02 · the alphabet of the machine</p>
775+
<h2 id="tk-title">Tokenization</h2>
776+
</div>
777+
</div>
778+
770779
<div class="tkt-framewrap">
771780
<div class="tkt-frame">
772781
<div class="tkt-frame-chrome" aria-hidden="true"></div>
@@ -780,15 +789,6 @@
780789
</div>
781790
</div>
782791
</div>
783-
784-
<div class="tkt-below">
785-
<p class="tkt-claim">The model never saw your words.</p>
786-
787-
<div class="tkt-titleblock chapter-head">
788-
<p class="eyebrow">Chapter 02 · the alphabet of the machine</p>
789-
<h2 id="tk-title">Tokenization</h2>
790-
</div>
791-
</div>
792792
</div>
793793
</div>
794794

@@ -1119,31 +1119,27 @@
11191119
}
11201120
11211121
.tkt-stage {
1122-
/* frame pinned to the vertical center — below the diagram's token
1123-
row, so the hand-off reads as a downward drop */
1122+
/* the frame stays vertically centered; the headings are overlaid
1123+
top-left so they can drop down without shifting the frame */
1124+
position: relative;
11241125
display: grid;
1125-
grid-template-rows: 1fr auto 1fr;
1126-
justify-items: center;
1126+
place-items: center;
11271127
height: 100%;
1128-
padding: 0 var(--page-gutter) clamp(1.2rem, 4vh, 2.5rem);
1128+
padding: 0 var(--page-gutter);
11291129
text-align: center;
11301130
width: 100%;
11311131
}
11321132
1133-
.tkt-framewrap {
1134-
grid-row: 2;
1135-
}
1136-
11371133
.tkt-below {
1138-
grid-row: 3;
1139-
align-self: start;
1140-
justify-self: stretch;
1134+
position: absolute;
1135+
top: clamp(7rem, 18vh, 12rem);
1136+
left: var(--page-gutter);
1137+
right: var(--page-gutter);
11411138
display: flex;
11421139
flex-direction: column;
11431140
align-items: flex-start;
11441141
text-align: left;
1145-
gap: clamp(1rem, 3vh, 2rem);
1146-
padding-top: clamp(1.2rem, 3.5vh, 2.4rem);
1142+
gap: clamp(0.8rem, 2.4vh, 1.5rem);
11471143
}
11481144
11491145
.tkt-kicker {
@@ -1235,7 +1231,7 @@
12351231
}
12361232
/* ---------- 2 · lede ---------- */
12371233
.tk-head {
1238-
padding: clamp(2.5rem, 7vw, 5rem) var(--page-gutter) 0;
1234+
padding: clamp(1.2rem, 3vw, 2.2rem) var(--page-gutter) 0;
12391235
text-align: center;
12401236
}
12411237

0 commit comments

Comments
 (0)