CSS reference
Generated from the doc comments in the site's two stylesheets. The homepage's is assets/home.css, inlined into index.html by tools/minify.py and holds all of that page's styling; the inner pages share assets/pages.css. Each entry is tagged with what it is: a rule, a modifier or state of one, a hook that script sets, a component-scoped custom property (var), or a breakpoint.
Tokens
The custom properties on :root. assets/home.css and assets/pages.css each carry the set and must agree; the values here are read from the source, and the descriptions from the @token tags in pages.css.
| Token | Value | At 768px and below | What it is for |
|---|---|---|---|
| Color | |||
--ink-page | #061e45 | Moonstruck Navy. The page field: the reading sections, and what shows behind an overscroll. | |
--ink-panel | #061e45 | Moonstruck Navy again, as the role of panels, cards, the navigation bar and photo mats, which a hairline lifts off the field. | |
--ink-well | #061e45 | Moonstruck Navy again, as the role of wells, the footer, badges, and what shows behind a photograph while it loads. | |
--ink-page-rgb | 6 30 69 | Moonstruck Navy as channels: the wash over a photographic section, and the hero haze. | |
--ink-well-rgb | 6 30 69 | Moonstruck Navy as channels, for overlays and scrims (0.28 to 0.96). | |
--chart-navy | #061e45 | Moonstruck Navy again, the same hex, kept as its own token because the chart and sea-section rules already read it by name. | |
--chart-navy-rgb | 6 30 69 | The same as channels, for the legibility halo on type set over a chart. | |
--cream | #f1faee | Honeydew, as the role of headlines and every large figure. | |
--cream-bright | #f1faee | Honeydew, as the role of body copy, lists and UI text. The same value as --cream. | |
--tint-rgb | 241 250 238 | Honeydew as channels, the tint. One hue carries every rule and every secondary voice. | |
--text-soft | rgb(241 250 238 / 0.82) | The tint at 0.82. Supporting text and section leads. | |
--text-mute | rgb(241 250 238 / 0.7) | The tint at 0.7. Muted small print and the tracked label voice. | |
--text-faint | rgb(241 250 238 / 0.6) | The tint at 0.6. The text floor: a booked or turnaround day in the calendar. | |
--line-rule | rgb(241 250 238 / 0.16) | The tint at 0.16. Hairlines between rows, facts and notes, and the edge that lifts a panel off the field. | |
--line-soft | rgb(241 250 238 / 0.08) | The tint at 0.08. The quietest edge, where a rule would otherwise read as a boundary. | |
--cyan | #a8dadc | Frosted Blue. Data and nothing else: chart pins, key numerals, open days, the focus ring. | |
--cyan-rgb | 168 218 220 | Frosted Blue as channels: an open day's wash, the on-hold stripe, the rate table's glow. | |
--cyan-muted | #a8dadc | Frosted Blue again: the palette has no darker blue. Text selection and gauge fills. | |
--action | #d7283a | Punch Red (see --rust). The fill of the one booking action; no other button takes a fill. | |
--action-ink | #f1faee | Honeydew. The label on that fill: 4.62:1 (see DESIGN.md, The One Action Rule). | |
--mark-sea | #457b9d | Cerulean. The sea at the foot of the mark, under its band of tint. | |
--btn-plate | rgb(var(--tint-rgb) / 0.08) | The plate behind a quiet action: .btn-dark, and Call and Email on a section. Honeydew at 8%, a step up from the field. | |
--bar-plate | var(--ink-well) | The plate behind the floating bar's own Call and Email. Opaque, because what is behind it is the page scrolling past rather than a field. | |
--rust | #d7283a | Punch Red, deepened so a Honeydew label on it clears 4.5:1. The one red on the site: the booking action's fill, a stale reading and the 404 lifering. 3.33:1 on the field: a wash, a border and the 24px figure, never small type. | |
--rust-rgb | 215 40 58 | Punch Red as channels, for that wash. | |
--mist | rgb(69 123 157 / 0.25) | The Cerulean haze inside the rate table. Homepage only. | |
--mist-clear | rgb(69 123 157 / 0) | The same color at zero alpha, so the haze's gradients fade without graying. Homepage only. | |
--nav-glass | rgb(6 30 69 / 0.82) | The plate behind the hero headline on a phone. | |
--nav-glass-rgb | 6 30 69 | The same as channels. | |
| Type | |||
--font-display | 'Playfair Display', 'Playfair Fallback', Georgia, serif | Playfair Display, then its metric-matched fallback. Set italic: headings, and every large figure. | |
--font-body | 'Barlow', 'Barlow Fallback', system-ui, sans-serif | Barlow, then its metric-matched fallback. Everything you read: paragraphs, leads, links in prose. | |
--font-label | 'IBM Plex Mono', 'Plex Mono Fallback', ui-monospace, monospace | IBM Plex Mono, then its metric-matched fallback. The tracked uppercase label voice: navigation, buttons, captions, chart furniture, calendar days. | |
--type-display | clamp(3rem, 8vw, 5.75rem) | Display: the homepage hero headline only. | |
--type-headline | clamp(2.375rem, 9vw, 3.625rem) | Headline: section titles. | |
--type-subhead | clamp(1.875rem, 7vw, 2.75rem) | Subhead: a second heading inside a section. | |
--type-stat | 3.25rem | Stat: the one figure in a view that is allowed to be loudest. On the homepage it is the rate for an ordinary week, which the two holiday rows answer a step down at Title L. | |
--type-title-lg | 2.125rem | Title L: closing index headings and the homepage's wide plate names. | |
--type-title | 1.75rem | Title: every card and entry heading. | |
--type-title-sm | 1.5rem | Title S: small titles, and every tile title on a phone. | |
--type-lead | 1.1875rem | Lead: the one paragraph that introduces a section, set in the body face. | |
--type-serif | 1.25rem | Serif text: serif running text inside a component. | |
--type-body | 1.0625rem | Body: Barlow 400 paragraphs. | |
--type-body-navy | 1.125rem | Body on navy: one step up, because light text on a dark field reads smaller. The closing paragraph; the homepage's destination blurbs. | |
--type-small | 0.875rem | Small: secondary facts and credits. | |
--type-label | 0.75rem | Label: the floor for tracked uppercase annotations. | |
--leading-serif | 1.5 | Line height for serif running text. | |
--leading-body | 1.65 | Line height for body copy. | |
--leading-title | 1.15 | Line height for titles. | |
--head-lead | 1.25em | Space over a heading that follows content in the same flow (The Heading Leads Rule). | |
--head-trail | 0.4em | Space under a heading, binding it to what it introduces. | |
| Motion | |||
--ease-reveal | cubic-bezier(0.22, 0.61, 0.36, 1) | The one easing curve for entrances: soft, decelerating. | |
| Washes | |||
--wash-hero-top | 0.5 | The destination hero scrim's alpha at the top of the photograph, where the sky is brightest and the headline crosses it. Destination pages only. | |
--wash-hero-mid | 0.8 | The same scrim two-fifths of the way up, under the lede. | |
--wash-hero-foot | 0.96 | The same scrim at its foot, where the photograph meets the page. | |
--wash-drawing | 0.32 | The opacity of the layout drawing behind the homepage's layout section, solved so the lead clears 4.5:1 over its brightest line. Homepage only. | |
| Grid and measure | |||
--grid-cols | 9 | Columns in the page grid. Informational; the spans below are what rules use. Homepage only. home.css only | |
--grid-max | 1040px | Full width of the nine-column page grid. | |
--gutter | 32px | 24px | Gutter between columns. |
--col | calc((var(--grid-max) - 8 * var(--gutter)) / 9) | One column, derived from the two above. | |
--span-3 | calc(3 * var(--col) + 2 * var(--gutter)) | Three columns and their two gutters. Spans 4 to 8 follow the same pattern. | |
--span-4 | calc(4 * var(--col) + 3 * var(--gutter)) | Four columns. | |
--span-5 | calc(5 * var(--col) + 4 * var(--gutter)) | Five columns: the measure for a lede. | |
--span-6 | calc(6 * var(--col) + 5 * var(--gutter)) | Six columns. | |
--span-7 | calc(7 * var(--col) + 6 * var(--gutter)) | Seven columns. | |
--span-8 | calc(8 * var(--col) + 7 * var(--gutter)) | Eight columns. | |
--measure-read | var(--span-6) | Reading container (span 6). | |
--measure-mid | var(--span-7) | Mid container (span 7). | |
--measure-wide | var(--span-8) | Wide container (span 8). | |
--measure-full | var(--grid-max) | The whole grid (span 9). | |
| Spacing | |||
--section-x | clamp(72px, 7.5vw, 120px) | 24px | Horizontal page margin. The only source of it: anything that breaks the margin computes from this. Above a phone it grows with the window, 7.5% of it, from 72px to 120px, so the column has air around it on a tablet and a laptop, not only once the grid stops growing. |
--section-y | 56px | 64px | Default vertical section padding. |
--section-y-lg | 96px | 64px | Emphasis step: the homepage's availability section, and the main sections of these pages. |
--section-y-xl | 128px | 80px | Emphasis step for the closing booking section. |
--nav-h | 89px | 82px | Height of the fixed nav bar: hero top padding, sticky offsets and scroll margins clear it. These pages only. pages.css only |
assets/home.css
This file is the source and is never served. tools/minify.py copies it, with the comments and spacing taken out, into the one <style> block in index.html, so the first paint does not wait for a second request (ARCHITECTURE.md's *Loading* section has the reasoning). Edit this file, run that script, and commit both. Never write a closing style tag in a comment here: the HTML parser would end the element there once this is inlined.
The page began as an export from a design tool, which gave every element its own style attribute. Those styles are here now, in the Page sections, in page order: the markup carries no style attribute. After them come the media queries, pseudo-elements, hover and focus states, keyframes, the elements that assets/home.js writes (thumbnails, calendar days), and rules keyed on the state that home.js sets in classes and data attributes. Many of those still carry the !important they needed when the base styles were inline; it is harmless, and taking it out is a change to test, not a tidy.
Elements are addressed by data attributes (data-tile, data-rate-row, data-hero-stage), not classes: the attribute names the element's job on the page. Classes are kept for the few things script toggles (.scrolled, .menu-open, .active).
The tokens in :root are the site's one set. assets/pages.css mirrors them for the inner pages and documents each one; the two blocks must be kept in step (tools/build-docs.py reports any difference).
Doc comments use the tags described at the top of assets/pages.css (@section, @rule, @hook, @var,
Typefaces
The three families, served from this site (assets/fonts/, with each family's SIL Open Font License beside it), so a page load contacts nobody else for its type. They are the Latin subsets Google Fonts served, which is every file any page ever asked for; a character outside that range falls to the stand-ins below. Playfair Display is one variable file, italic only, because the serif is only ever italic (The Three Voices Rule). font-display is swap, and the stand-ins are metric-matched, so text paints at once and the swap does not re-wrap it. The files never change in place (a new cut gets a new name), which is what lets _headers cache them for a year.
| rule | @font-face 'Playfair Display' | Italic, 400 to 900 in one variable file. Headlines and figures. |
| rule | @font-face 'Barlow' | 400 and 500. Everything read at length. |
| rule | @font-face 'IBM Plex Mono' | 400 and 500. The label voice. |
See DESIGN.md, Typography
Font fallbacks
Metric-matched stand-ins, measured against the webfonts, so the swap does not re-wrap the page.
| rule | @font-face 'Playfair Fallback' | Georgia at 85.2%, measured against Playfair italic 700, the headline weight. |
| rule | @font-face 'Barlow Fallback' | Arial at 94.4%. Body copy. |
| rule | @font-face 'Plex Mono Fallback' | Courier New at 100%. The label voice. |
Base
The reset, link colors per surface, focus, and the accessibility helpers.
| rule | * | Border-box sizing and no default margins. |
| rule | body | Moonstruck Navy behind everything, so an overscroll never flashes white; lining figures site-wide (The Plain Figures Rule). |
| rule | h1 to h4; p, li | Balanced headings, and paragraphs that do not end on a lone word. |
| rule | a | the tint's soft step (0.82), turning to --link-hover. |
| var | --link-hover | The hover color for links on a surface. Unset, it is Honeydew. |
| rule | [data-dest-link], the footer's mail link | Small targets keep their drawn size and grow an invisible 44px hit area from an ::after with a negative inset (The Hit Area Rule). |
| rule | a[target="_blank"]::after | Every link that leaves the site carries an up-right arrow after its words, so that a new tab is never a surprise. Drawn as a mask in currentColor, so it takes the link's own color and its hover. Not on a link that is a mark or a photograph, nor on the buttons that draw the arrow themselves. |
| rule | [data-pdf-size] | The chip after a brochure's name: the kind and the size, PDF · 1.0 MB, in a 1px currentColor outline at 0.8em, so that a link to a file reads as one. It never breaks, so on a phone it drops to its own line whole. tools/stamp-brochure.py keeps the figure true. |
| rule | :focus-visible | The site-wide ring: 3px Frosted Blue, 3px offset; Honeydew on the ink surfaces and over the hero. |
| rule | [hidden] | Hidden means not displayed, whatever display another rule asks for: the menu, the two dialogs and the open windows all wait behind this attribute. |
| rule | [data-action]:hover | Call, Email and Book (under the calendar, in the floating bar, in the menu) turn Honeydew. |
| rule | [data-outline]:hover | The outlined buttons on navy fields draw their border in full and take a 10% Honeydew wash. |
| rule | .skip-link | "Skip to content", off screen until it takes focus. |
| rule | .vh | Visually hidden, still read aloud: calendar day states, photo counts. |
Heading rhythm
The Heading Leads Rule: a heading takes its space from above, not below, so it binds to the block it introduces instead of floating between two. Written with :where(), so it carries no specificity and every authored heading margin on the page still wins; it is the floor, not an override.
The lead is only on a heading that follows a sibling in the same flow. A heading that opens a container already has the container's padding over it, and adding to that would double-count. In block flow the lead collapses with the previous element's own bottom margin and the larger wins, so it raises a short gap and leaves a long one alone.
| rule | :where(h1..h4) | The trail: 0.4em under every heading. |
| rule | :where(* + h2..h4) | The lead: 1.25em over a heading that follows content. |
Page
Each element's own look, section by section in page order, keyed on data attributes as the rest of this file is. These rules come before the state, breakpoint and print rules below, which override them.
| rule | [data-page] | The page's wrapper: the body face in Cream Bright on the page ink, and the accent tokens the crew cards read. |
| rule | [data-shade] | The tint laid over a section's chart or photograph. |
| rule | [data-content] | What sits above the tint. |
| rule | [data-head] | A section's heading block: its h2 and, in most, a lead beside or under it. |
Page: Book
The primary action, in the action color, wherever it stands: the drawer, under the calendar, the floating bar.
| rule | [data-menu] > [data-action], [data-cal-actions] > [data-primary], [data-float-cta] > [data-primary] | Book. |
Page: hero
| rule | [data-hero-stage] | At least 80% of the window's height, never under 500px, with the headline near its top. |
| rule | [data-hero-title] | Display size, Playfair at 900, in Cream. |
| rule | [data-hero-badge] | The strapline, an ink plate at the stage's foot. |
Page: the boat
| rule | [data-boat-head] | The headline and lead beside the round photograph at anchor. |
| rule | [data-plate-ar] | A photograph's aspect ratio, which the plate it sits in is cut to (--plate-ar). |
Page: gallery and overlays
| rule | [data-gallery-stage] | The photograph on show, at 3:2, with a step button either side. |
| rule | [data-thumbs] | The row of thumbnails under it, which scrolls sideways. |
| rule | [data-overlay] | The two full-window overlays: zoom, over any plate, and the gallery's viewer. |
Page: layout
| rule | [data-layout-wash] | The line drawing behind the section: wide, or turned bow-up behind the plan on an upright phone. |
| rule | [data-layout-plan] | The deck plan, no wider than two-thirds of the window. |
| rule | [data-spec-plate] | The particulars' place under the plan. |
Page: destinations
| rule | #destinations, #sailing-school, #book | Cream Bright on the chart's sea, tinted Chart Navy. |
| rule | [data-dest-card] | A destination's photograph at 3:4, its name on a Chart Navy gradient at its foot. |
| rule | [data-dest-count] | How many anchorages its page charts, the figure in Cyan. |
| rule | [data-itineraries-row] | The line under the cards that leads to the sample itineraries. |
Page: sailing school
| rule | [data-asa-grid] | The case for ASA instruction beside the courses taught aboard. |
Page: Captain360
| rule | [data-c360-lockup] | The program's lockup beside what it is. |
| rule | [data-crew-card] | A card: the captain, then what each charter includes and what the captain does; the second and third arrive 100ms and 200ms after the first. |
| rule | [data-c360-note] | The line under the cards: who cooks, which is nobody aboard. |
Page: rates
| rule | #rates | The rates over their photograph, under the page ink at 86%. |
| rule | [data-rate-terms] | What each charter includes, and what it leaves out. |
| rule | [data-shorter] | Shorter stays and early arrivals: two ink panels. |
| rule | [data-charter-smarter-card] | Layaway, an ink panel with Charter Smarter's mark off its left edge. |
Page: booking and availability
| rule | #booking | How booking works. |
| rule | #availability | The calendar. |
| rule | [data-cal-legend] | The key over the calendar: a 14px swatch for each state a day can be in. |
| rule | [data-cal-swatch] | One swatch, drawn as the calendar draws that state (data-cal-day). |
Page: closing section
| rule | #book | The ask, beside the bow photograph, on the chart's sea under Chart Navy at 85%. |
| rule | #book h2 | The headline, scaled to the window through --closing, with its second line at 60%. |
| rule | [data-book-primary] > a | Start dreaming, in the action color. |
| rule | [data-book-actions] | Broker partners, Email and the telephone, outlined. |
State hooks
Small rules keyed on what assets/home.js writes. Each value is the string "yes" or "no".
| hook | [data-weather][data-wx-faded="yes"] | The footer weather is between two readings. |
| hook | [data-hero-img][data-loaded="yes"] | The hero photograph has loaded and fades in over 0.6s, the short end of the reveal range: Chrome times the largest paint at a fade's end, so each second here is a second of LCP. Set by the image's own onload attribute, so a photograph already there is marked before the first frame. |
| hook | [data-hero-img][data-fade="no"] | The photograph loaded before the browser had reported a first paint (cached, or preloaded in time), so it arrives with the page and does not fade. The same onload attribute says so, from the paint timeline, because a transition starts from the last computed style, not the last painted one. Important, to outrank reduced motion's 0.2s. |
| hook | [data-bg-wait][data-bg-on="yes"] | A section's background image is wanted: the section is within two screens or so. Until then the image is withheld, so the five of them, a megabyte together, are not fetched with the page. Only where script runs: without script, or where (scripting: enabled) is unknown, they load with the page, and a printed page gets them all. |
| hook | [data-float-cta][data-cta-shown="yes"] | The floating Call / Email / Book bar is shown. Hidden, it is visibility: hidden as well as transparent, because pointer-events alone leaves its links in the tab order. |
| rule | ::selection, html | Frosted Blue selection, and a scrollbar in the palette. |
| hook | html[data-settled="yes"] | The page has loaded, and in-page links scroll smoothly from here on. Not before: a page opened on a fragment is scrolled by the browser as soon as it finds the target, and a smooth scroll goes on chasing where the target was before the calendar was written above it. |
| rule | section[id], #book, #availability | Anchored sections stop clear of the fixed nav: 89px, 83px on a phone. |
Phone layout
One block of overrides per breakpoint, each rule beating a desktop one; they are all !important, from when the desktop styles were inline and had to be outranked. At 768px: every grid goes to one column, the gallery stage runs edge to edge, the floating bar becomes a full-width row along the bottom, and the footer stacks and centers. The hero has a phone shape of its own; it is in the Hero section below.
| breakpoint | 768px | The phone layout. |
| breakpoint | 430px | The calendar drops from two months across to one. |
| var | --cta-vv | How far a phone's toolbar or keyboard has pushed the visible bottom edge up. Written by home.js. |
Reveal
Slow, soft, once. A block starts low and transparent and rises over 0.8s when home.js marks it as entered. The variants are further down: the slide-ins, the polaroid plates, and the gallery stage, which sharpens from a blur instead of moving.
Entrances fail open. Nothing is hidden unless the root element carries data-entrances, which the one-line script in the head sets and takes off again if home.js has not started within four seconds or fails to load. So a visitor without script, or behind a blocker, reads the whole page without its entrances. The attribute is matched inside :where(), so these rules keep the specificity they had.
| rule | .reveal | The resting state, while entrances are armed. |
| hook | [data-entrances] | On the root element: "armed" by the head script, "live" once home.js is watching. Absent, nothing waits. |
| hook | .reveal[data-revealed="yes"] | Entered. Written once by the reveal observer in home.js, never removed. |
Hero
Hero photo (Moonstruck under sail, from overhead), anchored 75% across and 54% down: object-position pins that point of the plate to the same point of the box, so the boat holds the right of the hero at every size while the sides and the empty water crop away. The headline reads on the left, over open water, under a haze in the page field that holds from the left edge to where the headline ends (--hero-haze-solid) and then falls away on a smooth curve at least 200px long (--hero-haze-len), so there is no edge to see. Under 600px the copy leaves the photograph, so the haze is dropped and the band's cut is pinned at 50%, which puts the boat in its middle. The band starts under the nav rather than behind it (--hero-nav), so the logo and the burger sit on the field and the whole boat shows between the bar and the headline: 30px of navy under the bar's row, the band, then 32px of navy over the headline. Behind the bar, the boat's bow sat under the logo.
The stage has a floor, not a height: 80vh and never under 500px (67vh and 470px on a tablet, 62vh between 520px and 760px held upright). Where a short window leaves too little room for the headline and the badge, the stage grows to hold them, by up to 78px, and the plate is drawn wider than --hero-plate-w allows for, so the bow lands up to 12px further left, inside the copy's 24px margin.
The copy stops short of the boat rather than trusting the eye: --hero-boat-left works out where the bow sits in the box from --hero-plate-w (which the sizes attribute in index.html repeats) and the boat's reach of 5.2% of the plate's width. Change either number and remeasure the photograph.
| var | --hero-copy-right | Where the headline's first line ends: the page margin plus 6.8 times the display size. |
| var | --hero-plate-w | How wide cover draws the 3:1 plate over the stage. |
| var | --hero-haze-solid | Where the haze stops holding at full strength: the end of the headline's first line, or 32px short of the bow where the boat sits closer than that. |
| var | --hero-haze-len | How long the haze takes to clear: up to 60px past the bow, and never under 200px. |
| var | --hero-boat-left | Where the boat's bow falls in the box; the copy ends 24px short of it. |
| var | --hero-band | The height of the photograph's band on a phone: 46% of the window, never under 260px. The floor was 300px until the band moved under the nav; 260px keeps the headline on the first screen of a 568px phone. index.html repeats it in the band's sizes and in its preload. |
| var | --hero-nav | Where the band starts on a phone: the bar at rest, 30px of padding above and below the 44px burger. |
| rule | [data-hero-haze] | The haze: Moonstruck Navy at 90% at the left edge, 72% out to --hero-haze-solid, then clear over --hero-haze-len on a smoothstep curve. |
| rule | [data-hero-img] | The photograph, anchored on the boat: 75% across, 54% down; 50% across under 600px. |
| breakpoint | 600px | The phone shape: the photograph becomes a band, centred on the boat, and the copy moves below it onto the page field. |
| breakpoint | portrait, 769px and up | A tablet held upright gets a shorter stage floor: 62vh, between 520px and 760px. |
See DESIGN.md, Hero Haze
The boat: header
A three-column round portrait against six columns of headline and lede, each centered on the other. The portrait leads on the left, which turns the hero's arrangement around: there the type is on the left and the boat on the right, and the eye crosses the page the other way as it comes down. The order is set here rather than in the markup, because on a phone the portrait belongs under the headline it illustrates, which is the order the source is written in. The nine columns reach full size at 1224px; under that the same split goes fluid.
| breakpoint | 769px | The portrait moves to the left of the copy. |
| breakpoint | 769px to 1223px | The fluid split. The portrait is three columns of the width there is, and gives way first when the headline needs the room. |
| breakpoint | 1224px | Derived, not chosen: the first width at which --grid-max plus twice --section-x fits. |
Captain360
The cards carry a Moonstruck Navy panel: the tint's mute step cannot clear 4.5:1 on a photographic field at any wash alpha. Measured, not guessed. Three equal cards: the captain, who is still to be named, then what the program puts in each charter and what the captain does.
| rule | [data-crew-grid] | The row. position and z-index lift it above the section's Moonstruck Navy wash. |
| rule | [data-crew-grid] > div | A flat Moonstruck Navy panel, 2px radius, no shadow. |
| rule | [data-crew-photo] | The round portrait, and the disc that stands in for one not taken yet. |
| rule | [data-crew-soon] | The waiting disc: Moonstruck Navy under an inset tint ring, its label in the tint's mute step (6.53:1). |
| breakpoint | 920px | One column, capped at 440px. |
See DESIGN.md, The Photographic Field Rule
The sailing school
ASA instruction, on the sea field the destinations use. Two columns: what it is and how to ask, then the four ASA courses taught aboard as a ruled list, number first in the label voice.
| rule | [data-asa-grid] | The two columns. One under 768px (set with the other phone rules above). |
| rule | [data-asa-courses] | The list: a hairline over each course, and one under the last. |
| rule | [data-asa-courses] > div | One course: its number in a fixed column, its name beside it. |
| rule | [data-asa-courses] dt | The number, in the label voice, in Frosted Blue. |
| rule | [data-asa-courses] dd | The course's name, in the serif. |
| rule | [data-asa-logo] | The link over the list that carries the American Sailing Association's logo to its site. It is the size of the logo, so the focus ring hugs the mark and not the column. |
| rule | [data-asa-logo] img | The logo, 46px tall like the footer's marks. Its white-text variant in ASA's own colors: the red is theirs, so it is not recolored to Honeydew by mask. |
Gallery and plate zoom
The stage, the viewer and the zoom dialog are drawn in Page: gallery and overlays. These are the parts that change.
| rule | [data-thumbs] > button | A thumbnail, written by home.js: half strength, with a clear 3px foot. |
| state | [data-thumbs] > button[aria-current="true"] | The photograph on the stage: full strength, and the foot in --accent. |
| rule | [data-zoom-img] | The plate in the zoom dialog, fitted whole inside the window: a window-sized box, with object-fit: contain doing the letterboxing. |
| hook | [data-zoomed="yes"] > [data-zoom-img] | Enlarged: 260% of the window, but never past the file's own pixels. |
| var | --zoom-natural | The file's width, which home.js reads from its name (-2052.webp). |
Layout drawings, held upright
On a phone held upright the accommodation plan and the drawing behind it turn bow-up, so they run down the screen instead of shrinking across it. The plan is a <picture> source on the same condition, and the plate zoom opens its upright cut too (data-zoom-upright, home.js). A phone turned sideways, a tablet and a desktop keep both drawings as they were.
| breakpoint | portrait, up to 768px | The layout section's upright cut. |
| rule | [data-layout-wash="upright"] | The drawing turned bow-up, in the plan's own column: centered on the plan, and 56px wider than it each side, so the blueprint shows around the plan and not behind the list under it, whose height changes with the phone. Not drawn, and so not fetched, anywhere else. |
| rule | [data-layout-wash="wide"] | The landscape drawing behind the whole section, withdrawn there. |
| rule | [data-layout-plan] | The plan's column: the width of the text, at most 460px, in place of the 66% of the window the landscape plan takes. |
Entrances
The reveal's variants. All of them key on data-revealed="yes", and all of them are undone in the reduced-motion block at the foot of this stylesheet.
| rule | [data-gallery-stage].reveal | The gallery stage does not move: it sharpens from gray and blurred over 1.2s. |
| rule | [data-slide-in] | A block that arrives from the left or the right, 90px, over 1s. |
| rule | [data-polaroid] | A boat plate arriving from 70px away. |
| rule | [data-layout-zoom] | The magnifier badge on the layout drawings, which fades in half a second after its drawing. |
The boat: feature field
A continuous two-up field of captioned plates between two full-measure plates. The alley is derived: --measure-full - 2 * --span-4 = 152px, so the tiles sit on column lines 1-4 and 6-9 and the wide plates run the full nine.
| rule | [data-boat-field] | The grid: fluid halves with a 14% alley, exact spans from 1224px. |
| rule | [data-tile] | The polaroid: a Moonstruck Navy mat carrying the plate, with the caption printed on its lip. |
| modifier | [data-tile="wide"] | A full-measure plate: a wider mat and the Lift shadow. |
| modifier | [data-tile="right"] | A right-hand tile: it arrives from the right, a beat after its neighbor. |
| var | --mat | The mat's width: 16px on tiles, 22px on wide plates, 14px on a phone. |
| var | --plate-ar | The plate's proportion, set per tile by its data-plate-ar: 16/9, 4/3 or 8/5. |
| rule | [data-plate] > img | The photograph. A role="button" that opens the plate zoom, hence the zoom-in cursor. |
| rule | [data-zoom-hint] | The round magnifier badge on a plate's corner, darkening on hover and focus. |
| rule | [data-lip] | The lip: title and description read as one unit, tight, with the air above them. |
| rule | [data-lip] p | The description. It runs to a couple of sentences, which is a paragraph and so the sans, not the serif accent line the titles take (DESIGN.md, Serif text). |
| breakpoint | 1224px | Exact spans; the wide lip splits three columns of title against the rest. |
| breakpoint | 768px | One column; every plate arrives from the left; wide plates go 4:3. |
See DESIGN.md, Layout; Shapes
Rate table
A rate table pinned to the chartroom wall: party size down the side, season across the top. It is built from ARIA table roles on a CSS grid, so that at 600px a row can become a header over two cells. Another party size is another data-rate-row.
| rule | [data-rate-table] | The Moonstruck Navy panel. isolation keeps its two pseudo-element layers behind its content. |
| rule | [data-rate-table]::before | The mist: four soft radial gradients, blurred, drifting on a 34s loop (rateMist). Stilled under reduced motion, and held while the table is off screen. |
| hook | [data-rate-table][data-mist="on"] | The table is on screen, so the mist drifts. Written by home.js; "off", or absent, holds it where it is. |
| rule | [data-rate-table]::after | A fine paper grain from an inline SVG turbulence filter, multiplied at 16%. |
| rule | [data-rate-head], [data-rate-row] | One grid for the header and every row: the week, the boat's rate, the rate per person. |
| rule | [data-rate-label] | Season labels in the label voice, in --accent-deep with the tint's mute step as the fallback. |
| rule | [data-rate-pp] | The per-person figure: Playfair 48px, lining tabular figures. Title large (34px) at 600px and below, capped by the column's width on the narrowest phones and under larger browser text. |
| rule | [data-rate-total] | The weekly total, in Barlow at Body size with tabular figures. Small (14px) at 600px and below. |
| rule | [data-rate-inline] | A season label repeated inside each cell. Hidden until the header row goes at 600px. |
| rule | [data-rate-foot] | The footnote under the table, in serif text. |
| rule | [data-rate-terms] | "Included with each charter" and "Not included", four columns against the rest. |
| breakpoint | 600px | Each row becomes its party-size header over two season cells that carry their own label. The header row is clipped, not removed, so the table keeps its column headers for a screen reader. |
See DESIGN.md, Rate Table
How booking works
The four steps between the rate table and the open weeks. It argues for something rather than describing it: the first card is the broker, and two links go to the accredited list.
| rule | [data-steps] | Four cards. Two at 1223px and one at 768px: at 1040px the row gives each card 236px, and a third step down would take it under 200. |
| rule | [data-step] | A Moonstruck Navy panel with an inset tint ring, 2px radius, no shadow. The ring is what keeps a card apart from the field, since the inks are one color. |
| rule | [data-step-num] | The count as a tracked mono label over the name, in the tint's mute step. |
| rule | [data-broker-link] | A mention of a charter broker on the field is a link to the accredited list. |
| rule | [data-step-link] | Only the first card carries one. It is a plain external text link, so it takes the site's external mark after its words like every other one, and carries no arrow of its own. |
Calendar and booking actions
The floating bar hides over the calendar (it would cover the third column below ~1300px), so the same three actions sit under the grid. One Book button in view still holds.
home.js writes the days and gives each its status in data-cal-day; the colors are here. Every numeral clears 4.5:1 on Moonstruck Navy, and no status is carried by color alone: each day also says it in hidden text.
| rule | [data-cal-day] | A day: a square, its numeral centered, answering a change of color in 0.2s. A day that has passed keeps this rule alone: a quiet numeral and no field. |
| modifier | [data-cal-day="open"] | A Frosted Blue wash under a Frosted Blue hairline, Honeydew numeral (7.16:1). |
| modifier | [data-cal-day="booked"] | A struck-through numeral inside a hairline; its panel is the field's own navy. |
| modifier | [data-cal-day="hold"] | A stripe, so that a hold does not rely on its color. |
| modifier | [data-cal-day="unavailable"], [data-cal-day="turnaround"] | A well inside a hairline, the well being the field's navy. A turnaround day is an open day beside a charter, kept clear for the crew. |
| hook | [data-cal-day][data-lit="yes"] | The day belongs to the stay that is chosen: Frosted Blue, Moonstruck Navy numeral (8.08:1). |
| hook | [data-cal-day][data-lit="maybe"] | The day belongs to a stay being pointed at or focused: Frosted Blue at 0.35 under a full hairline, Honeydew numeral: 5.01:1, which is what sets the alpha. |
| rule | button[data-cal-day] | A day a charter can start on is a button; every other day is a plain cell. Its focus ring is Honeydew and sits inside the cell, because Frosted Blue cannot be seen on a lit day. |
| rule | [data-cal-readout] | What is chosen, and the one action: a Moonstruck Navy bar that stays at the foot of the screen while the calendar is in view, so it is never a scroll away from the day just chosen. It floats over the grid, so it takes the Float shadow. No price appears in it. |
| hook | [data-cal-readout][data-chosen="yes"] | Dates are chosen: the bar shows them, the nights, the email action and Clear, in place of the prompt. Written by home.js. |
| hook | [data-cal-grid][data-more="no"] | At 430px and below all but the first three months are folded away, and the button after the grid unfolds them. Written by home.js. |
| rule | [data-cal-book-note] | One quiet line under the chosen dates saying that Charter Smarter's form asks for them again, so the Book button beside it does not look as though it carries them. Never a price (see The No Price By The Grid Rule). |
| rule | [data-cal-legend] | The key to the day colors. Hidden in the markup and shown by home.js only once a grid has been drawn. |
| rule | [data-cal-actions] | Call, Email and Book under the grid; a full-bleed row on a phone. Its Email stands down while dates are chosen, because the readout above it carries the same action in words. |
| rule | [data-call-number], [data-call-word] | A Call button's label: the word on a touch screen, the number itself where there is a pointer, since a desktop tel: link dials nothing. |
| rule | [data-cal-grid] | The months: three across, two at 768px, one at 430px (see Phone layout). |
| rule | [data-book-grid] | The closing section: copy and actions set left, the bow photograph in the right four columns; one centered column on a phone, photograph first. |
| rule | [data-book-actions] > a, [data-book-primary] > a | The closing section's buttons share a 260px minimum width, so no action reads as the runt and the row wraps two and one rather than ragged. The primary comes first, alone; Broker partners, Email and the phone number follow as ghosts, the two that leave the site carrying an arrow. |
See DESIGN.md, The Calendar Legibility Rule
Particulars
| rule | [data-spec-plate] | The boat's own readings, under the accommodation plan: what a broker needs in one screen instead of mined out of six captions. Built like the sailing school's course list, the other place on the page where a label annotates a reading: a tracked mono label over a Playfair italic value, on hairline-ruled rows. |
| rule | [data-spec-brochure] | The brochure, offered where the specifications are rather than only at the foot of the page. It carries the 44px band the Hit Area Rule asks of a standalone link. |
| rule | [data-starlink] | The Internet row's Starlink, with the service's mark after it (a mask of assets/starlink.svg, in the value's own color). Its X stands at four-fifths of Playfair's capitals, 0.88em, with its orbit rising past them. The two never part at a wrap. |
| rule | [data-aboard] | On board, at the foot of the gallery (Jamie, 2026-09-22; Celestine's homepage has it just before its tour): a heading in the particulars' voice over the listing's Watersports & Toys, Scuba Diving and Amenities, which tools/apply-listing.py writes from data/listing.json, so the lists follow the listing every day. |
| rule | [data-aboard-grid] | Water sports and toys in the first of three columns with Diving under it; Amenities across the other two, its rows in two columns. Two columns from 1024px, one from 600px. |
| rule | [data-aboard-group] h4 | Each group's name as a particulars label over a hairline. |
| rule | [data-aboard-group] li | A row per item in the body sans, never split by a column break, with no rule between rows, led by its pictogram (assets/icons/aboard.svg) at the itinerary legend's 24px in the tint at 0.7, hidden from screen readers since the words say it. An item with no pictogram keeps the second column, so every row's words start on one line. |
Where she is
Her last AIS position on the chart, and the weather there (#where). The chart is the itineraries hero's: the whole drawing, its furniture from tools/chart-pages.py, and the line weights and label voice assets/pages.css gives every chart, but on a light field of its own. The readout is built like the Particulars: a tracked mono label over a Playfair italic value, on hairline-ruled rows. It sits under the chart, in three columns, two on a tablet and one on a phone; the chart's upper left, the open Atlantic, carries the cartouche instead (Jamie, 2026-09-23, who chose this over stacking the cartouche on a readout floating there). The whole section is hidden until home.js has a fix to show.
| rule | [data-where-field] | The chart field, at the drawing's own proportions. It is light, Honeydew (Jamie, 2026-09-23: "use a light color background for that map"), the one light surface on the site and the one chart not on Moonstruck Navy, so it is inked like a paper chart and not like the inner pages'. Its corners are rounded at 12px (Jamie, 2026-09-23), the one exception to the 2px radius. It is a link to her page on MyShipTracking (Jamie, 2026-09-23), the whole chart one target; a picture and not words, so it carries no external-link mark (The Leaving Rule), and the caption says where it goes instead. |
| state | [data-where-field]:hover, :focus-visible | The mark grows a sixth, which says the chart can be followed; the focus ring keeps the chart's own corners. |
| rule | [data-where-svg] | The drawing: land a Moonstruck Navy tint (0.16) under a navy coastline, the shallows a band of Cerulean along it, graticule, rose, scale bar and title in navy. On Honeydew, navy is 11.56:1, and at 0.72, the label step here, 5.05:1 over open water. |
| rule | [data-where-pin] | Her position, on a map pin (Jamie, 2026-09-23): a Moonstruck Navy drop 30px wide whose point is on the fix, edged in Honeydew so it holds over land, with a shadow under the point and in its head her own mark, assets/icon.svg's Honeydew moon with the wayfarers cut out over its Cerulean sea, as the app icon draws it on navy. While the fix is fresh a ripple goes out on the water from the point every 2.4s. At --x and --y, percentages of the chart. |
| rule | [data-where-name] | Her name beside the pin's head, in the label voice at 16px and 500 (Jamie, 2026-09-23: larger than the inner pages' 12px pin labels), navy with a Honeydew halo. |
| rule | [data-where-vignette] | The cartouche's picture: her under sail, engraved in one navy ink from her photograph by tools/engrave-vignette.py (Jamie, 2026-09-23: "more like an illustration"), fading out to the paper at its edges but for her hulls, which are drawn whole from bow to stern. |
| rule | [data-where-course] | Her course over ground, a 52px navy line out from under the pin, turned by --cog. |
| rule | [data-where-cartouche] | A vignette of her under sail over her horizontal logo, across most of the open Atlantic in the chart's upper left, as a paper chart carries its illustration (Jamie, 2026-09-23: "much more of the open ocean"). 42% of the chart's width, between 112px (below that the logo's lettering cannot be read) and 460px: the most that keeps its foot clear of Jost Van Dyke at a phone's width. The logo keeps to 210px, so the engraving is what grows. The photograph fades out to the paper through an elliptical mask; the logo is painted through a mask of its file, Moonstruck Navy over a Cerulean sea, as the nav paints the same file in Honeydew. |
| hook | #where[data-where-fresh="no"] | The fix is over two hours old: the pin stops pulsing, and the Last heard row takes the stale reading's Punch Red edge and wash, as the footer weather does. |
| hook | #where[data-where-live="no"] | There is no live source yet, so this is her last known position as a sample (Jamie, 2026-09-23): dated, with no pulse, but without the stale edge, since it is not pretending to be current. |
| hook | #where[data-where-moving="yes"] | She is making a knot or more on a known course, so the course line shows. |
| hook | #where[data-where-onchart="no"] | She is beyond the drawing's edge, so there is no chart (Jamie, 2026-09-23): the readout comes first, says how far and which way she is from St. Thomas, and offers her position in Google Maps; only the credits for the position and the weather stay under it, and the caption's chart note ([data-where-chart-note]: the tap line and the coastline credit) goes. |
| hook | #where[data-where-side="left"] | Her name goes to the pin's left: where it would run off the chart's east edge (home.js measures it, at every width), or to keep clear of her course line. |
| hook | #where[data-where-corner="yes"] | Her pin would fall under the cartouche (home.js measures both), so it stands aside. |
| rule | [data-where-gmap] | The link to her position in Google Maps, in the destination cards' link voice. Shown only when she is off the chart; the chart is the map otherwise. |
| hook | [data-where-wx][data-where-wx-stale="yes"] | No weather could be read: the footer's stale treatment. |
See DESIGN.md, Where She Is
Tokens
The site's one set of custom properties. Each is described in assets/pages.css, which mirrors this block for the inner pages; the comments below record why a value is what it is. Four exist only here: --ink-page-rgb, --mist, --mist-clear and --grid-cols.
| var | --accent | Set on the page wrapper, not here (Honeydew): the foot of the gallery's current thumbnail. |
| var | --accent-deep | Set beside it (the tint's mute step): crew roles and the rate table's season labels. |
| breakpoint | 768px | Margins, vertical rhythm and gutter step down together. |
The tokens themselves are in the table above.
See DESIGN.md, Colors; Typography; Layout
Reduced motion
Every animation's counterpart. Nothing slides, flies or sharpens: entrances become a 0.4s fade, the mist holds still, the nav's hairline appears at once. The weather widget's rotation is stopped in home.js. A new animation anywhere above needs a line here.
Without script
The page is ordinary HTML, so it reads without home.js; these rules undo the few states that wait for it. The hero photograph is shown. The calendar says to call or email (its grid is computed in script), and the footer weather, which would never load, is removed. Entrances need no line here: they are armed by script, so without it they were never hidden (see Reveal).
assets/pages.css
The markup it styles is written by tools/chart-pages.py; the behavior it responds to comes from assets/pages.js. The homepage does not load this file: index.html carries its own stylesheet (assets/home.css, inlined into its <style> block), and the two share one set of tokens. The :root block below mirrors index.html's, and the two must be kept in step (tools/build-docs.py reports any token that differs).
How the file is organized: tokens, font fallbacks and base rules first, then the shared voice and components (buttons, nav, reveal, charts), then one block per page section in page order, then the footer and floating bar, and last the global switches (reduced motion, ?static).
Conventions:
- Color, type size, measure and section spacing come from tokens. A raw hex or a hand-picked width in a rule is a bug (
DESIGN.md: The Column Span Rule, The One Margin Rule). - Every section is one of the three ink steps; Moonstruck Navy is kept for the chart field and the sea plate (The One Field Rule, The Chart Field Rule).
- State is carried by classes and data attributes that
pages.jssets (.is-in,.active,.split-on,.bg-on,data-open,data-shown,data-active). Script never writes a color or a transition. - A single-column grid track is minmax(0, 1fr), never a bare 1fr (The Shrinkable Track Rule).
- Every animation has a counterpart in the reduced-motion block at the foot of the file.
Doc comments: a block like this one documents what follows it. Tags, modeled on JSDoc:
@section Name opens a section of the reference; prose after it describes the section @token --name a global custom property set on :root @var --name a custom property scoped to a component, set inline by the generator or by script @rule selector what a selector, or a group of them, is for @modifier selector a variant of the rule above it @state selector a state of the rule above it, and what puts it there @hook selector a class or attribute that script sets or reads @breakpoint width what changes at a width @see where the reasoning lives, usually a named rule in DESIGN.md
tools/build-docs.py reads these into docs/css.html and into the style guide's token table. Plain comments beside a declaration are left as they are: they explain one value, in place.
Tokens
Every color, type size, measure and spacing step on the inner pages. The palette is the owner's five: Moonstruck Navy for the field, Honeydew for the type and, at documented alphas, for every rule and quiet voice, Frosted Blue for the data, Punch Red for the one booking action and a stale reading, and Cerulean for the sea under the mark. Moonstruck Navy replaced Oxford Navy as the field on 2026-09-25 (the owner's ruling): it was already asset-bound to the charts and the sea texture, so the chart field is the same navy as the rest of the page. The -rgb tokens are channel triplets for translucent steps: rgb(var(--tint-rgb) / 0.72).
| breakpoint | 1224px | Derived, not chosen: the first width at which --grid-max plus twice --section-x fits, so the nine-column grid is full size. |
| breakpoint | 768px | Margins, vertical rhythm, gutter and nav height step down together. Vertical rhythm goes lower on a phone, not higher. |
The tokens themselves are in the table above.
See DESIGN.md, Colors; The One Field Rule
Typefaces
The same three families as assets/home.css, served from this site (assets/fonts/), so a page load contacts nobody else for its type. Playfair Display is one variable file, italic only, because the serif is only ever italic (The Three Voices Rule). font-display is swap and the stand-ins below are metric-matched, so the swap does not re-wrap the text.
| rule | @font-face 'Playfair Display' | Italic, 400 to 900 in one variable file. Headlines and figures. |
| rule | @font-face 'Barlow' | 400 and 500. Everything read at length. |
| rule | @font-face 'IBM Plex Mono' | 400 and 500. The label voice. |
See DESIGN.md, Typography
Font fallbacks
Metric-matched stand-ins, measured against the webfonts, so the swap does not re-wrap the page: until a webfont arrives, Georgia, Arial or Courier New stands in, scaled and with its ascent and descent overridden so every line break stays where it was.
| rule | @font-face 'Playfair Fallback' | Georgia at 85.2%, measured against Playfair italic 700, the headline weight. |
| rule | @font-face 'Barlow Fallback' | Arial at 94.4%. Body copy. |
| rule | @font-face 'Plex Mono Fallback' | Courier New at 100%. The label voice. |
See DESIGN.md, Typography: Roles are tokens
Base
The reset, the page defaults and the accessibility helpers.
| rule | * | Border-box sizing and no default margins: every gap on the page is set on purpose. |
| rule | html | Smooth in-page scrolling (made instant under reduced motion) and a scrollbar in the palette. |
| rule | body | Moonstruck Navy ground, Honeydew text, Barlow 400 at Body size. lining-nums site-wide, because figures here are data and are pinned rather than left to the face (The Plain Figures Rule). |
| rule | ::selection | Frosted Blue with Moonstruck Navy text. |
| rule | a | the tint's soft step (0.82), Honeydew on hover. The Moonstruck Navy sections name their own link color. |
| rule | a[target="_blank"]::after | Every link that leaves the site carries an up-right arrow after its words, so that a new tab is never a surprise. Drawn as a mask in currentColor, so it takes the link's own color and its hover. Not on a link that is a mark or a photograph, nor on the buttons that draw the arrow themselves. |
| rule | :focus-visible | The site-wide focus ring: 3px Frosted Blue, 3px offset. Honeydew in the footer, the nav and the drawer. |
| rule | p, li, dd | text-wrap: pretty, so no paragraph ends on a lone word. |
| rule | :where(h1..h4) | The Heading Leads Rule: 0.4em under every heading, 1.25em over one that follows content. |
| rule | h1, h2, h3 | Playfair italic 700 (The Three Voices Rule). |
| rule | .vh | Visually hidden, still read aloud. |
| rule | .skip-link | "Skip to content", off screen until it takes focus. |
Voice
Italic serif for things you would say, tracked uppercase IBM Plex Mono for things you would annotate, Barlow for everything you read or count.
| rule | .label | The annotation voice: IBM Plex Mono 400, 12px, uppercase, 0.16em tracking. |
| rule | .lede | The introducing paragraph: Barlow 400 at Lead size. |
| rule | (the two weight groups) | One weight per voice. body is Barlow 400, so every label and every serif fragment that is not a heading is named here and set to 400, and the label group is also where labels take --font-label. A new label or serif class joins the matching group. |
| rule | .between a:not(.btn), .eat a:not(.btn), .close a:not(.btn) | Prose links on the navy sections inherit Honeydew. |
| rule | section[id] | Anchored sections stop clear of the fixed nav. |
See DESIGN.md, The Three Voices Rule
Buttons
Square, tracked, quiet color swaps. Corners have no radius; pills are for icon-only controls. Every button is a link: the site has no forms, and every action leaves for a call, an email or the Charter Smarter booking form.
| rule | .btn | The base: label voice at 12px with 0.18em tracking, 18px by 26px padding, 132px minimum width, 0.25s color swaps. |
| modifier | .btn-primary | The action pair, --action with --action-ink text: Punch Red with a Honeydew label (4.62:1). One per view, and only for booking. On hover it keeps its color and lights a 2px Honeydew bezel. |
| modifier | .btn-dark | The quiet plate, --btn-plate (the tint at 8%), with Honeydew text: Call and Email on a section. |
| modifier | .btn-ghost | A 1px tint outline at 50% with Honeydew text, 14px: navy fields. |
| state | :hover | Dark swaps to a Honeydew fill (Moonstruck Navy text); the ghost firms its outline and takes a 10% wash. |
See DESIGN.md, Buttons; The One Action Rule
Reveal
Same grammar as the homepage: slow, soft, once. A block starts 36px low and transparent, and rises over 0.8s when pages.js marks it as entered.
Entrances fail open, here and for the chart pins, the route mask and the gauges further down. Nothing is hidden unless the root element carries data-entrances, which the one-line script in the head sets and takes off again if pages.js has not started within four seconds, or fails to load at all. Without script, behind a blocker or on a connection that drops the script, the page reads in full. The attribute is matched inside :where(), so these rules keep the specificity they had.
| rule | .reveal | The resting state, while entrances are armed. |
| hook | [data-entrances] | On the root element: "armed" by the head script, "live" once pages.js is watching. Absent, nothing waits. |
| hook | .reveal.reveal-visible | Entered. Added once by pages.js, never removed. |
Charts
Every chart is a viewBox crop of one drawing, assets/chart/vi-land.svg, on a Moonstruck Navy field. The SVG carries the geography and the furniture (graticule, compass rose, scale bar, title block); pins and place labels are HTML laid over it, positioned in percent, so they stay legible at any chart scale and can take focus. Chart type is set in SVG user units, so it scales with the drawing.
| rule | .chart | The positioning context for everything laid over the drawing. |
| rule | .chart .shoal | The coastline once as a wide, faint halo: Honeydew at 7%, 11px. |
| rule | .chart .land | The coastline again as land: Honeydew fill at 16% under a 1px Honeydew line. |
| rule | .chart .grat | Graticule lines every tenth of a degree. Non-scaling, so always 1px. |
| rule | .chart .grat-label | Graticule edge labels in the label voice at chart scale. |
| rule | .chart .rose, .rose-fill, .rose-text | The four-point compass rose and its N. |
| rule | .chart .scale, .scale-text | The nautical-mile scale bar. |
| rule | .chart .chart-title | The title block: a caps line, and with .serif the chart's name in Playfair. |
| rule | .chart .route | One leg of a passage: a dashed Honeydew line. |
| rule | .chart .draw | The mask that draws the routes on: one unbroken path with pathLength 1, so a dash offset of 1 hides the passage and 0 shows it. |
| hook | .chart.is-in | Entered (pages.js): the mask's offset eases to 0 over 2.6s, then pins and labels fade in, staggered by --i. The field is the sea itself: assets/opt/chart-sea-784.webp, Moonstruck's own open water seen from above and carried onto Moonstruck Navy as one hue (tools/chart-sea.py). The plate averages to exactly #061e45 and tiles seamlessly, so it lies where flat navy lay and the sea runs continuous across the satellite divider. It sits on .chart rather than the surround, so below 900px the swell pans with the land, and its 784px repeat is never scaled to the chart. |
| var | --sea | Where this chart's window falls on the one sea: its viewBox origin, and a chart unit to a pixel. Set inline by the generator. Charts over the same water show the same water, and each inset shows its own patch. |
| var | --i | A pin's place in the entrance order. Set inline by the generator. |
| var | --fs | A kind of chart type's size on a chart drawn at another scale than the hero's. Set inline by the generator; each kind falls back to its own size without it. |
See DESIGN.md, Charts; The Chart Truth Rule
Chart pins and linking
Pins are real HTML, so they stay legible at any chart scale and can be focused. Pointing at or focusing a log entry or key row lights its leg and pin, and the rest of the chart steps back.
| rule | .pin | A 24px Frosted Blue disc with a Moonstruck Navy numeral and a Moonstruck Navy ring. |
| state | .pin:hover, .pin:focus-visible, .pin.active | Honeydew, 1.25 times the size, with a wider ring and the Control shadow. |
| rule | .pin-label | The place name beside a pin, in the label voice, with a Moonstruck Navy halo so it holds over coastline and imagery. Hidden from assistive technology: the pin is named. |
| modifier | .pin-label.left, .above, .below, .belowr | Which side of the pin the label sits on. The one thing on a chart chosen by hand. |
| var | --x, | --y A pin's, a ring's or a label's point on the chart, in percent of its width and height. Set inline by the generator. |
| var | --d | How far a label stands off its point, 17px from a pin and 9px from a ring unless the chart names its own. |
| rule | .chart .mark | A small ring for a place a leg passes through without stopping. |
| hook | .chart[data-active] | A key is lit (pages.js): routes other than .active fall to 28%, and pins other than .active to 55%. |
| modifier | .pin-hold | A pin that keeps full strength while another is lit. Available to the generator (hold=True); unused today. |
| breakpoint | 900px | Pins and labels step down to the size their places were chosen at. |
| breakpoint | 768px | Graticule labels and the title block are dropped. |
Chart / satellite split
Every chart but the itineraries hero carries a satellite plate of the same window, in register with the drawing (tools/fetch-satellite.py): chart to the left of the divider, satellite to its right. The plate lies over the drawing and under the routes, pins and furniture (.chart-over), so the passage stays plotted on both. Nothing shows until pages.js marks the chart .split-on; without script it is simply the chart.
| var | --split | The divider's position in percent from the left. Written by pages.js, which measures where it rests against what is on screen; defaults to 100% (chart only). |
| var | --knob-y | How high the knob rides on the divider, chosen per chart to clear its pins. Set inline by the generator. |
| var | --split-delay | How long the entrance waits, so the route has drawn first. Set inline by the generator. |
| rule | .chart > .chart-over | A second SVG above the plate for whatever must stay visible on both views: the routes, and on the index charts the rose, scale bar, title block and graticule labels. |
| rule | .chart .sat | The plate, clipped from the left by --split. |
| rule | .chart .sat img | color: transparent keeps the alt text from being drawn across the chart while a plate loads. |
| rule | .split-line | A 22px-wide grab strip drawing a 1px Honeydew line. touch-action: pan-y, so the page still scrolls past it. |
| rule | .split-knob | A 40px round control in the Button Dark vocabulary, with the Control shadow since it sits on imagery. Its ::after grows the hit area by 5px; it is clamped 26px inside either edge. |
| state | .split-knob:hover, .chart.is-dragging .split-knob | Solid Honeydew with Moonstruck Navy chevrons. |
| hook | .chart.split-on | Script is running: the plate, line and knob are displayed. |
| hook | .chart.split-live | The line and knob are visible. |
| hook | .chart.split-intro | The entrance is in flight: --split changes ease over 1.5s, after --split-delay. |
| hook | .chart.is-dragging | A pointer holds the divider: the resize cursor everywhere, and pins stop taking the pointer. |
See DESIGN.md, The chart / satellite split
Chart panning and key
On a phone and a tablet a chart keeps a minimum width and pans sideways inside its scroller, opening on its subject (pages.js, data-focus-x) with its divider resting a third of the way across what that leaves on screen. Its labels are placed by hand against the width it is drawn at, so squeezing it below that width runs them into each other and off its right edge: it pans instead.
| rule | .chart-scroll | The scroller. Clipped on desktop, horizontally scrollable at 900px and below, where pages.js makes it a tab stop so the arrow keys pan it. |
| var | --chart-min | The width a chart keeps at 900px and below. Set inline by the generator, per chart. |
| rule | .chart-hint | "Drag the chart to pan": below 900px only. |
| rule | .chart-key | The key under the hero chart: a dashed sample line, and .fine for the "Not for navigation" line. |
| breakpoint | 900px | Where the labels come clear on their own: the itineraries hero is drawn 870 units wide, and its two closest names ("Cane Garden Bay" and "The Baths") stop touching just above that. Measured, not chosen. |
| breakpoint | 768px | The graticule labels and the title block are dropped. The pan itself starts at 900px. |
Itineraries: hero
The itineraries page opens on a full-width chart of the seven-night passage, with the headline set over its open sea. This is the one chart with no satellite plate, because type sits on it.
| rule | .hero-chart | The Moonstruck Navy field. Its top padding clears the fixed nav. |
| rule | .hero-chart .hero-copy | The headline block, laid over the chart's empty north-west with a navy halo on its type. |
| rule | .hero-chart .hero-actions | Two ghost buttons to the plans. |
| rule | .hero-chart .chart | On a phone, cropped by the scroller: 36 of the chart's 560 viewBox units come off the top, the open sea above Anegada, whose coast is the drawing's northernmost land at 53. The cut was 230 until 2026-09-21, which took Anegada, the compass rose and the passage north with it, so a phone panned east showed the seven-night route running off the top edge toward nothing. Nothing comes off the foot, where land reaches to within 5 units of the edge. A phone held upright cuts 230 again (Jamie, 2026-09-25). |
| breakpoint | 768px | The chart is 870px wide whatever the window is, so the cut is flat pixels. |
| breakpoint | 480px | A phone held upright opens on the chart's west, where Anegada and the rose are out of view and the top 230 units are empty sea: over 300px of it between the buttons and the first land. So the phone cuts 230, which leaves the passage to Anegada entering from the right edge. Panned east, that passage runs off the top, as before 2026-09-21. The seven-night plan's own chart, just below, keeps Anegada. Every iPad is 744px or wider and keeps the 36 cut. |
| breakpoint | 900px | The chart holds its 870px and pans, so the hint under it shows on a tablet as well as a phone. |
| breakpoint | 1100px | The copy leaves the chart and sits above it, without the halo. |
Itineraries: passage plans
One section per sample passage: a head (title, lede, four facts), then a sticky chart beside the day-by-day log, then "how the week leans". Both plans sit on the page field.
| rule | .plan | The section. |
| modifier | .plan.frost | The page field as the ground, written out. |
| rule | .plan-inner | The full nine-column measure, centered. |
| rule | .plan-head | Title and lede against the facts, on the body's columns: the lede ends where the chart does and the facts' hairline starts where the log's does. |
| rule | .plan-facts | Four figures in Playfair, each over a label-voice caption, above a hairline. |
| rule | .plan-body | Four columns of chart against five of log, with a derived alley, so both sit on column lines. |
| rule | .plan-chart | The chart column. Sticky below the nav while the log scrolls past. |
| rule | .plan-chart .mat | The chart's frame. A Moonstruck Navy plate on the page field, naming its own ink as .hero-chart and .index do. |
| rule | .plan-chart .chart-cap | The caption under the mat: "Numbered by leg" and "Not for navigation". |
| breakpoint | 1223px | Below the full grid the head's and body's columns go fluid together: 5fr to 6fr with an 8% alley. Down to 900px the title steps down with the viewport, so it keeps to two lines in the narrower column. |
| breakpoint | 900px | One column; the chart stops being sticky. |
| breakpoint | 768px | Section padding drops to --section-y; facts and titles step down a size. |
Itineraries: the log
One entry per leg: a numbered day beside a title ("from, arrow, to"), the time under sail, a paragraph, and the day's planning tags.
| rule | .leg | An entry: a 96px day column and the text, between hairlines. |
| hook | .leg.active | Its leg is lit on the chart (pages.js): a Honeydew wash from the left, and the numeral grows. |
| rule | .leg::before | The lit wash: the row's own layer, not its background, so it can lead the day column by --leg-lead without moving the hairline or the day column off the log's grid line. |
| var | --leg-lead | How far the wash leads the day column: 20px into the alley beside the chart, and the page margin (--section-x) once the log spans the measure, so the lit row breaks the margin. |
| rule | .leg-num | The leg's number in a 30px Moonstruck Navy disc, matching its pin on the chart. |
| rule | .leg-when | "Day 3, Monday" in the label voice. |
| rule | .leg-title | Title size. .to is the arrow between the two places; a visually hidden " to " is read in its place. |
| rule | .leg-sail | Time under sail, with the sail glyph. |
| rule | .tags | Planning tags: the crew's own pictograms as images of their views in one sprite, assets/icons/tag-sprite.svg#<id>, at 24px, filled with currentColor (the tint mute step on a panel, Frosted Blue on a chart field). Each is named by its title and an accessible label. |
| modifier | .tags.legend | The key to the set, where each pictogram carries a visible label. |
Itineraries: how the week leans
The mix: relative emphasis, from the charter's own planning sheet. Five gauges on a scale ruled in quarters. It draws no rule of its own: the last leg's bottom hairline above it is the seam.
| rule | .mix | The block: a title and lede against the gauges. |
| rule | .gauge | One row: a label and its track. |
| rule | .gauge-track | The ruled scale: a tick every 25%. |
| rule | .gauge-fill | The reading. Scales in from the left over 1.2s, each row 0.1s after the one above. |
| var | --v | The reading in percent. Set inline by the generator. |
| hook | .gauges.is-in | Entered (pages.js): the fills run. |
Itineraries: reading the plan
The notes block under the two plans. A hairline marks the seam, as it does above .more.
| rule | .notes | The section: a heading and lede against a definition list. |
| rule | .notes dt, dd | A term in Playfair at Title S, and its explanation at 50ch. The term leads by --head-lead and trails by --head-trail (The Heading Leads Rule), not on a grid gap. |
| rule | .notes .tags | The full legend of pictograms in three columns, two at 480px, one at 360px. |
Destinations: photo hero
The two destination pages open on a photograph under a scrim that deepens toward the foot, where the headline sits.
| rule | .hero-photo | The field: at least 72vh (capped at 820px), its copy at the bottom left. |
| rule | .hero-photo::after | The scrim: the page wash at --wash-hero-foot at the foot, --wash-hero-mid two-fifths of the way up and --wash-hero-top at the top. The top is what holds the headline over a pale sky; solve the three against the brightest pixels behind the copy in both photographs, and again whenever either photograph, the wash's color or the type's color changes. |
| rule | .hero-photo .hero-copy | The headline, lede and two ghost buttons, on the mid measure. |
| rule | .hero-photo .hero-mark | The flag with its tourism board's logo under it, a column at the top right, clear of the nav. |
| rule | .hero-photo .hero-flag | The territory's flag: flag-icons' square cut with its color softened, not taken away (saturation at 0.6 under a 15% Honeydew wash: saturation alone keeps each color's luminance, which took the BVI's navy to near black), clipped to a round, with a 2px Honeydew ring and the Control shadow so its edge holds over any part of the photograph. The ring and the wash are on this wrapper, because the filter on the image would dull them too. 96px, and 64px on a phone. |
| rule | .hero-photo .hero-board | The territory's tourism board, linking to its site: its own logo in Honeydew by mask, as in the footer, at one footprint for either board (48px and 40.4px, the footer's pair at four-thirds; the footer's 36px and 30.3px on a phone). A drop shadow holds the pale logo's edge over sky and surf; it is on the link, since a filter on the masked image would be masked away with it. |
Destinations: chart index
A Moonstruck Navy section holding the country's chart with every featured anchorage numbered, and a key beside it. Key rows and pins light each other (pages.js).
| rule | .index | The Moonstruck Navy section. |
| rule | .index-head | Five columns of heading against the lede. |
| rule | .index-body | Six columns of chart against three of key. |
| modifier | .index-body.wide | A chart too wide to share a row (the USVI): the chart takes the full measure and the key runs in three columns under it. |
| rule | .index .mat | The chart's frame: a 1px Honeydew line at 20%. |
| rule | .key | The numbered list of anchorages. Each row is one link to its entry. |
| rule | .key .k | The numeral, in the pin's colors. |
| rule | .key .name, .where | The anchorage in Playfair, and its island in the label voice. |
| hook | .key a.active | Its pin is lit on the chart. |
Destinations: pilot entries
One entry per anchorage, written like a pilot book: a chart inset beside a number, a name, a place line, a paragraph or two, and what the anchorage is good for. Entries alternate sides.
| rule | .entries | The Moonstruck Navy section. |
| rule | .entries-inner | Spacing carries the grouping (The Entry Gap Rule): an entry's parts sit a gutter or less apart, entries sit --entry-gap apart, three to four times that. |
| rule | .entry | Four columns of inset against five of text, a gutter's alley between them. |
| rule | .entry:nth-child(even) | The mirror image: text first, inset second. |
| rule | .entry-num | The anchorage's number, matching its pin on the index chart. It sits on its heading, so the heading drops the Heading Leads Rule's lead. |
| rule | .entry h3 a | A place the heading names, linked to its own page: the heading's ink over a hairline underline, the arrow scaled to the heading. Full underline on hover. |
| rule | .entry .where | The place line, in the label voice. |
| rule | .entries-credit | The imagery credit, composed per page from the sources its plates came from. |
| breakpoint | 1223px | The columns go fluid. |
| breakpoint | 800px | One column, inset first. |
Chart insets
The inset: the boat section's panel mat, carrying a chart plate instead of a photograph. A 4:3 crop of the one drawing at anchorage scale, with the pin where the boat lies, a north arrow, a one-mile bar, and a caption lip giving the coordinates. It can be swapped for a photograph in the same mat without changing the page.
| rule | .inset | The Moonstruck Navy mat, with the Float shadow. It wraps the plate on three sides. |
| var | --mat | The mat's width: 16px, 14px at 800px and below. |
| rule | .inset figcaption | The lip: "Chart inset" and the coordinates, in the label voice. |
| rule | .inset .north | The north arrow, with a soft Moonstruck Navy cast so it holds over reef and sand. |
| rule | .inset .scalebar | The one-mile bar. |
| var | --nm | One nautical mile as a fraction of the inset's width. Set inline by the generator. |
Anchorage map opener
The inset opens Apple's satellite map at its pin: the whole plate is the target, and this round control is its keyboard and screen-reader handle, in the divider knob's vocabulary. A link until a MapKit token is set.
| rule | .inset .chart | The zoom-in cursor over the whole plate. |
| rule | .inset-open | A 34px round control at the plate's top left. Its ::after grows the hit area by 6px all round. |
Map dialog
The homepage lightbox's field and close button, holding a live map instead of a photograph. Emitted only when a MapKit token is set, so dormant today.
| rule | .mapbox | The Moonstruck Navy field at 96%. Hidden with visibility as well as opacity, so nothing inside it can take focus while it is closed. |
| hook | .mapbox[data-open="yes"] | Open. Written by pages.js. |
| rule | .mapbox-frame | Three rows: heading, map, foot. |
| rule | .mapbox-num | The anchorage's number, in the pin's colors. |
| rule | .mapbox-map | The box MapKit draws into. |
| rule | .mapbox-fail | The fallback line laid over the map when MapKit has not initialized. |
| rule | .mapbox-foot | "Open in Apple Maps", always present, beside "Not for navigation". |
| rule | .mapbox-close | A 48px solid Honeydew close button with the Control shadow, fixed to the corner. |
Photo band
A quiet full-bleed plate between the entries and the notes.
| rule | .band | The plate: between 320px and 640px tall, the photograph covering it. It carries no caption: the photograph is the point, and a plate over it covered the yacht. What it shows is said in the figure's aria-label and the image's alt text, where it does not sit on the picture. |
Between the anchorages
Practical notes on the sea: the same plate that lies under every chart, at the same size, so the field here is the water the charts are drawn on rather than a second kind of texture. It averages to Moonstruck Navy exactly, so the type keeps the contrast it had on the flat colour and needs no wash over it.
| rule | .between | The field. |
| rule | .between-inner | A heading and lede against a definition list, as in .notes. |
See DESIGN.md, The Sea Field Rule
Eating ashore
The restaurants and bars the sample itineraries call at, in this page's waters, under Between the anchorages and on its grid: a heading, lede and price key against one hairline row per place. Each row is its logo, its name over its place in the label voice (and, for a resort, its restaurants) and its website, and its price as a reading. The list ends on its last row, with no rule under it. Every logo is one shape, drawn in Honeydew by a mask of its file, as the tourism boards' are, so every brand reads as one set on the navy (Jamie, 2026-09-24).
| rule | .eat | The Moonstruck Navy section, under a hairline, as .notes and .more are. |
| rule | .eat-inner > div | The heading, lede and key. Sticky below the nav while the list scrolls past, as the itineraries' chart is (Jamie, 2026-09-24). |
| rule | .eat-key | What a price means, a main course, in the label voice: one line per price, its signs first. |
| rule | .eat-list li | One place: a 128 by 64 logo box, the text, and the price, on a hairline row. |
| rule | .eat-logo > span | The logo, a mask of the file in --logo, which the generator writes from the site's root: a url() in a custom property is resolved against the stylesheet that reads it, not the page. The generator sets its --w and --h from the file's shape at one area (a 60px square's), so a wordmark and a seal weigh the same; --u scales them all. |
| rule | .eat-price | The price, a Frosted Blue reading in Playfair italic, the data's color and voice. All three signs are drawn and the ones beyond the price dimmed (the i), so the column compares at a glance; the words beside it, visually hidden, are what is read aloud. |
| breakpoint | 900px | One column; the heading stops being sticky. |
See tools/fetch-restaurant-logos.py, which traces the shapes; tools/chart-pages.py, RESTAURANTS
Also on the chart
Cross links between the three inner pages: the other two, each a serif title with an arrow over a one-line description.
| rule | .more | The Moonstruck Navy section, under a hairline. |
| rule | .more a | One link. .t is the title and arrow, .d the description. No rules between them (Jamie, 2026-09-24), so the first title's top meets the heading's. |
Closing
The homepage's booking section, on the subpages: the same sea plate under the same navy wash, the copy and its actions set left, and the bow photograph in the last four columns. One centered column on a phone, photograph first. It is the homepage's [data-book-grid] in class form; the two must be changed together, and the homepage carries the measurements inline.
| rule | .close | The field, on the emphasis step --section-y-xl. ::before washes the plate back. |
| rule | .close-inner | Copy against the photograph: the last four columns hold the picture. |
| rule | .close h2 | The page's last word, in two voices: the hail at 68px, the invitation at 0.6 of it. |
| rule | .close .lede | Set in the body sans here, not Playfair: a closing paragraph, not an introduction. |
| rule | .close .row | The actions: the primary alone, then Broker partners, Email and the number as ghosts, at one width. The two that leave the site carry an arrow. |
| rule | .close-home | The way back to the homepage, under the broker line. The subpages need it because the footer mark returns to the top of the page you are on, not to the homepage. |
Page not found
404.html: one sea section the height of the window, with a lifebuoy riding three lines of swell above the headline. The host serves it at whatever address was asked for, at any depth, so tools/chart-pages.py writes every reference in it from the site root.
| rule | .lost | The field: the sea plate at its one size, clearing the fixed nav, its copy centered. |
| rule | .lost-sea | The drawing. Its sides are masked away so the swell has no edge to run off. |
| rule | .lost-buoy | The lifebuoy: it rides up and down and rolls a few degrees about its own center. |
| rule | .lost-ring | The ring, in Honeydew. |
| rule | .lost-band | Its four bands, in Punch Red (--band): a lifering is red and white. |
| rule | .lost-rope | The grab line around it, in the tint. |
| rule | .lost-wave | One line of swell, drawn two wavelengths wider than the window and sliding one wavelength (--run) per cycle, so the loop has no seam. |
| rule | .lost-water | The water in front of the buoy: the chart field's navy, fading out below, so the ring sits in the sea. |
| rule | .lost h1 | The headline, at the closing section's scale. |
| rule | .lost .lede | The message, in the body sans on the four-column measure. |
| rule | .lost .row | The one way home: a ghost button, because the filled action is kept for booking. |
| var | --band | Punch Red, pinned here rather than read from --action, so the lifering stays red whatever the booking action becomes. |
| var | --run | The wavelength of a line of swell, which is how far it slides per cycle. |
See DESIGN.md, Sea Sections
Floating action bar
Call, Email and Book, mirroring index.html: a column on the right edge, a full-width row along the bottom on a phone.
| rule | .float-cta | Hidden: transparent, 16px low, out of the pointer's way, and out of the tab order (visibility, not opacity alone). |
| hook | .float-cta[data-shown="yes"] | Shown. Written by pages.js once the hero has passed, and cleared over the closing section. |
| var | --cta-vv | How far a phone's toolbar or keyboard has pushed the visible bottom edge up. Written by pages.js. |
| state | .float-cta .btn-dark:hover | Call and Email turn Honeydew with Moonstruck Navy text, as on the homepage. |
Reduced motion
Every animation's counterpart. Nothing slides, draws or fills: reveals become a short fade, routes and pins are simply there, gauges are full, the split and the dialog change at once. A new animation anywhere in this file needs a line here.
Static capture
Static capture switch (?static in the URL): every entrance resolved, for screenshots and print. pages.js sets the class before anything else runs.
| hook | html.static | Every entrance is forced to its end state, with !important, and no transition. |
Generated by tools/build-docs.py from the comments in the source. To change this page, change the comment and run it again.