/* nhaajt studio: the atelier layer on top of the blueprint sheet */

:root {
  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --chalk: #f4ead2;
  --chalk-ink: #1d2c3d;
  --tape: #f2c14e;
  --tape-ink: #2a2112;
  --sw: var(--line);
}
:root[data-theme="light"] {
  --chalk: #fffaf0;
  --chalk-ink: #12263a;
  --tape: #e7b43c;
}

/* swatches, one per bot */
[data-sw="musi"] { --sw: #e8b04b; }
[data-sw="build"] { --sw: #ff8a78; }
[data-sw="companions"] { --sw: #f5a7c0; }
[data-sw="aim"] { --sw: #ff5d6c; }
[data-sw="booking"] { --sw: #8fd6b4; }
[data-sw="brain"] { --sw: #b9a8ff; }
[data-sw="feed"] { --sw: #7fd0e8; }
:root[data-theme="light"] [data-sw="musi"] { --sw: #a86c00; }
:root[data-theme="light"] [data-sw="build"] { --sw: #c0392b; }
:root[data-theme="light"] [data-sw="companions"] { --sw: #b0466e; }
:root[data-theme="light"] [data-sw="aim"] { --sw: #c3172b; }
:root[data-theme="light"] [data-sw="booking"] { --sw: #1d7a52; }
:root[data-theme="light"] [data-sw="brain"] { --sw: #5a43c9; }
:root[data-theme="light"] [data-sw="feed"] { --sw: #0f6f8f; }

.serif {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
}
.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0;
}

/* ---------- hero of the atelier ---------- */

.atelier-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(52px, 8.4vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
}
.atelier-title em {
  display: block;
  font-style: normal;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.5em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--line);
  margin-top: 0.18em;
}
.form-fig svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 72vh;
}
.form-fig .tape-ln {
  stroke: var(--tape);
  stroke-width: 7;
  fill: none;
}
.form-fig .tape-tick {
  stroke: var(--tape-ink);
  stroke-width: 5;
  stroke-dasharray: 1 7;
  fill: none;
}
.form-fig .t-tape {
  font: 600 11px var(--mono);
  fill: var(--tape-ink);
}
.form-fig .sw-dot {
  stroke: var(--line);
  stroke-width: 1;
}

/* ---------- measuring tape ---------- */

.tape {
  position: relative;
  height: 38px;
  overflow: hidden;
  background-color: var(--tape);
  color: var(--tape-ink);
  border-block: 1px solid color-mix(in srgb, var(--tape-ink) 40%, transparent);
  background-image:
    repeating-linear-gradient(90deg, var(--tape-ink) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, var(--tape-ink) 0 1px, transparent 1px 50px),
    repeating-linear-gradient(90deg, var(--tape-ink) 0 1.5px, transparent 1.5px 100px);
  background-size: 100% 7px, 100% 12px, 100% 18px;
  background-position: 0 0, 0 0, 0 0;
  background-repeat: repeat-x;
  transform: rotate(-1.2deg);
  margin: 0 -4vw;
  box-shadow: 0 6px 18px rgba(2, 20, 36, 0.28);
}
.tape__nums {
  position: absolute;
  left: 0;
  bottom: 3px;
  display: flex;
  white-space: nowrap;
  font: 600 12px/1 var(--mono);
  translate: calc(var(--tape-x, 0) * -1px) 0;
  will-change: translate;
}
.tape__nums span {
  width: 100px;
  flex: none;
  padding-left: 4px;
}
.tape__nums b {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.14em;
  padding: 0 24px;
  font-weight: 700;
}
.tape--flip {
  transform: rotate(0.8deg);
}
.tape-wrap {
  position: relative;
  padding-block: 18px;
  overflow: hidden;
}

/* ---------- pattern pieces (one per bot) ---------- */

.pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px 26px;
  margin-top: 10px;
}
.piece {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 46px 36px 40px;
  color: inherit;
  text-decoration: none;
  isolation: isolate;
}
.piece--b {
  padding-top: 92px;
}
.piece--c {
  padding-bottom: 70px;
}
.piece__cut {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
}
.piece__cut path {
  vector-effect: non-scaling-stroke;
}
.piece__cut .cut {
  fill: color-mix(in srgb, var(--sw) 6%, transparent);
  stroke: var(--line);
  stroke-width: 1.4;
  transition: fill 0.35s ease;
}
.piece__cut .seam {
  fill: none;
  stroke: var(--line-dim);
  stroke-width: 1;
  stroke-dasharray: 7 5;
}
.piece__cut .notch {
  fill: var(--line);
}
a.piece:hover .piece__cut .cut,
a.piece:focus-visible .piece__cut .cut {
  fill: color-mix(in srgb, var(--sw) 20%, transparent);
}
a.piece:hover .piece__cut .seam {
  stroke: var(--sw);
}
.piece__no {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.piece__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(32px, 3.4vw, 42px);
  line-height: 1;
  margin: 18px 0 4px;
  overflow-wrap: anywhere;
}
.piece__name em {
  display: block;
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  font-size: 0.42em;
  letter-spacing: 0.32em;
  color: var(--ink-dim);
  margin-top: 6px;
}
.piece__fabric {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw);
  margin: 0 0 14px;
}
.piece p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 14px;
}
.piece__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: 12.5px;
}
.piece__more {
  border-bottom: 1px solid var(--line-dim);
}
a.piece:hover .piece__more {
  border-bottom-style: dashed;
  border-bottom-color: var(--sw);
}
.grain {
  position: absolute;
  top: 26%;
  bottom: 22%;
  right: 20px;
  width: 0;
  border-left: 1px solid var(--line-dim);
  pointer-events: none;
}
.grain::before,
.grain::after {
  content: "";
  position: absolute;
  left: -5px;
  width: 9px;
  height: 9px;
  border-left: 1px solid var(--line-dim);
  border-top: 1px solid var(--line-dim);
}
.grain::before {
  top: 0;
  transform: rotate(45deg);
  left: -5px;
}
.grain::after {
  bottom: 0;
  transform: rotate(225deg);
}
.grain span {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: left center;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  white-space: nowrap;
}
.pinhead {
  position: absolute;
  top: 14px;
  right: 34px;
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, var(--ink-dim), var(--line));
  transform: rotate(-24deg);
  transform-origin: right center;
  pointer-events: none;
}
.pinhead::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

/* little swatch chip, a square of woven fabric */
.chip {
  display: inline-block;
  width: 26px;
  height: 18px;
  flex: none;
  border: 1px solid var(--line-dim);
  background-color: var(--sw);
  background-image:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 4px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%, 0 86%, 6% 72%, 0 58%, 6% 44%, 0 30%, 6% 16%);
}

/* ---------- woven garment label ---------- */

.tag {
  position: relative;
  display: inline-block;
  padding: 14px 18px 12px;
  background: var(--chalk);
  color: var(--chalk-ink);
  font: 500 11.5px/1.55 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: rotate(-1.4deg);
  box-shadow: 3px 4px 0 rgba(2, 20, 36, 0.35);
  max-width: 100%;
}
.tag::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed color-mix(in srgb, var(--chalk-ink) 45%, transparent);
  pointer-events: none;
}
.tag b {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 4px;
}
.tag .care {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.tag .care svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

/* status ticket: hangs from the piece */
.ticket {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 8px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line-dim);
  border-radius: 999px;
}
.ticket::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.ticket--open {
  color: var(--sw);
  border-color: var(--sw);
}
.ticket--open::before {
  background: currentColor;
}

/* ---------- bot page ---------- */

.bot-hero {
  position: relative;
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(48px, 7vw, 90px);
}
.bot-hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 960px) {
  .bot-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.bot-hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(50px, 7.6vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 14px 0 6px;
  overflow-wrap: anywhere;
}
.bot-hero .lead {
  margin-top: 18px;
}
.bot-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 26px;
}
.bot-hero__side {
  display: grid;
  gap: 22px;
  justify-items: start;
}
.bot-avatar {
  width: min(220px, 60vw);
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--fill);
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 12% 100%, 0 88%);
}
.measure {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-dim);
  width: 100%;
  max-width: 460px;
}
.measure div {
  padding: 12px 14px;
  border-right: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
}
.measure div:nth-child(2n) {
  border-right: 0;
}
.measure small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.measure strong {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
}
.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.feat > div {
  position: relative;
  padding: 18px 20px 20px 22px;
  border: 1px solid var(--line-dim);
  background: var(--fill);
}
.feat > div::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  border-left: 3px solid var(--sw);
}
.feat h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.1;
  margin: 0 0 8px;
}
.feat p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.cmds {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cmds th,
.cmds td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-dim);
}
.cmds th {
  white-space: nowrap;
  font-weight: 600;
  color: var(--line);
  width: 1%;
}
.cmds td {
  color: var(--ink-dim);
}
.cmds-wrap {
  border: 1px solid var(--line-dim);
  max-height: 560px;
  overflow: auto;
  background: color-mix(in srgb, var(--paper-2) 50%, transparent);
}
@media (max-width: 560px) {
  .cmds th,
  .cmds td {
    display: block;
    width: auto;
    border-bottom: 0;
    padding: 2px 14px;
    white-space: normal;
  }
  .cmds tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-dim);
  }
}
.note-box {
  border: 1.5px dashed var(--redline);
  padding: 16px 20px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.65;
}
.note-box p {
  margin: 0;
}
.note-box p + p {
  margin-top: 8px;
}
.next-pieces {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}
.next-pieces a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-dim);
  text-decoration: none;
  color: inherit;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}
