/* Pinterlude prototype
   Layout: asymmetric grid inside wide margins (86 / 140 px, a golden pair).
   Two columns in golden proportion (0.382 / 0.618) with a 53 px gap; text starts on the 0.382 line.
   Spacing uses only Le Corbusier's Modulor values (scaled to px):
   red  4 6 10 16 27 43 70 113 183 296
   blue 5 8 13 20 33 53 86 140 226 366 */

:root {
  --paper: #F2EDE4;
  --ink: #2E2B27;
  --sea: #193E35;
  --amber: #F3B75D;
  --sky: #A6B6C8;
  --dusk: #A18473;
  --muted: #6B645A;
  --hair: #D3CABC;

  --serif: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* margins grow on very wide screens, keeping the 1 : 1.618 pair */
  --ml: calc(86px + max(0px, (100vw - 1592px) * .382));
  --mr: calc(140px + max(0px, (100vw - 1592px) * .618));
  --gap: 53px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(53px + env(safe-area-inset-top, 0px)); } /* in-page links stop below the slim header */
body {
  position: relative;
  margin: 0;
  padding-left: var(--ml);
  padding-right: var(--mr);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 33px;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p, h1, h2, h3, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
a { color: var(--sea); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 4px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* the grid */
.grid {
  display: grid;
  grid-template-columns: minmax(0, calc(38.2% - var(--gap))) minmax(0, 61.8%);
  column-gap: var(--gap);
}
.col-text { grid-column: 2; min-width: 0; }

/* the line */
.line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.line path {
  fill: none;
  stroke: var(--sea);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line circle { fill: var(--amber); }
.line .fig { fill: var(--sea); stroke: none; }
.line .companion { transition: opacity .3s; }
main, .site-footer { position: relative; z-index: 1; }

/* small type */
.label {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-ink { color: var(--ink); }
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: 1px;
}
.more {
  display: inline-block;
  margin-top: 27px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
}
.more::after { content: " \2192"; }

/* the logo (October 25), from images/logo: header and footer.
   The file keeps the logo's own clear space (38 units of 286.9 on each side): the negative margin
   lines the "p" up with the page margin. */
.brand { display: inline-block; line-height: 0; }
.brand-logo { display: block; height: var(--logo-h); width: auto; max-width: none; margin-left: calc(var(--logo-h) * -38 / 286.9); }
.slim-header { --logo-h: 33px; }
.foot-logo { display: inline-block; line-height: 0; }
.foot-logo img { --logo-h: 43px; height: var(--logo-h); width: auto; max-width: none; margin-left: calc(var(--logo-h) * -38 / 286.9); }
.menu { font-family: var(--mono); font-size: 13px; line-height: 20px; }
.menu a { color: var(--ink); text-decoration: none; }
.menu a:hover { color: var(--sea); text-decoration: underline; }
.menu-wide { display: flex; flex-wrap: wrap; gap: 8px 27px; }
.menu-phone { display: none; }

/* 1. prologue */
.prologue { margin-top: 140px; align-items: end; }
.yuna-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.prologue-text { grid-column: 2; max-width: 33em; }
.prologue-lede { margin-top: 16px; font-size: 27px; line-height: 43px; }

/* 2. motto */
.motto { margin-top: 226px; }
.motto-text { grid-column: 2; font-size: 33px; line-height: 43px; font-style: italic; color: var(--sea); }

/* 3. pieces */
.piece-open { margin-top: 140px; }
.piece-pair { margin-top: 226px; }
.piece-text { margin-top: 183px; }
.ph {
  display: grid;
  place-items: center;
  background: var(--hair);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  text-align: center;
  padding: 16px;
}
.ph-golden { width: 100%; aspect-ratio: 1.618 / 1; margin-bottom: 27px; }
.pair { display: flex; align-items: center; gap: 53px; }
.ph-tall { flex: 0 0 auto; width: min(296px, 45%); aspect-ratio: 4 / 5; }
.pair-text { min-width: 0; }
.piece-title { margin-top: 10px; font-size: 33px; line-height: 43px; max-width: 20em; }
.piece-title a { color: var(--ink); text-decoration: none; }
.piece-title a:hover { text-decoration: underline; }
.standfirst { margin-top: 16px; font-style: italic; max-width: 33em; }
.byline { margin-top: 16px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--muted); }

/* 4. pillars */
.pillars { margin-top: 226px; }
.pillar-list { margin-top: 27px; border-bottom: 1px solid var(--hair); }
.pillar-list li { padding-block: 27px; border-top: 1px solid var(--hair); }
.pillar-name { font-size: 33px; line-height: 43px; text-decoration: none; }
.pillar-name:hover { text-decoration: underline; }
.pillar-by {
  margin-left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillar-list p { margin-top: 6px; max-width: 33em; }
.pillar-sub { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 13px; line-height: 20px; }

/* 5. newsletter */
.newsletter { margin-top: 140px; }
.news-box { background: var(--sky); padding: 53px; }
.news-text { margin-top: 16px; font-size: 27px; line-height: 43px; max-width: 22em; }
.news-form { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 33px; }
.news-form input {
  flex: 1 1 226px;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.news-form input::placeholder { color: var(--ink); opacity: .7; }
.news-form button {
  padding: 10px 27px;
  border: 0;
  background: var(--sea);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
.news-form button:hover { background: var(--ink); }
.news-note { margin-top: 16px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--ink); }

/* end of the line */
.line-end { margin-top: 140px; }
.yuna-end { grid-column: 1; justify-self: center; display: block; height: 38px; width: auto; overflow: visible; transition: opacity .3s; }
.yuna-end path { fill: var(--sea); }

/* footer */
.site-footer {
  margin-top: 140px;
  padding-top: 53px;
  padding-bottom: 86px;
  border-top: 1px solid var(--hair);
}
.foot-motto { margin-top: 10px; font-style: italic; color: var(--muted); }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  justify-content: start;
  gap: 33px 53px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
}
.foot-cols .label { margin-bottom: 10px; }
.foot-cols ul { display: grid; gap: 6px; }

/* tablet */
@media (max-width: 1080px) {
  :root { --ml: 53px; --mr: 86px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, auto)); }
}

/* phone: 20 / 33 px margins, one column, the line runs inside the right margin */
@media (max-width: 720px) {
  :root { --ml: 20px; --mr: 33px; }
  body { font-size: 20px; line-height: 33px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .col-text, .prologue-text, .motto-text { grid-column: 1; }
  .slim-header { --logo-h: 29px; }
  .foot-logo img { --logo-h: 36px; }
  .menu-wide { display: none; }
  .menu-phone { display: block; position: relative; }
  .menu-phone summary { cursor: pointer; list-style: none; color: var(--sea); }
  .menu-phone summary::-webkit-details-marker { display: none; }
  .menu-phone ul {
    position: absolute; right: 0; top: 33px; z-index: 5;
    display: grid; gap: 10px;
    padding: 20px 27px;
    background: var(--paper);
    border: 1px solid var(--hair);
    white-space: nowrap;
  }
  .prologue { margin-top: 53px; row-gap: 33px; }
  .prologue-lede { font-size: 20px; line-height: 33px; }
  .motto { margin-top: 86px; }
  .motto-text { font-size: 27px; line-height: 43px; }
  .piece-open { margin-top: 53px; }
  .piece-pair { margin-top: 86px; }
  .pair { flex-direction: column; align-items: flex-start; gap: 27px; }
  .ph-tall { width: 70%; }
  .piece-text { margin-top: 86px; }
  .piece-title { font-size: 27px; line-height: 33px; }
  .pillars { margin-top: 86px; }
  .pillar-name { font-size: 27px; line-height: 33px; }
  .newsletter { margin-top: 86px; }
  .news-box { padding: 27px 20px; }
  .news-text { font-size: 20px; line-height: 33px; }
  .line-end { margin-top: 53px; }
  .yuna-end { justify-self: end; height: 53px; margin-right: 6px; transform: scaleX(-1); }
  .site-footer { margin-top: 86px; padding-top: 33px; padding-bottom: 53px; row-gap: 33px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 20px; }
}

/* ===== Article page ===== */
.line-origin { grid-column: 1; grid-row: 1; width: 1px; height: 1px; align-self: start; }
.essay-head { margin-top: 113px; }
.essay-head .col-text { grid-row: 1; }
.sample-note { margin-bottom: 43px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--muted); }
.essay-title { margin-top: 16px; font-size: 53px; line-height: 1.13; max-width: 14em; }
.essay-head .standfirst { margin-top: 27px; }
.essay-head .byline { margin-top: 27px; }

/* rows: images take air above and below; prose rows run on */
.role-opening, .role-pair, .role-panorama, .role-moving, .role-video { margin-block: 86px; }
.role-quote { margin-block: 53px; }
.essay-row.prose .col-text p { margin: 0 0 20px; max-width: 33em; }

.cap { margin-top: 10px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--muted); }
.cap .num { margin-right: 16px; color: var(--ink); }

