/* ==========================================================================
   Clyaris site.css
   One stylesheet for index, courses, kiln, studio and contact.
   Palette: ground #E3C4BC, text #2B2A2E, muted #574246 (darkened from
   #6A5256 so small text clears 4.5:1 on both grounds), line #9E7F4C,
   accent #0E5A45. Emerald is used only for links and the current spine node.

   Markup map, cx- block-element naming:
   Header    header.cx-header > div.cx-header__inner >
               a.cx-wordmark
               nav.cx-nav > ul.cx-nav__list > li > a.cx-nav__link[aria-current]
               details.cx-menu > summary.cx-menu__toggle
                 (span "Menu" + span.cx-menu__icon)
                 + div.cx-menu__panel > ul.cx-menu__list > li > a.cx-menu__link
   Hero      section.cx-hero > div.cx-hero__text > div.cx-hero__inner >
               p.cx-hero__eyebrow, h1.cx-hero__name, div.cx-rule-step,
               p.cx-hero__offer, p.cx-hero__links > a.cx-caplink,
               p.cx-hero__spec
             div.cx-hero__panel > div.cx-hero__frame > div.cx-hero__drawing > svg.cx-svg
   SVG line  .cx-svg__gilt .cx-svg__ink .cx-svg__dash .cx-svg__faint
             .cx-svg__hatch .cx-svg__node .cx-svg__label .cx-svg__ground
   Spine     div.cx-spine-head > span.cx-finial, p.cx-eyebrow, h2
             ol.cx-spine > li.cx-station (.cx-station--dated) >
               p.cx-station__num, h3.cx-station__title, p.cx-station__meta,
               p, dl.cx-station__facts, a.cx-station__link
             li.cx-spine__aside inside the spine for a full-width aside
   Figures   section.cx-figures > div.cx-wrap > p.cx-figures__eyebrow,
               ul.cx-figures__list > li.cx-figure >
               span.cx-figure__value[data-count], span.cx-figure__unit,
               span.cx-figure__label
   Doors     div.cx-doors > article.cx-door > p.cx-door__eyebrow,
               h3.cx-door__title, p.cx-door__price, ul.cx-door__list,
               div.cx-door__foot > a.cx-btn
   Plates    div.cx-plates > article.cx-plate, then p.cx-strip
   Register  ul.cx-register > li.cx-register__row > .cx-register__key or
               .cx-register__name, .cx-register__body, .cx-register__fig
   Others    .cx-pagehead, .cx-section, .cx-sechead, .cx-note, .cx-inez,
             .cx-terms, .cx-refusals, .cx-plainlist, .cx-aside, .cx-split,
             .cx-plan, .cx-mailframe, .cx-mail, .cx-next, .cx-footer
   ========================================================================== */

:root {
  --ground: #E3C4BC;
  --ground-deep: #D5B8B1;
  --text: #2B2A2E;
  --muted: #574246;
  --line: #9E7F4C;
  --accent: #0E5A45;
  --accent-deep: #093D2F;
  --accent-soft: rgba(14, 90, 69, 0.38);

  --f-display: Baskerville, "Baskerville Old Face", "Hoefler Text", "Big Caslon", Garamond, "Times New Roman", serif;
  --f-body: "Hoefler Text", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;

  --pad: clamp(1.25rem, 5vw, 4rem);
  --wide: 76rem;
  --measure: 62ch;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Stepped deco border: outer rule, a one-step rule and a two-step rule */
  --cx-step: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%239E7F4C' stroke-width='1'%3E%3Crect x='.5' y='.5' width='47' height='47'/%3E%3Cpath d='M5.5 9.5H9.5V5.5H38.5V9.5H42.5V38.5H38.5V42.5H9.5V38.5H5.5Z'/%3E%3Cpath d='M10.5 14.5H12.5V12.5H14.5V10.5H33.5V12.5H35.5V14.5H37.5V33.5H35.5V35.5H33.5V37.5H14.5V35.5H12.5V33.5H10.5Z'/%3E%3C/svg%3E");

  /* Fine drawn arrow used as a mask so it takes the link colour */
  --cx-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 10'%3E%3Cpath d='M0 5H22.5M18 1L22.5 5L18 9' fill='none' stroke='%23000' stroke-width='1.1'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol,
dl {
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--accent-soft);
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-deep);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--ground);
}