.next-pieces a:hover {
  border-color: var(--sw);
  background: var(--fill);
}
.next-pieces a[aria-current="page"] {
  border-style: dashed;
  opacity: 0.6;
}

/* ---------- about the cutter ---------- */

.cutter {
  display: grid;
  gap: 26px;
  align-items: start;
}
@media (min-width: 900px) {
  .cutter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.cutter p {
  max-width: 60ch;
}
.cutter__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- legal index ---------- */

.legal-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  margin-top: 26px;
}
.legal-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line-dim);
  text-decoration: none;
  color: inherit;
}
.legal-list a:hover {
  border-color: var(--sw);
  background: var(--fill);
}
.legal-list strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  display: block;
}
.legal-list span {
  font-size: 12px;
  color: var(--ink-dim);
}
.legal .legal__bot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

/* ---------- devlog timeline ---------- */

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 900px;
  border-left: 1px dashed var(--line-dim);
}
.log > li {
  position: relative;
  padding: 0 0 22px 28px;
}
.log > li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: 0 0 0 3px var(--paper);
}
.log time,
.log .log__bot {
  font-size: 12px;
  color: var(--ink-dim);
  margin-right: 10px;
}
.log .log__bot {
  color: var(--sw);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.log h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  margin: 4px 0 4px;
}
.log p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-dim);
  max-width: 70ch;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}
