/* Xenon Blast Media. site.css
   Abrasive blasting media and a blast cleaning bay in Pittsburgh. Large slab headings,
   a humanist sans for reading, a cream ground with indigo text, terracotta headings and
   terracotta and indigo bands. The roles are set in the block at the end of this file. */

:root {
  --terra: #9C4327;
  --terra-deep: #84371E;
  --terra-line: #C27355;
  --cream: #F6EBDD;
  --cream-deep: #EADBC6;
  --indigo: #26285E;
  --indigo-line: #4A4D8A;
  --brown: #5A4A44;
  --slab: Rockwell, "Rockwell Nova", "American Typewriter", Clarendon, "Roboto Slab", "DejaVu Serif", Georgia, serif;
  --sans: "Gill Sans", "Gill Sans Nova", "Gill Sans MT", Seravek, Calibri, "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--terra);
  color: var(--cream);
  font-family: var(--sans);
  font-size: clamp(1.125rem, 1rem + 0.35vw, 1.3125rem);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.xb-panel--cream :focus-visible { outline-color: var(--indigo); }
button, summary { font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--slab); font-weight: 400; }
p, li, h1, h2, h3, dd, dt { min-width: 0; overflow-wrap: break-word; }

.xb-skip { position: absolute; left: 1rem; top: -5rem; z-index: 50; padding: 0.6rem 1rem; background: var(--cream); color: var(--indigo); }
.xb-skip:focus { top: 0.75rem; }

.xb-wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: max(1rem, 4vw); }
.xb-col { max-width: 42rem; }
.xb-col > * + * { margin-top: 1rem; }

.xb-chev { display: inline-block; width: 0.75em; height: 0.75em; vertical-align: -0.04em; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Type ---------- */

.xb-kicker { font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.xb-title { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6rem); line-height: 1.02; letter-spacing: -0.01em; }
.xb-h2 { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1.06; }
.xb-h3 { font-size: clamp(1.45rem, 1.15rem + 0.9vw, 1.9rem); line-height: 1.15; }
.xb-statement { font-family: var(--slab); font-size: clamp(1.9rem, 1.1rem + 3vw, 3.75rem); line-height: 1.12; max-width: 24ch; }
.xb-lead { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.45; max-width: 36ch; }
.xb-note { font-style: italic; }
.xb-sign { font-family: var(--slab); font-size: 1.4rem; }
.xb-more { font-weight: 600; white-space: nowrap; }
.xb-more .xb-chev { margin-left: 0.25em; }

/* ---------- Header ---------- */

.xb-header { position: relative; z-index: 20; }
.xb-header__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; }
.xb-brand { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--slab); font-size: 1.45rem; line-height: 1.1; text-decoration: none; }
.xb-mark { width: 2.1rem; height: 2.1rem; flex: none; }
.xb-nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.9rem; }
.xb-nav a { font-size: 1.1rem; font-weight: 600; text-decoration-color: transparent; }
.xb-nav a:hover, .xb-nav a[aria-current="page"] { text-decoration-color: var(--cream); }

.xb-menu { display: none; position: relative; }
.xb-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 1rem;
  border: 2px solid var(--cream);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.xb-menu__toggle::-webkit-details-marker { display: none; }