main {
  display: block;
}

.cx-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cx-skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  background: var(--ground);
  border: 1px solid var(--accent);
  font-family: var(--f-display);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.cx-skip:focus {
  top: 1rem;
}

.cx-wrap {
  width: min(var(--wide), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.cx-wrap--narrow {
  width: min(46rem, 100% - 2 * var(--pad));
  margin-inline: auto;
}

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

.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.25rem;
  font-family: var(--f-display);
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-eyebrow::before,
.cx-eyebrow--center::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--line);
}

.cx-label {
  font-family: var(--f-display);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 54ch;
}

.cx-help {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.cx-prose {
  max-width: var(--measure);
}

.cx-prose p + p {
  margin-top: 0;
}

.cx-prose h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.cx-num-old {
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-feature-settings: "onum" 1;
}

/* --------------------------------------------------------------------------
   Arrow glyph shared by every "go here" link
   -------------------------------------------------------------------------- */

.cx-caplink::after,
.cx-btn::after,
.cx-station__link::after,
.cx-next__link::after,
.cx-menu__link::after,
.cx-door__link::after {
  content: "";
  flex: none;
  display: inline-block;
  width: 1.5em;
  height: 0.7em;
  background-color: currentColor;
  -webkit-mask: var(--cx-arrow) no-repeat center / contain;
  mask: var(--cx-arrow) no-repeat center / contain;
  transition: transform 0.3s var(--ease), background-color 0.2s var(--ease);
}

.cx-caplink:hover::after,
.cx-btn:hover::after,
.cx-station__link:hover::after,
.cx-next__link:hover::after,
.cx-menu__link:hover::after,
.cx-door__link:hover::after {
  transform: translateX(0.35em);
}

/* Small-caps emerald text link */
.cx-caplink {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0;
  font-family: var(--f-display);
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.cx-caplink:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

/* Button: hugs its text, flush, no lift */
.cx-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: auto;
  padding: 0.875rem 1.375rem 0.875rem 1.5rem;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.cx-btn:hover {
  background: var(--accent);
  color: var(--ground);
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Stepped deco frame, shared by every framed block
   -------------------------------------------------------------------------- */

.cx-stepped,
.cx-hero__frame,
.cx-door,
.cx-plate,
.cx-aside,
.cx-spine__aside,
.cx-mailframe,
.cx-plan {
  border-style: solid;
  border-width: 16px;
  border-color: transparent;
  border-image-source: var(--cx-step);
  border-image-slice: 16;
  border-image-width: 16px;
  border-image-repeat: stretch;
}

/* Three narrowing gilt hairlines */
.cx-rule-step {
  position: relative;
  width: min(11rem, 70%);
  height: 11px;
  margin: 1.75rem auto;
  border-top: 1px solid var(--line);
}

.cx-rule-step::before,
.cx-rule-step::after {
  content: "";
  position: absolute;
  left: 50%;
  height: 0;
  border-top: 1px solid var(--line);
  transform: translateX(-50%);
}

.cx-rule-step::before {
  top: 4px;
  width: 64%;
}

.cx-rule-step::after {
  top: 9px;
  width: 28%;
}

.cx-rule-step--left {
  margin-left: 0;
}

.cx-rule-step--left::before,
.cx-rule-step--left::after {
  left: 0;
  transform: none;
}

/* Small diamond ornament with a ring, used as a divider */
.cx-ornament {
  position: relative;
  display: block;
  height: 1.5rem;
  margin: 2.5rem auto;
}

.cx-ornament::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.cx-ornament::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--ground);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 3px;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.cx-header {
  position: relative;
  z-index: 30;
  background: var(--ground);
  border-bottom: 3px double var(--line);
}

.cx-header__inner {
  width: min(var(--wide), 100% - 2 * var(--pad));
  margin-inline: auto;
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cx-wordmark {
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.cx-wordmark:hover {
  color: var(--text);
}

.cx-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none;
}

.cx-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.6rem 0;
  font-family: var(--f-display);
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.cx-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.16em;
  bottom: 0.2rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.3s var(--ease);
}

.cx-nav__link:hover {
  color: var(--accent);
}

.cx-nav__link:hover::after {
  transform: scaleX(1);
}

.cx-nav__link[aria-current="page"] {
  color: var(--text);
}

.cx-nav__link[aria-current="page"]::after {
  background: var(--line);
  transform: scaleX(1);
}

/* Phone menu, built on details and summary */
.cx-menu {
  display: none;
}

.cx-menu__toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cx-menu__toggle::-webkit-details-marker {
  display: none;
}

.cx-menu__toggle::marker {
  content: "";
}

.cx-menu__toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cx-menu__icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 9px;
}

.cx-menu__icon::before,
.cx-menu__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.cx-menu__icon::before {
  top: 0;
}

.cx-menu__icon::after {
  bottom: 0;
}

.cx-menu[open] .cx-menu__icon::before {
  transform: translateY(4px) rotate(45deg);
}

.cx-menu[open] .cx-menu__icon::after {
  transform: translateY(-4px) rotate(-45deg);
}

.cx-menu.is-closing .cx-menu__icon::before,
.cx-menu.is-closing .cx-menu__icon::after {
  transform: none;
}

.cx-menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 3px);
  z-index: 40;
  background: var(--ground-deep);
  border-bottom: 3px double var(--line);
  padding: 0.75rem var(--pad) 2rem;
}

