/* St. John Almanac — one stylesheet for every page.
   Layout: the picture leads. A deep green bar, one wide photograph of the island
   with the day's sun written on it, then quiet paper with a few sage cards.
   Tokens first; every colour below comes from them, by day and by night. */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* day */
  --sheet: #F7FAF9;          /* paper: the page */
  --land: #EEF1EA;           /* sage: cards and panels */
  --land-edge: #D8DFD2;
  --water: #E2EFED;          /* pale sea: bands about sea and sky, a tool's stage */
  --water-edge: #B5D2CE;
  --ink: #172027;
  --ink-soft: #55645F;
  --rule: #D5DEDA;
  --forest: #14362E;         /* the bar and the footer */
  --on-forest: #FFFFFF;
  --on-forest-soft: #BDD0CA;
  --accent: #1A6661;         /* sea green: links, kickers */
  --gold: #855E10;           /* small labels on paper */
  --gold-bright: #F3CE75;    /* the same label on the bar or over a picture */
  --sun: #D9992B;            /* the sun in the mark, on paper */
  --press: #14362E;          /* a solid thing to press, and the words on it */
  --on-press: #FFFFFF;
  --reef: #23603F;           /* open, fair, in service */
  --signal: #8F4208;         /* caution, and what a figure is not */
  --on-photo: #FFFFFF;       /* words over a photograph */
  --photo-shade: 6, 40, 90;  /* the tint laid over a photograph so words read */
  --moon-lit: #FFFFFF;
  --moon-dark: #8FB3BD;
  --rose: var(--accent);     /* the accent's earlier name, kept so older pages still work */

  /* type */
  --display: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.45rem;
  --step-3: clamp(1.5rem, 1.6vw + 1rem, 2rem);
  --step-4: clamp(2.2rem, 4.4vw + 0.7rem, 4.3rem);

  /* measure and rhythm */
  --column: 72rem;
  --measure: 66ch;
  --gap: 1.1rem;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sheet: #0D1715;
    --land: #16231F;
    --land-edge: #2B3B35;
    --water: #10262A;
    --water-edge: #26494D;
    --ink: #E8EFEC;
    --ink-soft: #A5B4AF;
    --rule: #26342F;
    --forest: #0A1F1A;
    --on-forest: #FFFFFF;
    --on-forest-soft: #A9C2BA;
    --accent: #74CDC5;
    --gold: #E3B95B;
    --gold-bright: #F3CE75;
    --sun: #F3CE75;
    --press: #D9EDE7;
    --on-press: #0D1715;
    --reef: #86D0A6;
    --signal: #F4AE66;
    --on-photo: #FFFFFF;
    --photo-shade: 4, 22, 48;
    --moon-lit: #EEF3F5;
    --moon-dark: #1D3F4A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sheet: #0D1715;
  --land: #16231F;
  --land-edge: #2B3B35;
  --water: #10262A;
  --water-edge: #26494D;
  --ink: #E8EFEC;
  --ink-soft: #A5B4AF;
  --rule: #26342F;
  --forest: #0A1F1A;
  --on-forest: #FFFFFF;
  --on-forest-soft: #A9C2BA;
  --accent: #74CDC5;
  --gold: #E3B95B;
  --gold-bright: #F3CE75;
  --sun: #F3CE75;
  --press: #D9EDE7;
  --on-press: #0D1715;
  --reef: #86D0A6;
  --signal: #F4AE66;
  --on-photo: #FFFFFF;
  --photo-shade: 4, 22, 48;
  --moon-lit: #EEF3F5;
  --moon-dark: #1D3F4A;
  color-scheme: dark;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Plain content inside the shell's own elements shows only when scripts are off. */
