/* ─────────────────────────────────────────────────────────────────────────────
   THE RING — the front door on a wide screen (task B70, 2026-11-20, his).
   Its behaviour, and where it came from, is /ring.js. Every number here was
   settled by him looking at a sketch, round by round:
   docs/sketches/index-sketch/ring.html and task B70 in docs/task-notes.md.

   Everything the ring draws is built by ring.js and hung on <body>:
     #ring-stage    the fifteen titles and the picture (not a box: see below)
     #ring-arrow    the arrow from a title to the menu
     #landing-large the picture seen large — the landing page's own, styled
                    in landing.fragment.html under THE LARGE VIEW
   `body.ring-on` is on for as long as it is mounted.
   ───────────────────────────────────────────────────────────────────────────── */

/* The landing page's timed sequence gives its place to the ring on a wide
   screen. Its markup stays where it is: a phone still scrolls it. */
body.ring-on #landing-container { display: none; }

/* NOT a box of its own: the picture has to stand between the arrow and the
   work under the pointer, and a positioned box here would keep all three
   inside one layer. */
#ring-stage { display: contents; }

/* DATE OFF TO THE LEFT, TITLE LEFT-JUSTIFIED, as the book sets them (his). The
   date has a column of its own; a title of two lines comes back to the
   title's edge, not the date's. */
#ring-stage .entry {
  position: absolute; z-index: 10;
  display: block;
  /* The date's column, in pixels of the TITLE's type, so that anything set
     smaller inside the entry — the exhibition lines — still starts exactly
     where the title does (his: the lines "must align with the left of the
     title"). */
  --date-col: calc(var(--type, 17px) * 2.75);
  padding-left: var(--date-col);
  /* A TITLE BREAKS ONLY WHERE HE BROKE IT (the <br>s in ring.js), on every
     screen, so the layout he placed by hand keeps its shape. Lit, with its
     brackets back, it may wrap on a measure. */
  white-space: nowrap;
  text-align: left;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--type, 17px); line-height: 1.25;
  transition: opacity 0.3s ease, transform 0.35s ease;
}
#ring-stage .date { position: absolute; left: 0; top: 0; color: black; }
/* THE TITLES ARE THE MENU'S: its size and its bold (his, 2026-11-23: "the
   titles there the same size as the titles in the menu", then "Show me
   bold"). ring.js reads the size off a show's title in the menu and writes it
   as --type. What a title carries in brackets is regular, as it is in the
   menu; the years are regular. */
#ring-stage .title { font-style: normal; font-weight: bold; }
#ring-stage .title .sub { font-weight: normal; }
#ring-stage .title .small { font-size: 0.78em; }
/* The book's three inks, one for each way of working, with no key — "the
   whole point was not to separate it" (his). */
#ring-stage .photo .title { color: rgb(151, 86, 29); }
#ring-stage .film  .title { color: rgb(80, 108, 181); }
#ring-stage .mixed .title { color: rgb(111, 73, 67); }

/* WHAT A TITLE CARRIES IN BRACKETS is left off the ring and comes back with
   the work's lines (his: "take the brackets off JBL and HBI and Ponte City
   titles and have them appear with the lines on rollover"). It runs on after
   the title, so the title grows downward and the lines stay under it. */
#ring-stage .title .sub { display: none; }
#ring-stage .entry.on .title .sub,
#ring-stage .entry.sizing .title .sub { display: inline; animation: ring-sub-in 0.25s ease; }
#ring-stage .entry.on,
#ring-stage .entry.sizing { white-space: normal; max-width: var(--title-measure, 221px); }
@keyframes ring-sub-in { from { opacity: 0; } to { opacity: 1; } }
/* A last resort, on a small screen: see `wide` in ring.js. */
#ring-stage .entry.wide.on,
#ring-stage .entry.wide.sizing { max-width: calc(var(--title-measure, 240px) * 2.4); }

