The tram up to Graça was so full we gave up and walked, which turned out to be the point: every corner had another tiled wall and another view down to the river.
Travel journal
Day cards, a route and places from quick notes you jot on the go.
What it shows
Keep a travel journal with marks of your own.
What you learn
A wide page, a route strip from one line, emoji by name, a map you write as text, a block rule for each day's card, a grid of cards, lines split into chips, an embed that loads on a click, a page's own CSS.
Try this
- Change
seain the palette to #6741d9, and the route, the stops and the links turn purple. - Copy a whole +++ … +++ day and change its Day line, and a new card appears in the grid.
The fog never lifted, and the painted palace floated in it like something half remembered. We had the moss-covered garden paths nearly to ourselves.
The whole town fits inside its walls, and you can walk all the way round on top of them in forty minutes. There is no rail on the inside, so Kit walked it twice.
We crossed the top deck of the iron bridge on foot while the river turned copper below. Dinner was grilled sardines at a pavement table, and a waiter who insisted we try the green wine.
The strip under the title is one line, route Lisbon → Sintra → …, cut at each arrow. Each stop becomes a pill, and the route's own CSS draws a line behind them.
The map is a few lines of text: each place with its coordinates, then a route through them. Drag a pin on the map and its line in the text changes.
Each day is the text between two +++ lines, and one block rule makes it a card. The :::: days block around them sets the cards in a grid. Inside a card, the weather line is cut at each · into chips, and :sunny: is an emoji written by its name.
- Add
→ BragaafterPortoin the route line. A new stop appears on the strip. - Copy the Sintra day, from its first
+++to its last, and change it toDay 5 · Coimbra · Wed 13 May. A new card appears in the grid. - Change
:cloud:to:umbrella:in Sintra's weather line. The emoji changes with it. - Add
Braga @ 41.5454, -8.4265 teal -- day tripto the map. A new pin appears. - Change
paperin the palette to #eef6ff. The style block at the end uses it for the page, so the page turns pale blue.
Next: Group chat turns lines of a chat into bubbles; Recipe card lays out a card in two columns.
~~~ selfscribe
# Lesson: Keep a travel journal with marks of your own.
# You learn: a wide page, a route strip from one line, emoji by name, a map you write as text, a block rule for each day's card, a grid of cards, lines split into chips, an embed that loads on a click, a page's own CSS.
# Try this: change `sea` in the palette to #6741d9, and the route, the stops and the links turn purple.
# Try this: copy a whole +++ … +++ day and change its Day line, and a new card appears in the grid.
# summary: Day cards, a route and places from quick notes you jot on the go.
# category: writing
# tags: document, simple, home, creative
# uses: map, cards
use markdown
set title Travel journal
# A wider page, so two day cards fit side by side.
set style wide
# ---- Colours, each with its shade for dark pages -------------------------------------------
palette
sea #0c7c7b dark #3cc7c6
sun #f59f00
clay #c2410c dark #ff8a4c
tile #1d4e89 dark #8fb8ea
paper #fffaf2 dark #1d1a16
line color-mix(in srgb, currentColor 11%, transparent)
# ---- ":sunny:" anywhere: an emoji by its name ------------------------------------------------
inline :_: -> emoji bound
# ---- "embed: URL" on its own line: a card with a Load button (nothing loads by itself) --------
line embed: _ -> embed
# ---- ```map … ```: places and a route, written as text and drawn as a map ---------------------
block ``` map ... ``` -> map verbatim
# ---- ```style … ``` at the end: CSS for this page only (warm paper, tile-blue headings) --------
block ``` style ... ``` -> style verbatim
# ---- The cover: "= Title", "by …" and "route A → B → C" -------------------------------------
line = _ -> div.tj-title { font: 600 2.9em/1.02 var(--doc-font, Georgia, serif); letter-spacing: -0.025em; color: var(--tile) } as tj-title
line by _ -> div.tj-byline { margin: 0.45em 0 1.6em; font-style: italic; opacity: 0.7 } as tj-byline
# split cuts the line at each arrow; each stop is a pill on a line drawn behind them all.
line route _ -> div.tj-route split "→" span.tj-stop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5em; margin: 0 0 1.2em; background: linear-gradient(var(--sea), var(--sea)) center / 100% 2px no-repeat; font: 600 0.82em/1 var(--doc-font-ui) } as tj-route
class tj-stop { padding: 0.55em 1em; border-radius: 999px; border: 2px solid var(--sea); background: var(--paper); color: var(--sea) }
# ---- The days: ":::: days … ::::" sets the cards in a grid; "+++ … +++" is one day ---------
block :::: days ... :::: -> div.tj-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(22em, 1fr)); align-items: start; gap: 1.2em; margin-top: 1.6em } as tj-days
block +++ ... +++ -> article.tj-day { padding: 1.2em 1.35em 0.6em; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--sun) 5%, var(--paper)) } as tj-day
# ---- Inside a day: "Day 1 · Place", "## A title", "weather a · b", "* a highlight" ------------
line Day _ -> div.tj-dayhead keep { font: 700 0.7em/1 var(--doc-font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.5em } as tj-dayhead
line ## _ -> div.tj-daytitle { font: 600 1.45em/1.15 var(--doc-font, Georgia, serif); letter-spacing: -0.01em; margin-bottom: 0.65em; color: var(--tile) } as tj-daytitle
line weather _ -> div.tj-chips split "·" span.tj-chip { display: flex; flex-wrap: wrap; gap: 0.35em; margin-bottom: 0.9em } as tj-weather
class tj-chip { padding: 0.42em 0.7em; border-radius: 8px; background: color-mix(in srgb, currentColor 6%, transparent); font: 0.74em/1 var(--doc-font-ui) }
line * _ -> div.tj-hl { margin: 0.35em 0; padding-left: 1.6em; text-indent: -1.6em; font-size: 0.95em } as tj-highlight
# ---- A line in double quotes: something overheard; "€ …": what the day cost ------------------
line " _ " -> div.tj-quote { margin: 0.9em 0; padding-left: 0.9em; border-left: 3px solid var(--clay); font-style: italic } as tj-quote
line € _ -> div.tj-spent keep { margin: 0.8em 0 0.3em; padding-top: 0.6em; border-top: 1px dashed var(--line); font: 600 0.75em/1 var(--doc-font-mono); opacity: 0.65; text-align: right } as tj-spent
~~~
= Salt, tiles and trams
by Ana and Kit · a week by train from Lisbon to Porto · 9–15 May 2026
route Lisbon → Sintra → Óbidos → Coimbra → Porto
```map
height: 220
Lisbon @ 38.7139, -9.1394 orange -- days 1 and 2
Sintra @ 38.7980, -9.3880 teal -- day 3
Óbidos @ 39.3606, -9.1571 teal -- day 4
Coimbra @ 40.2033, -8.4103 teal -- day 5
Porto @ 41.1496, -8.6110 orange -- days 6 and 7
route By train: Lisbon -> Sintra -> Óbidos -> Coimbra -> Porto teal
```
:::: days
+++
Day 1 · Lisbon · Sat 9 May
## Hills, and then more hills
weather :sunny: 24 °C · 👣 18 400 steps · :heart_eyes: smitten
The tram up to Graça was so full we gave up and walked, which turned out to be the point: every corner had another tiled wall and another view down to the river.
* :coffee: Two *bicas* before 9 am, standing at the counter like locals.
* :art: A whole street of tiles in blues we had no names for.
* :sunflower: Sunset from the miradouro, sharing a bench with a guitar player.
" Stay long enough and the city tells you where to go. "
€ spent today: 46.20
+++
+++
Day 3 · Sintra · Mon 11 May
## Palaces in the fog
weather :cloud: 17 °C · 👣 22 100 steps · :thinking: enchanted
The fog never lifted, and the painted palace floated in it like something half remembered. We had the moss-covered garden paths nearly to ourselves.
* :key: Found the well that spirals down nine floors.
* :cake: Pastries from the famous shop, eaten on the train back.
€ spent today: 61.80
+++
+++
Day 4 · Óbidos · Tue 12 May
## Once round the walls
weather :sunny: 21 °C · 👣 14 700 steps · :relieved: unhurried
The whole town fits inside its walls, and you can walk all the way round on top of them in forty minutes. There is no rail on the inside, so Kit walked it twice.
* :yum: Cherry liqueur in a chocolate cup, then the cup.
* :book: A bookshop inside an old church, with shelves up to the altar.
€ spent today: 38.40
+++
+++
Day 6 · Porto · Thu 14 May
## The bridge at golden hour
weather :sunny: 22 °C · 👣 15 900 steps · :tada: sad to leave
We crossed the top deck of the iron bridge on foot while the river turned copper below. Dinner was grilled sardines at a pavement table, and a waiter who insisted we try the green wine.
* :wine_glass: A port tasting in a cellar across the river.
* :books: A bookshop so beautiful there was a queue to get in.
embed: https://www.openstreetmap.org/#map=15/41.1405/-8.6110
€ spent today: 58.50
+++
::::
## How it's made
The strip under the title is one line, `route Lisbon → Sintra → …`, cut at each arrow. Each stop becomes a pill, and the route's own CSS draws a line behind them.
The map is a few lines of text: each place with its coordinates, then a `route` through them. Drag a pin on the map and its line in the text changes.
Each day is the text between two `+++` lines, and one block rule makes it a card. The `:::: days` block around them sets the cards in a grid. Inside a card, the weather line is cut at each `·` into chips, and `:sunny:` is an emoji written by its name.
## Try it yourself
1. Add ` → Braga` after `Porto` in the route line. A new stop appears on the strip.
2. Copy the Sintra day, from its first `+++` to its last, and change it to `Day 5 · Coimbra · Wed 13 May`. A new card appears in the grid.
3. Change `:cloud:` to `:umbrella:` in Sintra's weather line. The emoji changes with it.
4. Add `Braga @ 41.5454, -8.4265 teal -- day trip` to the map. A new pin appears.
5. Change `paper` in the palette to #eef6ff. The style block at the end uses it for the page, so the page turns pale blue.
Next: *Group chat* turns lines of a chat into bubbles; *Recipe card* lays out a card in two columns.
```style
/* The journal's own page, in colours from the palette: warm paper, tile-blue headings, teal links. */
.self-doc {
--doc-bg: var(--paper);
--doc-heading: var(--tile);
--doc-link: var(--sea);
--doc-quote-bar: var(--sun);
}
```