/*
 * Direction C, "Calm from chaos": the family layer every site shares.
 * The seal, the tray colours, the family dock, the lift between sites, the
 * arrival cover, the call button, the preview note and the browser surfaces.
 * Each site's own site.css sets its ground, ink and type on top.
 */

:root {
  color-scheme: light dark;

  /* The nine compartment floors and their verb inks, in ring order. */
  --floor-organise: light-dark(#FBE2CD, #3A2214);
  --verb-organise: light-dark(#8A3A06, #FFB27A);
  --floor-simplify: light-dark(#F6EDB2, #33300F);
  --verb-simplify: light-dark(#665200, #F0DA66);
  --floor-juggle: light-dark(#DDEFC8, #1F3216);
  --verb-juggle: light-dark(#355C0F, #A6D879);
  --floor-declutter: light-dark(#CDEBDE, #11302A);
  --verb-declutter: light-dark(#11553E, #7CD6B2);
  --floor-stage: light-dark(#CBE7EC, #0F2E35);
  --verb-stage: light-dark(#0C5360, #7CCEDC);
  --floor-style: light-dark(#D8DDF4, #1C2244);
  --verb-style: light-dark(#2A3884, #AAB6FF);
  --floor-celebrate: light-dark(#E7D9F4, #2C1A3F);
  --verb-celebrate: light-dark(#5A2A88, #CFA8F5);
  --floor-design: light-dark(#F5D3E8, #3A1530);
  --verb-design: light-dark(#88195F, #F59AD3);
  --floor-share: light-dark(#F8D1D4, #3D1519);
  --verb-share: light-dark(#951524, #FF9CA5);

  /* Her orange: the one thread. Only the call, the seal's way home and focus. */
  --thread: light-dark(#ED802B, #F08A3A);
  --hub-ground: light-dark(#E9E7F0, #121019);

  --tray-ink: light-dark(#1D1A2B, #F2F0F8);
  --tray-muted: light-dark(#4A4560, #B8B2CB);
  --tray-wall: light-dark(#CFCADD, #3A3550);
  --tray-body: light-dark(#FAF9FC, #1D1A27);

  /* One spacing scale for the family. */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --s9: 7rem;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.2, .7, .2, 1);
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/_assets/previews/c/hub/fonts/atkinson-normal-2.18b2a1a39a.woff2) format("woff2");
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--s8);
}

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

::selection {
  background: var(--thread);
  color: #1D1A2B;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--s4);
  top: var(--s4);
  z-index: 50;
  padding: var(--s3) var(--s4);
  background: var(--ink);
  color: var(--ground);
  border-radius: 8px;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

/* The seal: her brushed LT in a ring. The ring carries each site's pattern. */
.seal {
  width: 100%;
  height: auto;
}

.seal__paper {
  fill: var(--seal-paper, var(--ground));
}

.seal__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.seal__lt {
  fill: currentColor;
}

.seal__mark {
  fill: var(--seal-mark, var(--thread));
}

.seal__mark--soft {
  opacity: .7;
}

.seal__arc {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.seal__arc--organise { stroke: var(--verb-organise); }
.seal__arc--simplify { stroke: var(--verb-simplify); }
.seal__arc--juggle { stroke: var(--verb-juggle); }
.seal__arc--declutter { stroke: var(--verb-declutter); }
.seal__arc--stage { stroke: var(--verb-stage); }
.seal__arc--style { stroke: var(--verb-style); }
.seal__arc--celebrate { stroke: var(--verb-celebrate); }
.seal__arc--design { stroke: var(--verb-design); }
.seal__arc--share { stroke: var(--verb-share); }

/* Each compartment carries its floor and verb ink. */
.cell--organise { --floor: var(--floor-organise); --verb: var(--verb-organise); }
.cell--simplify { --floor: var(--floor-simplify); --verb: var(--verb-simplify); }
.cell--juggle { --floor: var(--floor-juggle); --verb: var(--verb-juggle); }
.cell--declutter { --floor: var(--floor-declutter); --verb: var(--verb-declutter); }
.cell--stage { --floor: var(--floor-stage); --verb: var(--verb-stage); }
.cell--style { --floor: var(--floor-style); --verb: var(--verb-style); }
.cell--celebrate { --floor: var(--floor-celebrate); --verb: var(--verb-celebrate); }
.cell--design { --floor: var(--floor-design); --verb: var(--verb-design); }
.cell--share { --floor: var(--floor-share); --verb: var(--verb-share); }

/* The call: her orange, the same on every site. */
.call {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 2px solid var(--call-edge, #1D1A2B);
  border-radius: 999px;
  background: var(--thread);
  color: #1D1A2B;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}

.call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -6px rgb(29 26 43 / .45);
}

.call:active {
  transform: translateY(0);
  box-shadow: none;
}

.call__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #1D1A2B;
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  text-decoration: underline;
}

/* The preview note: a small paper tag, never a banner. */
.note {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s1) var(--s3) var(--s1) var(--s2);
  border: 1px dashed currentColor;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}

.note__hole {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex: none;
}

/* Theme switch: a drawn sun and moon with a visible word. */
.theme {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 44px;
  min-width: 44px;
  padding: var(--s2) var(--s3);
  border: 1.5px solid var(--edge, currentColor);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: 600 0.875rem/1 var(--body);
  cursor: pointer;
  transition: background-color 140ms var(--ease-out);
}

.theme:hover {
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.theme svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.theme__sun { display: none; }
.theme__moon { display: block; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme__sun { display: block; }
  html:not([data-theme="light"]) .theme__moon { display: none; }
}

html[data-theme="dark"] .theme__sun { display: block; }
html[data-theme="dark"] .theme__moon { display: none; }

/* The family dock on every spoke: the hub's tray in miniature. */
.family {
  padding-block: var(--s8) var(--s7);
}

.family__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  margin-bottom: var(--s5);
}

.family__title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.1;
}

.family__lede {
  max-width: 46ch;
  color: var(--muted);
}

.dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 6px;
  border-radius: 18px;
  background: var(--tray-wall);
}

@media (min-width: 760px) {
  .dock {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

.dock__cell {
  min-width: 0;
}

.dock__door {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  height: 100%;
  min-height: 9.5rem;
  padding: var(--s3);
  border-radius: 12px;
  background: var(--floor);
  color: var(--tray-ink);
  text-decoration: none;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / .12);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

a.dock__door:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 rgb(0 0 0 / 0), 0 10px 18px -10px rgb(0 0 0 / .45);
}

.dock__verb {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  color: var(--verb);
}

.dock__name {
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--tray-muted);
}

.dock__obj {
  display: grid;
  place-items: center;
  min-height: 3.5rem;
  padding-block: var(--s2);
}

.dock__img {
  width: auto;
  max-width: 82%;
  max-height: 3.75rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgb(0 0 0 / .18));
}

.dock__state {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tray-ink);
}

.dock__cell--later .dock__state {
  font-weight: 600;
  color: var(--tray-muted);
}

.dock__cell--here .dock__door {
  box-shadow: inset 0 0 0 2px var(--verb);
}

.dock__cell--built .dock__state {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* The lift between sites: a compartment's floor grows to the screen and its
   object rides to the middle, then the browser goes. tray.js drives it. */
.lift-layer,
.lift-flyer {
  position: fixed;
  z-index: 2147483000;
  pointer-events: none;
}

.lift-layer {
  inset: 0;
  transform-origin: 0 0;
}

.lift-flyer {
  left: 0;
  top: 0;
  transform-origin: 0 0;
  filter: drop-shadow(0 18px 18px rgb(0 0 0 / .25));
}

/* The arrival cover: a visitor who came from another of Laura's sites sees
   the same floor and object the lift ended on, which then settles away. */
.arrival {
  display: none;
}

html[data-arrived-from-hub] .arrival {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--arrival-floor);
  pointer-events: none;
  animation: arrival-out 620ms var(--ease-soft) 120ms both;
}

.arrival__obj {
  width: min(40vmin, 320px);
  filter: drop-shadow(0 18px 18px rgb(0 0 0 / .25));
}

.arrival__obj img {
  width: 100%;
}

html[data-arrived-from-hub] .arrival__obj {
  animation: arrival-obj 620ms var(--ease-soft) 120ms both;
}

html:not(.lt-ready) .arrival,
html:not(.lt-ready) .arrival__obj {
  animation-play-state: paused;
}

@keyframes arrival-out {
  to { opacity: 0; visibility: hidden; }
}

@keyframes arrival-obj {
  to { transform: translateY(-14vh) scale(.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-arrived-from-hub] .arrival {
    animation: arrival-out 220ms ease-out both;
  }
  html[data-arrived-from-hub] .arrival__obj {
    animation: none;
  }
}

/* Page frame used by every site. */
.wrap {
  width: min(100% - 2 * var(--gutter, 1.25rem), 1240px);
  margin-inline: auto;
}

@media (min-width: 760px) {
  :root { --gutter: 2.5rem; }
}

.foot {
  padding-block: var(--s6) var(--s7);
  font-size: 0.9375rem;
  color: var(--muted);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s6);
  align-items: center;
  justify-content: space-between;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s5);
}

.foot__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}

.lift-probe {
  position: absolute;
  background: var(--hub-ground);
}

/* The spoke header: its seal and name, three anchors, the theme switch. */
.top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand tools"
    "nav nav";
  align-items: center;
  gap: var(--s2) var(--s4);
  padding-block: var(--s3);
}

@media (min-width: 880px) {
  .top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav tools";
  }
}

.top__brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  min-height: 48px;
  text-decoration: none;
  min-width: 0;
}

.top__seal {
  width: 3rem;
  flex: none;
  color: var(--ink);
}

.top__name {
  font-family: var(--display);
  font-size: 1.125rem;
  line-height: 1.1;
}

.top__nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s5);
}

@media (min-width: 880px) {
  .top__nav {
    justify-content: center;
  }
}

.top__nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 48px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 140ms var(--ease-out);
}

.top__nav a:hover {
  border-bottom-color: currentColor;
}

.top__tools {
  grid-area: tools;
  display: flex;
  align-items: center;
  gap: var(--s3);
}

/* Booking steps: a real sequence, so numbered. */
.steps {
  display: grid;
  gap: var(--s5);
  margin: var(--s6) 0;
  counter-reset: none;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s6);
  }
}

.step {
  display: grid;
  gap: var(--s2);
  align-content: start;
}

.step__n {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-weight: 800;
  font-size: 1.125rem;
}

.step__title {
  font-size: 1.25rem;
  line-height: 1.2;
}

.step p {
  color: var(--muted);
  max-width: 36ch;
}

.said {
  margin-top: var(--s4);
  font-size: 0.875rem;
  color: var(--muted);
}