.xb-menu__toggle .xb-chev { transform: rotate(90deg); transition: transform 0.2s var(--ease); }
.xb-menu[open] .xb-menu__toggle .xb-chev { transform: rotate(-90deg); }
.xb-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 15rem;
  padding: 0.5rem 1.25rem;
  background: var(--cream);
  color: var(--indigo);
  border: 2px solid var(--indigo);
}
.xb-menu__panel li + li { border-top: 1px solid var(--cream-deep); }
.xb-menu__panel a { display: block; padding: 0.7rem 0; font-size: 1.2rem; font-weight: 600; text-decoration-color: transparent; }
.xb-menu__panel a[aria-current="page"] { text-decoration-color: var(--indigo); }
.xb-js .xb-menu__panel { opacity: 0; transform: translateY(-0.4rem); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.xb-js .xb-menu.is-open .xb-menu__panel { opacity: 1; transform: none; }

/* ---------- Opening: the numbered index ---------- */

.xb-open { padding-block: clamp(1rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); }
.xb-open__line { font-family: var(--slab); font-size: clamp(1.35rem, 1rem + 1.4vw, 2.3rem); line-height: 1.2; max-width: 34ch; }
.xb-js .xb-open__line.is-wiping { animation: xb-wipe 0.9s var(--ease) both; }
@keyframes xb-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.xb-index { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 2px solid var(--cream); }
.xb-index li { border-bottom: 2px solid var(--cream); }
.xb-index a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1.1rem;
  padding-block: clamp(0.9rem, 2.2vw, 1.6rem);
  text-decoration: none;
}
.xb-index__no {
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 1.6rem + 3.6vw, 5.25rem);
  height: clamp(2.6rem, 1.6rem + 3.6vw, 5.25rem);
  background: var(--indigo);
  color: var(--cream);
  font-family: var(--slab);
  font-size: clamp(1.4rem, 0.8rem + 2.2vw, 3rem);
  line-height: 1;
}
.xb-index__name { display: block; font-family: var(--slab); font-size: clamp(2rem, 0.9rem + 4.6vw, 5.4rem); line-height: 1; letter-spacing: -0.01em; }
.xb-index__what { display: block; margin-top: 0.4rem; font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); line-height: 1.4; max-width: 52ch; }
.xb-index .xb-chev { width: clamp(1.3rem, 1rem + 1.2vw, 2.4rem); height: clamp(1.3rem, 1rem + 1.2vw, 2.4rem); stroke-width: 1.6; }
.xb-index--plain .xb-index__no { background: var(--cream); color: var(--indigo); }
.xb-index--plain .xb-index__name { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3.2rem); }
.xb-index a:hover .xb-index__name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }

/* Inner page heads */
.xb-head { padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.xb-head > .xb-wrap > * + * { margin-top: 1.25rem; }

/* ---------- Panels and columns ---------- */

.xb-panel { padding-block: clamp(3.5rem, 8vw, 7rem); }
.xb-panel--cream { background: var(--cream); color: var(--indigo); }
.xb-panel--cream a { text-decoration-color: var(--terra); }
.xb-panel--indigo { background: var(--indigo); color: var(--cream); }
.xb-panel--deep { background: var(--terra-deep); }
.xb-panel > .xb-wrap > * + * { margin-top: 1.5rem; }
.xb-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.xb-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1.5rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--terra-line);
}
.xb-rows li:first-child { border-top: 1px solid var(--terra-line); }
.xb-rows li > :last-child { margin-left: auto; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; text-align: right; }
.xb-panel--cream .xb-rows li { border-color: var(--cream-deep); }
.xb-panel--indigo .xb-rows li { border-color: var(--indigo-line); }

.xb-list li { position: relative; padding: 0.7rem 0 0.7rem 1.6rem; border-bottom: 1px solid var(--terra-line); }
.xb-list li:first-child { border-top: 1px solid var(--terra-line); }
.xb-list li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.65rem; height: 0.65rem; background: currentColor; }
.xb-panel--cream .xb-list li { border-color: var(--cream-deep); }
.xb-panel--cream .xb-list li::before { background: var(--terra); }
.xb-panel--indigo .xb-list li { border-color: var(--indigo-line); }

.xb-pairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.xb-pairs > div { padding-block: 1.1rem; border-top: 1px solid var(--cream-deep); }
.xb-pairs dt { font-family: var(--slab); font-size: 1.35rem; line-height: 1.2; }
.xb-pairs dd { margin-top: 0.3rem; }

/* ---------- Media ledger ---------- */

.xb-ledger > article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem 2rem; padding-block: 1.5rem; border-top: 2px solid var(--cream); }
.xb-ledger > article:last-child { border-bottom: 2px solid var(--cream); }
.xb-ledger .xb-h3 { scroll-margin-top: 1.5rem; }
.xb-ledger__grades { font-size: 1rem; letter-spacing: 0.04em; }
.xb-ledger__price { font-family: var(--slab); font-size: 1.6rem; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums; }
.xb-ledger__price small { display: block; font-family: var(--sans); font-size: 1rem; }

