:root {
  --ink: #1c1b19;
  --gel: #e0b25a;
  --gesso: #e2e6ea;
  --field: #eceff2;
  --mute: #5c5f66;
  --hair: #c5c9cf;
  --radius: 3px;
  --hold: 42rem;
  --wide: 64rem;
  --stile: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body.sx-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--ink);
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 1.04rem;
  line-height: 1.62;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-underline-offset: 0.16em;
}
a:hover { color: #8a6a22; }

h1, h2, h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 0.7rem;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 2.7rem); }
h2 { font-size: 1.32rem; }

p { margin: 0 0 0.95rem; }

.sx-skip {
  position: absolute;
  left: -999px;
  top: 0.4rem;
  background: var(--gel);
  color: var(--ink);
  padding: 0.35rem 0.65rem;
}
.sx-skip:focus { left: 0.5rem; z-index: 9; }

.sx-jaw {
  background: var(--ink);
  color: var(--gesso);
  padding: 0.85rem 1.15rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.sx-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--gesso);
  min-width: 0;
}
.sx-mark:hover { color: var(--gel); }
.sx-mark img { width: 40px; height: 40px; flex: 0 0 auto; }
.sx-mark-name {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.sx-jaw-toggle {
  display: none;
  border: 1px solid var(--gel);
  background: transparent;
  color: var(--gel);
  border-radius: var(--radius);
  padding: 0.32rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.sx-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
}
.sx-links a {
  text-decoration: none;
  color: #d7dbe0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-bottom: 0.12rem;
  border-bottom: 2px solid transparent;
}
.sx-links a:hover { color: var(--gel); }
.sx-on {
  color: var(--gel) !important;
  border-bottom-color: transparent !important;
}
.sx-on::after {
  content: "";
  display: block;
  width: 0.9rem;
  height: 2px;
  background: var(--gel);
  margin-top: 0.18rem;
}

.sx-stage {
  display: grid;
  grid-template-columns: var(--stile) 1fr;
  min-height: 70vh;
}

.sx-stile {
  background: var(--ink);
  color: var(--gel);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 0 2rem;
  gap: 1rem;
}
.sx-cross {
  width: 22px;
  height: 180px;
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
}
.sx-cross.is-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s ease; }
.sx-stile-no {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #c9c3b4;
}

.sx-field {
  background-color: var(--gesso);
  background-image: repeating-linear-gradient(
    18deg,
    rgba(28, 27, 25, 0.028) 0 1px,
    transparent 1px 22px
  );
  min-width: 0;
}

.sx-canvas {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.7rem 1.25rem 2.6rem;
}

.sx-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8a6a22;
  margin-bottom: 0.35rem;
}
.sx-lead { max-width: var(--hold); color: var(--mute); }
.sx-mute { color: var(--mute); }
.sx-pin {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
}

.sx-chips,
.sx-plate,
.sx-racks,
.sx-lamp,
.sx-call,
.sx-zip,
.sx-open,
.sx-split {
  margin-bottom: 2.1rem;
}

.sx-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0 1rem;
}
.sx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.28rem 0.55rem 0.28rem 0.35rem;
  font-size: 0.78rem;
  background: var(--field);
}
.sx-chip::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  background: var(--sx-chip);
  border: 1px solid var(--ink);
  border-radius: 1px;
}

.sx-plate {
  position: relative;
  padding: 1.3rem 1.1rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--field);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  max-width: 46rem;
}
.sx-sight {
  position: absolute;
  right: 0.7rem;
  bottom: 0.6rem;
  width: 64px;
  height: 64px;
  opacity: 0.85;
}

