/* mossmoth · pencil prototype: a white page split by one pencil line; the moth on its left, the places on its right,
   then the text and a visual alternating sides as you scroll. */
@font-face { font-family: "Equateur"; src: url(/fonts/Equateur-Regular.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Latitude"; src: url(/fonts/Latitude-Regular.woff2) format("woff2"); font-display: swap; }
:root {
  color-scheme: light;
  --white: #FFFFFF; --ink: #19212F; --link: #234E7D; --muted: #5A6570; --moss: #4C6A3C; --moth: #2F4F7A;
  --graphite: 52 56 64;                           /* the pencil's lead (r g b), read by pencil.js */
  --display: "Equateur", Georgia, serif; --body: "Latitude", Georgia, serif;
  --fs: clamp(1.0625rem, .98rem + .3vw, 1.25rem); --u: calc(var(--fs) * 1.55);
  --gap: clamp(2rem, 5vw, 4.5rem);                  /* from the line to whatever sits beside it */
  --edge: clamp(1.25rem, 4vw, 3rem);               /* from the screen's edges, clear of a landscape phone's notch */
  --left: max(var(--edge), env(safe-area-inset-left)); --right: max(var(--edge), env(safe-area-inset-right));
}
/* dark: black paper, drawn on with a white pencil. It follows the system unless a page pins data-theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark;
    --white: #141619; --ink: #E4E6E9; --link: #8DB2E2; --muted: #8C929B; --moss: #98B48C; --moth: #A9BFDF; --graphite: 212 216 222; }
}
:root[data-theme="dark"] { color-scheme: dark;
  --white: #141619; --ink: #E4E6E9; --link: #8DB2E2; --muted: #8C929B; --moss: #98B48C; --moth: #A9BFDF; --graphite: 212 216 222; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--white); color: var(--ink); font: 400 var(--fs)/1.55 var(--body); -webkit-text-size-adjust: 100%;
  scrollbar-width: none; hanging-punctuation: first allow-end; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; }
h1, h2, p, ul, figure { margin: 0; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: max(1px, .065em); text-underline-offset: .22em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* header: the wordmark alone */
.top { padding: calc(var(--u) * 1.1) var(--right) 0 var(--left); }
.mark { position: relative; display: block; width: 3.046em; height: 1.144em; font: 400 2.1rem/1 var(--display); text-decoration: none; }
.mark [aria-hidden] { position: absolute; left: 0; white-space: nowrap; }
.mark .moss { top: -.241em; color: var(--moss); }
.mark .moth { top: .384em; left: .54em; color: var(--moth); }

/* the stage carries the line from the top of the first screen to the end of the text */
.stage { position: relative; }
.spine { position: absolute; top: 0; bottom: 0; left: calc(50% - 20px); width: 40px; pointer-events: none; overflow: hidden; }
.spine .cover { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--white); will-change: transform; }

/* first screen: moth | line | places */
.first { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--gap)); align-items: center;
  min-height: calc(100svh - var(--u) * 3.2); padding: calc(var(--u) * 2) var(--right) calc(var(--u) * 2) var(--left); }
