:root
{
  --zone: #0b1220;
  --round: #dfe5f0;
  --paper: #fff;
  --grid: #ffb300;
  --body: #111;
  --brand: #d99700;
  --lead: #070b16;
  --head: #fff;
  --depth: color-mix(in srgb, var(--round) 6%, var(--zone));
  --card: color-mix(in srgb, var(--round) 3%, var(--zone));
  --dim: color-mix(in srgb, var(--round) 18%, var(--zone));
  --shell: var(--round);
  --main: 1160px;
  --cool: 78ch;
  --field: 14px;
  --plain: 8px;
  --tile: 0 2px 4px rgb(0 0 0 / 10%), 0 16px 40px rgb(0 0 0 / 16%);
  --edge: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --stroke: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --ink: clamp(1.4rem, 1.24rem + 0.75vw, 1.95rem);
  --alt: clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem);
}

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

body
{
  margin: 0;
  background: var(--zone);
  color: var(--round);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--edge);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

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

a
{
  color: inherit;
}

.sheet
{
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--lead);
  color: var(--head);
}

.surface__top, .room__last, .sheet__shut, .folder__less, .binder__bold
{
  width: min(100% - 2rem, var(--main));
  margin-inline: auto;
}

.sheet__shut
{
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 60px;
  padding-block: 0.5rem;
}

.trail
{
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.trail img
{
  height: 32px;
  width: auto;
  object-fit: contain;
}

.rail
{
  display: flex;
  gap: 0.15rem;
  margin-inline-end: auto;
  min-width: 0;
}

.rail a
{
  padding: 0.4rem 0.7rem;
  border-radius: var(--plain);
  text-decoration: none;
  color: inherit;
  opacity: 0.82;
  white-space: nowrap;
  font-size: 0.92rem;
}

.rail a:hover
{
  background: color-mix(in srgb, var(--head) 14%, transparent);
  opacity: 1;
}

.rail:empty
{
  display: none;
}

.rail:empty + .sheet__thumb
{
  margin-inline-start: auto;
}

.sheet__thumb
{
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.zone
{
  display: none;
  position: relative;
  flex-shrink: 0;
}

.zone__image
{
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--head) 40%, transparent);
  border-radius: var(--plain);
}

.zone__image::-webkit-details-marker
{
  display: none;
}