:defined > [data-fallback] { display: none; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-family: var(--display); font-weight: 400; font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-family: var(--text); font-weight: 700; font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-family: var(--text); font-weight: 700; font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 0.07em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.num { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The small gold label that opens a section; .label is its quiet grey twin. */
.eyebrow, .label {
  font-family: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
}
.label { color: var(--ink-soft); }

/* ---------- the sheet and its bands ---------- */

.sheet {
  max-width: var(--column);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.band { padding-block: clamp(1.75rem, 4.5vw, 3rem); }
.band--water { background: var(--water); }
.band--land { background: var(--land); }
.band--ruled { border-top: 1px solid var(--rule); }

.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack--tight { gap: 0.45rem; }
.stack--loose { gap: clamp(1.75rem, 4vw, 2.75rem); }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }

/* ---------- masthead: the green bar ---------- */

almanac-masthead { display: block; background: var(--forest); color: var(--on-forest); }
/* With scripts off the bar is one plain link home, set like the name. */
almanac-masthead > [data-fallback] {
  display: block;
  max-width: var(--column);
  margin-inline: auto;
  padding: 0.85rem var(--gutter-r) 0.85rem var(--gutter-l);
  color: var(--on-forest);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.25;
  text-decoration: none;
}
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  padding-block: 0.85rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: inherit;
  text-decoration: none;
  font-size: 1.3rem;
  line-height: 1;
}
/* The mark and the name are drawings (see assets/almanac.js), sized from the
   type size. The stroke and the letters take the colour of the words round
   them; the sun is the one spot of gold. */
.wordmark .mark { height: 1.22em; width: auto; flex: none; }
.wordmark .name { height: 1.42em; width: auto; flex: none; }
.mark-sun { fill: var(--sun); }
almanac-masthead .mark-sun, almanac-footer .mark-sun, .plate--forest .mark-sun, .plate--photo .mark-sun { fill: var(--gold-bright); }
almanac-mark, almanac-logo { display: block; }
almanac-mark > svg, almanac-logo > svg { display: block; width: 100%; height: auto; }
@media (max-width: 23.4rem) { .masthead .wordmark { font-size: 1.15rem; } }
/* The bar holds a few words: a section standing alone, or a group's name that
   opens a short menu of its sections. Every section is one press away, and the
   bar does not grow as sections are added. */
almanac-masthead { position: relative; z-index: 20; }
/* ONE ROW, THE SAME FOUR WORDS IN THE SAME ORDER AT EVERY WIDTH (the owner, 28 November 2026, of a phone's bar that
   differed from the desk's: "navigation is so different on web vs. mobile it makes me worried something is cached";
   and on 30 November he chose the four words from three bars shown to him). The row never folds and never breaks
   into two lines of its own. Where all of it fits beside the name of the site and the place's chip it stands there;
   where it does not (a phone held upright) it takes the line under them, and holds the four words whole from 360
   wide. Narrower than that it runs sideways under the finger, with a soft edge on the side that holds more. The
   holder (.nav-run) is what the sheets hang from, so a row that runs sideways cannot cut a sheet off. */
.nav-run { position: relative; display: flex; flex: 1 1 22.5rem; min-width: 0; max-width: max-content; }
.masthead nav { display: flex; flex: 1 1 auto; flex-wrap: nowrap; align-items: center; column-gap: 1.5rem; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-block: 0.35rem; margin-block: -0.35rem; padding-inline: 0.2rem; margin-inline: -0.2rem; }
.masthead nav::-webkit-scrollbar { display: none; }
.nav-run::before, .nav-run::after { content: ""; position: absolute; z-index: 1; top: -0.35rem; bottom: -0.35rem; width: 2.25rem; pointer-events: none; opacity: 0; transition: opacity 0.15s ease; }
.nav-run::before { left: -0.2rem; background: linear-gradient(90deg, var(--forest) 12%, transparent); }
.nav-run::after { right: -0.2rem; background: linear-gradient(270deg, var(--forest) 12%, transparent); }
.nav-run[data-more~="start"]::before, .nav-run[data-more~="end"]::after { opacity: 1; }
/* The account's word ("Sign in", "Your account"): the row's last, at every width, and always in sight. Where the row
   runs sideways it stays at the far edge, the other words slide under it, and it carries the soft edge itself. */
.nav-account { position: sticky; right: 0; z-index: 2; flex: none; display: flex; align-items: center; background: var(--forest); box-shadow: 0.3rem 0 0 var(--forest); padding: 0.1rem 0 0.1rem 0.4rem; }
.nav-account[hidden] { display: none; }
.nav-account a { color: var(--on-forest); text-decoration: none; font-weight: 600; font-size: 0.9rem; line-height: 1.2; white-space: nowrap; padding: 0.3rem 0.7rem; border: 1px solid var(--on-forest-soft); border-radius: 999px; }
.nav-account a:hover { border-color: var(--on-forest); }
.nav-account a[aria-current="page"] { border-color: var(--gold-bright); }
.nav-account::before { content: ""; position: absolute; right: 100%; top: 0; bottom: 0; width: 1.75rem; background: linear-gradient(270deg, var(--forest) 12%, transparent); opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.nav-run[data-more~="end"] .nav-account::before { opacity: 1; }
@media (min-width: 60rem) { .nav-run.has-account::after { display: none; } .nav-run.has-account nav { scroll-padding-inline-end: 8rem; } }
@media (prefers-reduced-motion: reduce) { .nav-run::before, .nav-run::after { transition: none; } }
.masthead nav > a, .nav-split > a, .nav-button, a.nav-chip {
  white-space: nowrap;
  color: var(--on-forest);
  text-decoration: none;
  font: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: inherit;
  padding: 0.3rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
}
.nav-button { appearance: none; background: none; border-radius: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-button svg { width: 0.62rem; height: 0.38rem; flex: none; transition: transform 0.15s ease; }
.nav-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.masthead nav > a:hover, .nav-split > a:hover, a.nav-chip:hover, .nav-button:hover, .nav-button[aria-expanded="true"] { border-bottom-color: var(--on-forest-soft); }
.masthead nav > a[aria-current="page"], .nav-split > a[aria-current="page"], .nav-split > a.is-here, a.nav-chip[aria-current="page"], .nav-button.is-here { border-bottom-color: var(--gold-bright); }
/* A group that is itself a page (Today opens the day's paper): its word is a link, and the small mark beside it is a
   button of its own that opens the group's menu. The button's box reaches into the gap that follows it, so the row is
   no longer for it; on a phone the box is a finger wide and as tall as the row allows. */
.nav-split { display: flex; align-items: center; }
.nav-split > .nav-button { border: 0; border-radius: 999px; padding: 0.6rem 0.6rem 0.6rem 0.4rem; margin: -0.3rem -0.6rem -0.3rem 0; }
.nav-split > .nav-button:hover, .nav-split > .nav-button[aria-expanded="true"] { background: rgb(255 255 255 / 0.13); }
.nav-group { position: relative; }
/* A menu of the row hangs from the row's holder and is set under its own word by the bar's script. */
.masthead nav .nav-group { position: static; }
.masthead nav .nav-menu { right: auto; left: 0; }
.nav-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.6rem);
  right: 0;
  width: max-content;
  min-width: 15rem;
  max-width: min(22rem, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.nav-menu[hidden] { display: none; }
/* A menu never runs off the foot of a short screen: the shell gives it the height there is, and it scrolls inside. */
.nav-menu { overflow-y: auto; overscroll-behavior: contain; }
/* A phone on its side: a menu of the row sets its lines two abreast, so all of it is in sight. */
@media (max-height: 30rem) and (min-width: 36.01rem) {
  .masthead nav .nav-menu:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; max-width: min(40rem, calc(100vw - 2rem)); }
}
.nav-menu a { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.55rem 0.7rem; border-radius: 5px; color: var(--ink); text-decoration: none; }
.nav-menu a:hover { background: var(--land); }
.nav-menu a b { font-weight: 600; font-size: 0.98rem; overflow-wrap: anywhere; }
.nav-menu a span { font-size: var(--step--1); line-height: 1.35; color: var(--ink-soft); }
.nav-menu a[aria-current="page"] b { color: var(--accent); }
/* A sheet in parts (Guide): each part is a small heading over its lines. The heading is not a link. */
.nav-part { display: flex; flex-direction: column; }
.nav-menu-head { margin: 0; padding: 0.7rem 0.7rem 0.2rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); }
.nav-part:first-child .nav-menu-head { padding-top: 0.45rem; }
/* About and the account's word stand in the row where the bar is one line (from 60rem); narrower, each is the last
   line of a sheet (About of Guide's, the account's of the place's), so that a phone holds the four words whole. */
@media (max-width: 59.99rem) { .masthead .nav-wide { display: none !important; } .nav-button.is-here-narrow { border-bottom-color: var(--gold-bright); } }
@media (min-width: 60rem) { .masthead .nav-narrow { display: none !important; } }
/* The accounts' own line in the place's sheet ("Your account, signed in as ...") stands for the shell's when it is there. */
#almanac-menu-place:has(#almanac-account-line) .nav-acct-line { display: none; }
.nav-menu-do { font: inherit; font-weight: 600; font-size: 0.95rem; text-align: left; color: var(--accent); background: none; border: 0; border-radius: 5px; padding: 0.5rem 0.7rem; cursor: pointer; overflow-wrap: anywhere; }
.nav-menu-do:hover { background: var(--land); }
almanac-masthead .nav-menu :focus-visible { outline-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .nav-button svg { transition: none; } }
/* The reader's own place: a chip of its own beside the name of the site, so it
   never takes a section's place in the row. A long name is cut short with an
   ellipsis. With no place kept it reads "Your place" and leads to naming one. */
.nav-place { margin-left: auto; min-width: 0; }
.nav-chip { display: inline-flex; align-items: center; gap: 0.32rem; }
.nav-label { display: inline-flex; align-items: center; gap: 0.32rem; min-width: 0; }
.nav-name { display: inline-block; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-pin { display: inline-flex; color: var(--gold-bright); }
.nav-pin svg, .nav-button .nav-pin svg, .nav-button[aria-expanded="true"] .nav-pin svg { width: 0.62rem; height: 0.83rem; transform: none; flex: none; }
/* On a phone a menu opens across the page's width, just under the bar; the chip
   shares the first line with the name of the site and the sections take the second. */
/* THE BAR BY WIDTH. Four words, About and the account's word: one line from 60rem with room to spare, so the words
   stand at their full size there. Between 36rem and 60rem (a tablet, a phone on its side) the row stands beside the
   site's name with a tighter gap; narrower than 36rem it takes the line below and holds the four words whole from 360
   wide, with the words a little smaller and closer and a slimmer box for the mark beside a word that is a page (the
   navigation session measured these by putting the row into the live page). At 320 it runs sideways, as any row. */
@media (min-width: 60rem) and (max-width: 65.99rem) { .masthead { column-gap: 0.9rem; } .masthead nav { column-gap: 0.9rem; } .nav-name { max-width: 5.5rem; } }
@media (min-width: 66rem) and (max-width: 72.99rem) { .masthead { column-gap: 1.1rem; } .masthead nav { column-gap: 1.1rem; } .nav-name { max-width: 7rem; } }
@media (min-width: 73rem) { .nav-name { max-width: 9rem; } }
@media (min-width: 36.01rem) and (max-width: 59.99rem) { .masthead { column-gap: 0.85rem; } .masthead nav { column-gap: 0.85rem; } .masthead nav > a, .nav-split > a, .nav-button, a.nav-chip { font-size: 0.9rem; } .nav-name { max-width: 6rem; } }
@media (min-width: 50rem) and (max-width: 59.99rem) { .nav-name { max-width: 9rem; } }
@media (max-width: 36rem) {
  .masthead { column-gap: 0.75rem; }
  .nav-run { flex-basis: 100%; max-width: none; }
  .masthead nav { column-gap: 0.85rem; }
  .masthead nav > a, .nav-split > a, .nav-button, a.nav-chip { font-size: 0.9rem; }
  .nav-button { gap: 0.28rem; }
  .nav-split > .nav-button { padding: 1.1rem 0.7rem 1.1rem 0.38rem; margin: -0.85rem -0.42rem -0.85rem 0; }
  .nav-group { position: static; }
  .nav-menu, .masthead nav .nav-menu { top: 100%; left: var(--gutter-l); right: var(--gutter-r); width: auto; max-width: none; }
  .masthead nav .nav-menu { left: 0; right: 0; top: calc(100% + 0.45rem); }
  .nav-name { max-width: max(3.5rem, calc(100vw - 19.6rem)); }
}
@media (max-width: 23.99rem) {
  .masthead nav { column-gap: 0.65rem; }
  .masthead nav > a, .nav-split > a, .nav-button, a.nav-chip { font-size: 0.86rem; }
  .nav-split > .nav-button { padding: 1.1rem 0.6rem 1.1rem 0.32rem; margin-right: -0.38rem; }
}
@media (max-width: 21.5rem) {
  .masthead nav { column-gap: 0.5rem; }
  .masthead nav > a, .nav-split > a, .nav-button, a.nav-chip { font-size: 0.8rem; }
}
/* At 320 the logo and the place's chip share the first line with a hair to spare: a tighter gap keeps them there. */
@media (max-width: 23.4rem) { .masthead { column-gap: 0.3rem; } .nav-chip { gap: 0.25rem; } }
/* One quiet line under the bar when a link has just brought a place in. */
.place-note { background: var(--land); border-bottom: 1px solid var(--land-edge); font-size: 0.94rem; }
.place-note-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; padding-block: 0.6rem; }
.place-note-in p { margin: 0; flex: 1 1 15rem; min-width: 0; overflow-wrap: anywhere; }
.place-note-do, .text-button { font: inherit; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0.2rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.16em; }
.text-button--quiet { color: var(--ink-soft); font-weight: 500; }
almanac-masthead :focus-visible, almanac-footer :focus-visible { outline-color: var(--gold-bright); }

/* ---------- hero: one wide photograph ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: clamp(440px, 43vw, 560px);
  background: var(--forest);
  color: var(--on-photo);
}
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(var(--photo-shade), var(--hero-shade, 0.46)), rgba(var(--photo-shade), calc(var(--hero-shade, 0.46) * 0.3)) 58%, rgba(var(--photo-shade), 0));
}
/* The opening picture follows the island's day; each light needs its own shade. */
almanac-picture { display: contents; }
.hero[data-phase="dawn"] { --hero-shade: 0.5; --photo-shade: 46, 30, 22; }
.hero[data-phase="day"] { --hero-shade: 0.46; --photo-shade: 6, 40, 90; }
.hero[data-phase="day"] .hero-img { object-position: 50% 80%; }
.hero[data-phase="dusk"] { --hero-shade: 0.52; --photo-shade: 22, 24, 52; }
.hero[data-phase="night"] { --hero-shade: 0.2; --photo-shade: 6, 10, 24; }
.hero[data-phase="night"] .hero-img { filter: brightness(1.32) saturate(1.08); }
@media (max-width: 700px) {
  .hero[data-phase="day"] .hero-img { object-position: 50% 50%; }
}
/* A turn that is not the harbour's: the picture is cut for this frame already. */
.hero[data-turn]:not([data-turn="coral-harbor"]) .hero-img { object-position: 50% 50%; filter: none; }
/* Its words stand at the upper left over whatever is there, bright sand or cloud
   included: a second shade from that side, so the rest of the picture keeps its colour. */
.hero[data-turn]:not([data-turn="coral-harbor"])::after {
  background:
    linear-gradient(98deg, rgba(var(--photo-shade), 0.4), rgba(var(--photo-shade), 0.16) 40%, rgba(var(--photo-shade), 0) 60%),
    linear-gradient(180deg, rgba(var(--photo-shade), var(--hero-shade, 0.46)), rgba(var(--photo-shade), calc(var(--hero-shade, 0.46) * 0.3)) 58%, rgba(var(--photo-shade), 0)),
    linear-gradient(0deg, rgba(var(--photo-shade), 0.34), rgba(var(--photo-shade), 0) 16%);
}
/* The opening picture's place and its photographer, on the picture itself. */
.hero-credit { position: absolute; z-index: 1; right: var(--gutter-r); bottom: 0.6rem; margin: 0; max-width: min(62%, 36rem); text-align: right; font-size: 0.74rem; line-height: 1.4; color: var(--on-photo); text-shadow: 0 1px 6px rgba(var(--photo-shade), 0.95), 0 0 2px rgba(var(--photo-shade), 0.8); }
.hero-credit a { color: inherit; }
.hero-credit strong { font-size: 0.92rem; font-weight: 600; }
.hero-credit a:first-of-type { font-weight: 600; font-size: 0.84rem; }
@media (max-width: 36rem) { .hero-credit { left: var(--gutter-l); max-width: none; text-align: left; bottom: 0.5rem; } .hero-in { padding-bottom: 3.6rem; } }
.hero-in { width: 100%; padding-block: clamp(1.5rem, 3.6vw, 2.75rem) 2rem; }
/* ---------- the front page's opening: the living island, live ----------
   <almanac-opening> (assets/today.js) writes the .lh box first, and the living
   island's own piece fills it (island/hero.js, island/hero.css). The three
   marks, the note and the welcome's words are the page's own. The bar's logo is
   the page's one logo (the owner: "It looks weird doubled up one right above
   the other with the header"; the large logo is on About).

   A PHONE, and anything narrower than 960 dots: the island stands whole above;
   an alert in force, if there is one, is one slim line directly under it; the
   marks come in a row under that, where a thumb finds them; then the line
   that says what the location mark did; then the welcome; all on the bar's
   green. Nothing of the page's lies on the picture, so nothing can lie on the
   piece's own caption or on a place's name.

   A DESK: the picture runs the full width. The welcome's words stand over its
   left two fifths on a shade from that side, and the piece is told to keep the
   turning island right of that (keep: 0.42). The marks stand at its lower right
   with the note above them; the piece's caption stands at the lower left, and
   under 1240 dots, where the two would meet, the marks stand a row higher. */
.live { position: relative; isolation: isolate; background: var(--forest); color: var(--on-forest); --photo-shade: 6, 26, 52; }
almanac-opening { display: flex; flex-direction: column; position: relative; }
.live .lh { flex: none; width: 100%; aspect-ratio: 5 / 6; min-height: 19rem; max-height: min(74svh, 40rem); }
.live .lh picture { display: contents; }
.live .lh-still { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
/* The piece hides its caption while its own line about the location mark shows. Here that line is the page's (.live-note)
   and stands clear of the caption, so the caption stays. */
.live .lh--why .lh-say { display: block; }
/* An alert in force, on a phone: its one slim line stands directly under the picture, above the marks and the welcome,
   so it is on the first screen. It is the same line, from the weather section's own function, as the one under the
   opening (<almanac-now>); on a phone that one is hidden while this one shows, and on a desk this one is hidden. With no
   alert in force this is empty and takes no room. Never a box, never the lead. */
.live-alert { display: none; }
@media (max-width: 959.98px) {
  .live-alert:not(:empty) { display: block; padding: 0.7rem var(--gutter-r) 0 var(--gutter-l); }
  .live-alert .alert-line { color: var(--on-forest); text-shadow: none; }
  .live.has-alert ~ .band almanac-now > .alert-line { display: none; }
}
.live-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; padding: 0.75rem var(--gutter-r) 0 var(--gutter-l); }
.live-mark { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-forest) 50%, transparent); background: transparent; color: var(--on-forest); font: 600 0.9rem/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; }
.live-mark svg { flex: none; width: 0.85rem; height: 1.15rem; }
.live-mark--go, .live-mark[aria-pressed="true"] { background: var(--gold-bright); border-color: var(--gold-bright); color: #14362E; }
.live-mark:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.live-mark--go:focus-visible { outline-color: var(--on-forest); }
.live-here { min-width: 2.75rem; padding: 0 0.8rem; }
.live-note { margin: 0.65rem var(--gutter-r) 0 var(--gutter-l); padding: 0.6rem 0.85rem; max-width: 30rem; border-radius: 0.6rem; font-size: 0.9rem; line-height: 1.45; color: var(--on-forest); background: color-mix(in srgb, var(--on-forest) 11%, transparent); overflow-wrap: break-word; }
.live-note a { color: var(--gold-bright); font-weight: 600; }
.live-note-go { font: inherit; font-weight: 600; color: #14362E; background: var(--gold-bright); border: 0; border-radius: 999px; padding: 0.3rem 0.75rem; cursor: pointer; }
.live-note-go:focus-visible { outline: 3px solid var(--on-forest); outline-offset: 2px; }
.live-words { padding: 1.15rem var(--gutter-r) 1.6rem var(--gutter-l); }
.welcome { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; max-width: 34rem; }
.welcome-h { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.75rem, 1.7vw + 1.15rem, 2.7rem); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.welcome-say { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.welcome-do { margin: 0; }
.welcome-more { color: inherit; font-weight: 600; text-underline-offset: 0.18em; }
.live-keep { white-space: nowrap; }
/* Gone in to a place, the open mark opens the full page on that place, and says so: "Open the living island here". */
.live-open-here { display: none; }
.is-in .live-open-here { display: inline; }
@media (max-width: 959.98px) {
  /* Gone in there are three marks, and on a phone they keep to one row: the location mark is then its sign alone, as on
     a map, and the open mark reads "Open here" (the words left out stay for a screen reader). */
  .is-in .live-here-words, .is-in .live-open-what { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .is-in .live-here { padding: 0; }
}
@media (max-width: 359.98px) { .live-mark { padding: 0 0.8rem; font-size: 0.85rem; } }
@media (min-width: 960px) {
  almanac-opening { display: block; }
  .live .lh { aspect-ratio: 2.3; min-height: 30rem; max-height: max(30rem, calc(100svh - 9rem)); }
  almanac-opening::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(96deg, rgba(var(--photo-shade), 0.72), rgba(var(--photo-shade), 0.34) 32%, rgba(var(--photo-shade), 0) 50%); }
  .live-words { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; pointer-events: none; color: var(--on-photo);
    padding: 1.5rem 60% 4.75rem max(var(--gutter-l), calc((100% - var(--column)) / 2 + var(--gutter-l))); }
  .welcome { pointer-events: auto; max-width: 27rem; }
  .welcome-h, .welcome-say, .welcome-more { text-shadow: 0 1px 14px rgba(var(--photo-shade), 0.8); }
  .live-marks { position: absolute; z-index: 3; right: var(--gutter-r); bottom: 1rem; padding: 0; flex-wrap: nowrap; }
  .live-mark { border-color: color-mix(in srgb, var(--on-photo) 55%, transparent); background: rgba(var(--photo-shade), 0.62); color: var(--on-photo); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .live-mark--go, .live-mark[aria-pressed="true"] { background: var(--gold-bright); border-color: var(--gold-bright); color: #14362E; }
  .live-note { position: absolute; z-index: 3; right: var(--gutter-r); bottom: 4.6rem; margin: 0; max-width: 24rem; background: color-mix(in srgb, var(--forest) 93%, transparent); }
}
@media (min-width: 960px) and (max-width: 1239.98px) {
  .live-marks { bottom: 3.9rem; }
  .live-note { bottom: 7.5rem; }
}

/* The day's line under the opening: the date, and the sun's rise and set at the
   reader's place or the opening place (<almanac-today show="line">). */
.day-line { display: block; font-size: 1.02rem; line-height: 1.4; color: var(--ink); }
.day-line:empty { display: none; }
.day-line b { font-weight: 700; }

/* The day's photograph, as a band lower down the front page
   (<almanac-picture show="band">): the picture whole, the place's name and the
   photographer's under it. */
/* The front page: more for today as one quiet line; the reader's place with the home report's tile beside it. */
.today-more { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }
.today-more a { color: var(--accent); font-weight: 600; }
.yours-band { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 52rem) { .yours-band { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); } }
/* The front page's way in to the day's paper: a small print, the day, the paper's own line, and one press. */
almanac-paper { display: block; }
.paper-card { display: flex; align-items: center; gap: 1.25rem; padding: 1rem; background: var(--land); border: 1px solid var(--land-edge); border-radius: 12px; color: var(--ink); text-decoration: none; }
.paper-card:hover { border-color: var(--accent); }
.paper-card:hover .paper-go { text-decoration: underline; text-underline-offset: 0.16em; }
.paper-pic { flex: 0 0 min(15rem, 34%); }
.paper-pic img { display: block; width: 100%; height: auto; padding: 0.3rem; background: var(--sheet); border: 1px solid var(--land-edge); border-radius: 4px; }
.paper-words { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.paper-line { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.paper-say { color: var(--ink-soft); }
.paper-go { color: var(--accent); font-weight: 600; }
@media (max-width: 36rem) {
  .paper-card { flex-direction: column; align-items: stretch; gap: 0.85rem; }
  .paper-pic { flex-basis: auto; }
}
.day-pic { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.day-pic picture { display: block; }
.day-pic img { display: block; width: 100%; height: auto; aspect-ratio: 2.3 / 1; object-fit: cover; border-radius: 14px; background: var(--forest); }
.day-pic[data-turn="coral-harbor"][data-phase="night"] img { filter: brightness(1.32) saturate(1.08); }
.day-pic figcaption { font-size: var(--step--1); line-height: 1.45; color: var(--ink-soft); }
.day-pic figcaption strong { font-weight: 600; color: var(--ink); }
@media (max-width: 700px) { .day-pic img { aspect-ratio: 1000 / 859; } }
}

.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.hero .eyebrow { color: var(--gold-bright); text-shadow: 0 1px 10px rgba(var(--photo-shade), 0.5); }
.hero-h {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 1px 20px rgba(var(--photo-shade), 0.45);
  font-variant-numeric: lining-nums;
  max-width: 22ch;
}
.hero-h b { font-weight: 600; }
.hero-h small { font-size: 0.42em; font-weight: 600; letter-spacing: 0.02em; margin-left: 0.14em; }
.hero-sub { font-size: 1.06rem; line-height: 1.45; max-width: 46ch; text-shadow: 0 1px 12px rgba(var(--photo-shade), 0.55); }

/* ---------- today ---------- */

.today-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem 2.5rem; margin: 0; }
.today-strip > div { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.today-strip dt { order: -1; }
.today-strip dd { margin: 0; }
.figure-lg {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.2vw + 0.9rem, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums lining-nums;
}
.figure-lg small { font-size: 0.55em; font-weight: 600; letter-spacing: 0.01em; margin-left: 0.12em; }
.figure-note { font-size: var(--step--1); color: var(--ink-soft); }
.moon { display: flex; align-items: center; gap: 0.55rem; }
.moon svg { width: 2.1rem; height: 2.1rem; flex: none; }
.fineprint { font-size: var(--step--1); color: var(--ink-soft); max-width: var(--measure); }

/* ---------- the line of live readings on the front page ----------
   weather/now.js fills <almanac-now> with any alert in force (a .notice) and one
   line of readings. Until it has something fresh to say the element is empty
   and takes no room. */
almanac-now, almanac-month { display: block; }
almanac-now:empty, almanac-month:empty { display: none; }
.month-line { margin: 0; max-width: var(--measure); }
.month-line a { white-space: nowrap; }
.now-line { margin: 0; max-width: var(--measure); color: var(--ink); }
.now-line a { white-space: nowrap; }

/* ---------- places: a few shared pictures of places, each with its credit ---------- */
.place-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
@media (min-width: 48rem) { .place-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.25rem; } }
.place-tile { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.place-tile img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--land); }
.place-tile figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.place-tile .place-name { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.place-tile .place-name:hover { color: var(--accent); text-decoration: underline; }
.place-tile .read-credit { font-size: 0.74rem; line-height: 1.4; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- cards: what is in the almanac ---------- */

/* The cards sit in the bar's groups, each under its name. Columns are filled,
   not stretched, so a group of one card is the same width as the rest. */
.cards-label { margin: 0.6rem 0 -0.35rem; }
.cards-label:first-of-type { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--land);
  border: 1px solid var(--land-edge);
  border-radius: 6px;
  padding: 1.25rem 1.3rem 1.5rem;
}
.kicker { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: " \2197"; }
.card h3 a:hover { color: var(--accent); }
.card .body { color: var(--ink-soft); font-size: 0.95rem; }

.kept { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem 2.5rem; }
.kept > * { min-width: 0; }
.kept p { color: var(--ink-soft); }

/* ---------- small parts ---------- */

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.4em 0.65em 0.38em;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  white-space: nowrap;
  color: var(--ink-soft);
}
.tag--open { color: var(--reef); }
.tag--caution { color: var(--signal); }

.button {
  display: inline-block;
  background: var(--press);
  color: var(--on-press);
  border: 1px solid var(--press);
  border-radius: 8px;
  padding: 0.68rem 1.1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.12); }
.button--quiet { background: var(--sheet); color: var(--ink); border-color: var(--rule); }
.button--quiet:hover { border-color: var(--ink); filter: none; }

/* An alert in force: ONE SLIM LINE under a page's opening. Never a box, never
   the page's lead (the owner: "alerts should not hijack the UI"). It is one
   plain sentence: the alert's name in bold, until when, and a link to the
   Weather page, where it is told in full. It runs as text and wraps as text on
   a narrow screen; it is never laid out in columns, whatever is inside it.
     <p class="alert-line"><strong>Small Craft Advisory</strong> until 6:00 pm. <a href="…">In full on the Weather page</a></p>
   A small sign in the caution colour stands before it (a drawn one if the
   writer puts an svg.sym first, a dot if not). Over a picture or a dark scene,
   add alert-line--light. */
.alert-line { display: block; margin: 0; font-size: var(--step--1); line-height: 1.4; color: var(--ink); overflow-wrap: break-word; }
.alert-line::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-right: 0.45rem; border-radius: 50%; background: var(--signal); vertical-align: 0.06em; }
.alert-line:has(> .sym)::before { display: none; }
.alert-line > .sym { display: inline-block; width: 1.05rem; height: 1.05rem; margin-right: 0.35rem; stroke-width: 3.2; color: var(--signal); vertical-align: -0.18em; }
.alert-line strong { font-weight: 600; }
.alert-line a { font-weight: 600; white-space: nowrap; }
.alert-line--light { color: var(--on-photo); text-shadow: 0 1px 8px rgba(var(--photo-shade), 0.9); }
.alert-line--light::before { background: var(--gold-bright); }
.alert-line--light > .sym { color: var(--gold-bright); }
.alert-line--light a { color: inherit; }

/* The Weather page's own account of an alert, in full (and nowhere else). */
.notice {
  border-left: 4px solid var(--signal);
  border-radius: 0 6px 6px 0;
  padding: 0.75rem 1rem;
  background: var(--land);
  max-width: var(--measure);
}
.notice strong { color: var(--signal); }

.prose { max-width: var(--measure); display: flex; flex-direction: column; gap: 1rem; }
.prose h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.prose h2 { font-size: var(--step-2); margin-top: 1rem; }
.prose .lede { font-size: var(--step-1); line-height: 1.45; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }

.table-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums lining-nums; }
table.data caption { text-align: left; padding-bottom: 0.5rem; }
table.data th, table.data td { text-align: left; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
table.data thead th { border-bottom: 1px solid var(--ink); font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); }
table.data td.n, table.data th.n { text-align: right; padding-right: 0; padding-left: 1rem; }
/* A number column that is not the last: its figures stand hard against the right of their column, so the column of
   words after it is given room on that side, or the two run together ("19°15 February"). */
table.data td.n + td:not(.n), table.data td.n + th:not(.n), table.data th.n + th:not(.n), table.data th.n + td:not(.n) { padding-left: 1.25rem; }

/* ---------- a long read ----------
   An article of a few thousand words: geology, natural history, a note.
   <article class="read"> holds the words in one column of comfortable width;
   a figure or a table marked wide may run the full width of the page.
   Parts: .read-meta, nav.read-contents, figure.read-figure (with figcaption and
   .read-credit), aside.read-aside, ul.read-numbers, blockquote.read-quote,
   a.read-ref and ol.read-notes. Specimen: brand/read/index.html.
   How to use them: docs/for-tool-pages.md, "A long read". */
/* The column's width is set in rem, not ch, so that parts in a smaller or larger
   type (the contents, an aside, a pull quote) keep the same edge as the text. */
.read { --read-measure: 44rem; display: flex; flex-direction: column; gap: 1.05rem; font-size: 1.0625rem; line-height: 1.65; }
.read > * { max-width: var(--read-measure); min-width: 0; margin: 0; }
.read > .read-wide, .read > .read-figure--wide, .read > .read-numbers { max-width: none; }
.read h1 { font-size: clamp(2.1rem, 3.4vw + 1rem, 3.4rem); }
.read h2 { font-size: var(--step-2); margin-top: 1.4rem; }
.read h3 { font-size: var(--step-1); margin-top: 0.5rem; }
.read .lede { font-size: var(--step-1); line-height: 1.45; }
.read ul:not([class]), .read ol:not([class]) { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.read :target { scroll-margin-top: 1.25rem; }
/* One quiet line under the title: how long it takes to read, when it was last checked. */
.read-meta { font-size: var(--step--1); color: var(--ink-soft); }

/* What is on the page, as a short numbered list. */
.read-contents { border-block: 1px solid var(--rule); padding-block: 0.95rem 1.05rem; display: flex; flex-direction: column; gap: 0.55rem; font-size: 1rem; line-height: 1.4; }
.read-contents ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; counter-reset: read-part; }
.read-contents li { counter-increment: read-part; display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); }
.read-contents li::before { content: counter(read-part); color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.read-contents a { color: var(--ink); text-decoration: none; }
.read-contents a:hover { color: var(--accent); text-decoration: underline; }

/* A picture, map or drawing, with what it shows and whose it is. */
.read-figure { display: flex; flex-direction: column; gap: 0.6rem; margin-block: 0.5rem; }
.read-figure > img, .read-figure > picture > img, .read-figure > svg, .read-figure > canvas, .read-figure > video { display: block; width: 100%; height: auto; border-radius: 6px; }
.read-figure > img, .read-figure > picture > img { background: var(--land); }
.read-figure figcaption { max-width: var(--read-measure, var(--measure)); font-size: var(--step--1); line-height: 1.5; color: var(--ink-soft); }
.read-figure .read-credit { display: block; margin-top: 0.2rem; font-size: 0.78rem; }
/* A drawing on the paper itself: no rounded corners, no ground behind it. */
.read-figure--plain > img, .read-figure--plain > picture > img, .read-figure--plain > svg { border-radius: 0; background: none; }

/* Something beside the main line of the story, set in a box. */
.read-aside { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.1rem 1.25rem 1.2rem; background: var(--land); border: 1px solid var(--land-edge); border-radius: 6px; font-size: 1rem; line-height: 1.55; }
.read-aside > * { margin: 0; }
.read-aside h3, .read-aside h4 { font-family: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 0; }
.read-aside--water { background: var(--water); border-color: var(--water-edge); }

/* A few large numbers in a row, each with what it counts. */
.read-numbers { list-style: none; margin: 0.4rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.1rem 1.75rem; }
.read-numbers li { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.8rem; border-top: 1px solid var(--rule); font-size: var(--step--1); line-height: 1.45; color: var(--ink-soft); }
.read-numbers b { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 2.4vw + 1.1rem, 2.7rem); line-height: 1; letter-spacing: -0.015em; color: var(--ink); font-variant-numeric: lining-nums; }
.read-numbers b small { font-size: 0.5em; font-weight: 600; letter-spacing: 0; }

