/* Gilded Creators · the arcade (V11, 12 October 2026), now chapter III of the homepage
   Four arch-topped frames standing between thin champagne pilasters, under a frieze that carries a roman
   numeral over each bay, with the name below in spaced serif small caps. Four bays in a row from 900px,
   two storeys of two below that. The architecture stands still; when the chapter opens, the four framed
   photographs settle in one after another (styles.css, "Chapters: motion").

   How it is drawn: each bay (li) paints, with background layers, its own frieze band across its full width
   (cornice, architrave), a stylobate along its bottom, and one pilaster on its left edge. The bays touch,
   so their bands join into one continuous entablature. The grid has one narrow extra column on the right,
   filled by a pseudo-element that paints the closing pilaster and the end of the bands. */

.arcade {
  --pier: 9px;   /* pilaster: two hairlines and a capital */
  --band: 44px;  /* frieze: cornice, numeral, architrave */
  --base: 6px;   /* stylobate under each bay */
  --side: 6px;   /* air between a pilaster and the arch */
  --pad: 3px;    /* gap between the arch moulding and the photograph */
  --rule: var(--gold-soft);
  --ink: linear-gradient(var(--rule), var(--rule));

  /* the left pilaster: two verticals, a capital under the architrave, a base above the stylobate */
  --pilaster:
    var(--ink) 2px calc(var(--band) + 2px) / 1px calc(100% - var(--band) - var(--base) - 4px) no-repeat,
    var(--ink) calc(var(--pier) - 3px) calc(var(--band) + 2px) / 1px calc(100% - var(--band) - var(--base) - 4px) no-repeat,
    var(--ink) 0 calc(var(--band) + 2px) / var(--pier) 1px no-repeat,
    var(--ink) 0 calc(100% - var(--base) - 2px) / var(--pier) 1px no-repeat;
  /* the frieze (two rules over, two under) and the stylobate (two rules) across the whole bay */
  --entablature:
    var(--ink) 0 0 / 100% 1px no-repeat,
    var(--ink) 0 4px / 100% 1px no-repeat,
    var(--ink) 0 calc(var(--band) - 5px) / 100% 1px no-repeat,
    var(--ink) 0 calc(var(--band) - 1px) / 100% 1px no-repeat,
    var(--ink) 0 calc(100% - 4px) / 100% 1px no-repeat,
    var(--ink) 0 100% / 100% 1px no-repeat;
}
.arcade__wrap {
  width: 100%;
  max-width: calc(1280px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.arcade__bays {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) var(--pier);
}
.arcade__bays::before,
.arcade__bays::after {
  content: '';
  grid-column: 3;
  background: var(--pilaster), var(--entablature);
}
.arcade__bays::before { grid-row: 1; }
.arcade__bays::after { grid-row: 2; }

.bay {
  position: relative;
  min-width: 0;
  padding: calc(var(--band) + 12px) var(--side) calc(var(--base) + 14px) calc(var(--pier) + var(--side));
  background: var(--pilaster), var(--entablature);
}
.bay__numeral {
  position: absolute;
  top: 5px;
  left: var(--pier);
  right: 0;
  height: calc(var(--band) - 10px);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--gold);
}
.bay__figure { margin: 0 auto; max-width: 300px; }
.bay__arch {
  position: relative;
  padding: var(--pad);
  border: 1px solid var(--rule);
  border-radius: 999px 999px 0 0;
}
.bay__arch::before {
  /* keystone: the same small diamond the hero frame wears on its top rule */
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  background: var(--bg);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.bay__arch img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
  background: var(--surface);
}
.bay__name {
  margin-top: 12px;
  text-align: center;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-caps: small-caps;
  letter-spacing: .12em;
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .arcade { --pier: 13px; --band: 56px; --side: 22px; --pad: 5px; }
  .bay__numeral { font-size: 20px; }
  .bay__name { margin-top: 16px; font-size: 16px; letter-spacing: .14em; }
}

@media (min-width: 900px) {
  .arcade { --pier: 15px; --band: 64px; --side: 12px; --pad: 6px; }
  .arcade__bays { grid-template-columns: repeat(4, minmax(0, 1fr)) var(--pier); }
  .arcade__bays::before { grid-column: 5; grid-row: 1; }
  .arcade__bays::after { display: none; }
  .bay { padding-bottom: calc(var(--base) + 20px); }
  .bay__numeral { font-size: 22px; }
}

/* Interlude: type only, on a pale sage band between the last chapter and the apply card, set as an open
   book. The thread from chapter IV runs down the middle as its spine, in a darker brass that shows on the
   sage. On phones the type is centred and covers the spine, so it shows only above, between and below the
   lines; from 900px the heading is set right-aligned on the left page and the text on the right page. */
.interlude {
  --sage: #D9DFD2;
  position: relative;
  background: var(--sage);
  color: #11291D;
  padding: clamp(64px, 9vw, 112px) 0;
}
.thread--spine { position: absolute; top: 0; bottom: 0; left: 50%; margin: 0 0 0 -.5px; background: #8A7140; }
.interlude__grid { position: relative; display: grid; gap: 40px; text-align: center; }
.interlude__grid > * { background: var(--sage); }
.interlude .label { color: #4A5C44; display: block; margin-bottom: 16px; }
.interlude h2 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; }
.interlude__body p { color: #2C4236; max-width: 32em; margin-inline: auto; }
.interlude__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 14px;
  color: #173D27;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}
@media (min-width: 900px) {
  .interlude__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(80px, 9vw, 136px); align-items: center; text-align: left; }
  .interlude__grid > * { background: none; }
  .interlude__verso { text-align: right; }
  .interlude__body p { margin-inline: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .interlude__link:hover { text-decoration: underline; text-underline-offset: 5px; }
}
