/* skylarcloud — shared style. A centered monospace column with a dashed
   trail down the left: notes (the sky, dates, labels) sit in the margin,
   the text runs to the right of the trail. Light/dark follow the system;
   every text colour is at least 7:1 against its background. */
:root {
  color-scheme: light dark;
  --bg: #fffdf8; --fg: #1d1810; --dim: #574b3a; --ochre: #7a4500; --water: #00527a;
  --trail: #b9a98d; --moon-dark: #3b3328; --moon-lit: #f0c060;
  --margin: 24ch; --gap: 4ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --fg: #e6e1d8; --dim: #b5aa98; --ochre: #f0b45a; --water: #7cc4ff;
    --trail: #5a4f3e; --moon-dark: #262626; --moon-lit: #f2ead8;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --fg: #e6e1d8; --dim: #b5aa98; --ochre: #f0b45a; --water: #7cc4ff;
  --trail: #5a4f3e; --moon-dark: #262626; --moon-lit: #f2ead8;
}
html { background: var(--bg); }
body {
  margin: 0; padding: 3em 16px 5em;
  background: var(--bg); color: var(--fg);
  font: 14px/1.65 "JetBrains Mono", "DejaVu Sans Mono", ui-monospace, monospace;
}
main { max-width: 100ch; margin: 0 auto; }
a { color: var(--water); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--water); outline-offset: 2px; }
.rule { color: var(--trail); white-space: nowrap; overflow: hidden; user-select: none; }

/* ---- header: card on the margin side, title and sky line beside it */
.site { display: grid; grid-template-columns: var(--margin) 1fr; column-gap: var(--gap); align-items: end; margin-bottom: 3.2em; }
.site .card { justify-self: end; }
.site .card img { display: block; width: 130px; height: auto; }
.title { margin: 0; font-size: 1.15em; font-weight: 700; letter-spacing: .05em; }
.title a { color: inherit; text-decoration: none; }
.title a:hover { text-decoration: underline; }
.title .crumb { color: var(--dim); font-weight: 400; letter-spacing: 0; }
.title .crumb a { color: var(--water); text-decoration: underline; font-size: .8em; }
.thelemic { color: var(--dim); margin: .3em 0 0; font-size: .9em; }
.sky-ref { color: var(--dim); margin: .1em 0 0; font-size: .82em; font-style: italic; }
.sky-ref[hidden] { display: none; }
/* Text browsers (eww, lynx, w3m) skip this stylesheet and get the sky once,
   as the .almanac-top table, like phones. So that they don't also get every
   margin reading:
   - text that only belongs to this layout lives in a data-text attribute and
     is drawn here (lynx and w3m ignore CSS, so they never see it);
   - the sky margins also carry an inline style="display:none", for eww, which
     honours inline styles; this stylesheet shows them again with !important. */
[data-text]::before { content: attr(data-text); }
/* And the other way round: a stand-in only text browsers need (the ☽ for the
   drawn moon, which itself carries an inline display:none for eww). */
.no-css { display: none; }
.almanac-top .moon { display: block !important; }
.site .rule { margin: .9em 0 .8em; }
.quick { margin: 0; color: var(--dim); }
/* "also on tor · i2p": the same page on the other networks, kept quiet. On the
   mirrors nginx writes its own line in front of this one and turns this one into
   a comment, from data-mirror-swap to the <!--/nets--> after it. */
.nets { margin: .2em 0 0; color: var(--dim); font-size: .85em; }
.nets a { color: inherit; text-decoration-color: var(--trail); }
.nets a:hover { color: var(--water); text-decoration-color: currentColor; }

/* ---- the trail */
.leg { display: grid; grid-template-columns: var(--margin) 1fr; column-gap: var(--gap); }
.mark {
  text-align: right; font-size: .9em; line-height: 1.5;
  border-right: 1px dashed var(--trail); padding-right: 2.2ch; position: relative;
  display: flex; flex-direction: column; align-items: flex-end;
}
.mark.sky-mark { display: flex !important; }
.mark::after { content: ""; position: absolute; right: -4px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); }
.mark .moon, .mark .g { margin-bottom: .35em; }
.mark .g { color: var(--ochre); font-size: 1.5em; font-weight: 400; line-height: 1; }
.mark .label { color: var(--ochre); }
.mark small { color: var(--dim); font-size: .95em; }
.text { padding-bottom: 2.6em; min-width: 0; }
.leg.tight .text { padding-bottom: 1.2em; }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
.text h1, .text h2, .text h3 { font-size: 1em; margin: 1.4em 0 .6em; }
.text h1 { font-size: 1.1em; }
.text pre { overflow-x: auto; padding: .8em 1.2ch; border-left: 2px solid var(--trail); }
.text img { max-width: 100%; height: auto; }
/* Onion and .i2p addresses are one long word: let them wrap on phones. */
.text .addr { overflow-wrap: anywhere; }
/* A service's tor/i2p addresses, folded under its usual one. */
.more-nets { margin: .3em 0 0; }
.more-nets summary { cursor: pointer; color: var(--dim); font-size: .85em; list-style: none; width: max-content; }
.more-nets summary::-webkit-details-marker { display: none; }
.more-nets summary::before { content: "▸ "; color: var(--ochre); }
.more-nets[open] summary::before { content: "▾ "; }
.more-nets summary:hover { color: var(--water); }
.more-nets .addr { margin: .4em 0 0; font-size: .9em; }
.indent { margin-left: calc(var(--margin) + var(--gap)); }
/* Contact rows are a <dl> (name, then its addresses indented, in text
   browsers); here each name/address pair is a .leg like any other. */