/* 1. opening image */
.role-opening .ph-golden { grid-column: 1 / -1; margin-bottom: 0; }
.role-opening .cap, .role-panorama .cap { grid-column: 2; }

/* margin gloss (word play) */
.gloss { grid-column: 1; justify-self: end; align-self: start; width: min(100%, 226px); padding-top: 6px; }
.gloss-word { margin-top: 10px; font-size: 27px; line-height: 33px; font-style: italic; color: var(--sea); }
.gloss dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 13px; margin: 13px 0 0; font-size: 16px; line-height: 27px; }
.gloss dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.gloss dd { margin: 0; }
.gloss .more { margin-top: 16px; }
.gloss-ref { color: inherit; text-decoration: underline dotted var(--sea); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.gloss-ref::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: var(--amber); vertical-align: 8px; }

/* 3. detail in the margin */
.detail { grid-column: 1; justify-self: end; align-self: start; width: min(100%, 226px); padding-top: 6px; }
.ph-detail { aspect-ratio: 4 / 5; }

/* 2. pair: a tall image with a smaller one offset beside it */
.pair-imgs { display: grid; grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); gap: 33px; align-items: start; }
.ph-pair-tall { aspect-ratio: 4 / 5; }
.ph-pair-small { aspect-ratio: 1 / 1; }
.pair-small { margin-top: 113px; }

