/* Portfolio pages: the front door, each platform's page, and the 404. */

/* Each platform's colour in the map legend */

.accent-glacier {
  --app-accent: var(--legend-glacier);
}

.accent-alpenglow {
  --app-accent: var(--legend-alpenglow);
}

.accent-ochre {
  --app-accent: var(--legend-ochre);
}

.accent-moss {
  --app-accent: var(--legend-moss);
}

/* Without JavaScript there is no drawing or map, so the text takes the room. */
html:not(.js) canvas,
html:not(.js) .plate__figure {
  display: none;
}

html:not(.js) .plate__body,
html:not(.js) .slot__body {
  grid-template-columns: 1fr;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Capped so a very tall screen keeps the same composition as a laptop. */
  min-block-size: min(100svh, 68rem);
  padding-block-start: calc(var(--header-h) + 2rem);
  overflow: clip;
  background:
    radial-gradient(60% 55% at 72% 34%, rgb(234 132 94 / 0.075), transparent 70%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
}

/* The map starts below the header, so its lines never cross the menu. */
.hero__map {
  position: absolute;
  inset-block-start: var(--header-h);
  inset-inline: 0;
  z-index: -1;
  inline-size: 100%;
  block-size: calc(100% - var(--header-h));
}

html.js .hero__map {
  opacity: 0;
  transition: opacity 2s ease 0.2s;
}

html.js.is-ready .hero__map {
  opacity: 1;
}

/* Quiets the map behind the headline so the words stay perfectly readable. A
   painted veil, not a mask, so the map stays smooth while it moves. */
.hero::after,
.lost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--ink-950) var(--header-h), rgb(9 14 17 / 0) calc(var(--header-h) + 5rem)),
    linear-gradient(to top, rgb(13 20 24 / 0.86) 12%, rgb(13 20 24 / 0.5) 48%, rgb(13 20 24 / 0) 78%);
}

.hero__content {
  padding-inline: var(--gutter);
  padding-block-end: clamp(2rem, 5vh, 3.75rem);
}

.hero__eyebrow {
  margin-block-end: clamp(1rem, 2.4vh, 1.75rem);
}

.hero__title {
  font-size: clamp(3rem, 8.3vw, 9rem);
  line-height: 0.98;
}

.line {
  display: block;
  overflow: clip;
  padding-block-end: 0.16em;
  margin-block-end: -0.16em;
  overflow-clip-margin: 0.04em;
}

.line > span {
  display: block;
}

html.js .line > span {
  transform: translateY(112%);
  transition: transform 1.5s var(--ease);
}

html.js .line:nth-child(2) > span {
  transition-delay: 0.14s;
}

html.js.is-ready .line > span {
  transform: none;
}

.hero__title em {
  color: var(--bone);
}

.hero__lead {
  max-inline-size: 36rem;
  margin-block-start: clamp(1.25rem, 3vh, 2.25rem);
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  color: var(--bone-2);
}

html.js .fade-in {
  opacity: 0;
  transition: opacity 1.4s ease 0.6s;
}

html.js.is-ready .fade-in {
  opacity: 1;
}

/* The legend at the foot of the hero: all four platforms, one click away. */

.legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-inline: var(--gutter);
  border-block-start: 1px solid var(--line);
  background: rgb(9 14 17 / 0.72);
}

.legend__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 0.85rem;
  padding-block: 1.25rem 1.4rem;
  padding-inline: 0 clamp(1.25rem, 2.4vw, 2rem);
  transition: background-color 0.4s ease;
}

.legend__item + .legend__item {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(1.25rem, 2.4vw, 2rem);
}

.legend__item::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline: 0;
  block-size: 1px;
  background: var(--app-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

[dir="rtl"] .legend__item::before {
  transform-origin: right;
}

.legend__item:hover {
  background: rgb(240 235 225 / 0.04);
}

.legend__item:hover::before {
  transform: scaleX(1);
}

.legend__numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--app-accent);
}

.legend__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.2;
}

.legend__category {
  grid-column: 2 / -1;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--bone-3);
}

.legend__item .arrow {
  color: var(--bone-3);
}

.legend__item:hover .arrow {
  color: var(--bone);
  transform: translateX(0.25em);
}