/* A sentence lifted out of the text, or someone's own words. */
.read-quote { padding: 0.15rem 0 0.15rem 1.2rem; border-left: 3px solid var(--gold); font-family: var(--display); font-size: var(--step-2); line-height: 1.32; }
.read-quote > * { margin: 0; }
.read-quote footer, .read-quote cite { display: block; margin-top: 0.6rem; font-family: var(--text); font-style: normal; font-size: var(--step--1); line-height: 1.45; color: var(--ink-soft); }

/* Numbered sources at the foot, each reached from a small raised number in the text. */
.read-ref { font-size: 0.72em; line-height: 0; vertical-align: super; font-weight: 600; font-variant-numeric: lining-nums; text-decoration: none; padding: 0.35em 0.2em; margin: -0.35em 0; }
.read-ref:hover { text-decoration: underline; }
.read-notes { margin: 0; padding-left: 1.7rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: var(--step--1); line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; }
.read-notes li { padding: 0.15rem 0.3rem; margin-inline: -0.3rem; border-radius: 4px; }
.read-notes li:target { background: var(--land); color: var(--ink); }

/* ==========================================================================
   The picture-led parts. An inner page opens on a photograph or a drawing,
   shows its figures as large tiles, dials and symbols, lays its lists out as
   picture cards, and folds its long notes below. Specimen: brand/look/.
   ========================================================================== */