/* pull quote, one at most */
.quote-panel { margin: 0; padding: 53px; background: var(--sky); }
.quote-panel blockquote { margin: 0; max-width: 18em; font-size: 33px; line-height: 43px; font-style: italic; color: var(--ink); }

/* 4. panorama */
.ph-panorama { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

/* 5. moving image */
.ph-moving { position: relative; aspect-ratio: 3 / 2; }
.loop-toggle {
  position: absolute; left: 16px; bottom: 16px;
  padding: 6px 13px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
}

/* video still with a link */
.ph-video { aspect-ratio: 16 / 9; }

/* end of article */
.essay-end { margin-top: 113px; }
.essay-end .col-text { display: grid; gap: 27px; padding-top: 33px; border-top: 1px solid var(--hair); }
.end-row { display: grid; grid-template-columns: 113px minmax(0, 1fr); gap: 20px; align-items: baseline; }
.end-links { font-family: var(--mono); font-size: 13px; line-height: 20px; }
.next-link { font-size: 27px; line-height: 33px; }
.next-link::after { content: " \2192"; }

/* quiet motion: images rise and fade in once */
.reveal { transition: opacity 1.4s ease, transform 1.4s ease; }
.reveal.is-waiting { opacity: 0; transform: translateY(20px); }

@media (max-width: 720px) {
  .essay-head { margin-top: 53px; }
  .sample-note { margin-bottom: 27px; }
  .essay-title { font-size: 33px; line-height: 43px; }
  .role-opening, .role-pair, .role-panorama, .role-moving, .role-video { margin-block: 53px; }
  .role-opening .cap, .role-panorama .cap { grid-column: 1; }
  .gloss, .detail { grid-column: 1; order: 2; justify-self: start; margin-bottom: 33px; padding-top: 0; }
  .pair-imgs { grid-template-columns: minmax(0, 1fr) minmax(0, .618fr); gap: 20px; }
  .pair-small { margin-top: 53px; }
  .quote-panel { padding: 27px 20px; }
  .quote-panel blockquote { font-size: 27px; line-height: 33px; }
  .essay-end { margin-top: 53px; }
  .end-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ===== Other pages (step 5) ===== */
.page-head { margin-top: 113px; }
.page-head .col-text { grid-row: 1; }
.page-title { margin-top: 16px; font-size: 53px; line-height: 1.13; max-width: 14em; }
.page-head .standfirst { margin-top: 27px; }
.pillar-author { margin-top: 10px; }
/* the Words page opens with the Latin roots of "interlude", small, in the typewriter voice (October 18) */
.pillar-gloss { margin-bottom: 27px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--muted); }
/* the Pillars page: the four pillars, one under the other, as on the home page */
.pillars-all { margin-top: 53px; }
.pillars-all .pillar-list { margin-top: 0; }

/* pillar switcher */
.pillar-nav { display: flex; flex-wrap: wrap; gap: 8px 27px; margin-bottom: 43px; font-family: var(--mono); font-size: 13px; line-height: 20px; }
.pillar-nav a { padding-bottom: 4px; border-bottom: 1px solid transparent; color: var(--ink); text-decoration: none; }
.pillar-nav a:hover { color: var(--sea); }
.pillar-nav a[aria-current] { color: var(--sea); border-bottom-color: var(--sea); }

/* a single square photo */
.role-photo { margin-block: 86px; }
.photo-square { width: min(100%, 366px); aspect-ratio: 1; object-fit: cover; }
.end-link { margin-top: 53px; }

/* journal filters and lists */
.filters { margin-top: 86px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 16px; }
.filter-row .label { flex: 0 0 70px; }
.filter-row button {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}
.filter-row button:hover { color: var(--sea); }
.filter-row button[aria-pressed="true"] { color: var(--sea); border-bottom-color: var(--sea); }
.count { margin-top: 27px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--muted); }
.entries { margin-top: 53px; }
.entry-list { margin: 16px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--hair); }
.entry-list li { padding-block: 33px; border-top: 1px solid var(--hair); }
.entry-title { margin-top: 10px; font-size: 27px; line-height: 33px; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }
.entry-list .standfirst, .entry-list .byline { margin-top: 10px; }
.empty { margin-top: 33px; font-style: italic; color: var(--muted); }
.list-note { margin-top: 20px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--muted); }