.filters button {
  font: 500 12.5px var(--mono);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-dim);
  padding: 7px 12px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.filters button[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--fill);
}

/* ---------- companions invite helper (from the companions site) ---------- */

.warn {
  border: 1.5px solid var(--redline);
  padding: 16px 20px;
  margin: 0 0 22px;
  max-width: 760px;
}
.warn h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--redline);
}
.warn p {
  margin: 0 0 8px;
  font-size: 14px;
}
.warn p:last-child {
  margin: 0;
}
.helper label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--ink-dim);
}
.helper textarea {
  width: 100%;
  max-width: 760px;
  min-height: 130px;
  padding: 12px 14px;
  font: 13.5px/1.6 var(--mono);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 2px;
  resize: vertical;
}
.helper textarea:focus-visible {
  outline: 2px dashed var(--redline);
  outline-offset: 3px;
}
.helper__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin: 16px 0;
}
.helper__count {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin-left: 6px;
}
.msg-err,
.msg-info {
  max-width: 760px;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 13.5px;
}
.msg-err {
  border: 1.5px solid var(--redline);
  color: var(--redline);
}
.msg-info {
  border: 1px dashed var(--line-dim);
}
.msg-err p,
.msg-info p {
  margin: 0 0 4px;
}
.msg-err p:last-child,
.msg-info p:last-child {
  margin: 0;
}
.bots {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  max-width: 900px;
  display: grid;
  gap: 8px;
}
.bots__row,
.bots__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-dim);
  background: var(--fill);
}
.bots__empty {
  color: var(--ink-dim);
  font-size: 14px;
}
.bots__who {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  min-width: 0;
}
.bots__who strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}
.bots__who span {
  font-size: 12.5px;
  color: var(--ink-dim);
}
.bots__who code {
  font-size: 12px;
  color: var(--ink-dim);
  overflow-wrap: anywhere;
}
.bots__act {
  display: flex;
  gap: 8px;
}
.sub {
  font-size: 13px;
  color: var(--ink-dim);
  max-width: 760px;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  .piece {
    min-height: 0;
    padding: 40px 30px 36px;
  }
  .piece--b {
    padding-top: 74px;
  }
  .grain {
    display: none;
  }
  .tape {
    margin: 0 -16px;
  }
}

.static .tape__nums {
  translate: none;
}

.bot-hero__grid > * {
  min-width: 0;
}
.bot-hero .dim b {
  white-space: normal;
  text-align: center;
  max-width: 34ch;
}

/* revision table and devlog page, from the bot sites */
/* ---------- revision block ---------- */

