/* Things we love about St. John: the section's own parts. Everything takes its
   colours and type from the Almanac's tokens (assets/almanac.css), so day and
   night both work. No literal colours. The shell's parts (page-head, pic-grid,
   pic-card, pic-link, tiles, fold, band-head, chip, button) are used as they are. */

.love :target { scroll-margin-top: 1rem; }
.love .pic-card:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* the line that opens a band: said large, in the serif */
.love-own { margin: 0; max-width: 44rem; font-family: var(--display); font-size: clamp(1.25rem, 1vw + 1.05rem, 1.7rem); line-height: 1.38; letter-spacing: -0.005em; }
.love-say { margin: 0; max-width: 44rem; font-size: 1.02rem; line-height: 1.6; }
.love-say + .love-say { margin-top: -0.35rem; }

/* the eleven, as doors: a large picture each, the owner's own sentence on it, the way in to its own page */
.love-doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr)); gap: 1rem; }
.love-doors > li { position: relative; min-width: 0; scroll-margin-top: 5rem; }
.love-door { aspect-ratio: 16 / 10; }
.love-door .pic-link-name { display: flex; flex-direction: column; gap: 0.3rem; width: 100%; padding: 0.9rem 1rem 1rem; font-size: clamp(1.4rem, 1vw + 1.15rem, 1.7rem); }
.love-door .pic-link-name small { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.love-door .pic-link-name em { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 0.98rem; line-height: 1.36; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.love-door::after { background: linear-gradient(180deg, rgba(var(--photo-shade), 0) 22%, rgba(var(--photo-shade), 0.84) 100%); }
.love-door:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.love-doors > li { display: flex; flex-direction: column; }
.love-door { flex: none; }
.love-door-credit { margin: 0; padding: 0.3rem 0.1rem 0; font-size: 0.68rem; line-height: 1.35; color: var(--ink-soft); }
.love-door-credit a { color: inherit; }
/* the old addresses of a thing's cards, kept inside its door (see build.mjs, index()) */
.love-old { position: absolute; top: 0; left: 0; }
/* at the foot of a thing's own page: the door on to the next, and the way back to all eleven */
.love-next { padding-block: 1.5rem; }
.love-doors--next { grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
.love-doors--next .love-door { aspect-ratio: 16 / 7; }
@media (max-width: 36rem) { .love-doors--next .love-door { aspect-ratio: 16 / 10; } }
.love--one .page-head .eyebrow a { color: inherit; text-decoration: none; }
.love--one .page-head .eyebrow a:hover { text-decoration: underline; }

/* a band led by one wide photograph */
.love-lead { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--land-edge); }
.love-lead > img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 36rem) { .love-lead > img { aspect-ratio: 3 / 2; } }
.love-lead figcaption { padding: 0.45rem 0.7rem; font-size: 0.74rem; line-height: 1.4; color: var(--ink-soft); background: var(--land); }
.love-lead figcaption a { color: inherit; }

/* a place's card: what the shell's card lacks is the row of things to press */
.love-grid { grid-template-columns: repeat(auto-fill, minmax(min(18.5rem, 100%), 1fr)); }
.love-card .pic-card-in { padding-bottom: 0.9rem; }
@media (min-width: 46rem) {
  .love-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .love-grid--two .pic-card-pic { aspect-ratio: 16 / 9; }
  .love-grid--one { grid-template-columns: 1fr; }
  .love-grid--one .love-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .love-grid--one .pic-card-pic { grid-column: 1; grid-row: 1; aspect-ratio: auto; min-height: 17rem; }
  .love-grid--one .love-card-credit { grid-column: 1; grid-row: 2; }
  .love-grid--one .pic-card-in { grid-column: 2; grid-row: 1 / span 2; padding-top: 1.2rem; }
  .love-grid--one .pic-card-pic > img { position: absolute; inset: 0; }
}
.love-card-credit { margin: 0; padding: 0.3rem 0.7rem; font-size: 0.68rem; line-height: 1.35; color: var(--ink-soft); background: color-mix(in srgb, var(--land) 60%, var(--land-edge)); }
.love-card-credit a { color: inherit; }
.love-know { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.love-know li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.94rem; line-height: 1.45; }
.love-know b { flex: none; min-width: 4.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 0.2rem; }
.love-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-top: auto; padding-top: 0.4rem; }
.love-go .button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem; font-size: 0.92rem; }
.love-go .button .sym { width: 1.1rem; height: 1.1rem; stroke-width: 3.2; }
.love-go-more { font-size: var(--step--1); }
.love-far { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15rem 0.5rem; padding: 0.5rem 0.7rem; border-radius: 8px; background: var(--water); border: 1px solid var(--water-edge); font-size: 0.9rem; line-height: 1.35; }
.love-far[hidden] { display: none; }
.love-far b { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.love-far span { color: var(--ink-soft); }
.love-far button, .love-far a { margin-left: auto; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 0.84rem; text-decoration: underline; cursor: pointer; }
.love-pin { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; padding: 0 0.3rem; border-radius: 999px; background: var(--press); color: var(--on-press); font-size: 0.78rem; font-weight: 700; font-variant-numeric: lining-nums; text-decoration: none; }
.love-card h3 { display: flex; align-items: center; gap: 0.5rem; }

/* a strip of photographs with a line each */
.love-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 0.9rem; }
.love-strip figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--land); border: 1px solid var(--land-edge); height: 100%; }
.love-strip img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.love-strip figcaption { padding: 0.5rem 0.7rem 0.6rem; font-size: 0.9rem; line-height: 1.4; }
.love-strip figcaption span { display: block; margin-top: 0.15rem; font-size: 0.68rem; color: var(--ink-soft); }