.cx-menu[open] .cx-menu__panel {
  animation: cx-drop-in 0.24s var(--ease) both;
}

.cx-menu.is-closing .cx-menu__panel {
  animation: cx-drop-out 0.2s ease-in both;
}

@keyframes cx-drop-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cx-drop-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.cx-menu__list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.cx-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.3s var(--ease);
}

.cx-menu__link::after {
  background-color: var(--line);
}

.cx-menu__link:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.cx-menu__link:hover::after {
  background-color: var(--accent);
}

.cx-menu__link[aria-current="page"] {
  color: var(--muted);
}

.cx-menu__note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 47.99rem) {
  .cx-nav {
    display: none;
  }

  .cx-menu {
    display: block;
  }

  .cx-wordmark {
    font-size: 1rem;
    letter-spacing: 0.3em;
  }
}

/* --------------------------------------------------------------------------
   Hero, split screen
   -------------------------------------------------------------------------- */

.cx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.cx-hero__text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.75rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  container-type: inline-size;
}

.cx-hero__inner {
  width: 100%;
  max-width: 36rem;
  min-width: 0;
}

.cx-hero__eyebrow {
  margin: 0 auto 1.75rem;
  max-width: 30rem;
  font-family: var(--f-display);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
}

.cx-hero__name {
  margin: 0;
  padding-left: 0.12em;
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 1.2rem + 5.4vw, 5rem);
  font-size: clamp(2.75rem, 11.5cqi, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.cx-hero .cx-rule-step {
  margin-block: 1.75rem 1.9rem;
}

.cx-hero__offer {
  max-width: 30ch;
  margin: 0 auto;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
}

.cx-hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.25rem;
  margin: 2rem 0 0;
}

.cx-hero__spec {
  display: inline-block;
  margin: 2.5rem 0 0;
  padding: 0.75rem 0.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
}

.cx-hero__panel {
  display: flex;
  padding: 1rem;
  background: var(--ground-deep);
  border-top: 1px solid var(--line);
}

.cx-hero__frame {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 23.75rem;
  padding: 1rem;
  min-width: 0;
}

.cx-hero__drawing {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cx-hero__drawing svg {
  width: 100%;
  height: auto;
  max-height: 19.75rem;
}

@media (min-width: 30rem) {
  .cx-hero__eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.16em;
  }
}

@media (min-width: 60rem) {
  .cx-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 88vh;
    min-height: 88svh;
  }

  .cx-hero__panel {
    padding: clamp(1.5rem, 3vw, 3rem);
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .cx-hero__frame {
    min-height: 0;
    padding: clamp(1.5rem, 3vw, 2.75rem);
  }

  .cx-hero__drawing svg {
    max-height: calc(88vh - 10rem);
    max-height: calc(88svh - 10rem);
  }
}

/* Home opening: the palette read dark, charcoal ground with rose type and
   brighter gilt and emerald, the kiln drawing on the left, the name on the right */