[dir="rtl"] .legend__item:hover .arrow {
  transform: translateX(-0.25em);
}

@media (max-width: 860px) {
  .hero::after,
  .lost::after {
    background:
      linear-gradient(to bottom, var(--ink-950) var(--header-h), rgb(9 14 17 / 0) calc(var(--header-h) + 3.5rem)),
      linear-gradient(to top, rgb(13 20 24 / 0.9) 30%, rgb(13 20 24 / 0.58) 58%, rgb(13 20 24 / 0) 88%);
  }
  .legend {
    grid-template-columns: repeat(2, 1fr);
  }
  .legend__item {
    padding-block: 0.95rem 1.05rem;
    padding-inline: 0 0.75rem;
    column-gap: 0.6rem;
  }
  .legend__item + .legend__item {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .legend__item:nth-child(even) {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 1.1rem;
  }
  .legend__item:nth-child(n + 3) {
    border-block-start: 1px solid var(--line);
  }
  .legend__item .arrow {
    display: none;
  }
}

/* Section headings */

.section {
  padding-inline: var(--gutter);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: end;
  gap: 2rem clamp(2rem, 6vw, 6rem);
}

.section-head__title {
  font-size: clamp(2.6rem, 6.2vw, 6.5rem);
  margin-block-start: 1.25rem;
}

.section-head__title em,
.contact__title em,
.lost__title em {
  display: block;
}

.section-head__note {
  max-inline-size: 26rem;
  font-size: 1.05rem;
  color: var(--bone-2);
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* Platforms: the plates of the atlas */

.platforms {
  padding-block: clamp(5rem, 13vh, 10rem) clamp(4rem, 10vh, 8rem);
  background: var(--ink-900);
}

.plates {
  display: grid;
  gap: 1.25rem;
  margin-block-start: clamp(3rem, 8vh, 6rem);
}

.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  background: color-mix(in oklab, var(--app-accent) 3.5%, var(--ink-800));
  border: 1px solid var(--line);
}

.plate__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding-block: 1rem;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
  border-block-end: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--bone-2);
}

.plate__numeral {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--app-accent);
  min-inline-size: 1.75rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-inline-start: auto;
  color: var(--bone-3);
}

.status::before {
  content: "";
  inline-size: 0.42rem;
  block-size: 0.42rem;
  border-radius: 50%;
  border: 1px solid var(--app-accent);
}

.status--deploying::before,
.status--live::before {
  background: var(--app-accent);
}

.status--deploying::before {
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  50% {
    box-shadow: 0 0 0 0.3rem color-mix(in oklab, var(--app-accent) 22%, transparent);
  }
}

.plate__body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  flex: 1;
}

.plate__text {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3.4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
}

.plate__name {
  font-size: clamp(3.4rem, 8.2vw, 8.5rem);
  margin-inline-start: -0.03em;
}

.plate__line {
  margin-block-start: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.25;
  color: var(--app-accent);
}

.plate__desc {
  max-inline-size: 34rem;
  margin-block-start: clamp(1.25rem, 3vh, 2rem);
  color: var(--bone-2);
  font-size: 1.05rem;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.75rem;
  max-inline-size: 36rem;
  margin-block: clamp(1.25rem, 3vh, 2rem);
  font-size: 0.92rem;
  color: var(--bone-2);
}

.capabilities li {
  padding-block: 0.55rem;
  border-block-start: 1px solid var(--line);
  line-height: 1.35;
}

.plate__cta {
  align-self: flex-start;
  margin-block-start: auto;
}

.plate__figure {
  position: relative;
  display: grid;
  place-items: center;
  min-block-size: 18rem;
  padding: clamp(1rem, 3vw, 3rem);
  border-inline-start: 1px solid var(--line);
  background-image:
    linear-gradient(var(--line), var(--line)),
    linear-gradient(var(--line), var(--line));
  background-size:
    100% 1px,
    1px 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal;
}

.plate__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--app-accent) 7%, transparent), transparent);
  pointer-events: none;
}

.plate__figure .emblem {
  position: relative;
  z-index: 1;
  inline-size: min(100%, 34rem);
  block-size: auto;
  aspect-ratio: 1;
}

.plate:nth-child(2) {
  --stack: 1;
}