.contacts { margin: 0; }
.contacts dd { margin: 0; }
main > .rule { margin: 1em 0 2.4em; }

/* ---- verse: the poem's line breaks are <br>s (text browsers keep them too);
   wrapped lines hang */
.verse p { margin: 0 0 1.1em; }
.verse p:last-child { margin-bottom: 0; }
@supports (text-indent: 1em hanging each-line) { .verse p { text-indent: 2ch hanging each-line; } }
.voice { color: var(--ochre); font-style: italic; padding-left: 2ch; }
.reply { padding-left: 2ch; border-left: 2px solid var(--fg); }
.along { color: var(--dim); }

/* ---- the moon */
.moon { display: block; flex: none; }
.moon .disc { fill: var(--moon-dark); stroke: var(--dim); stroke-width: 1; }
.moon .lit { fill: var(--moon-lit); }
.linkish { font: inherit; color: var(--water); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish[hidden] { display: none; }

/* ---- links at the foot of the home page */
.waypoints { display: grid; gap: 1.6em; }
.wp { display: grid; grid-template-columns: 40px 1fr; gap: 1.2em; align-items: start; }
.wp .icon { color: var(--ochre); }
.wp h2 { font-size: 1em; margin: 0 0 .3em; }
.wp h2 .aside { font-weight: 400; color: var(--dim); }
.wp p { margin: 0; color: var(--dim); white-space: pre-line; }

/* ---- blog */
.text .post-title { margin-top: 0; font-size: 1.25em; line-height: 1.3; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { text-decoration: underline; }

/* ---- the sky now, as one table under the header (phones and text browsers) */
.almanac-top { display: none; }

@media (max-width: 760px) {
  .site { grid-template-columns: 1fr; row-gap: 1.4em; margin-bottom: 2.2em; }
  .site .card { justify-self: start; }

  .almanac-top { display: block; margin: 0 0 2.6em; }
  /* "In reference to Seattle" captions the box here; the header copy is for desktop. */
  .site .sky-ref { display: none; }
  .almanac-top .sky-ref { margin: 0 0 .9em; }
  /* A table for text browsers; here each row is a glyph with its reading and,
     under that, the detail. */
  .almanac-top table { display: block; }
  .almanac-top tbody { display: grid; gap: .6em; }
  .almanac-top tr { display: grid; grid-template-columns: 1.7em 1fr; column-gap: 1ch; align-items: start; }
  .almanac-top th, .almanac-top td { padding: 0; text-align: left; font-weight: 400; }
  .almanac-top th { color: var(--ochre); text-align: center; font-size: 1.1em; line-height: 1.45; }
  .almanac-top th .moon { margin: .15em auto 0; }
  .almanac-top td + td { grid-column: 2; color: var(--dim); font-size: .92em; }
  .almanac-top .locate { margin: .7em 0 0 calc(1.7em + 1ch); font-size: .92em; }

  /* One unbroken trail down the left; notes sit on it above their text. */
  .walk { border-left: 1px dashed var(--trail); padding-left: 2.4ch; margin-left: 3px; }
  .leg { grid-template-columns: 1fr; }
  .mark { display: block; text-align: left; border-right: 0; padding: 0 0 .5em; }
  .mark::after { right: auto; left: calc(-2.4ch - 4px); }
  /* The sky readings moved to the top, so their margins keep only the dot. */
  .mark.sky-mark { display: block !important; height: 0; padding: 0; }
  .mark.sky-mark > * { display: none; }
  .text { padding-bottom: 2.2em; }
  .indent { margin-left: 0; }
}
@media (max-width: 560px) { body { font-size: 13px; padding-top: 2em; } .wp p { white-space: normal; } }