.zone__image span, .zone__image span::after, .zone__image span::before
{
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.zone__image span
{
  position: relative;
}

.zone__image span::before
{
  position: absolute;
  top: -6px;
}

.zone__image span::after
{
  position: absolute;
  top: 6px;
}

.zone__info
{
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  z-index: 25;
  min-width: 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  background: var(--lead);
  border: 1px solid color-mix(in srgb, var(--head) 20%, transparent);
  border-radius: var(--field);
  box-shadow: var(--tile);
}

.zone__info a
{
  padding: 0.6rem 0.7rem;
  border-radius: var(--plain);
  text-decoration: none;
  color: var(--head);
}

.zone__info a:hover
{
  background: color-mix(in srgb, var(--head) 12%, transparent);
}

.zone__info .cell
{
  margin-top: 0.4rem;
  color: var(--head);
  border-color: color-mix(in srgb, var(--head) 40%, transparent);
}

.sheet .cell--large
{
  color: inherit;
  border-color: color-mix(in srgb, var(--head) 45%, transparent);
}

.sheet .cell--large:hover
{
  background: color-mix(in srgb, var(--head) 14%, transparent);
}

.room
{
  background: color-mix(in srgb, var(--head) 8%, var(--lead));
  border-top: 1px solid color-mix(in srgb, var(--head) 12%, transparent);
  font-size: 0.9rem;
}

.room__last
{
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.room__last::-webkit-scrollbar
{
  display: none;
}

.room a
{
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  color: var(--head);
  opacity: 0.8;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.room a:hover
{
  opacity: 1;
  border-bottom-color: var(--grid);
}

.cell
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--frame, transparent);
  border-radius: var(--plain);
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  background: var(--grid);
  color: var(--body);
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.cell:hover
{
  background: var(--brand);
}

.cell:active
{
  transform: translateY(1px);
}

.cell--large
{
  background: transparent;
  color: var(--paper);
  border-color: var(--dim);
}

.cell--large:hover
{
  background: var(--depth);
}

.cell--lead
{
  padding: 0.9rem 1.8rem;
  font-size: var(--stroke);
}

:focus-visible
{
  outline: 2px solid var(--grid);
  outline-offset: 2px;
}

.weave h2, .binder__wide, .weave h3, .beam, .layer h2, .layer h3
{
  color: var(--paper);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.beam
{
  font-size: var(--alt);
  margin: 0 0 1rem;
}

.binder__wide
{
  font-size: var(--ink);
  margin: 0 0 1.25rem;
}

.weave h3, .layer h3
{
  font-size: var(--stroke);
  margin: 1.75rem 0 0.5rem;
}

.layer p, .weave p
{
  margin: 0 0 1rem;
}

.weave > :last-child, .layer > :last-child
{
  margin-bottom: 0;
}

.layer a, .weave a
{
  color: color-mix(in srgb, var(--grid) 72%, var(--paper));
  text-underline-offset: 3px;
}

.canvas
{
  display: block;
}

.binder
{
  padding-block: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  scroll-margin-top: 72px;
}

.canvas > .binder:not(.folder):nth-of-type(odd)
{
  background: var(--depth);
}

.weave
{
  max-width: var(--cool);
}

.binder--list .weave ul
{
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}

.binder--list .weave ul > li
{
  position: relative;
  padding-inline-start: 1.9rem;
  padding-block: 0.15rem;
}

.binder--list .weave ul > li::before
{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.4rem;
  border-inline-start: 2px solid var(--grid);
  border-bottom: 2px solid var(--grid);
  transform: rotate(-45deg);
}

.binder--list .weave ol
{
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.binder--list .weave ol > li
{
  counter-increment: step;
  position: relative;
  padding-inline-start: 2.6rem;
}

.binder--list .weave ol > li::before
{
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--grid);
  color: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.note
{
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--dim);
  border-inline-start: 3px solid var(--shell);
  border-radius: 0 var(--plain) var(--plain) 0;
  background: var(--depth);
  font-size: 0.95rem;
}

.note p
{
  margin: 0 0 0.6rem;
}

.note > :last-child
{
  margin-bottom: 0;
}

.note strong
{
  color: var(--paper);
}

.note--disclosure
{
  color: var(--shell);
  font-size: 0.88rem;
  background: transparent;
  border-inline-start-color: var(--dim);
}

.note--warning
{
  border-inline-start-color: var(--grid);
  background: color-mix(in srgb, var(--grid) 10%, var(--zone));
}

.note--takeaway
{
  font-variant-numeric: tabular-nums;
  border-inline-start-color: var(--paper);
}

.note--rg
{
  border: 1px solid color-mix(in srgb, var(--paper) 30%, var(--dim));
  border-radius: var(--field);
  background: var(--card);
}

.note--rg a
{
  font-weight: 600;
}

.note--independent
{
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--shell);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--dim);
  border-radius: 0;
  padding: 1rem 0 0;
}

.layer blockquote, .weave blockquote
{
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--grid);
  border-radius: 0 var(--plain) var(--plain) 0;
  background: var(--zone);
  color: var(--round);
  font-size: 0.95rem;
}

.weave blockquote p, .layer blockquote p
{
  margin: 0 0 0.6rem;
}

.layer blockquote > :last-child, .weave blockquote > :last-child
{
  margin-bottom: 0;
}

.weave blockquote strong, .layer blockquote strong
{
  color: var(--paper);
}

.weave hr
{
  border: 0;
  border-top: 1px solid var(--dim);
  margin: 2rem 0;
}

.weave table
{
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--dim);
  border-radius: var(--field);
  overflow: hidden;
}

.binder--table .weave
{
  max-width: none;
  overflow-x: auto;
}

.weave td, .weave th
{
  border-bottom: 1px solid var(--dim);
  padding: 0.7rem 0.9rem;
  text-align: start;
  vertical-align: top;
}

.weave caption
{
  caption-side: top;
  text-align: start;
  padding: 0 0 0.6rem;
  font-weight: 700;
  color: var(--paper);
}

.weave thead th
{
  background: color-mix(in srgb, var(--grid) 16%, var(--depth));
  color: var(--round);
  font-weight: 700;
  white-space: nowrap;
}

