Layout
Pages are built from sections and containers, with a small set of grids inside them.
Page structure
Every page is a stack of sections. A section sets vertical padding; a container inside it sets the max width and side gutters.
.section
.container · max 100rem · 4rem gutters
.bg-secondary > .section
.container
<div class="section first"> <!-- first section: extra top padding for the header -->
<div class="container">…</div>
</div>
<div class="bg-secondary"> <!-- tint a run of sections -->
<section class="section">
<div class="container">…</div>
</section>
</div>| Class | Does |
|---|---|
.section | 6rem top and bottom padding (4rem on tablet) |
.section.first | 9rem top padding, to clear the header |
.section.last | Reduced bottom padding (footer) |
.container | Centered, max 100rem, side padding, vertical flex with a 3rem gap |
.container.full | No max width |
.max-sm / .max-md / .max-lg | Max width 25rem / 40rem / 50rem, for text measure |
.overflow-none | Clip overflow (sliders) |
Grids
All grids collapse to one column on mobile.
.grid-2 · Two equal columns, 2rem gap
1
2
<div class="grid-2">…</div>.grid-2-third · One-third / two-thirds: text + media (project pages)
1
2
<div class="grid-2-third">…</div>.grid-3 · Three equal columns (pricing cards)
1
2
3
<div class="grid-3">…</div>.grid-3-xl · Two columns, three at 80rem+ (projects page)
1
2
3
<div class="grid-3-xl">…</div>.grid-4-xl · Two columns, four at 80rem+ (“Why work with me”)
1
2
3
4
<div class="grid-4-xl">…</div>.grid-half · Two equal columns, no gap (bio card)
1
2
<div class="grid-half">…</div>.grid-golden · Golden-ratio split, no gap (homepage hero)
1
2
<div class="grid-golden">…</div>