/* ---------- the drawn symbols (assets/symbols.js) ---------- */
almanac-symbol { display: inline-flex; vertical-align: middle; }
.sym { width: 1.6em; height: 1.6em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sym .a { fill: var(--sym-warm, var(--gold-bright)); stroke: var(--sym-warm-edge, var(--gold)); }
.sym .r { stroke: var(--sym-warm-edge, var(--gold)); }
.sym .c { fill: var(--sym-cool, var(--water)); }
.sym .w { stroke: var(--sym-wet, var(--accent)); }
.sym .w .wf { fill: var(--sym-cool, var(--water)); }
.sym .f { fill: var(--sym-ground, var(--sheet)); }

/* ---------- the head of an inner page: one wide picture with the title on it ---------- */
.page-head { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(15rem, 36vw, 27rem); color: var(--on-photo); background: var(--forest); overflow: hidden; }
.page-head > img, .page-head > picture > img, .page-head > svg.page-head-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--photo-shade), 0) 0%, rgba(var(--photo-shade), 0.12) 38%, rgba(var(--photo-shade), 0.72) 100%); }
.page-head-in { width: 100%; padding-block: clamp(1.25rem, 3.5vw, 2.5rem); display: flex; flex-direction: column; gap: 0.55rem; }
.page-head .eyebrow { color: var(--gold-bright); text-shadow: 0 1px 10px rgba(var(--photo-shade), 0.6); }
.page-head h1 { font-size: clamp(2.2rem, 5vw + 0.6rem, 4.2rem); text-shadow: 0 1px 22px rgba(var(--photo-shade), 0.55); max-width: 18ch; }
.page-head-lede { margin: 0; max-width: 46ch; font-size: var(--step-1); line-height: 1.4; text-shadow: 0 1px 14px rgba(var(--photo-shade), 0.7); }
.page-head-credit { position: absolute; right: var(--gutter-r); bottom: 0.5rem; margin: 0; font-size: 0.7rem; line-height: 1.3; color: var(--on-photo); opacity: 0.85; text-align: right; max-width: 55%; text-shadow: 0 1px 6px rgba(var(--photo-shade), 0.9); }
.page-head-credit a { color: inherit; }
@media (max-width: 36rem) { .page-head-credit { position: static; max-width: none; text-align: left; opacity: 0.8; padding: 0 var(--gutter-r) 0.6rem var(--gutter-l); margin-top: -0.4rem; } .page-head { flex-direction: column; justify-content: flex-end; align-items: stretch; } }
/* ON A PHONE NOTHING LIES ON A PICTURE. A page that opens on a picture shows it clear, and its label, title and
   opening line come under it on the paper, the credit last. (History did this first for its own pages; this is the
   same for every page.) The rule takes a head that holds nothing but its picture, its words and its credit: a tool
   page whose head also holds its own model or map (Sun, Night sky, Sea floor) is left to its builder. A browser that
   does not know :has() keeps the words on the picture, as before. */