.plate:nth-child(3) {
  --stack: 2;
}

.plate:nth-child(4) {
  --stack: 3;
}

/* On normal screens the plates stack over each other as you scroll, leaving each
   title bar visible, like the tabs of an atlas. Very tall screens, including a
   browser zoomed far out, show the plates one after another instead, because
   several would be pinned at once and their title bars would pile up. */
@media (min-width: 981px) and (min-height: 700px) and (max-height: 1100px) {
  .plates {
    /* Shorter laptop screens get thin tabs, so no plate is hidden before it is read. */
    --tab: 0.5rem;
  }
  .plate {
    position: sticky;
    inset-block-start: calc(var(--header-h) + 0.75rem + var(--stack, 0) * var(--tab));
    min-block-size: calc(100svh - var(--header-h) - 1.5rem - var(--stack, 0) * var(--tab));
    max-block-size: 58rem;
  }
  .plate__figure .emblem {
    inline-size: auto;
    max-inline-size: 100%;
    block-size: min(100%, 34rem);
    max-block-size: calc(100svh - var(--header-h) - 9rem - var(--stack, 0) * var(--tab));
  }
}

@media (min-width: 981px) and (min-height: 860px) and (max-height: 1100px) {
  .plates {
    --tab: 3.15rem;
  }
}

/* Set by portfolio.js when a plate would not fit on this screen in this language. */
.plates.is-flowing .plate {
  position: relative;
  inset-block-start: auto;
  min-block-size: 0;
  max-block-size: none;
}

.plates.is-flowing .plate__figure .emblem {
  inline-size: min(100%, 30rem);
  block-size: auto;
  max-block-size: none;
}

@media (max-width: 980px) {
  .plate__body {
    grid-template-columns: 1fr;
  }
  .plate__figure {
    order: -1;
    border-inline-start: 0;
    border-block-end: 1px solid var(--line);
    min-block-size: 0;
  }
  .plate__figure .emblem {
    inline-size: min(78%, 26rem);
  }
  .plate__cta {
    margin-block-start: 0.5rem;
  }
}

@media (max-width: 520px) {
  .plate__meta .status {
    flex-basis: 100%;
    margin-inline-start: 3rem;
  }
  .capabilities {
    grid-template-columns: 1fr;
  }
  .plate__cta {
    align-self: stretch;
    justify-content: space-between;
  }
}

/* Emblems */

