A website can have good content and still make that content feel difficult to approach. Sometimes the problem is not the words. The headings do not clearly separate ideas, paragraphs stretch too far across the screen, or everything sits at almost the same distance from everything else.
Spacing and typography give content a visible structure. They help explain which ideas belong together, which part comes next, and where someone can pause before continuing.
This is a practical look at a few decisions used in this portfolio. The values are examples from the implementation, rather than universal rules or results from a usability study.
Give headings a clear job
The page title should explain the main subject. Section headings should divide that subject into useful parts, and smaller headings should belong to the section above them.
On writing pages here, the shared template renders the title as the one H1. The MDX body starts with H2, and H3 is available for subsections. That keeps the document hierarchy meaningful before any visual styling is applied.
The visual hierarchy then reinforces the structure. The title is larger and heavier, the H2 headings are easier to scan than the surrounding paragraphs, and the body text stays consistent. I do not need a different typeface for every level to make that distinction.
The portfolio uses locally hosted Figtree at weights 400, 600 and 700. Regular text does most of the reading work, while the heavier weights draw attention to headings and actions. Keeping that small set of weights makes the system easier to use consistently across pages.
Use spacing to show relationships
A section heading needs enough space above it to signal a new idea, but it should still feel connected to the paragraph that follows. If the space below a heading is larger than the space above it, that relationship can become less obvious.
The writing styles use a larger gap before H2 headings and a smaller gap after them:
.body h2 {
margin: 3rem 0 1rem;
line-height: 1.3;
}
.body p {
margin-block: 1.25rem;
}
Those are the values in the shared writing stylesheet. The difference between the heading gap and the paragraph gap gives a section more presence without adding a divider to every change of thought.
The same principle applies to cards and forms. Related elements should feel grouped. Separate groups need a little more breathing room.
The following comparison is an illustration of spacing choices, not a measured before-and-after result:
Illustration A: tighter spacing
A project update
The same short message can feel more compact when the heading, text, and container edges sit close together.
Illustration B: more breathing room
A project update
The same short message can feel more compact when the heading, text, and container edges sit close together.
Neither version is automatically right for every interface. A dense data view and a longer reading page have different needs. The useful question is whether the spacing supports the task and makes the relationships clear.
Keep long text in a reading column
The main site container can grow to 1180 pixels, which gives project layouts room for images and supporting information. A long article does not need to use all of that width.
Writing pages use a reading column capped at 720 pixels. The title, body and supporting links share that column, without a second padded card narrowing the text. On smaller screens, the site container still leaves space at the edges.
The same idea expressed in plain CSS looks like this:
.reading-column {
width: 100%;
max-width: 720px;
margin-inline: auto;
}
In the implementation, that wrapper uses Tailwind utilities. The important part is the limit, rather than whether it is written as a class or a utility. Text should not keep stretching simply because a visitor has a wider screen.
Let font size and line height work together
The writing body uses 17-pixel text at the smaller breakpoint and 18-pixel text from 768 pixels upward, assuming the usual 16-pixel root size. Its line height is unitless:
.body {
font-size: 1.0625rem;
line-height: 1.85;
}
@media (min-width: 768px) {
.body {
font-size: 1.125rem;
}
}
The line height grows with the font size. That is useful when adjusting text without separately recalculating a fixed line-height value.
A heading usually needs a tighter line height than a paragraph because its letters are larger and its lines form one short unit. The body needs more room between lines for continuous reading. Looking at both together is more useful than changing a font-size number in isolation.
Check the layout with real content
A comfortable desktop paragraph can become a very tall block on a phone. A short heading can fit neatly while a real title wraps into three lines. Code and tables can be wider than ordinary prose.
That is why the writing layout is checked with the actual content, including long headings, code blocks and tables. Wide content scrolls inside its own container so it does not widen the page. Images reserve their dimensions, and the same text hierarchy remains in place as the available width changes.
The aim is a layout that gives the words a clear structure and leaves enough room to read them. A few consistent choices about type, width and spacing can do much of that work while still fitting the visual language of the rest of the website.
These are the same decisions I work through when designing and building custom websites. The Pixel Studio Web case study shows how the interface connects to a working inquiry and lead-management flow.