.weave tbody tr:last-child td
{
  border-bottom: 0;
}

.weave tbody tr:nth-child(even)
{
  background: color-mix(in srgb, var(--round) 3%, transparent);
}

.field2
{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 2rem;
  align-items: start;
}

.field2__last
{
  border: 1px solid var(--dim);
  border-radius: var(--field);
  box-shadow: var(--tile);
  width: 100%;
}

.folder
{
  position: relative;
  padding-block: clamp(2rem, 1.2rem + 3vw, 4rem);
  background: var(--lead);
  isolation: isolate;
}

.folder::before
{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--bold, none);
  background-size: cover;
  background-position: center;
}

.block2__bold
{
  margin-top: 1.25rem;
  text-align: center;
}

.block2__bold a
{
  color: var(--grid);
  font-weight: 600;
}

.crest
{
  text-align: center;
}

.crest__lead
{
  font-size: clamp(3.5rem, 12vw, 6rem);
  line-height: 1;
  font-weight: 800;
  color: var(--grid);
  margin-bottom: 0.5rem;
}

.crest__on
{
  max-width: 46ch;
  margin-inline: auto;
  color: var(--shell);
}

.crest__soft
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (max-width: 700px) {
  .folder::before
  {
    background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--space, var(--bold, none));
  }

}
.folder__less
{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
  grid-template-areas: "title offer" "text offer";
  align-content: start;
  gap: 0 2rem;
}

.folder .beam
{
  grid-area: title;
  color: #fff;
}

.folder__cell
{
  grid-area: text;
  color: #f2f4f8;
  max-width: 62ch;
}

.folder .layer
{
  margin-bottom: 1.5rem;
}