.emblem {
  color: var(--bone);
  overflow: visible;
  cursor: crosshair;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.e-hit {
  fill: transparent;
}

.e-route {
  fill: none;
  stroke: var(--app-accent);
  stroke-width: 2;
  stroke-dasharray: 1 1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.e-route.is-on {
  opacity: 1;
}

.e-node {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.e-node.is-lit {
  fill: var(--app-accent);
  stroke: var(--app-accent);
  stroke-opacity: 1;
}

.emblem.is-touched .e-bed {
  transition-duration: 0.15s;
}

.emblem.is-touched .e-rung {
  transition-duration: 0.1s;
}

.emblem * {
  vector-effect: non-scaling-stroke;
  animation-play-state: paused;
}

.emblem.is-live * {
  animation-play-state: running;
}

.e-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-opacity: 0.42;
}

.e-fill {
  fill: var(--app-accent);
}

.e-node {
  fill: var(--ink-800);
  stroke: currentColor;
  stroke-width: 1;
  stroke-opacity: 0.6;
}

.e-node--hollow {
  stroke-opacity: 0.8;
}

.e-depth-0 {
  stroke-opacity: 0.85;
}

.e-depth-1 {
  stroke-opacity: 0.6;
}

.e-flow {
  fill: none;
  stroke: var(--app-accent);
  stroke-width: 1.6;
  stroke-dasharray: 0.16 1;
  stroke-dashoffset: 0.16;
  animation: flow 6.9s var(--ease) infinite;
}

@keyframes flow {
  0% {
    stroke-dashoffset: 0.16;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  52% {
    opacity: 1;
  }
  62%,
  100% {
    stroke-dashoffset: -1;
    opacity: 0;
  }
}

.e-pulse {
  animation: leaf-pulse 3.4s ease-in-out infinite;
}

@keyframes leaf-pulse {
  50% {
    opacity: 0.45;
  }
}

.e-wall {
  stroke-opacity: 0.9;
  fill: none;
}

.e-bed {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1;
  stroke-opacity: 0.35;
  transition:
    fill 0.6s ease,
    stroke 0.6s ease,
    stroke-opacity 0.6s ease;
}

.e-bed.is-on {
  fill: var(--app-accent);
  stroke: var(--app-accent);
  stroke-opacity: 1;
}

.e-rung {
  fill: currentColor;
  fill-opacity: 0.1;
  transition:
    fill 0.5s ease,
    fill-opacity 0.5s ease;
}

.e-rung.is-on {
  fill-opacity: 0.72;
}

.e-rung.is-low {
  fill: var(--app-accent);
  fill-opacity: 1;
}

.e-threshold {
  stroke: var(--app-accent);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.e-base {
  stroke: currentColor;
  stroke-opacity: 0.5;
  stroke-width: 1;
}

.e-weave {
  stroke-opacity: 0.34;
}

.e-track {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.2;
  stroke-width: 1;
}

.e-progress {
  fill: none;
  stroke: var(--app-accent);
  stroke-width: 2;
}

.e-hollow {
  fill: var(--ink-800);
  stroke: currentColor;
  stroke-opacity: 0.55;
  stroke-width: 1;
}

/* Approach: the light page of the atlas */

.approach {
  color-scheme: light;
  padding-block: clamp(5rem, 13vh, 10rem);
  background: var(--paper);
  color: var(--paper-ink);
}

.approach .eyebrow {
  color: var(--paper-2);
}

.approach .section-head__note {
  color: var(--paper-2);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 3vw, 3rem);
  margin-block-start: clamp(3rem, 8vh, 6rem);
}

.principle {
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--paper-ink);
}

.principle__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.principle__body {
  margin-block-start: 0.85rem;
  max-inline-size: 26rem;
  color: var(--paper-2);
}

.route {
  margin-block-start: clamp(4rem, 11vh, 8rem);
}

.route__title {
  font-size: clamp(1.9rem, 3.6vw, 3.5rem);
  line-height: 1.05;
}

.route__stops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-start: clamp(2rem, 5vh, 3.5rem);
}

.route__stop {
  position: relative;
  padding-block-start: 1.75rem;
  padding-inline-end: clamp(1.5rem, 3vw, 3rem);
}

/* The road: drawn solid up to today, then left open. */
.route__stop::after {
  content: "";
  position: absolute;
  inset-block-start: 0.3rem;
  inset-inline: 0;
  border-block-start: 1px solid var(--paper-ink);
}

.route__stop--open::after {
  border-block-start-style: dashed;
}

.route__stop::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 0.65rem;
  block-size: 0.65rem;
  border-radius: 50%;
  border: 1px solid var(--paper-ink);
  background: var(--paper);
}

.route__stop--now::before {
  background: var(--alpenglow-deep);
  border-color: var(--alpenglow-deep);
}

.route__when {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-2);
}

.route__stop--now .route__when {
  color: var(--alpenglow-deep);
}

.route__sector {
  margin-block-start: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.2;
}

.route__detail {
  margin-block-start: 0.35rem;
  font-size: 0.95rem;
  color: var(--paper-2);
}

@media (max-width: 760px) {
  .principles {
    grid-template-columns: 1fr;
    row-gap: 2.25rem;
  }
  .route__stops {
    grid-template-columns: 1fr;
  }
  .route__stop {
    padding-block: 0 1.75rem;
    padding-inline: 1.75rem 0;
  }
  .route__stop::after {
    inset-block: 0;
    inset-inline: 0.3rem auto;
    border-block-start: 0;
    border-inline-start: 1px solid var(--paper-ink);
  }
  .route__stop--open::after {
    border-inline-start-style: dashed;
  }
  .route__stop::before {
    inset-block-start: 0.2rem;
  }
}

/* Contact */

.contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(6rem, 18vh, 13rem);
  padding-inline: var(--gutter);
  background: var(--ink-950);
}

.contact__map {
  position: absolute;
  inset: 0;
  z-index: -1;
  inline-size: 100%;
  block-size: 100%;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to left, rgb(9 14 17 / 0) 8%, rgb(9 14 17 / 0.84) 62%);
}