/* a few figures as tiles: wider than the shell's default, so a year or a share reads at a glance */
.love-tiles { grid-template-columns: repeat(auto-fit, minmax(min(12.5rem, 46%), 1fr)); }
.love-tiles .tile-n { font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem); }
.love-tiles .tile-say { font-size: 0.92rem; color: var(--ink); }
@media (max-width: 24rem) { .love-tiles { grid-template-columns: 1fr; } }

/* the artists' card: each work whole, never cut, with its maker's mark under it */
.love-artist { display: flex; flex-direction: column; gap: 0.8rem; }
.love-artist h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; }
.love-works { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 1rem; align-items: start; }
.love-works figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--sheet); border: 1px solid var(--land-edge); }
.love-works img { display: block; width: 100%; height: auto; }
.love-works figcaption { padding: 0.5rem 0.7rem 0.6rem; font-size: 0.74rem; line-height: 1.4; color: var(--ink-soft); }
.love-works figcaption b { display: block; font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.love-works figcaption a { color: inherit; }

/* a card whose photograph is still to come: one drawn sign on a tinted panel */
.love-art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--land); color: var(--ink); }
.love-art .sym { width: min(40%, 6.5rem); height: auto; aspect-ratio: 1; stroke-width: 2.2; }
.love-art--sun { background: color-mix(in srgb, var(--gold-bright) 26%, var(--sheet)); }
.love-art--sea { background: var(--water); }
.love-art--land { background: color-mix(in srgb, var(--land) 70%, var(--land-edge)); }

/* things a first-timer would not know: plain boxes, no numbers */
.love-tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 0.9rem; }
.love-tips > li { min-width: 0; padding: 0.95rem 1.05rem; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.3rem; }
.band--water .love-tips > li { border-color: var(--water-edge); }
.love-tips b { font-size: 1rem; }
.love-tips span { font-size: 0.94rem; line-height: 1.5; color: var(--ink-soft); }
.love-links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.love-links a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); font-size: var(--step--1); font-weight: 600; text-decoration: none; }
.love-links a:hover { border-color: var(--ink); }
.love-links .sym { width: 1.15rem; height: 1.15rem; stroke-width: 3; }

