/* About page only: her story beside a heading that stays, with the line drawn down it; the Classics shelf; the contact close. */

/* ---------- Hello, I'm Lorna ---------- */
.story h1 { font-size: clamp(3rem, 12vw, 8rem); margin: 0 0 1.4rem; color: var(--paper); }
.story .two { align-items: start; }
@media (min-width: 860px) { .story .two { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
/* the heading cell runs the full height of the story so the h1 has room to stay put while her story scrolls past */
.story .two > div:first-child { align-self: stretch; }
@media (min-width: 860px) {
  .story h1 { position: sticky; top: 2.4rem; margin-bottom: 0; }
}
/* the line: the yellow of her name on the covers, drawn down the left of her story by the scroll (js/about.js scales it
   from the top). Fully drawn without JS and under reduced motion (.fx is frozen by css/site.css). */
.path { position: relative; }
.path .line { position: absolute; left: -.75rem; top: 0; bottom: 0; width: 2px; background: var(--name); transform-origin: 50% 0; }
@media (min-width: 860px) { .path .line { left: -1.75rem; } }
.path p { font-size: clamp(1.3rem, 1.3vw + .6rem, 1.6rem); line-height: 1.5; max-width: 34rem; }
.path p i { font-style: italic; }
.path .rules { margin-top: 2rem; }
.path .rules li { line-height: 1.5; }
/* every link in the facts list is underlined the same way, label or title, so the links can be told from the text */
.path .rules a { text-decoration: underline; text-decoration-color: var(--name); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.path .rules a:hover { color: var(--name); text-decoration-thickness: 2px; }

/* ---------- Latin, Greek and Ovid: a shelf of the four Classics books ---------- */
.classics h2 { color: var(--paper); }
/* the top margin carries the lift as well, so a cover held up never touches the heading above it */
.shelfrow { list-style: none; margin: calc(1rem + clamp(.9rem, 2.4vw, 2.2rem)) 0 0; padding: 0; display: flex; align-items: flex-end; gap: clamp(.4rem, 1.6vw, 1.4rem); border-bottom: 2px solid var(--rule); }
.shelfrow li { margin: 0; flex: 0 0 auto; }
.shelfrow img { display: block; height: clamp(108px, 29vw, 360px); width: auto; flex: none; box-shadow: 0 6px 14px rgba(0, 0, 0, .55); }
.shelfrow a { display: block; }
.shelfrow a:hover img { box-shadow: 0 8px 18px rgba(0, 0, 0, .6); }
/* set down: each cover is held above the shelf (about 6% of its height: .9rem on phone, up to 2.2rem on desktop) and set down by the reader's scroll (site.shelve in js/about.js
   gives each li --set 0..1 and class set; css/site.css turns it into translateY of --lift). Lifted again on the way back
   up. No fades. Standing on the shelf from the start without JS and under reduced motion. */
.shelfrow li { --lift: calc(-1 * clamp(.9rem, 2.4vw, 2.2rem)); }
.classics .rules { margin-top: 1.6rem; }
.classics .rules li { padding: .7rem 0; }
.classics .rules li:first-child { border-top: 0; }
.classics .rules b { display: block; font-family: var(--cap); font-weight: 400; font-size: 1.6rem; letter-spacing: .04em; line-height: 1; margin-bottom: .2rem; }
.classics .rules .pub { color: var(--soft); font-size: 1.05rem; }
.classics .rules .pub a { text-decoration-color: var(--rule); text-underline-offset: 4px; }
.classics .rules .pub a:hover { color: var(--paper); }

/* ---------- Write to me ---------- */
.write .btns { margin-top: .4rem; }
.write .cafe-line { margin: 1.6rem 0 0; }

/* ---------- Write to me: the Artemis and Apollo board (drawn moment, css/drawings.css + js/about.js) ----------
   Her café board in cut paper: the black half with "Artemis" and the moon, the white half (paper on paper, so drawn
   by its ring-deep hairline) with the sun and "Apollo". Under the links on phones and tablets; beside them, its top
   level with the heading, from 860px. */
.write .draw[data-draw="apollo-artemis-board"] { --draw-max: 340px; --draw-max-lg: 400px; --word-size: 15px; margin-top: 2.6rem; }
.draw .word.artemis { --word: var(--paper); }
.draw .word.apollo { --word: var(--ring-deep); }
/* the moon and the sun turn about their own middles as they come up */
.draw[data-draw="apollo-artemis-board"] .piece { transform-origin: 50% 50%; }
@media (min-width: 860px) {
  .write .in { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto auto auto 1fr; column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
  .write .in > * { grid-column: 1; }
  .write .draw[data-draw="apollo-artemis-board"] { grid-column: 2; grid-row: 1 / span 4; margin: .3rem 0 0; }
  /* the board's extra height goes into the empty fourth row, so the heading, links and café line keep their spacing */
}