.art { justify-self: end; width: min(100%, 34rem); }
.art svg { display: block; width: 100%; height: auto; }
.settling .art svg { visibility: hidden; }
.places { position: relative; }
.places ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1em; font-size: 1.45em; line-height: 1.2; color: var(--muted); }
.places a, .places button { color: var(--link); font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
@media (hover: hover) { .places button:hover { text-decoration: underline; text-decoration-thickness: max(1px, .065em); text-underline-offset: .22em; } }
.places button:focus-visible, .places a:focus-visible { outline: 2px solid var(--link); outline-offset: .2em; }

/* then the text and a visual, swapping sides, each pair resting right under the last */
.pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--gap)); align-items: center; padding: calc(var(--u) * 1.1) var(--right) calc(var(--u) * 1.1) var(--left); }
.pair .text { width: min(100%, 27em); }
.pair h2 { font: 400 1.65em/1.15 var(--display); margin-bottom: calc(var(--u) * .45); text-wrap: balance; }
.pair p { text-wrap: pretty; }
.pair .text, .pair .visual { justify-self: start; }
.pair > :first-child { justify-self: end; }
.visual { position: relative; width: min(100%, 21em); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.visual span { font-size: .8em; color: color-mix(in srgb, var(--muted) 55%, var(--white)); letter-spacing: .04em; }
.visual.photo, .visual.art2 { aspect-ratio: auto; }
.visual.art2 { width: min(100%, 30em); }
.hammer-fit { position: relative; width: 100%; }
.hammer-fit svg { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: auto; overflow: visible; }
.visual.photo img { display: block; width: 100%; height: auto; }
.lede { font-size: 1.18em; }
.end { height: calc(var(--u) * 4); }

/* phones, "the thread": there is no room either side of the line, so the line runs down the left edge and what says what
   something is (a page's title, a section's name, a label, a date) is tied onto it, the line pausing around it; the thing
   itself hangs just right of the line. Knots come in three sizes: the page, a section, a label. The site menu is one quiet
   row above where the line starts, the footer below where it ends (pencil.js places the line). */
@media (max-width: 47.99em) {
  :root { --gap: 1.4rem; --knot: var(--left); --line: calc(var(--knot) + .6rem); --hang: calc(var(--line) + 1.5rem);
    --tie: calc(var(--knot) - var(--hang)); --halo: 0 0 .3em .35em var(--white); }
  .spine { left: calc(var(--line) - 20px); }
  .first, .pair { grid-template-columns: 1fr; row-gap: calc(var(--u) * 1.2); padding-left: var(--hang); padding-right: var(--right); }
  .first { min-height: 0; }
  .art, .pair > :first-child, .pair .text, .pair .visual { justify-self: start; }
  .pair .visual:first-child { order: 2; }
  .pair { row-gap: calc(var(--u) * .9); }
  /* home: the moth heads the line, the places hang from it */
  body:not(.sub) .first .art { margin-left: var(--tie); width: calc(100% - var(--tie)); }
  /* a knot: tied onto the line, which pauses around it (a soft halo of paper, not a box); the rest are further down */
  .pair h2 { position: relative; z-index: 1; justify-self: start; text-align: left; width: fit-content; margin-left: var(--tie);
    padding-right: .2em; background: var(--white); box-shadow: var(--halo); font-size: 1.4rem; line-height: 1.2; margin-bottom: .45em; }
}

/* ---- the other pages: same sheet, line and menu; the page's title stands where the moth does on the home page ---- */
.sub .first { min-height: 0; padding-top: calc(var(--u) * 2.5); padding-bottom: calc(var(--u) * 2); align-items: start; }
.title { justify-self: end; text-align: right; font: 400 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1 var(--display); color: var(--ink); }
.prose { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--gap)); padding: 0 var(--right) calc(var(--u) * 2) var(--left); }
.prose > div { grid-column: 2; width: min(100%, 30em); }
.prose p + p { margin-top: calc(var(--u) * .75); }

/* privacy: what each place collects, its name left of the line and the answer right of it */
.kept { display: grid; row-gap: calc(var(--u) * 1.1); padding: calc(var(--u) * .6) var(--right) calc(var(--u) * 2) var(--left); }
.kept > div { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--gap)); align-items: baseline; }
.kept h2 { justify-self: end; font: 400 1.25em/1.2 var(--display); color: var(--muted); }
.kept p { width: min(100%, 30em); text-wrap: pretty; }

/* the contact form hangs on the line: the label left of it, the field right of it, written on pencil lines */
.form { display: grid; row-gap: calc(var(--u) * 1.2); padding: 0 var(--right) calc(var(--u) * 2) var(--left); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--gap)); align-items: baseline; }
.form label { justify-self: end; text-align: right; color: var(--muted); transition: color .2s cubic-bezier(.22, 1, .36, 1); }
.form .row:focus-within label { color: var(--link); }
.form .field { position: relative; justify-self: start; width: min(100%, 26em); }
.form input, .form textarea { display: block; width: 100%; margin: 0; padding: 0 0 .15em; border: 0; border-radius: 0; background: transparent;
  font: inherit; line-height: 1.55; color: var(--ink); outline: none; }
.form textarea { resize: none; overflow-y: auto; min-height: calc(6 * 1.55em); background: transparent; }
.form .req { white-space: nowrap; }
.form .act { align-items: center; }
.form .act .field { display: flex; gap: 1.2em; align-items: baseline; }
.form button.send { font: inherit; font-size: 1.2em; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.form button.send span { color: var(--link); }
.form button.send:hover span { text-decoration: underline; text-decoration-thickness: max(1px, .065em); text-underline-offset: .22em; }
.form button.send:disabled { opacity: .45; cursor: default; }
.form button.send:focus-visible { outline: 2px solid var(--link); outline-offset: .2em; }
.said { color: var(--link); }
.said:empty { display: none; }

/* 404: the line runs through the sentence */
.lost { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--gap)); align-items: baseline;
  min-height: 50svh; align-content: center; padding: 0 var(--right) 0 var(--left); font-size: 1.45em; }