/* word play panel on a pillar page */
.wordplay { margin-top: 86px; }
.wordplay .panel { padding: 53px; background: var(--sky); }
.wordplay .text { margin-top: 16px; max-width: 22em; font-size: 27px; line-height: 43px; color: var(--ink); }

/* lexicon: the word in the narrow column, its glosses in the text column */
.lex-list { margin-top: 86px; }
.lex-entry { padding-block: 33px; border-top: 1px solid var(--hair); }
.lex-entry:last-child { border-bottom: 1px solid var(--hair); }
.lex-word { grid-column: 1; justify-self: end; font-size: 33px; line-height: 43px; font-style: italic; color: var(--sea); text-align: right; }
.lex-glosses { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 4px 0 0; }
.lex-glosses dt { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; line-height: 33px; color: var(--muted); }
.lex-glosses dd { margin: 0; }
.lex-source { margin-top: 16px; font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--muted); }

/* about: portrait and text, the second one mirrored */
.person { margin-top: 113px; }
.person .col-text { display: flex; align-items: flex-start; gap: 53px; }
.person.reverse .col-text { flex-direction: row-reverse; }
.ph-portrait { flex: 0 0 auto; width: min(226px, 40%); aspect-ratio: 4 / 5; }
.person-text { min-width: 0; }
.person h2 { margin-top: 10px; font-size: 33px; line-height: 43px; }
.person-text p:not(.label) { margin-top: 16px; }
.contact-row { margin-top: 113px; }
.next-link.plain::after { content: none; }

/* legal text */
.legal { margin-top: 53px; }
.legal h2 { margin: 43px 0 16px; font-size: 27px; line-height: 33px; }
.updated { font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--muted); }

@media (max-width: 720px) {
  .page-head { margin-top: 53px; }
  .page-title { font-size: 33px; line-height: 43px; }
  .pillar-nav { margin-bottom: 27px; gap: 8px 20px; }
  .role-photo { margin-block: 53px; }
  .filters { margin-top: 53px; }
  .filter-row .label { flex-basis: 100%; }
  .wordplay { margin-top: 53px; }
  .wordplay .panel { padding: 27px 20px; }
  .wordplay .text { font-size: 20px; line-height: 33px; }
  .lex-list { margin-top: 53px; }
  .lex-word { justify-self: start; text-align: left; }
  .person { margin-top: 86px; }
  .person .col-text, .person.reverse .col-text { flex-direction: column; gap: 27px; }
  .ph-portrait { width: 70%; }
  .contact-row { margin-top: 86px; }
}

/* ===== Home: the cover (October 19) =====
   One of four photos, picked at random before the page first appears (see the script at the top of index.html).
   Only the chosen photo is downloaded: each photo's image is set in its own rule. JPEG for now: the AVIF files
   made by the Mac's own tool did not show in Firefox; WordPress will produce standard WebP/AVIF at step 6. The cover is the only thing
   that touches the screen edges; everything below it stays inside the margins. */