@media (max-width: 36rem) {
  .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit))) { display: block; min-height: 0; overflow: visible; padding-bottom: 0.5rem; background: var(--sheet); color: var(--ink); }
  .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit)))::after { display: none; }
  .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit))) > picture { display: block; }
  .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit))) > img, .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit))) > picture > img { position: static; z-index: auto; display: block; width: 100%; height: clamp(13rem, 64vw, 21rem); object-fit: cover; }
  .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit))) .page-head-in { padding-block: 1.1rem 0; }
  .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit))) .eyebrow { color: var(--gold); text-shadow: none; }
  .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit))) h1, .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit))) .page-head-lede { text-shadow: none; }
  .page-head:has(> img, > picture):not(:has(> :not(img, picture, .page-head-in, .page-head-credit))) .page-head-credit { margin-top: 0.7rem; padding-bottom: 0; color: var(--ink-soft); opacity: 1; text-shadow: none; font-size: 0.74rem; line-height: 1.4; }
}

/* ---------- long notes, folded and never deleted ---------- */
.fold { border-top: 1px solid var(--rule); }
.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0; font-weight: 600; font-size: var(--step--1); color: var(--accent); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: ""; width: 0.5rem; height: 0.5rem; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(-1px, -1px); transition: transform 0.15s ease; }
.fold[open] > summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.fold > summary:hover { text-decoration: underline; }
.fold-in { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.2rem 0 1rem; font-size: 0.94rem; line-height: 1.55; }
.fold-in > * { margin: 0; }
.fold-in dl { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.fold-in dt { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.fold-in dd { margin: 0.1rem 0 0; }
.fold-in .small, .fold-in small { font-size: var(--step--1); color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .fold > summary::before { transition: none; } }

/* ---------- chips: a word or two on a picture or beside a name ---------- */
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.5; background: var(--land); color: var(--ink); border: 1px solid var(--land-edge); }
.chip .sym { width: 1.05em; height: 1.05em; stroke-width: 3.4; }
.chip--sea { background: var(--water); border-color: var(--water-edge); }

/* ---------- picture cards: a list as a grid of pictures ---------- */
.pic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16.5rem, 100%), 1fr)); gap: 1.4rem 1.25rem; }
.pic-grid--small { grid-template-columns: repeat(auto-fill, minmax(min(10.5rem, 46%), 1fr)); gap: 1rem; }
.pic-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
/* The front page's tools as pictures: three to six of them, laid out by how many there are, so that a new tool
   is one more line in the page and nothing else. Three: three across. Four: four across, two by two on a tablet. Five:
   three across and two wider ones under them. Six: three across, twice. On a phone, four or five stand two across under their names alone, and
   an odd last one runs the full width; three stand one above another as they always have. */