/* ---------- Figures ---------- */

.xb-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
.xb-sizes figure { text-align: center; }
.xb-sizes svg { width: 100%; max-width: 9rem; margin-inline: auto; }
.xb-sizes figcaption { margin-top: 0.4rem; font-size: 1rem; line-height: 1.35; }
.xb-sizes figcaption b { display: block; font-family: var(--slab); font-weight: 400; font-size: 1.2rem; }
.xb-scale { display: flex; align-items: center; gap: 0.9rem; font-size: 1rem; }
.xb-scale svg { width: 9rem; flex: none; }
.xb-plan svg { width: 100%; max-width: 46rem; }
.xb-split > * + * { margin-top: 2rem; }
.xb-panel--cream .xb-fig-note { color: var(--brown); }
.xb-fig-note { font-size: 1rem; font-style: italic; max-width: 52ch; }

/* ---------- Next block ---------- */

.xb-next { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--terra-deep); }
.xb-next__links { margin-top: 1.25rem; border-top: 2px solid var(--cream); }
.xb-next__links li { border-bottom: 2px solid var(--cream); }
.xb-next__links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; font-family: var(--slab); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); line-height: 1.1; text-decoration: none; }
.xb-next__links a:hover span { text-decoration: underline; text-decoration-thickness: 2px; }
.xb-next__links .xb-chev { flex: none; }

/* ---------- Contact ---------- */

.xb-email { display: inline-block; max-width: 100%; font-family: var(--slab); font-size: clamp(1.35rem, 0.35rem + 4.6vw, 4rem); line-height: 1.1; overflow-wrap: anywhere; text-decoration-thickness: 3px; }

/* ---------- Footer ---------- */

.xb-footer { background: var(--indigo); color: var(--cream); padding-block: 3.5rem 2rem; font-size: 1.05rem; }
.xb-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.xb-footer__name { font-family: var(--slab); font-size: 1.6rem; text-decoration: none; }
.xb-footer__about { margin-top: 0.75rem; max-width: 34ch; }
.xb-footer__head { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 0.6rem; }
.xb-footer__list li + li { margin-top: 0.35rem; }
.xb-footer__list a { text-decoration-color: transparent; }
.xb-footer__list a:hover, .xb-footer__list a[aria-current="page"] { text-decoration-color: var(--cream); }
.xb-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--indigo-line); font-size: 0.98rem; }

/* ---------- Opening: a large statement over the sieve scale ---------- */

.xb-open__top > * + * { margin-top: 1.25rem; }
.xb-open .xb-open__line { font-size: clamp(2.6rem, 1rem + 4.2vw, 4.6rem); line-height: 1.04; letter-spacing: -0.015em; max-width: 26ch; text-wrap: balance; }
.xb-open__foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem; align-items: end; }
.xb-open__foot .xb-lead { max-width: 40ch; }
.xb-open__links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-size: 1.15rem; }

.xb-sieve { margin-top: clamp(2rem, 4vw, 3rem); padding-block: clamp(1.5rem, 3vw, 2.25rem); background: var(--indigo); color: var(--cream); }
.xb-sieve__head { font-size: 1rem; max-width: 64ch; }
.xb-sieve__scale { white-space: nowrap; }
.xb-sieve__bar { display: inline-block; width: 40px; height: 0.55rem; margin-inline: 0.35rem; border: 1.5px solid var(--cream); border-top: 0; vertical-align: 0.1em; }
.xb-sieve__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 1rem; margin-top: 1.25rem; }
.xb-sieve__row li { display: grid; grid-template-rows: 4.6rem auto auto auto; align-content: start; }
/* Each opening is drawn at 40 pixels to the millimetre, the same as the 1 mm bar. */
.xb-sieve__hole { align-self: end; width: min(calc(var(--mm) * 40px), 100%); aspect-ratio: 1; margin-bottom: 0.6rem; border: 1.5px solid var(--cream); }
.xb-sieve__row b { font-family: var(--slab); font-weight: 400; font-size: 1.35rem; line-height: 1.15; }
.xb-sieve__mm { font-size: 1rem; }
.xb-sieve__media { margin-top: 0.2rem; font-size: 0.95rem; font-style: italic; line-height: 1.35; }