.folder__info
{
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.district
{
  grid-area: offer;
  background: var(--zone);
  border: 1px solid color-mix(in srgb, var(--grid) 40%, var(--dim));
  border-radius: var(--field);
  box-shadow: var(--tile);
  overflow: hidden;
  align-self: start;
}

.district .cell
{
  width: 100%;
}

.district__thumb
{
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 0.9rem 1.25rem;
  background: color-mix(in srgb, var(--grid) 12%, var(--zone));
  color: var(--paper);
  border-bottom: 3px solid var(--grid);
}

.district__thumb img
{
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.district__alt
{
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  text-align: center;
}

.district__icon
{
  font-weight: 800;
  font-size: var(--stroke);
  color: inherit;
  text-align: center;
}

.district__flat
{
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--shell);
  margin: 0;
}

.district__top
{
  font-size: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  color: var(--paper);
  margin: 0;
  text-wrap: balance;
}

.district__cell
{
  font-size: 0.8rem;
  color: var(--shell);
  margin: 0;
}

.wall
{
  padding-block: 1.5rem;
}

.tile
{
  border: 1px solid var(--dim);
  border-radius: var(--field);
  background: var(--card);
  padding: 0.5rem 1.1rem;
}

.tile__figure
{
  cursor: pointer;
  font-weight: 700;
  color: var(--paper);
  padding-block: 0.6rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tile__figure::-webkit-details-marker
{
  display: none;
}

.tile__figure::before
{
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-inline-end: 2px solid var(--grid);
  border-bottom: 2px solid var(--grid);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.tile[open] .tile__figure::before
{
  transform: rotate(-135deg);
}

.tile__small
{
  columns: 2;
  gap: 2rem;
  margin: 0 0 0.75rem;
  padding-inline-start: 1.2rem;
  font-size: 0.95rem;
}

.tile__small li
{
  break-inside: avoid;
  margin-bottom: 0.3rem;
}

.tile__small a
{
  color: var(--shell);
  text-underline-offset: 3px;
}

.tile__small a:hover
{
  color: var(--paper);
}

.entry
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mesh
{
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--dim);
  border-radius: var(--field);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.mesh:hover
{
  border-color: var(--grid);
  transform: translateY(-2px);
}

.mesh__image
{
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--depth);
}

.mesh__image img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mesh__wide
{
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.85rem;
  margin-top: auto;
}

.mesh__shut
{
  font-weight: 600;
  color: var(--paper);
  line-height: 1.3;
  margin: 0;
}

.mesh .cell
{
  width: 100%;
  padding-block: 0.5rem;
  font-size: 0.95rem;
}

.node__dark
{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.matrix
{
  background: var(--zone);
  border: 1px solid var(--dim);
  border-radius: var(--field);
  padding: 1.1rem 1.2rem;
}

.matrix__large
{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.matrix__side
{
  font-weight: 700;
  color: var(--paper);
}

.matrix__small
{
  color: var(--grid);
  font-weight: 700;
  white-space: nowrap;
}

.matrix__dark
{
  margin: 0;
  color: var(--shell);
}

.badge__side
{
  display: grid;
  gap: 0.5rem;
  max-width: var(--cool);
}

.badge__image
{
  border: 1px solid var(--dim);
  border-radius: var(--plain);
  background: var(--card);
  padding: 0 1.1rem;
}

.badge__wide
{
  cursor: pointer;
  font-weight: 600;
  color: var(--paper);
  padding-block: 0.9rem;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.badge__wide::-webkit-details-marker
{
  display: none;
}

.badge__wide::before
{
  content: "+";
  color: var(--grid);
  font-weight: 700;
  line-height: 1.4;
  flex-shrink: 0;
}

.badge__image[open] .badge__wide::before
{
  content: "−";
}

.badge__soft
{
  color: var(--shell);
  padding-bottom: 1rem;
}

.badge__soft > :first-child
{
  margin-top: 0;
}

.badge__soft > :last-child
{
  margin-bottom: 0;
}

.part
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem;
  border-radius: var(--field);
  background: color-mix(in srgb, var(--grid) 12%, var(--depth));
  border: 1px solid color-mix(in srgb, var(--grid) 35%, var(--dim));
}

.part__bottom
{
  margin: 0;
  font-size: var(--stroke);
  font-weight: 800;
  color: var(--paper);
  text-wrap: balance;
}

.part__side
{
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--shell);
}

.surface
{
  border-top: 1px solid var(--dim);
  background: var(--zone);
  color: var(--round);
  padding-block: 2rem 6rem;
}

.surface__top
{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--dim);
}

.surface__alt
{
  margin-inline-end: auto;
  font-weight: 700;
  color: var(--paper);
}

.surface__alt img
{
  height: 32px;
  width: auto;
  object-fit: contain;
}

.surface__side
{
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.surface__side:empty
{
  display: none;
}

.surface__side a
{
  text-decoration: none;
}

.surface__side a:hover
{
  text-decoration: underline;
}

.surface__outer
{
  width: min(100% - 2rem, var(--main));
  margin-inline: auto;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.surface__outer p
{
  margin: 0;
}

.surface__view
{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ceiling
{
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.78rem;
}

.tray
{
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--lead);
  color: var(--head);
  border-top: 1px solid color-mix(in srgb, var(--grid) 45%, transparent);
}

.tray__link
{
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.tray__foot
{
  font-weight: 800;
  color: var(--head);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tray__dark
{
  font-size: 0.75rem;
  opacity: 0.7;
}

.tray .cell
{
  margin-inline-start: auto;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .folder__less
  {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "offer" "text";
    gap: 1.25rem;
  }

  .field2
  {
    grid-template-columns: 1fr;
  }

  .field2__last
  {
    max-width: 260px;
    margin-inline: auto;
  }

}
@media (max-width: 700px) {
  .tile__small
  {
    columns: 1;
  }

  .entry
  {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.75rem;
  }

}
@media (max-width: 640px) {
  .sheet
  {
    position: static;
  }

  .sheet__shut
  {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding-block: 0.6rem;
  }

  .sheet__shut
  {
    flex-wrap: nowrap;
  }

  .sheet__thumb .cell--large, .rail, .room
  {
    display: none;
  }

  .rail + .sheet__thumb
  {
    margin-inline-start: auto;
  }

  .zone
  {
    display: block;
    order: 3;
  }

  .sheet__thumb
  {
    margin-inline-start: auto;
  }

  .sheet__thumb .cell
  {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .binder
  {
    padding-block: 1.75rem;
  }

  .part, .district__alt
  {
    padding: 1.15rem;
  }

  .folder__cell .cell--lead, .part .cell--lead
  {
    width: 100%;
  }

  .tray__dark
  {
    display: none;
  }

}
@media (prefers-reduced-motion: reduce) {
  *::before, *
  {
    transition: none !important;
  }

}