.cx-home .cx-header,
.cx-hero {
  --ground: #2B2A2E;
  --ground-deep: #232226;
  --text: #EBD3CC;
  --muted: #CFAEA6;
  --line: #C8A66E;
  --accent: #6CC6A2;
  --accent-deep: #9BDDC2;
  --accent-soft: rgba(108, 198, 162, 0.45);
  --cx-step: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23C8A66E' stroke-width='1'%3E%3Crect x='.5' y='.5' width='47' height='47'/%3E%3Cpath d='M5.5 9.5H9.5V5.5H38.5V9.5H42.5V38.5H38.5V42.5H9.5V38.5H5.5Z'/%3E%3Cpath d='M10.5 14.5H12.5V12.5H14.5V10.5H33.5V12.5H35.5V14.5H37.5V33.5H35.5V35.5H33.5V37.5H14.5V35.5H12.5V33.5H10.5Z'/%3E%3C/svg%3E");
  color: var(--text);
}

.cx-home .cx-header {
  background: var(--ground);
}

.cx-hero {
  background: var(--ground);
}

@media (min-width: 60rem) {
  .cx-hero__panel {
    order: -1;
  }

  .cx-hero .cx-hero__panel {
    border-left: 0;
    border-right: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   Inline SVG line vocabulary
   -------------------------------------------------------------------------- */

.cx-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.cx-svg__gilt,
.cx-svg__ink,
.cx-svg__dash,
.cx-svg__faint,
.cx-svg__hatch {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.cx-svg__gilt {
  stroke: var(--line);
  stroke-width: 1;
}

.cx-svg__ink {
  stroke: var(--text);
  stroke-width: 1.25;
}

.cx-svg__dash {
  stroke: var(--muted);
  stroke-width: 0.75;
  stroke-dasharray: 7 4 1.5 4;
  stroke-linecap: butt;
}

.cx-svg__faint {
  stroke: var(--line);
  stroke-width: 0.75;
  stroke-opacity: 0.55;
}

.cx-svg__hatch {
  stroke: var(--line);
  stroke-width: 0.75;
}

.cx-svg__node {
  fill: var(--accent);
  stroke: none;
}

.cx-svg__ground {
  fill: var(--ground-deep);
  stroke: none;
}

.cx-svg__ground--light {
  fill: var(--ground);
}

.cx-svg__label {
  fill: var(--muted);
  font-family: var(--f-display);
  font-size: 9px;
  letter-spacing: 0.16em;
}

/* --------------------------------------------------------------------------
   Sections and section heads
   -------------------------------------------------------------------------- */

.cx-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.cx-section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.cx-section--loose {
  padding-block: clamp(5rem, 11vw, 9.5rem);
}

.cx-section--flush-top {
  padding-top: 0;
}

.cx-section--deep {
  background: var(--ground-deep);
  border-top: 3px double var(--line);
  border-bottom: 3px double var(--line);
}

.cx-sechead {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.cx-sechead__title {
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem);
  font-weight: 400;
}

.cx-sechead__lead {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 54ch;
}

.cx-sechead--axis {
  margin-inline: auto;
  text-align: center;
}

.cx-sechead--axis .cx-sechead__lead {
  margin-inline: auto;
}

.cx-sechead--axis .cx-eyebrow::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: var(--line);
}

.cx-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.cx-split > * {
  min-width: 0;
}

.cx-split--center {
  align-items: center;
}

@media (min-width: 56rem) {
  .cx-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .cx-split--wide-left {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .cx-split--wide-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }
}

/* --------------------------------------------------------------------------
   Inner page head
   -------------------------------------------------------------------------- */

.cx-pagehead {
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.cx-pagehead__title {
  margin: 0;
  font-size: clamp(2.25rem, 1.55rem + 2.4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.cx-pagehead__intro {
  max-width: 58ch;
  margin: 0 auto;
  font-size: 1.1875rem;
  line-height: 1.7;
}

.cx-pagehead__sig {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.75rem;
  font-family: var(--f-display);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-pagehead__sig::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   The spine: stations alternate either side of a gilt double rule
   -------------------------------------------------------------------------- */

.cx-spine-head {
  --spine-x: 14px;
  text-align: left;
}

.cx-finial {
  position: relative;
  display: block;
  width: 28px;
  height: 4.25rem;
  margin: 0 0 1.75rem 2.5px;
}

.cx-finial::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 3px;
  transform: rotate(45deg);
}

.cx-finial::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 50%;
  width: 5px;
  transform: translateX(-50%);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.cx-spine-head__title {
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem);
  font-weight: 400;
}

.cx-spine-head__lead {
  max-width: 52ch;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.cx-spine-head::after {
  content: "";
  display: block;
  width: 5px;
  height: clamp(2rem, 4vw, 3rem);
  margin: 1.75rem 0 0 var(--spine-x);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.cx-spine {
  --gut: 3.5rem;
  --pt: clamp(2rem, 4vw, 3.25rem);
  --num-mid: 0.656rem;
  position: relative;
  list-style: none;
  padding: 0 0 3.5rem;
  counter-reset: none;
}

.cx-spine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.25rem;
  left: 14px;
  width: 5px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.cx-spine::after {
  content: "";
  position: absolute;
  bottom: 0.5rem;
  left: 10px;
  width: 13px;
  height: 13px;
  background: var(--ground);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -5px;
  transform: rotate(45deg);
}

.cx-station {
  position: relative;
  padding: var(--pt) 0 clamp(1.25rem, 2.5vw, 2rem) 2.75rem;
  min-width: 0;
}

.cx-station--dated {
  --num-mid: 1.05rem;
}

/* Node: a tiny stepped diamond sitting on the spine */
.cx-station::after {
  content: "";
  position: absolute;
  top: calc(var(--pt) + var(--num-mid) - 6.5px);
  left: 10px;
  width: 13px;
  height: 13px;
  background: var(--ground);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -5px;
  transform: rotate(45deg);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), outline-color 0.35s var(--ease);
}

.cx-spine:not(.is-tracking) > .cx-station:first-child::after,
.cx-station.is-current::after {
  background: var(--accent);
  border-color: var(--accent);
  outline-color: var(--ground);
}

.cx-station__num {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  font-family: var(--f-display);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: oldstyle-nums proportional-nums;
}

.cx-station__num::after {
  content: "";
  flex: 1;
  min-width: 1.5rem;
  height: 1px;
  background: var(--line);
}

.cx-station--dated .cx-station__num {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--text);
}

.cx-station__title {
  margin: 0.85rem 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
}

.cx-station__meta {
  margin: 0 0 1rem;
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-station__title + p {
  margin-top: 0.75rem;
}

.cx-station p {
  max-width: 58ch;
}

.cx-station__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem 1.25rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cx-station__facts dt {
  margin-top: 0.6rem;
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-station__facts dt:first-child {
  margin-top: 0;
}

.cx-station__facts dd {
  margin: 0;
  min-width: 0;
}

@media (min-width: 30rem) {
  .cx-station__facts {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.55rem 1.25rem;
  }

  .cx-station__facts dt {
    margin-top: 0;
    padding-top: 0.2rem;
  }
}

.cx-station__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.3rem 0;
  font-family: var(--f-display);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.cx-station__link:hover {
  border-bottom-color: var(--accent-deep);
}

/* Full-width aside carried inside the spine */
.cx-spine__aside {
  position: relative;
  z-index: 1;
  margin: 2.25rem 0 1rem 2.75rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--ground);
}

.cx-aside {
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--ground);
}

.cx-aside__title,
.cx-spine__aside h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 400;
}

.cx-aside p,
.cx-spine__aside p {
  max-width: 62ch;
}

.cx-aside__sig {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--f-display);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Desktop: the spine moves to the central axis. Stations sit in a
   two-column grid, each spanning two rows, and the second station starts
   one row down, so every station begins halfway down the one before it
   and the opposite column is never left empty. */
@media (min-width: 56rem) {
  .cx-spine-head {
    --spine-x: auto;
    text-align: center;
  }

  .cx-spine-head .cx-eyebrow::after {
    content: "";
    flex: none;
    width: 1.75rem;
    height: 1px;
    background: var(--line);
  }

  .cx-finial {
    margin: 0 auto 2rem;
  }

  .cx-spine-head__lead {
    margin-inline: auto;
  }

  .cx-spine-head::after {
    margin: 2rem auto 0;
  }

  .cx-spine {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: calc(2 * var(--gut));
    align-items: start;
  }

  .cx-spine::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .cx-spine::after {
    left: 50%;
    margin-left: -6.5px;
  }

  .cx-station {
    grid-column: 1;
    grid-row: span 2;
    padding-left: 0;
    padding-right: 0;
  }

  .cx-spine > .cx-station:nth-child(2) {
    grid-row: 2 / span 2;
  }

  .cx-station::before {
    content: "";
    position: absolute;
    top: calc(var(--pt) + var(--num-mid));
    right: -2.5rem;
    width: 2.5rem;
    height: 1px;
    background: var(--line);
  }

  .cx-station::after {
    left: auto;
    right: calc(-1 * var(--gut) - 6.5px);
  }

  .cx-station__title {
    font-size: 1.4rem;
  }

  .cx-spine__aside {
    grid-column: 1 / -1;
    width: min(46rem, 100%);
    margin: 3rem auto 2.5rem;
  }
}

@supports not selector(:nth-child(1 of .x)) {
  @media (min-width: 56rem) {
    .cx-spine > .cx-station:nth-child(even) {
      grid-column: 2;
    }

    .cx-spine > .cx-station:nth-child(even)::before {
      right: auto;
      left: -2.5rem;
    }

    .cx-spine > .cx-station:nth-child(even)::after {
      right: auto;
      left: calc(-1 * var(--gut) - 6.5px);
    }
  }
}

@supports selector(:nth-child(1 of .x)) {
  @media (min-width: 56rem) {
    .cx-spine > .cx-station:nth-child(even of .cx-station) {
      grid-column: 2;
    }

    .cx-spine > .cx-station:nth-child(even of .cx-station)::before {
      right: auto;
      left: -2.5rem;
    }

    .cx-spine > .cx-station:nth-child(even of .cx-station)::after {
      right: auto;
      left: calc(-1 * var(--gut) - 6.5px);
    }
  }
}

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

.cx-figures {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  background: var(--ground-deep);
  border-top: 3px double var(--line);
  border-bottom: 3px double var(--line);
}

.cx-figures__eyebrow {
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem);
  text-align: center;
  font-family: var(--f-display);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-figures__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 64rem;
  margin-inline: auto;
}

.cx-figure {
  min-width: 0;
  padding: 1.5rem 0.75rem 1.25rem;
  text-align: center;
}

.cx-figure:nth-child(even) {
  border-left: 1px solid var(--line);
}

.cx-figure:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.cx-figure__value {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 1.6rem + 3vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  font-variant-numeric: oldstyle-nums tabular-nums;
  font-feature-settings: "onum" 1, "tnum" 1;
}

.cx-figure__unit {
  margin-left: 0.2em;
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem);
  line-height: 1;
  color: var(--muted);
}

.cx-figure__label {
  display: block;
  max-width: 18ch;
  margin: 1rem auto 0;
  font-family: var(--f-display);
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 56rem) {
  .cx-figures__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cx-figure,
  .cx-figure:nth-child(n + 3) {
    border-top: 0;
    padding-block: 0.5rem;
  }

  .cx-figure:not(:first-child) {
    border-left: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   Two doors
   -------------------------------------------------------------------------- */

.cx-doors {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.cx-door {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--ground);
}

.cx-door__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--f-display);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-door__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
  font-weight: 500;
}

.cx-door__price {
  margin: 0 0 0.5rem;
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "onum" 1;
}

.cx-door__per {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: 0.4em;
}

.cx-door__text {
  margin-top: 1rem;
  max-width: 52ch;
}

.cx-door__list {
  list-style: none;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.cx-door__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cx-door__list li > * {
  min-width: 0;
}

.cx-door__list li > :last-child {
  flex: none;
  font-family: var(--f-display);
  font-size: 1.0625rem;
  white-space: nowrap;
  font-variant-numeric: oldstyle-nums;
}

.cx-door__foot {
  margin-top: auto;
  padding-top: 2.25rem;
}

.cx-door__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

@media (min-width: 56rem) {
  .cx-doors {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(3.5rem, 7vw, 6.5rem);
  }

  .cx-doors::before {
    content: "";
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 5px;
    transform: translateX(-50%);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .cx-doors::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    margin: -6.5px 0 0 -6.5px;
    background: var(--ground);
    border: 1px solid var(--line);
    outline: 1px solid var(--line);
    outline-offset: -5px;
    transform: rotate(45deg);
  }
}

/* --------------------------------------------------------------------------
   Note from Della, index
   -------------------------------------------------------------------------- */

.cx-note {
  position: relative;
  max-width: 44rem;
  margin-inline: auto;
  padding-top: 3rem;
}

.cx-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 3px;
  transform: rotate(45deg);
}

.cx-note__text {
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.65;
  font-style: italic;
}

.cx-note__text p {
  max-width: 56ch;
}

.cx-note__sig {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: 1.5rem;
  font-family: var(--f-display);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
}

.cx-note__sig::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Della on Week Two, courses
   -------------------------------------------------------------------------- */

.cx-inez {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

.cx-inez__head {
  min-width: 0;
}

.cx-inez__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.375rem);
  font-weight: 400;
}