.cover {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  margin-left: calc(-1 * var(--ml));
  margin-right: calc(-1 * var(--mr));
  overflow: hidden;
  background: var(--sea);
  color: var(--words-color, var(--paper));
}
.cover-photo {
  position: absolute;
  inset: 0;
  background-color: var(--sea);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--cover-pos, 50% 50%);
}
.cover-words {
  position: absolute;
  z-index: 2;
  /* the words slide left when the screen is too narrow for them to sit at --wx inside the right margin
     (350px: the widest line, "Life is made of interludes.", at 33px) */
  left: min(var(--wx, var(--ml)), calc(100% - var(--mr) - 350px));
  top: var(--wy, 20%);
  display: grid;
  color: var(--words-color);
}
/* two lines: line 1 above; line 2 below it, where the logo then forms from "interludes" */
.cover-words > * { grid-area: 2 / 1; margin: 0; white-space: nowrap; }
.cover-words > .beat-1 { grid-area: 1 / 1; }
/* a soft local shade behind the words, only where a photo needs it (never a dark overlay) */
.cover-words::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -43px -70px;
  background: radial-gradient(closest-side, var(--shade, transparent), transparent);
  pointer-events: none;
}
.beat { font-family: var(--serif); font-size: 33px; line-height: 43px; font-weight: 400; opacity: 0; }
.beat .lc, .beat .lc-s { display: inline-block; }
/* the logo (October 25) on line 2: its letters at the size of the words (the logo is drawn at 200 units to the em),
   its baseline on the baseline of line 2 */
.cover-name { --lh: 43px; position: relative; height: var(--lh); font-size: 33px; line-height: var(--lh); }
.cover-logo {
  position: absolute;
  left: -0.17em;                        /* the logo's built-in clear space (38 units), less the side bearing of the words' first letter */
  top: calc(var(--lh) / 2 - 0.613em);   /* baseline of the line (EB Garamond: ascent 1.007em, descent 0.298em) less the logo's 193.5 units above its baseline */
  width: 4.7505em;                      /* the logo's canvas, 950.1 x 286.9 units */
  height: 1.4345em;
  overflow: visible;
}
.cover-logo .lg, .cover-logo .la { fill: var(--logo-color, var(--sea)); }
.cover-logo .ld { fill: var(--amber); }
.cover-logo path { transform-box: fill-box; transform-origin: 50% 50%; }
/* before the script takes over, a first visit shows nothing yet (no flash of the name) */
html[data-intro="play"] .cover-name { opacity: 0; }

/* the small menu on the cover */
.cover-menu {
  position: absolute;
  z-index: 3;
  top: calc(33px + env(safe-area-inset-top, 0px));
  right: var(--mr);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--menu-color, var(--paper));
  /* a barely visible halo keeps the small menu readable over clouds and haze */
  text-shadow: 0 0 10px var(--menu-halo, rgba(10, 30, 50, .45));
}
.cover-menu a { color: inherit; text-decoration: none; }
.cover-menu a:hover { text-decoration: underline; text-underline-offset: 5px; }
.cover-menu .menu-wide { display: flex; gap: 8px 27px; }
.cover-menu .menu-phone { display: none; }
.cover-menu a:focus-visible, .cover-menu summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* the slim header: logo and menu, once the cover has scrolled away */
.slim-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: var(--ml);
  padding-right: var(--mr);
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .45s cubic-bezier(.4,0,.2,1), visibility 0s linear .45s;
}
.slim-header.is-shown { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.4,0,.2,1), visibility 0s; }
/* on the other pages, the slim header is there from the start, at the top of the page, and stays while reading */
.slim-header.is-static { position: sticky; margin-left: calc(-1 * var(--ml)); margin-right: calc(-1 * var(--mr)); transform: none; visibility: visible; transition: none; }
.slim-inner { align-items: center; height: 53px; }
.slim-header .menu { justify-self: start; }

/* below the cover */
.home .prologue { margin-top: 140px; }

/* latest pieces: a scrolled list, alternating left and right; the guide line weaves between them.
   Kept self-contained (section.latest) so a carousel or another layout can replace it later. */