.xb-section--index { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.xb-index--below .xb-index__name { font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem); }

@media (min-width: 48rem) {
  .xb-sieve__row { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

@media (min-width: 64rem) {
  .xb-open__foot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .xb-open__links { justify-content: flex-end; }
}

/* ---------- Staggered rise ----------
   Content is always fully shown. The script only nudges blocks that start below the
   screen a little lower and lets them rise once as they arrive. */
.xb-js .xb-rise { transform: translateY(1.25rem); }
.xb-js .xb-rise.is-in { transform: none; transition: transform 0.6s var(--ease); transition-delay: var(--rise-delay, 0ms); }

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
  .xb-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .xb-ledger > article { grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, 0.9fr); align-items: baseline; }
  .xb-ledger__price { text-align: right; }
  .xb-pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .xb-footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 64rem) {
  .xb-open { min-height: calc(100vh - 5.5rem); display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 0; }
  .xb-open > .xb-wrap { width: 100%; }
  .xb-sizes { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .xb-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: center; }
  .xb-split > * + * { margin-top: 0; }
}

@media (max-width: 51.99rem) {
  .xb-nav { display: none; }
  .xb-menu { display: block; }
  .xb-brand { font-size: 1.25rem; }
}

@media (max-width: 39.99rem) {
  .xb-plan text { font-size: 24px; }
  .xb-sieve__row b { font-size: 1.05rem; }
  .xb-sieve__media { font-size: 0.85rem; }
  /* The second row of openings is small, so it needs less room above its labels. */
  .xb-sieve__row li:nth-child(n+5) { grid-template-rows: 1.4rem auto auto auto; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .xb-js .xb-rise { transform: none; }
}

/* ---------- Palette roles ----------
   Cream is the ground and indigo the reading colour. Terracotta carries the headings and
   the next block; indigo carries the sieve band, the dark panels and the footer. The
   former cream panels become a deeper cream so the drawings keep a light field. */

body { background: var(--cream); color: var(--indigo); }
a { text-decoration-color: var(--terra); }
:focus-visible { outline-color: var(--indigo); }
h1, h2, h3, .xb-statement, .xb-index__name, .xb-sign { color: var(--terra); }

.xb-nav a:hover, .xb-nav a[aria-current="page"] { text-decoration-color: var(--terra); }
.xb-menu__toggle { border-color: var(--indigo); }

.xb-index, .xb-index li { border-color: var(--indigo); }
.xb-ledger > article { border-color: var(--indigo); }
.xb-list li::before { background: var(--terra); }

.xb-panel--cream { background: var(--cream-deep); color: var(--indigo); }
.xb-panel--cream .xb-rows li, .xb-panel--cream .xb-pairs > div { border-color: #D2BFA4; }
.xb-panel--cream .xb-fig-note { color: var(--indigo); }

.xb-panel--indigo, .xb-sieve, .xb-footer { color: var(--cream); }
.xb-panel--indigo :is(h1, h2, h3, .xb-statement, .xb-index__name, .xb-sign),
.xb-next :is(h1, h2, h3),
.xb-next .xb-next__links a { color: var(--cream); }
.xb-panel--indigo a, .xb-sieve a, .xb-footer a, .xb-next a { text-decoration-color: var(--cream); }
.xb-panel--indigo :focus-visible, .xb-sieve :focus-visible, .xb-footer :focus-visible, .xb-next :focus-visible { outline-color: var(--cream); }
.xb-panel--indigo .xb-index, .xb-panel--indigo .xb-index li { border-color: var(--cream); }
.xb-panel--indigo .xb-list li::before { background: var(--cream); }

.xb-next { background: var(--terra); color: var(--cream); }

/* ---------- Print ---------- */

@media print {
  .xb-menu, .xb-nav, .xb-skip { display: none; }
  body, .xb-panel, .xb-footer { background: #fff; color: #000; }
}