.rev th,
.rev td {
  vertical-align: middle;
}
.rev tbody th {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
  width: 78px;
  text-align: center;
  border-right: 1px solid var(--line-dim);
}
.rev td:nth-child(2) {
  width: 110px;
  font-weight: 600;
  white-space: nowrap;
}
.rev td:nth-child(3) {
  width: 150px;
  white-space: nowrap;
  color: var(--ink-dim);
}
.rev tr.now td,
.rev tr.now th {
  background: var(--fill);
}
.rev tr.now td:nth-child(3) {
  color: var(--ink);
  font-weight: 600;
}
.revstamp {
  display: inline-block;
  margin: 8px 0 0 14px;
  border: 2px solid var(--redline);
  color: var(--redline);
  border-radius: 3px;
  padding: 3px 10px 1px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.04em;
  rotate: -5deg;
}
.js .revstamp {
  opacity: 0;
}
.js .revstamp.show {
  animation: badge-slam 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) forwards;
}
.static .revstamp {
  opacity: 1 !important;
  animation: none !important;
}
@media (max-width: 640px) {
  .rev thead {
    display: none;
  }
  .rev tbody tr {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    border-bottom: 1px solid var(--line-dim);
  }
  .rev tbody th {
    grid-row: 1 / span 3;
    width: auto;
    display: grid;
    place-items: center;
    border-bottom: 0;
  }
  .rev tbody td {
    width: auto !important;
    border: 0;
    padding: 8px 14px 0;
    display: block;
  }
  .rev tbody td:last-child {
    padding-bottom: 12px;
  }
}

.page {
  padding: calc(var(--header-h) + 70px) 0 0;
}
.page h1 {
  font-size: clamp(44px, 7vw, 92px);
  margin-bottom: 14px;
}
.page .lead {
  max-width: 62ch;
  color: var(--ink-dim);
}
.page .sheet {
  margin-top: clamp(32px, 5vw, 56px);
}

[hidden] {
  display: none !important;
}

/* ---------- full changelog ---------- */

.log details > summary {
  list-style: none;
  cursor: pointer;
  display: block;
}
.log details > summary::-webkit-details-marker {
  display: none;
}
.log summary h3 {
  position: relative;
  padding-right: 34px;
}
.log summary h3::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dim);
  font: 500 16px/1 var(--mono);
}
.log details[open] summary h3::after {
  content: "−";
}
.log summary:hover h3 {
  color: var(--sw);
}
.log__count {
  font-size: 11.5px;
  color: var(--ink-dim);
  border: 1px dashed var(--line-dim);
  padding: 1px 7px;
}
.log__body {
  max-width: 78ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  padding: 4px 0 6px;
}
.log__body ul,
.log__body ol {
  margin: 8px 0;
  padding-left: 20px;
}
.log__body li {
  margin: 0 0 7px;
}
.log__body li::marker {
  color: var(--sw);
}
.log__body strong {
  color: var(--ink);
}
.log__body h4,
.log__body h5 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0 4px;
}
.log__body p {
  margin: 8px 0;
  font-size: 14px;
}
.log__body code,
.doc code {
  font-size: 0.92em;
  background: var(--fill);
  padding: 0 4px;
  overflow-wrap: anywhere;
}
.filters__open {
  margin-left: auto;
}

/* ---------- long devlog written in markdown ---------- */

.doc-toc {
  border: 1px solid var(--line-dim);
  padding: 14px 18px;
  margin: 22px 0 34px;
  max-width: 760px;
  background: var(--fill);
}
.doc-toc ol {
  margin: 8px 0 0;
  padding-left: 22px;
  columns: 2 260px;
  font-size: 13.5px;
}
.doc-toc li {
  margin: 0 0 5px;
  break-inside: avoid;
}
.doc {
  max-width: 78ch;
  font-size: 15px;
  line-height: 1.75;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  margin: 56px 0 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-dim);
  scroll-margin-top: calc(var(--header-h) + 40px);
}
.doc h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 23px;
  margin: 30px 0 8px;
  scroll-margin-top: calc(var(--header-h) + 40px);
}
.doc h4 {
  font-family: var(--display);
  font-size: 19px;
  margin: 22px 0 6px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 0 0 6px;
}
.doc .table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}
.doc table {
  font-size: 13.5px;
  min-width: 520px;
}
.doc blockquote {
  margin: 16px 0;
  padding: 8px 16px;
  border-left: 3px solid var(--sw);
  color: var(--ink-dim);
}
.doc .code pre {
  overflow-x: auto;
  padding: 12px 14px;
  margin: 0;
}
.doc p {
  margin: 0 0 14px;
}
.legal code,
.doc code,
.page code {
  white-space: normal;
  overflow-wrap: anywhere;
}