/* UNDER THE POINTER: the work is drawn over its picture's layer, its title
   leans, and the rest of the ring falls back — "the fade on the rest of the
   index when you roll over one project is good" (his). */
#ring-stage .entry.on { z-index: 2200; }
#ring-stage.lit .entry:not(.on) { opacity: 0.3; }

/* LEANING, THE YEAR BOLD AND UPRIGHT — for the work under the pointer and for
   the work whose picture is showing as the sequence plays. Until 2026-11-23
   the titles were regular and this made them bold as well (his, then: "both
   the year and the title go bold. only the title leans over"). Now that every
   title is bold, the one showing leans and takes no more weight, which is how
   the menu marks the page you are on — a session's reading when he asked for
   bold, his to overrule. The year's weight is still drawn on the letters, not
   set in the font: bold is wider, and nothing may move on a ring where every
   place is measured. */
#ring-stage .entry.on .title,
#ring-stage:not(.lit) .entry.now .title { font-style: italic; }
#ring-stage .entry.on .date,
#ring-stage:not(.lit) .entry.now .date { -webkit-text-stroke: 0.7px currentColor; }

/* AND THE OTHER TITLES FALL BACK A LITTLE WHILE A WORK'S PICTURE IS SHOWING
   (his, 2026-11-23: "try the other titles falling back slightly"). With every
   title bold, leaning alone was a small thing to find across a wide screen,
   and the ring following the sequence is what this page is. It is the fade
   under the pointer, which he liked, at a fraction of its strength: 0.7
   where that is 0.3 (a session's choice of "slightly"; 0.6 and 0.5 were
   looked at and wash the three inks out). If a picture is ever up that is no
   work's, every title stands at full. */
#ring-stage.showing:not(.lit) .entry:not(.now) { opacity: var(--ring-back, 0.7); }

/* The exhibition lines, for the work under the pointer only (his: "lines
   under a title only appeared on rollover and not on slideshow progression"):
   under its title; or over it, or beside it, where ring.js finds that costs
   less. */
#ring-stage .lines {
  position: absolute; left: var(--date-col); top: 100%;
  width: var(--lines-width, 250px);
  padding-top: 5px;
  font-size: 12.5px; line-height: 1.3;
  color: rgba(0, 0, 0, 0.82);
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none;
}
#ring-stage .lines span { display: block; margin-bottom: 3px; }
#ring-stage .entry.up .lines { top: auto; bottom: 100%; padding: 0 0 5px; }
#ring-stage .entry.side .lines { top: 0; left: calc(100% + 14px); padding: 3px 0 0; }
#ring-stage .entry.on .lines { opacity: 1; }

/* NOTHING STANDS BEHIND THE WORDS (his: "the feathered white doesn't work at
   all - please take it off completely"). INSTEAD A LIT WORK STEPS ASIDE: "if a
   works lines go over the picture when come up, then rather just shift the
   date, title and lines a little bit to the left or right or up or down on
   rollover ... so that they are completely over the background not the
   picture". ring.js works out how far and which way for each work, and
   writes it as --dx and --dy; most need none. */
#ring-stage .entry.on { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
/* A TITLE THE LIT WORK'S WORDS WOULD LIE ACROSS IS HIDDEN WHOLE while they are
   up (his: "vanishing neighbour titles are fine"). Nor can the pointer find
   what cannot be seen. */
#ring-stage .entry.under { opacity: 0 !important; pointer-events: none; }

/* For ring.js's measuring only. A lit title leans, and a leaning title can run
   to one line more, so a work is measured as it leans; the ring itself is laid
   out upright, whichever title is lit; and nothing is measured while it is
   stepped aside or on its way there. */
#ring-stage .entry.sizing .title { font-style: italic; }
body.ring-fitting #ring-stage .entry { transform: none !important; transition: none !important; }
body.ring-fitting #ring-stage .entry:not(.sizing) .title { font-style: normal !important; }
body.ring-fitting #ring-stage .entry:not(.sizing) .title .sub { display: none !important; }
body.ring-fitting #ring-stage .entry:not(.sizing) { max-width: none !important; white-space: nowrap !important; }
body.ring-placing #ring-stage .entry { transition: none !important; }