.lost > :first-child { justify-self: end; color: var(--muted); }

/* the end of the line: where the pencil lifts off, the two quiet places sit either side of it */
.ends { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(2 * var(--gap)); padding: calc(var(--u) * 1.5) var(--right) calc(var(--u) * 2.5) var(--left);
  color: var(--muted); }
.ends > :first-child { justify-self: end; }
/* the light/dark flip (theme.js) sits after [privacy], a link-like word */
.ends > :last-child { display: flex; gap: 1.4em; }
.ends button { font: inherit; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
.ends button:hover, .ends button:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: max(1px, .065em); text-underline-offset: .22em; }

@media (max-width: 47.99em) {
  .sub .first, .prose, .form .row, .lost, .ends { grid-template-columns: 1fr; }
  .sub .first, .prose, .kept, .form, .lost { padding-left: var(--hang); }
  .kept { row-gap: calc(var(--u) * 1.3); }
  .kept > div { grid-template-columns: 1fr; row-gap: .3em; }
  .prose > div { grid-column: 1; }
  /* the knots of the other pages: the page's title, a place's name, a field's label, the 404's first words */
  .title, .kept h2, .form label, .lost > :first-child {
    position: relative; z-index: 1; justify-self: start; text-align: left; width: fit-content; margin-left: var(--tie);
    padding-right: .2em; background: var(--white); box-shadow: var(--halo); }
  .title { font-size: 2.35rem; line-height: 1.05; }
  .kept h2, .form label { font: 400 .8rem/1.3 var(--body); color: var(--muted); letter-spacing: .02em; }
  .kept h2 a { color: var(--link); }
  .lost { font-size: 1.25em; row-gap: .3em; }
  /* a label sits close to its line, and the rows stand well apart */
  .form .row { row-gap: .35em; }
  .form .row + .row { margin-top: calc(var(--u) * .4); }
  /* the site menu: one quiet row above the line, the size of the footer */
  .sub .first { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: calc(var(--u) * 1.6);
    padding-top: calc(var(--u) * .5); padding-bottom: calc(var(--u) * 1.6); }
  .sub .first .places { align-self: stretch; margin-left: var(--tie); }   /* full width: a leaving row keeps its one line */
  .sub .first .places ul { display: flex; flex-wrap: wrap; gap: .25em 1.1em; font-size: 1rem; line-height: 1.4; }
  .sub .first .places li.panel, .sub .first .places li.back { font-size: 1em; }
  /* the footer: below the line's end, from the edge */
  .ends { display: flex; gap: 1.4em; padding-left: var(--knot); }
}
.form .row:has(textarea) { align-items: start; }

/* the menu's entries (pencil-menu.js draws them): each word in brackets, leaning toward the pointer or keyboard focus by as much
   as the menu's feel says (--lean; hover only where there is a pointer, or a tapped entry on a phone would stay leaning) */
.places .word::before { content: "["; }
.places .word::after { content: "]"; }
.places .lean { display: inline-block; transition: transform var(--lean-time, .26s) cubic-bezier(.22, 1, .36, 1); }
.places ul:not(.leaving) .lean:has(> .word > :focus-visible) { transform: translateX(var(--lean, .16em)); }
@media (hover: hover) { .places ul:not(.leaving) .lean:has(> .word > :hover) { transform: translateX(var(--lean, .16em)); } }
.places li .note { margin-left: .7em; font-size: .62em; color: var(--muted); letter-spacing: .01em; }
.places li .pic { width: 2.6em; aspect-ratio: 1; vertical-align: middle; margin-right: .6em; }   /* square: its room is held before it loads */
.places ul.pics { gap: .7em; }
.places li.back { font-size: .8em; margin-top: .3em; }
.places li.panel { font-size: calc(1em / 1.45); color: var(--ink); }
.places button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
/* keyboard focus in menus: the entry leans out and is underlined, like hover, instead of a box around it */
.places :is(a, button):focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
/* the value in use, entries that can't be chosen right now, warnings in a note, and what's been typed to filter */
.places li.current :is(a, button) { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.places li.off { opacity: .45; }
.places li.off :is(a, button) { cursor: default; }
.places li .note.warn { color: var(--ink); }
.places li .note.warn::before { content: "! "; color: var(--moth); }
.places li.filter { font-size: .62em; color: var(--muted); letter-spacing: .04em; }
.places li.filter span::before { content: "looking for "; }
.places li[hidden] { display: none; }
.places .word { white-space: nowrap; }
.places .word > :is(a, button) { white-space: normal; text-align: left; }