.cx-inez__sig {
  display: block;
  margin-top: 1rem;
  font-family: var(--f-display);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-inez__text {
  min-width: 0;
  max-width: 68ch;
  font-size: 1.125rem;
  line-height: 1.78;
}

.cx-inez__text p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--f-display);
  font-size: 4.1em;
  line-height: 0.78;
  color: var(--text);
}

@media (min-width: 56rem) {
  .cx-inez {
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 5.5rem);
  }

  .cx-inez__head {
    padding-top: 0.5rem;
    border-top: 3px double var(--line);
  }

  .cx-inez__head .cx-eyebrow {
    margin-top: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Ruled register: specifications, hours, rules
   -------------------------------------------------------------------------- */

.cx-register {
  list-style: none;
  border-top: 3px double var(--line);
}

.cx-register__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.cx-register__key {
  font-family: var(--f-display);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
}

.cx-register__name {
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  min-width: 0;
}

.cx-register__name .cx-help {
  margin-top: 0.25rem;
  font-family: var(--f-body);
  font-weight: 400;
}

.cx-register__body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cx-register__body p {
  margin: 0;
}

.cx-register__body p + p {
  margin-top: 0.35rem;
}

.cx-register__help {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.cx-register__fig {
  font-family: var(--f-display);
  font-size: 1.5rem;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "onum" 1;
}

.cx-register__fig small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: normal;
}

.cx-register--numbered .cx-register__key {
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "onum" 1;
}

.cx-register--hours .cx-register__body {
  font-family: var(--f-display);
  font-size: 1.1875rem;
  font-variant-numeric: lining-nums tabular-nums;
}

@media (min-width: 48rem) {
  .cx-register__row {
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: baseline;
    padding: 1.4rem 0;
  }

  .cx-register--two .cx-register__row {
    grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
  }

  .cx-register--numbered .cx-register__row {
    grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .cx-register__fig {
    text-align: right;
  }
}

.cx-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   Kiln spec plates
   -------------------------------------------------------------------------- */

.cx-plates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.cx-plate {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ground);
  text-align: center;
}

.cx-plate--centre {
  background: var(--ground-deep);
}

.cx-plate__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-plate__name {
  margin: 0;
  padding-left: 0.1em;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cx-plate__drawing {
  width: min(9rem, 60%);
  margin: 1.25rem auto 0;
}

.cx-plate__spec {
  margin: 1.5rem 0 1.75rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.cx-plate__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.cx-plate__row dt {
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 0;
}

.cx-plate__row dd {
  margin: 0;
  text-align: right;
  min-width: 0;
}

.cx-plate__prices {
  margin-top: auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding-top: 1.25rem;
  border-top: 3px double var(--line);
}

.cx-plate__price {
  padding: 0 0.5rem;
  min-width: 0;
}

.cx-plate__price + .cx-plate__price {
  border-left: 1px solid var(--line);
}

.cx-plate__value {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.5rem);
  line-height: 1.1;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings: "onum" 1;
}

.cx-plate__unit {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 56rem) {
  .cx-plates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* A centred line between gilt rules, for the half-shelf price */
.cx-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  text-align: center;
}

.cx-strip::before,
.cx-strip::after {
  content: "";
  flex: 1 1 1.5rem;
  height: 1px;
  background: var(--line);
}

.cx-strip__text {
  flex: 0 1 auto;
  min-width: 0;
  font-family: var(--f-display);
  font-size: 1.125rem;
  line-height: 1.5;
}

.cx-strip__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Term dates, courses
   -------------------------------------------------------------------------- */

.cx-terms {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  border-top: 3px double var(--line);
  border-left: 1px solid var(--line);
}

.cx-term {
  min-width: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cx-term__num {
  display: block;
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-term__date {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--f-display);
  font-size: 1.25rem;
  line-height: 1.25;
}

.cx-term__help {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Refusals and plain lists
   -------------------------------------------------------------------------- */

.cx-refusals {
  list-style: none;
  border-top: 3px double var(--line);
}

.cx-refusal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem;
  padding: 1.25rem 0 1.25rem 2.25rem;
  border-bottom: 1px solid var(--line);
}

.cx-refusal::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.85rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--muted);
  transform: rotate(45deg);
}

.cx-refusal::after {
  content: "";
  position: absolute;
  left: -1px;
  top: calc(1.85rem + 4.5px);
  width: 19px;
  height: 1px;
  background: var(--muted);
}

.cx-refusal__what {
  min-width: 0;
  font-family: var(--f-display);
  font-size: 1.1875rem;
  line-height: 1.4;
}

.cx-refusal__why {
  min-width: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .cx-refusal {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: baseline;
  }
}

.cx-plainlist {
  list-style: none;
  max-width: var(--measure);
}

.cx-plainlist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
}