/* ----- the map of the pins ----- */
.love-map-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 56rem) { .love-map-wrap { grid-template-columns: 1fr; } }
.love-map { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--water-edge); background: var(--water); }
.love-map svg { display: block; width: 100%; height: auto; }
.love-map .lm-sea { fill: var(--water); }
.love-map .lm-land { fill: color-mix(in srgb, var(--land) 82%, var(--reef)); stroke: var(--land-edge); stroke-width: 12; stroke-linejoin: round; }
.love-map .lm-road { fill: none; stroke: color-mix(in srgb, var(--ink) 34%, var(--land)); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.love-map .lm-road--small { stroke-width: 7; stroke: color-mix(in srgb, var(--ink) 20%, var(--land)); }
.love-map .lm-way { fill: none; stroke: var(--accent); stroke-width: 46; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.love-map .lm-name { fill: var(--ink-soft); font-family: var(--text); font-size: 300px; font-weight: 600; letter-spacing: 0.04em; text-anchor: middle; paint-order: stroke; stroke: var(--water); stroke-width: 70; stroke-linejoin: round; }
.love-map .lm-name--land { stroke: color-mix(in srgb, var(--land) 82%, var(--reef)); }
/* A pin is centred on its place's true spot. Where several would lie on one another, one block carries all their
   numbers and lies over all their spots (.lm-many). The marks are drawn twice, for a wide map and for a phone's. */
.love-map .lm-pin circle, .love-map .lm-many rect { fill: var(--press); stroke: var(--sheet); stroke-width: 22; }
.love-map .lm-pin text, .love-map .lm-many text { fill: var(--on-press); font-family: var(--text); font-size: 290px; font-weight: 700; text-anchor: middle; dominant-baseline: central; font-variant-numeric: lining-nums; }
.love-map a:hover .lm-pin circle, .love-map a:focus .lm-pin circle, .love-map .is-on circle,
.love-map a.lm-many:hover rect, .love-map a.lm-many:focus rect, .love-map .lm-many.is-on rect { fill: var(--accent); }
.love-map .lm-many.is-on text:not(.is-on) { opacity: 0.5; }
.love-map a { cursor: pointer; }
.love-map .lm-marks--narrow { display: none; }
.love-map .lm-marks--narrow .lm-pin circle, .love-map .lm-marks--narrow .lm-many rect { stroke-width: 34; }
.love-map .lm-marks--narrow .lm-pin text, .love-map .lm-marks--narrow .lm-many text { font-size: 470px; }
.love-map .lm-marks--narrow .lm-name { font-size: 480px; stroke-width: 110; }
@media (max-width: 40rem) { .love-map .lm-marks--wide { display: none; } .love-map .lm-marks--narrow { display: inline; } }
.love-map a:focus { outline: none; }
.love-map a:focus-visible .lm-pin circle, .love-map a:focus-visible rect { stroke: var(--gold-bright); stroke-width: 40; }
.love-map .lm-marks--narrow a:focus-visible .lm-pin circle, .love-map .lm-marks--narrow a:focus-visible rect { stroke-width: 70; }
/* The reader's own place: a soft disc and a dot under the marks, and its ring over them, so that a mark at the
   same spot keeps its numbers and the place is still seen. */
.love-map .lm-you-disc { fill: color-mix(in srgb, var(--gold-bright) 22%, transparent); }
.love-map .lm-you-ring { fill: none; stroke: var(--gold-bright); stroke-width: 70; pointer-events: none; }
.love-map .lm-you-dot { fill: var(--gold-bright); stroke: var(--ink); stroke-width: 22; }
.love-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.65rem 0.75rem; background: var(--sheet); border-top: 1px solid var(--water-edge); font-size: 0.86rem; line-height: 1.3; }
.love-pick > span { flex-basis: 100%; color: var(--ink-soft); }
.love-pick-one { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.4rem 0.8rem 0.4rem 0.5rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--land); color: var(--ink); font-weight: 600; text-decoration: none; }
.love-pick-one b { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.3rem; border-radius: 999px; background: var(--press); color: var(--on-press); font-size: 0.8rem; font-variant-numeric: lining-nums; }
.love-pick-map { display: inline-flex; align-items: center; min-height: 2.75rem; flex-basis: 100%; color: var(--accent); font-weight: 600; }
.love-map figcaption { padding: 0.5rem 0.75rem; font-size: 0.76rem; line-height: 1.45; color: var(--ink-soft); background: var(--sheet); border-top: 1px solid var(--water-edge); }
.love-map figcaption a { color: inherit; }

