Skip to content

Commit ad37d13

Browse files
dmilclaude
andcommitted
Split the hero into a title and a subtitle
"Code4Policy" becomes the h1 on its own, with "Design & Build Digital Public Services with AI" demoted to a subtitle beneath it. The crimson italic on "with AI" carries over. The subtitle wraps with text-wrap: balance so the two lines break between "Digital" and "Public Services" rather than through the middle of that phrase. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent f8f47c3 commit ad37d13

2 files changed

Lines changed: 17 additions & 5 deletions

File tree

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525

2626
<section class="hero reveal">
2727
<p class="eyebrow">DPI-691M &middot; January 2027</p>
28-
<h1>Code4Policy: Design &amp; Build Digital Public Services <em>with AI</em></h1>
28+
<h1>Code4Policy</h1>
29+
<p class="subtitle">Design &amp; Build Digital Public Services <em>with AI</em></p>
2930
</section>
3031

3132
<section class="prose reveal">

style.css

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,27 @@ main { padding: 0 var(--gutter) 6rem; }
130130
.hero { padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2rem, 4vw, 3rem); }
131131

132132
.hero h1 {
133-
font-size: clamp(2.25rem, 6.2vw, 4.75rem);
133+
font-size: clamp(2.75rem, 8vw, 5.75rem);
134134
font-weight: 300;
135135
font-variation-settings: "SOFT" 20, "WONK" 1;
136136
line-height: 1;
137137
letter-spacing: -0.02em;
138-
margin: 0 0 1.75rem;
139-
max-width: 20ch;
138+
margin: 0 0 0.9rem;
140139
}
141140

142-
.hero h1 em {
141+
.hero .subtitle {
142+
margin: 0;
143+
max-width: 30ch;
144+
/* Balanced so the wrap does not split "Public Services". */
145+
text-wrap: balance;
146+
font-size: clamp(1.35rem, 3.4vw, 2.35rem);
147+
font-weight: 300;
148+
line-height: 1.2;
149+
letter-spacing: -0.01em;
150+
color: var(--ink-soft);
151+
}
152+
153+
.hero .subtitle em {
143154
font-style: italic;
144155
color: var(--crimson);
145156
}

0 commit comments

Comments
 (0)