.latest { margin-top: 183px; }
.latest-list { margin: 0; padding: 0; list-style: none; }
.latest-item { margin-top: 226px; align-items: center; }
.latest-item:first-child { margin-top: 0; }
.latest-item .latest-fig { margin: 0; }
.latest-item .ph { text-decoration: none; }
.latest-item.is-right .latest-fig { grid-column: 2; grid-row: 1; }
.latest-item.is-right .latest-text { grid-column: 2; grid-row: 2; margin-top: 27px; }
.latest-item.is-right .ph { width: 100%; aspect-ratio: 1.618 / 1; }
.latest-item.is-left .latest-fig { grid-column: 1; grid-row: 1; justify-self: end; width: min(100%, 296px); }
.latest-item.is-left .latest-text { grid-column: 2; grid-row: 1; max-width: 24em; }
.latest-item.is-left .ph { width: 100%; aspect-ratio: 4 / 5; }
.latest-title { margin: 0; font-size: 33px; line-height: 43px; font-weight: 400; }
.latest-title a { color: var(--ink); text-decoration: none; }
.latest-title a:hover { text-decoration: underline; }
.latest-line { margin-top: 10px; font-style: italic; max-width: 33em; }
.latest-more { margin-top: 113px; }

@media (max-width: 720px) {
  .cover-words { left: var(--wx-phone, 20px); top: var(--wy-phone, 16%); }
  .beat, .cover-name { font-size: 27px; line-height: 33px; }
  .cover-name { --lh: 33px; }
  .cover-photo { background-position: var(--cover-pos-phone, 50% 50%); }
  .cover-menu { top: calc(20px + env(safe-area-inset-top, 0px)); }
  .cover-menu .menu-wide { display: none; }
  .cover-menu .menu-phone { display: block; position: relative; }
  .cover-menu summary { cursor: pointer; list-style: none; color: inherit; } /* the photo's menu color, not the deep sea of the other headers */
  .cover-menu summary::-webkit-details-marker { display: none; }
  .cover-menu .menu-phone ul {
    position: absolute; right: 0; top: 33px;
    display: grid; gap: 10px; padding: 20px 27px;
    background: var(--paper); border: 1px solid var(--hair); white-space: nowrap;
  }
  .cover-menu .menu-phone ul a { color: var(--ink); }
  .slim-inner { grid-template-columns: auto auto; justify-content: space-between; height: 53px; }
  .home .prologue { margin-top: 86px; }
  .latest { margin-top: 113px; }
  .latest-item { margin-top: 86px; }
  .latest-item.is-right .latest-fig, .latest-item.is-left .latest-fig { grid-column: 1; grid-row: 1; justify-self: start; width: 100%; }
  .latest-item.is-left .latest-fig { width: 70%; }
  .latest-item.is-right .latest-text, .latest-item.is-left .latest-text { grid-column: 1; grid-row: 2; margin-top: 20px; }
  .latest-title { font-size: 27px; line-height: 33px; }
  .latest-more { margin-top: 53px; }
}