.sx-send,
.sx-ghost,
.sx-write button {
  display: inline-block;
  border-radius: var(--radius);
  padding: 0.48rem 0.95rem;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  margin: 0.2rem 0.45rem 0.2rem 0;
}
.sx-send {
  background: var(--gel);
  color: var(--ink);
  border: 1px solid var(--ink);
}
.sx-send:hover { background: #d4a44a; color: var(--ink); }
.sx-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.sx-ghost:hover { border-color: #8a6a22; color: #8a6a22; }

.sx-rack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.sx-rack-grid .sx-notch:nth-child(1),
.sx-rack-grid .sx-notch:nth-child(4) {
  grid-column: 1 / -1;
}
.sx-rack-list .sx-notch {
  grid-column: auto;
}

.sx-notch {
  border: 1px solid var(--ink);
  background: var(--field);
  padding: 0.95rem 1rem 0.85rem;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
  box-shadow: none;
}
.sx-meta {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6a22;
  margin-bottom: 0.3rem;
}
.sx-notch h2 { margin-bottom: 0.35rem; }
.sx-notch h2 a { text-decoration: none; }

.sx-moves {
  list-style: none;
  margin: 0.6rem 0 1rem;
  padding: 0;
  max-width: 38rem;
}
.sx-moves li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.55rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--hair);
}
.sx-moves b {
  font-family: "Instrument Serif", Georgia, serif;
  color: #8a6a22;
}

.sx-zip {
  border-top: 3px solid var(--gel);
  padding-top: 1.1rem;
}

.sx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.sx-ticks {
  margin: 0;
  padding-left: 1.1rem;
}
.sx-ticks li { margin-bottom: 0.35rem; }

.sx-dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.35rem 1rem;
  margin: 1rem 0 1.2rem;
  max-width: 42rem;
}
.sx-dl dt { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.sx-dl dd { margin: 0; }

.sx-aux {
  border-left: 3px solid var(--gel);
  padding-left: 0.8rem;
  color: var(--mute);
}

.sx-ask { margin: 1rem 0; max-width: 42rem; }
.sx-ask dt {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.15rem;
  margin-top: 1rem;
}
.sx-ask dd { margin: 0.25rem 0 0; color: var(--mute); }

.sx-write {
  display: grid;
  gap: 0.75rem;
  max-width: 32rem;
  margin-bottom: 1.4rem;
}
.sx-write label { display: grid; gap: 0.28rem; }
.sx-write input,
.sx-write textarea {
  font: inherit;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
  background: var(--field);
  color: var(--ink);
}
.sx-kept {
  border: 1px solid var(--ink);
  padding: 0.9rem 1rem;
  background: var(--field);
  max-width: 36rem;
}
.sx-kept pre {
  white-space: pre-wrap;
  font-family: Figtree, sans-serif;
  font-size: 0.92rem;
}

.sx-map {
  columns: 2;
  gap: 1.5rem;
  padding-left: 1.1rem;
  max-width: 40rem;
}
.sx-map li { margin-bottom: 0.35rem; }

.sx-boot {
  background: var(--ink);
  color: #d7dbe0;
  padding: 1.4rem 1.2rem 1.8rem;
  border-top: 3px solid var(--gel);
}
.sx-boot a { color: var(--gel); }
.sx-boot-brand {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--gesso);
  font-size: 1.15rem;
}
.sx-boot-reach { margin: 0.55rem 0 0.15rem; }
.sx-boot-duns { color: #c4c8ce; margin: 0 0 0.4rem; }
.sx-boot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.8rem 0 1rem;
}
.sx-boot-copy { color: #9aa0a8; font-size: 0.88rem; margin: 0; }

.sx-lamp-list { display: grid; gap: 0.85rem; max-width: 42rem; }

@media (max-width: 760px) {
  .sx-stage { grid-template-columns: 1fr; }
  .sx-stile {
    flex-direction: row;
    height: 36px;
    padding: 0 0.8rem;
    justify-content: space-between;
  }
  .sx-cross { width: 120px; height: 22px; }
  .sx-stile-no { writing-mode: horizontal-tb; transform: none; }
  .sx-jaw-toggle { display: inline-block; }
  .sx-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.55rem;
  }
  .sx-links.is-open { display: flex; }
  .sx-on::after { width: 2.4rem; }
  .sx-rack-grid,
  .sx-split,
  .sx-map { grid-template-columns: 1fr; columns: 1; }
  .sx-rack-grid .sx-notch:nth-child(1),
  .sx-rack-grid .sx-notch:nth-child(4) { grid-column: auto; }
  .sx-dl { grid-template-columns: 1fr; }
  .sx-sight { position: static; margin-bottom: 0.6rem; }
  .sx-mark-name { font-size: 0.86rem; }
}

@media (max-width: 420px) {
  .sx-canvas { padding: 1.2rem 0.85rem 2rem; }
  .sx-chip-row { gap: 0.35rem; }
}