.pic-grid--tools { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.pic-grid--tools > li { grid-column: span 4; }
.pic-grid--tools > li:first-child:nth-last-child(4), .pic-grid--tools > li:first-child:nth-last-child(4) ~ li { grid-column: span 3; }
@media (min-width: 36.01rem) {
  .pic-grid--tools > li:first-child:nth-last-child(5) ~ li:nth-child(n+4) { grid-column: span 6; }
  .pic-grid--tools > li:first-child:nth-last-child(5) ~ li:nth-child(n+4) .pic-link { aspect-ratio: 9 / 4; }
}
@media (max-width: 60rem) {
  .pic-grid--tools > li:first-child:nth-last-child(4), .pic-grid--tools > li:first-child:nth-last-child(4) ~ li { grid-column: span 6; }
}
@media (max-width: 36rem) {
  .pic-grid--tools { gap: 0.75rem; }
  .pic-grid--tools > li { grid-column: span 12; }
  .pic-grid--tools > li .pic-link > img { aspect-ratio: 5 / 2; }
  /* four, five or six: two across, names alone */
  .pic-grid--tools > li:first-child:nth-last-child(n+4), .pic-grid--tools > li:first-child:nth-last-child(n+4) ~ li { grid-column: span 6; }
  .pic-grid--tools > li:first-child:nth-last-child(n+4) .pic-link > img, .pic-grid--tools > li:first-child:nth-last-child(n+4) ~ li .pic-link > img { aspect-ratio: 4 / 3; }
  .pic-grid--tools > li:first-child:nth-last-child(n+4) .pic-link-name, .pic-grid--tools > li:first-child:nth-last-child(n+4) ~ li .pic-link-name { padding: 0.5rem 0.6rem 0.6rem; font-size: 1.08rem; }
  .pic-grid--tools > li:first-child:nth-last-child(n+4) .pic-link-name small, .pic-grid--tools > li:first-child:nth-last-child(n+4) ~ li .pic-link-name small { display: none; }
  /* an odd last one runs the full width, with its line */
  .pic-grid--tools > li:first-child:nth-last-child(5) ~ li:last-child { grid-column: span 12; }
  .pic-grid--tools > li:first-child:nth-last-child(5) ~ li:last-child .pic-link > img { aspect-ratio: 5 / 2; }
  .pic-grid--tools > li:first-child:nth-last-child(5) ~ li:last-child .pic-link-name small { display: block; }
  .pic-grid--tools > li { display: flex; }
  .pic-grid--tools > li > .pic-link { flex: 1; }
}
.pic-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 48rem) { .pic-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Two wide tiles side by side (the front page's guide, under Things we love's four pictures). */
.pic-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pic-grid--two .pic-link { aspect-ratio: 5 / 2; }
@media (max-width: 36rem) { .pic-grid--two { grid-template-columns: 1fr; } .pic-grid--two .pic-link > img { aspect-ratio: 5 / 2; } }
.guide-sub { font-size: var(--step-2); letter-spacing: -0.015em; }
.hello-kept { margin: 0; max-width: var(--measure); font-size: var(--step--1); color: var(--ink-soft); }
.love-line { margin: 0; max-width: var(--measure); font-family: var(--display); font-size: var(--step-1); line-height: 1.4; }
@media (max-width: 36rem) { .pic-grid--three { grid-template-columns: 1fr; } .pic-grid--three .pic-link > img { aspect-ratio: 5 / 2; } }
.pic-card { min-width: 0; display: flex; flex-direction: column; background: var(--land); border: 1px solid var(--land-edge); border-radius: 10px; overflow: hidden; }
.pic-card-pic { position: relative; aspect-ratio: 4 / 3; background: var(--land-edge); }
.pic-card-pic > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pic-card-pic--drawing > img { object-fit: contain; background: #FFFFFF; padding: 0.5rem; }
.pic-card-pic .chip { position: absolute; left: 0.6rem; top: 0.6rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.pic-card-in { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.9rem 1rem 0.4rem; flex: 1; }
.pic-card-in > * { margin: 0; }
.pic-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; line-height: 1.1; }
.pic-card-sub { font-size: var(--step--1); color: var(--ink-soft); }
.pic-card-line { font-size: 0.97rem; line-height: 1.45; }
/* A plain fact worth knowing about the thing, with a small sign beside it. Information, not a warning label. */
.pic-card-note { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.94rem; line-height: 1.45; }
.pic-card-note .sym { width: 1.15rem; height: 1.15rem; margin-top: 0.12rem; stroke-width: 3; color: var(--ink-soft); }
.pic-card .fold { margin-top: auto; }
/* A place or a page as a picture with its name on it. */
.pic-link { position: relative; isolation: isolate; display: flex; align-items: flex-end; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; color: var(--on-photo); text-decoration: none; background: var(--forest); }
.pic-link > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pic-link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--photo-shade), 0) 40%, rgba(var(--photo-shade), 0.78) 100%); }
.pic-link:hover > img { transform: scale(1.04); }
.pic-link-name { padding: 0.8rem 0.9rem; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.1; text-shadow: 0 1px 12px rgba(var(--photo-shade), 0.7); }
.pic-link-name small { display: block; margin-top: 0.2rem; font-family: var(--text); font-weight: 500; font-size: 0.8rem; opacity: 0.92; }
@media (prefers-reduced-motion: reduce) { .pic-link > img { transition: none; } .pic-link:hover > img { transform: none; } }
/* On a phone a picture tile is a picture with its name under it, and a card's label stands under its picture. The
   tile's and the card's own shape is given up there (a section's rule that fixes it would cut the name off), which is
   why those two lines are marked important; a section that wants another shape for the PICTURE sets it on the img. */