/* ----- the closer maps: a few hundred metres each, every pin on its own spot ----- */
.love-closer-head { margin: 0.5rem 0 0; font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.love-closer { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); gap: 1rem; align-items: start; }
.love-inset { scroll-margin-top: 5rem; }
/* A closer map that only one drawing of the marks opens is shown only where that drawing is (they switch at 40rem). */
@media (min-width: 40.0625rem) { .love-inset--narrow { display: none; } }
@media (max-width: 40rem) { .love-inset--wide { display: none; } }
.love-inset .lm-land { stroke-width: 1px; vector-effect: non-scaling-stroke; }
.love-inset .lm-road { stroke-width: 3px; vector-effect: non-scaling-stroke; }
.love-inset .lm-road--small { stroke-width: 1.6px; stroke: color-mix(in srgb, var(--ink) 26%, var(--land)); }
.love-inset .lm-pin circle { stroke-width: 2.4; }
.love-inset .lm-pin text { font-size: 31px; }
.love-inset a:focus-visible .lm-pin circle { stroke-width: 5; }
.love-inset .lc-bar { fill: none; stroke: var(--ink-soft); stroke-width: 2.6; }
.love-inset .lc-bar-say { fill: var(--ink-soft); font-family: var(--text); font-size: 29px; font-weight: 600; paint-order: stroke; stroke: var(--water); stroke-width: 8; stroke-linejoin: round; }
.love-inset .love-inset-cap { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.6rem 0.75rem 0.7rem; font-size: 0.86rem; line-height: 1.3; color: var(--ink); }
.love-inset-cap b { font-family: var(--display); font-size: 1rem; }
.love-inset-cap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.love-inset-cap li a { display: flex; align-items: center; gap: 0.5rem; min-height: 2.1rem; padding: 0.15rem 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.love-inset-cap li a:hover { color: var(--accent); }
.love-inset-cap .love-pin { flex: none; min-width: 1.35rem; height: 1.35rem; font-size: 0.72rem; }

.love-from { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.9rem 1rem; border-radius: 12px; background: var(--land); border: 1px solid var(--land-edge); }
.love-from > * { margin: 0; }
.love-from-place { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; overflow-wrap: anywhere; }
.love-from .button { align-self: flex-start; font-size: 0.9rem; padding: 0.45rem 0.9rem; }
.love-from-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.love-from small { font-size: 0.8rem; line-height: 1.45; color: var(--ink-soft); }
/* on a thing's own page: one line above its places saying where the distances start */
.love-from--line { gap: 0.45rem; padding: 0.75rem 0.9rem; }
.love-from--line .love-from-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem; }
.love-from--line .love-from-place { font-size: 1.2rem; }
.love-list { margin: 0; padding: 0; list-style: none; columns: 2 11rem; column-gap: 1.2rem; }
.love-list li { break-inside: avoid; display: flex; gap: 0.45rem; align-items: baseline; padding: 0.22rem 0; font-size: 0.92rem; line-height: 1.35; }
.love-list a { color: var(--ink); text-decoration: none; }
.love-list a:hover { text-decoration: underline; }
.love-list .love-pin { flex: none; min-width: 1.35rem; height: 1.35rem; font-size: 0.72rem; }
.love-list small { display: block; color: var(--ink-soft); font-size: 0.78rem; }

/* ----- tell us yours ----- */
.love-yours { position: relative; isolation: isolate; color: var(--on-photo); background: var(--forest); }
.love-yours > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.love-yours::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--photo-shade), 0.35) 0%, rgba(var(--photo-shade), 0.72) 100%); }
.love-yours-in { padding-block: clamp(2.5rem, 8vw, 5.5rem); display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
.love-yours-in > * { margin: 0; }
.love-yours .eyebrow { color: var(--gold-bright); text-shadow: 0 1px 10px rgba(var(--photo-shade), 0.6); }
.love-yours h2 { font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4vw + 0.8rem, 3.4rem); line-height: 1.05; letter-spacing: -0.015em; text-shadow: 0 1px 22px rgba(var(--photo-shade), 0.55); }
.love-yours-in p { max-width: 40rem; font-size: var(--step-1); line-height: 1.5; text-shadow: 0 1px 14px rgba(var(--photo-shade), 0.7); }
.love-yours .button { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.05rem; padding: 0.75rem 1.3rem; }
.love-yours .button .sym { width: 1.3rem; height: 1.3rem; }
.love-yours small { font-size: 0.86rem; line-height: 1.5; opacity: 0.92; max-width: 40rem; text-shadow: 0 1px 10px rgba(var(--photo-shade), 0.7); }
.love-yours small a { color: inherit; }
.love-yours-credit { position: absolute; right: var(--gutter-r); bottom: 0.4rem; margin: 0; font-size: 0.68rem; opacity: 0.85; }
.love-yours-credit a { color: inherit; }
@media (max-width: 36rem) { .love-yours-credit { position: static; padding: 0 var(--gutter-r) 0.6rem var(--gutter-l); } }

/* the sources at the foot */
.love-sources { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; }
.love-sources li { font-size: var(--step--1); line-height: 1.5; overflow-wrap: anywhere; }
.love-sources q { quotes: "\201C" "\201D"; }
.love-fold-h { margin: 0.6rem 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