/* THE PICTURE, INSIDE THE RING AND AS BIG AS THE RING ALLOWS (his), seen
   whole. OVER the arrow ("arrows underneath the picture"), under the words of
   the work that is lit. A click on it opens it large. */
#ring-place { position: absolute; z-index: 2100; cursor: pointer; transition: opacity 300ms ease; }
/* While it is seen large, the ring's own picture is out of the way: it stands
   above the large view's layer and would show through it. */
body.ring-behind #ring-place { opacity: 0; pointer-events: none; }
#ring-show { position: absolute; inset: 0; }
#ring-show .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1200ms ease;      /* the landing page's cross-fade */
}
#ring-show .slide.is-current { opacity: 1; }
#ring-show .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* HIS SENTENCE, IN WHITE, OVER THE BLACK UNDER HIS EYES (his: "02 for the eyes
   i've made a new crop for this purpose - please place the quotation in white
   text over the bottom black part of the image"). The eyes end 68% of the way
   down his crop and run from 8.5% to 91.7% across it (measured off the file),
   so the sentence has the band under them and is set between their outer
   edges. Its size follows the picture's: --pw is the picture's width. */
#ring-show .statement p {
  position: absolute; left: 8.5%; right: 8.3%; top: 68%; bottom: 0;
  display: flex; align-items: center;
  margin: 0; color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(var(--pw, 650px) * 0.0215); line-height: 1.4;
}

/* THE ARROW, from the title in the ring to the same title in the menu, in the
   work's own ink; and the menu's title leans while it is pointed at. */
#ring-arrow {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 2000; pointer-events: none;
}
#ring-arrow line { stroke-width: 1; fill: none; }
body.ring-on #nav-buttons .nav-link.arrowed,
body.ring-on #nav-buttons .nav-toggle.arrowed { font-style: italic; }

/* THE MENU GOES ROUND ON THIS PAGE (his). A list with no end has no bar to
   drag it by; and where the list begins again, after the rights line, it has
   a little air. */
body.ring-on #nav-rail { display: none !important; }
/* A STILL LINE WHERE THE BAR STANDS ON OTHER PAGES (his, 2026-11-21), centred
   on --bar-x, as long as the ruler's own line to the left of the menu's list
   and level with it — ring.js sets its top and its height from the ruler's. It was the bar's
   own stroke for an hour — 1.25px at 90% — and he had it softened the same
   day: "soften the weight of the menu line to match the vertical part of
   the ruler to the left of the menu text". So it is the ruler's hairline
   (nav.css, html.nav-ruled #nav-buttons::before): 1px of the menu's ink at
   30%. */
#ring-rule {
  position: fixed; top: 0; bottom: 0;
  left: calc(var(--bar-x) - 0.5px);
  width: 1px;
  background: rgb(80, 25, 30);
  opacity: 0.3;
  z-index: 20;
  pointer-events: none;
}
body.ring-on #nav-scroll > .ring-again { margin-top: 14px; }

/* HIS SENTENCE, SEEN LARGE (his, 2026-11-21): over the black under his eyes,
   as in the ring — the same shares of the picture, and the type the same
   share of its width. A layer of the large view is exactly its picture's
   box (3:2, landing.fragment.html), so the sentence is placed against the
   layer; `position: relative` is all the layer needs for that. The width
   written here is the large view's own: the window less its margins, or
   three halves of its height less its margins, whichever is smaller. */
#landing-large .large-layer { position: relative; }
#landing-large .large-layer .ring-sentence {
  position: absolute; left: 8.5%; right: 8.3%; top: 68%; bottom: 0;
  display: flex; align-items: center;
  margin: 0; color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(min(100vw - 80px, (100vh - 61px) * 1.5) * 0.0215); line-height: 1.4;
}
#landing-large .large-layer .ring-sentence[hidden] { display: none; }