@media (max-width: 36rem) {
  .pic-link { flex-direction: column; align-items: stretch; aspect-ratio: auto !important; color: var(--ink); background: var(--land); border: 1px solid var(--land-edge); }
  .pic-link > img { position: static; z-index: auto; height: auto; aspect-ratio: 3 / 2; }
  .pic-link::after { display: none; }
  .pic-link:hover > img { transform: none; }
  .pic-link-name { padding: 0.6rem 0.75rem 0.7rem; text-shadow: none; }
  .pic-card-pic { aspect-ratio: auto !important; background: none; display: flex; flex-direction: column; }
  .pic-card-pic > img, .pic-card-pic > svg { height: auto; aspect-ratio: 4 / 3; }
  .pic-card-pic .chip { position: static; align-self: flex-start; margin: 0.7rem 1rem 0; box-shadow: none; }
}

/* ---------- figures as tiles: a large number, its symbol, what it is ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10.5rem, 46%), 1fr)); gap: 0.9rem; }
.tile { min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.05rem 1.05rem; border-radius: 12px; background: var(--land); border: 1px solid var(--land-edge); }
.tile > * { margin: 0; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); }
.tile-top .sym { width: 2.1rem; height: 2.1rem; color: var(--ink); }
.tile-n { font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 2.2vw + 1.5rem, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.tile-n small { font-size: 0.42em; font-weight: 600; letter-spacing: 0; margin-left: 0.12em; }
.tile-say { font-size: var(--step--1); line-height: 1.4; color: var(--ink-soft); }
.tile--sun { background: color-mix(in srgb, var(--gold-bright) 22%, var(--sheet)); border-color: color-mix(in srgb, var(--gold-bright) 55%, var(--sheet)); }
.tile--sea { background: var(--water); border-color: var(--water-edge); }
.tile--sky { background: color-mix(in srgb, var(--water) 55%, var(--sheet)); border-color: var(--water-edge); }
.tile--wide { grid-column: span 2; }
@media (max-width: 24rem) { .tile--wide { grid-column: auto; } }
/* A tile that is a way in: the whole tile is the link. */
.tile--go { padding: 0; }
.tile--go > a { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 1rem 1.05rem 1.05rem; color: inherit; text-decoration: none; border-radius: inherit; }
.tile--go > a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.tile-go-line { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.tile-go-line::after { content: " \2192"; color: var(--accent); font-weight: 700; }

/* The front page's band of tools: three picture links, each a frame of the tool's
   own drawing. A map is bright and busy, so the words get a deeper shade here. */
.tools-band .pic-link { --photo-shade: 8, 26, 48; }
.tools-band .pic-link::after { background: linear-gradient(180deg, rgba(var(--photo-shade), 0) 22%, rgba(var(--photo-shade), 0.62) 58%, rgba(var(--photo-shade), 0.9) 100%); }

/* ---------- a place of the reader's own ---------- */
/* The front page's "Today at <your place>" (assets/myday.js). */
almanac-my-day:empty { display: none; }
.my-day-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1.5rem; }
.my-day-h { font-family: var(--display); font-weight: 600; font-size: var(--step-3); letter-spacing: -0.015em; line-height: 1.12; overflow-wrap: anywhere; }
.my-day-where { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.my-day-change { font-size: var(--step--1); font-weight: 600; white-space: nowrap; }
.my-day-body { display: grid; gap: 1.1rem 1.4rem; align-items: start; }
.my-day-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.my-day-tiles .my-day-wind { grid-column: 1 / -1; }
@media (min-width: 52rem) {
  almanac-my-day:not(.has-pic) .my-day-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  almanac-my-day.has-pic .my-day-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}
.my-day-pic img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.my-day-pic-how { font-size: var(--step--1); color: var(--ink-soft); }
.my-day-wind-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; }
.my-day-wind-row > .stack { flex: 1 1 11rem; min-width: 0; }
.my-day-wind-line { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.my-day-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; padding: 1rem 1.15rem; border-radius: 12px; background: var(--water); border: 1px solid var(--water-edge); }
.my-day-invite-line { margin: 0; max-width: 46ch; font-family: var(--display); font-size: var(--step-1); line-height: 1.35; }
/* A small form: one question to a row. */
.field { display: flex; flex-direction: column; gap: 0.35rem; max-width: 30rem; }
.field > label { font-weight: 600; }
.field input[type="text"], .field-row input[type="text"] { font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--ink-soft); border-radius: 8px; padding: 0.62rem 0.75rem; width: 100%; min-width: 0; }
.field-row input[type="text"] { flex: 1 1 12rem; width: auto; }
.field-hint { margin: 0; font-size: var(--step--1); color: var(--ink-soft); max-width: var(--measure); }
.field-hint:empty { display: none; }
.field-row { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }
/* The places a reader has kept (place/). */
.place-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 1rem; }
.place-card { min-width: 0; display: flex; flex-direction: column; gap: 0.55rem; padding: 1.05rem 1.15rem 1.15rem; border-radius: 12px; background: var(--land); border: 1px solid var(--land-edge); }
.place-card.is-mine { background: color-mix(in srgb, var(--gold-bright) 22%, var(--sheet)); border-color: color-mix(in srgb, var(--gold-bright) 55%, var(--sheet)); }
.place-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; }
.place-card h3 { font-family: var(--display); font-size: var(--step-2); line-height: 1.2; overflow-wrap: anywhere; min-width: 0; }
.place-card p { margin: 0; }
.place-card-where { color: var(--ink-soft); font-size: var(--step--1); }
.place-card-link { font-size: var(--step--1); overflow-wrap: anywhere; color: var(--ink-soft); user-select: all; }
.place-card-do { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }

/* A dial: a ring of points with an arrow for where the wind comes from. */
.dial { position: relative; flex: 0 0 auto; width: clamp(7rem, 30vw, 9.5rem); aspect-ratio: 1; align-self: center; }
.dial svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dial .dial-ring { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; opacity: 0.55; }
.dial .dial-tick { stroke: var(--ink-soft); stroke-width: 1.4; stroke-linecap: round; }
.dial .dial-letter { fill: var(--ink-soft); font: 700 8px var(--text); text-anchor: middle; dominant-baseline: central; }
.dial .dial-arrow { fill: var(--accent); }
.dial .dial-n { fill: var(--ink); font: 600 26px var(--display); text-anchor: middle; dominant-baseline: central; }
.dial .dial-u { fill: var(--ink-soft); font: 600 8.5px var(--text); text-anchor: middle; letter-spacing: 0.06em; }

/* ---------- the days ahead: a row of days, each a symbol and its figures ---------- */
.days { list-style: none; margin: 0; padding: 0 0 0.4rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(6.6rem, 1fr); gap: 0.6rem; overflow-x: auto; scroll-snap-type: x proximity; }
.day { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 0.85rem 0.5rem 0.9rem; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); text-align: center; }
.day > * { margin: 0; }
.day-name { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); }
.day .sym { width: 2.9rem; height: 2.9rem; }
.day-hi { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1; }
.day-lo { font-size: var(--step--1); color: var(--ink-soft); }
.day-rain { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.day-rain .sym { width: 0.95rem; height: 0.95rem; stroke-width: 3.2; }
.day-wind { font-size: 0.76rem; color: var(--ink-soft); }
.day--today { background: var(--land); border-color: var(--land-edge); }

/* A band's heading with its symbol beside it. */
.band-head { display: flex; align-items: center; gap: 0.75rem; }
.band-head .sym { width: 2.6rem; height: 2.6rem; }
.band-head h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; }

/* ---------- the About page: a note in the first person, and its seal ---------- */
.letter-row { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 52rem) { .letter-row { grid-template-columns: minmax(0, 1fr) auto; } }
.letter { max-width: 40rem; display: flex; flex-direction: column; gap: 1.05rem; font-family: var(--display); font-size: clamp(1.2rem, 0.6vw + 1.05rem, 1.42rem); line-height: 1.5; }
.letter > * { margin: 0; }
.letter > p:first-child::first-letter { font-size: 3.1em; font-weight: 600; float: left; line-height: 0.82; padding: 0.06em 0.09em 0 0; color: var(--accent); }
.letter-line { margin: 0; max-width: 42rem; font-family: var(--display); font-size: clamp(1.15rem, 0.5vw + 1.02rem, 1.32rem); line-height: 1.5; }
/* About's signature: the whole logo, large, once on the site. On a desk it stands
   beside the first words of the note, well below the bar; on a phone it comes
   under the note, as its signature. */
.sign-box { display: flex; flex-direction: column; align-items: center; gap: clamp(1.4rem, 3vw, 2.2rem); }
.about-logo { width: clamp(13rem, 24vw, 19rem); color: var(--ink); }
@media (min-width: 52rem) { .letter-row--signed { align-items: start; } .letter-row--signed .sign-box { padding-top: 0.5rem; } }
.seal-box { display: flex; justify-content: center; }
.seal { width: clamp(9.5rem, 22vw, 13rem); height: auto; color: var(--signal); transform: rotate(-9deg); overflow: visible; }
.hello .button { font-size: 1.05rem; }

/* ---------- footer: the green band ---------- */

almanac-footer { display: block; background: var(--forest); color: var(--on-forest-soft); }
.footer { padding-block: 2rem 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem; font-size: var(--step--1); }
.footer > * { min-width: 0; }
.footer p { max-width: 62ch; }
.footer a { color: var(--on-forest); }
.footer .wordmark { color: var(--on-forest); font-size: 1.15rem; }
.footer .footer-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.theme-switch { font: inherit; font-weight: 600; color: var(--on-forest); background: transparent; border: 1px solid var(--on-forest-soft); border-radius: 8px; padding: 0.35rem 0.75rem; cursor: pointer; }
.theme-switch:hover { border-color: var(--on-forest); }
@media (min-width: 46rem) {
  .footer { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .footer .footer-tools { justify-content: flex-end; align-content: start; }
}

.footer .footer-quiet { font-size: var(--step--1); color: var(--on-forest-soft); }
.footer .footer-quiet a { color: var(--on-forest); }

/* A page with little on it (the not-found page): the footer still sits at the foot of the window. */
body.short { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.short main { flex: 1 0 auto; }

/* ---------- tool pages (a map or instrument that wants the room) ---------- */

body.tool main { padding-block: 0; }
.tool-head { padding-block: 1.5rem 1.25rem; }
.tool-head h1 { font-size: clamp(1.9rem, 3vw + 0.9rem, 3rem); }
.tool-stage { border-block: 1px solid var(--rule); background: var(--water); min-height: 50vh; }

/* ---------- brand guide only ---------- */

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.swatches li { min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--step--1); }
.swatch { height: 4.5rem; border: 1px solid var(--rule); border-radius: 6px; }
.swatches code, .spec code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8125rem; }
.ramp { display: flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.ramp span { flex: 1; height: 2.5rem; }
.spec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 2rem; padding-block: 1rem; border-top: 1px solid var(--rule); }
.spec > * { min-width: 0; }
@media (min-width: 46rem) { .spec { grid-template-columns: 11rem minmax(0, 1fr); } }
.marks { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
.marks .plate { padding: 1.25rem 1.5rem; border: 1px solid var(--rule); border-radius: 6px; display: flex; align-items: center; gap: 1rem; color: var(--ink); }
.marks .plate--forest { background: var(--forest); color: var(--on-forest); }
.marks .plate--photo { position: relative; isolation: isolate; overflow: hidden; color: var(--on-photo); min-width: min(100%, 18rem); }
.marks .plate--logo { justify-content: center; flex: 1 1 15rem; padding-block: 1.75rem; }
.marks .plate--logo almanac-logo { width: min(100%, 16rem); }
.marks .plate--bar { flex: 1 1 15rem; }
.marks .plate--bar almanac-logo { width: min(100%, 14rem); }
.marks .plate--sizes { flex: 1 1 100%; flex-wrap: wrap; gap: 1rem 2rem; }
.plate--photo img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

@media (prefers-reduced-motion: no-preference) {
  a, .button, .theme-switch { transition: color 0.12s, background-color 0.12s, border-color 0.12s, filter 0.12s; }
}