html[data-cover="rock-pillars"], html:not([data-cover]) {
  --cover-pos: 50% 0%; --cover-pos-phone: 19% 0%;
  --words-color: var(--paper); --menu-color: var(--paper); --logo-color: var(--paper);
  --wx: var(--ml); --wy: calc(20% - 43px); --wx-phone: 20px; --wy-phone: calc(16% - 33px); /* one line up: line 2 and the name keep the approved place */
}
html[data-cover="rock-pillars"] .cover-photo, html:not([data-cover]) .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/rock-pillars-1920.jpg");
}
@media (min-width: 1441px), (min-width: 721px) and (min-resolution: 1.5dppx) {
  html[data-cover="rock-pillars"] .cover-photo, html:not([data-cover]) .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/rock-pillars-2560.jpg");
  }
}
@media (max-width: 720px) {
  html[data-cover="rock-pillars"] .cover-photo, html:not([data-cover]) .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/rock-pillars-1280.jpg");
  }
}
@media (max-width: 720px) and (min-resolution: 1.5dppx) {
  html[data-cover="rock-pillars"] .cover-photo, html:not([data-cover]) .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/rock-pillars-2560.jpg");
  }
}
html[data-cover="harbor-village"] {
  --menu-halo: rgba(242, 237, 228, .5);
  --cover-pos: 50% 50%; --cover-pos-phone: 84% 50%;
  --words-color: var(--paper); --menu-color: var(--ink); --logo-color: var(--paper); --shade: rgba(10, 32, 48, .32);
  --wx: 58%; --wy: calc(47% - 43px); --wx-phone: 20px; --wy-phone: 44%; /* desktop one line up (line 2 and the name keep the approved place); on phones, one line higher is too bright */
}
html[data-cover="harbor-village"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/harbor-village-1920.jpg");
}
@media (min-width: 1441px), (min-width: 721px) and (min-resolution: 1.5dppx) {
  html[data-cover="harbor-village"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/harbor-village-2560.jpg");
  }
}
@media (max-width: 720px) {
  html[data-cover="harbor-village"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/harbor-village-1280.jpg");
  }
}
@media (max-width: 720px) and (min-resolution: 1.5dppx) {
  html[data-cover="harbor-village"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/harbor-village-2560.jpg");
  }
}
html[data-cover="coast"] {
  --menu-halo: rgba(242, 237, 228, .5);
  --cover-pos: 50% 0%; --cover-pos-phone: 42% 0%;
  --words-color: var(--ink); --menu-color: var(--ink); --logo-color: var(--sea);
  --wx: var(--ml); --wy: 9%; --wx-phone: 20px; --wy-phone: 10%;
}
html[data-cover="coast"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/coast-1920.jpg");
}
@media (min-width: 1441px), (min-width: 721px) and (min-resolution: 1.5dppx) {
  html[data-cover="coast"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/coast-2560.jpg");
  }
}
@media (max-width: 720px) {
  html[data-cover="coast"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/coast-1280.jpg");
  }
}
@media (max-width: 720px) and (min-resolution: 1.5dppx) {
  html[data-cover="coast"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/coast-2560.jpg");
  }
}
html[data-cover="coast-crop"] {
  --menu-halo: rgba(242, 237, 228, .5);
  --cover-pos: 50% 0%; --cover-pos-phone: 23% 0%;
  --words-color: var(--ink); --menu-color: var(--ink); --logo-color: var(--sea);
  --wx: var(--ml); --wy: 9%; --wx-phone: 20px; --wy-phone: 10%;
}
html[data-cover="coast-crop"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/coast-crop-1920.jpg");
}
@media (min-width: 1441px), (min-width: 721px) and (min-resolution: 1.5dppx) {
  html[data-cover="coast-crop"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/coast-crop-2560.jpg");
  }
}
@media (max-width: 720px) {
  html[data-cover="coast-crop"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/coast-crop-1280.jpg");
  }
}
@media (max-width: 720px) and (min-resolution: 1.5dppx) {
  html[data-cover="coast-crop"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/coast-crop-2560.jpg");
  }
}
html[data-cover="lake-blossom"] {
  --menu-halo: rgba(242, 237, 228, .5);
  --cover-pos: 50% 0%; --cover-pos-phone: 0% 0%;
  --words-color: var(--ink); --menu-color: var(--ink); --logo-color: var(--sea);
  --wx: 40%; --wy: 16%; --wx-phone: 20px; --wy-phone: 14%;
}
html[data-cover="lake-blossom"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/lake-blossom-1920.jpg");
}
@media (min-width: 1441px), (min-width: 721px) and (min-resolution: 1.5dppx) {
  html[data-cover="lake-blossom"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/lake-blossom-2560.jpg");
  }
}
@media (max-width: 720px) {
  html[data-cover="lake-blossom"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/lake-blossom-1280.jpg");
  }
}
@media (max-width: 720px) and (min-resolution: 1.5dppx) {
  html[data-cover="lake-blossom"] .cover-photo {
    background-image: url("/wp-content/uploads/2026/11/lake-blossom-2560.jpg");
  }
}

/* six menu items (October 19, 12:10) no longer fit beside the logo below about 1000px:
   between phone and desktop widths, the header menu folds into "Menu", as on phones (the cover menu still fits on one line) */
@media (min-width: 721px) and (max-width: 1000px) {
  .slim-header .menu { justify-self: end; }
  .menu .menu-wide { display: none; }
  .menu .menu-phone { display: block; position: relative; }
  .menu .menu-phone summary { cursor: pointer; list-style: none; color: var(--sea); }
  .menu .menu-phone summary::-webkit-details-marker { display: none; }
  .menu .menu-phone ul {
    position: absolute; right: 0; top: 33px; z-index: 5;
    display: grid; gap: 10px;
    padding: 20px 27px;
    background: var(--paper);
    border: 1px solid var(--hair);
    white-space: nowrap;
  }
}