[dir="rtl"] .contact__map {
  scale: -1 1;
}

[dir="rtl"] .contact::after {
  scale: -1 1;
}

.contact__title {
  font-size: clamp(2.6rem, 6.6vw, 7rem);
  max-inline-size: 15ch;
}

.contact__body {
  max-inline-size: 30rem;
  margin-block: 1.5rem 2.25rem;
  font-size: 1.1rem;
  color: var(--bone-2);
}

@media (max-width: 520px) {
  .contact .btn {
    inline-size: 100%;
    justify-content: space-between;
  }
}

/* A platform's own page */

.slot {
  position: relative;
  padding-block-start: var(--header-h);
  background: color-mix(in oklab, var(--app-accent) 2.5%, var(--ink-900));
}

.slot__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding-block: 1rem;
  padding-inline: var(--gutter);
  border-block-end: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--bone-2);
}

.slot__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-block-size: 2rem;
  transition: color 0.3s ease;
}

.slot__back:hover {
  color: var(--bone);
}

.slot__back .arrow {
  scale: -1 1;
}

[dir="rtl"] .slot__back .arrow {
  scale: 1 1;
}

.slot__back:hover .arrow {
  transform: translateX(-0.3em);
}

[dir="rtl"] .slot__back:hover .arrow {
  transform: translateX(0.3em);
}

.slot__body {
  max-inline-size: calc(var(--shell) + 2 * var(--gutter-base));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-block-size: min(calc(100svh - var(--header-h) - 3.5rem), 56rem);
}

.slot__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter-base) clamp(2rem, 5vh, 3.5rem);
}

.slot__name {
  font-size: clamp(4rem, 12vw, 12.5rem);
  margin-block-start: 1rem;
  margin-inline-start: -0.03em;
}

.slot .plate__figure {
  min-block-size: 22rem;
}

.slot__notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  padding: clamp(2rem, 5vh, 3.5rem) var(--gutter);
  border-block-start: 1px solid var(--line);
}

.slot__notice-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}

.slot__notice-body {
  margin-block-start: 0.6rem;
  max-inline-size: 34rem;
  color: var(--bone-2);
}

.slot__next {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vh, 2.75rem) var(--gutter);
  border-block-start: 1px solid var(--line);
  transition: background-color 0.4s ease;
}

.slot__next:hover {
  background: rgb(240 235 225 / 0.035);
}

.slot__next-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.slot__next .arrow {
  align-self: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
}

@media (max-width: 980px) {
  .slot__body {
    grid-template-columns: 1fr;
    min-block-size: 0;
  }
  .slot__text {
    padding-block-start: 2.5rem;
  }
  .slot .plate__figure {
    order: -1;
    min-block-size: 0;
    border-block-end: 1px solid var(--line);
    border-inline-start: 0;
  }
}

/* By-line under a product name */

.slot__by {
  margin-block-start: 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: var(--bone-2);
}

/* The address under the contact button, for visitors with no mail app set up */

.contact__direct {
  margin-block-start: 1rem;
  font-size: 0.95rem;
  color: var(--bone-2);
}

.contact__direct a {
  display: inline-block;
  padding-block: 0.25rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
}

.contact__direct a:hover {
  color: var(--alpenglow);
}

/* Privacy notice */

.legal {
  max-inline-size: 46rem;
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(3rem, 8vh, 6rem)) var(--gutter-base) clamp(4rem, 10vh, 7rem);
  color: var(--bone-2);
  font-size: 1.05rem;
}

.legal__title {
  margin-block: 1rem 1.5rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: var(--bone);
}

.legal__intro {
  font-size: 1.2rem;
  line-height: 1.5;
}

.legal h2 {
  margin-block: 2.5rem 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--bone);
}

.legal a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.25em;
}

/* 404 */

.lost {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-block-size: min(100svh, 68rem);
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(3rem, 10vh, 7rem);
  overflow: clip;
}

.lost__title {
  font-size: clamp(3.4rem, 10vw, 10rem);
}

.lost__body {
  max-inline-size: 30rem;
  margin-block: 1.25rem 2rem;
  font-size: 1.1rem;
  color: var(--bone-2);
}

.lost .btn {
  align-self: flex-start;
}