.cx-plainlist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--line);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Studio floor plan
   -------------------------------------------------------------------------- */

.cx-plan {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--ground-deep);
}

.cx-plan svg {
  width: 100%;
  height: auto;
}

.cx-plan__caption {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.cx-plan-key {
  list-style: none;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.cx-plan-key li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.cx-plan-key__mark {
  font-family: var(--f-display);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

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

.cx-mailframe {
  max-width: 54rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem);
  background: var(--ground-deep);
  text-align: center;
}

.cx-mailframe__eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--f-display);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-mail {
  display: inline-block;
  max-width: 100%;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 0.6rem + 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.cx-mail:hover {
  color: var(--accent-deep);
}

.cx-mail__help {
  max-width: 46ch;
  margin: 1.75rem auto 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.cx-place {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

.cx-place__town {
  margin: 0 0 0.75rem;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

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

.cx-next {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}

.cx-next__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.cx-next__grid > * {
  min-width: 0;
}

.cx-next__title {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 500;
}

.cx-next__list {
  list-style: none;
  border-top: 3px double var(--line);
}

.cx-next__item {
  border-bottom: 1px solid var(--line);
}

.cx-next__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  color: var(--text);
  text-decoration: none;
}

.cx-next__link::after {
  width: 2em;
  height: 0.9em;
  background-color: var(--line);
}

.cx-next__link:hover {
  color: var(--text);
}

.cx-next__link:hover::after {
  background-color: var(--accent);
}

.cx-next__text {
  min-width: 0;
}

.cx-next__label {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.2;
  transition: transform 0.35s var(--ease), color 0.2s var(--ease);
}

.cx-next__help {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  transition: transform 0.35s var(--ease) 0.03s;
}

.cx-next__link:hover .cx-next__label {
  color: var(--accent);
  transform: translateX(0.5rem);
}

.cx-next__link:hover .cx-next__help {
  transform: translateX(0.5rem);
}

.cx-next__minor {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 56rem) {
  .cx-next__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

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

.cx-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 3px double var(--line);
}

.cx-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.cx-footer__grid > * {
  min-width: 0;
}

.cx-footer__wordmark {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.cx-footer__wordmark:hover {
  color: var(--text);
}

.cx-footer__place {
  margin: 1rem 0 0;
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-footer__head {
  margin: 0 0 0.85rem;
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.cx-footer__mail {
  font-family: var(--f-display);
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.cx-footer__hours {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.cx-footer__nav {
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.cx-footer__link {
  display: inline-block;
  padding: 0.2rem 0;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.3s var(--ease);
}

.cx-footer__link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.cx-footer__link[aria-current="page"] {
  color: var(--muted);
}

.cx-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .cx-footer__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: nothing moves, nothing counts
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cx-menu[open] .cx-menu__panel,
  .cx-menu.is-closing .cx-menu__panel {
    animation: none;
  }
}

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

@media print {
  .cx-menu,
  .cx-skip {
    display: none !important;
  }

  .cx-nav {
    display: block !important;
  }

  body {
    background: #fff;
  }
}