:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #273332;
  background: #fafbf9;
  font-synthesis: none;
  font-size: 15px;
  line-height: 1.65;
  scroll-behavior: smooth;
  --green: #28765e;
  --line: #dfe6df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  border: 1px solid #cbd7ce;
  border-radius: 6px;
  background: #fff;
  padding: 7px 11px;
  color: #263b32;
}
button {
  cursor: pointer;
}
button:hover {
  background: #edf4ed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
canvas:focus-visible {
  outline: 3px solid #77ae8b;
  outline-offset: 3px;
}
input[type="color"] {
  width: 35px;
  height: 29px;
  padding: 2px;
  border: 1px solid #cad7cd;
  border-radius: 5px;
  background: #fff;
  vertical-align: middle;
}
input[type="range"] {
  accent-color: var(--green);
  width: 100%;
}
select {
  max-width: 100%;
}
.skip {
  position: absolute;
  left: 270px;
  top: -100px;
  background: #fff;
  padding: 12px;
  z-index: 5;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  width: 240px;
  height: 100dvh;
  border-right: 1px solid var(--line);
  background: #f3f6f1;
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #263c31;
  text-decoration: none;
  line-height: 1.25;
  font-size: 17px;
}
.brand strong {
  font-weight: 650;
}
.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  border: 1px solid #bfd0bd;
  border-radius: 11px;
  font-family: Georgia, serif;
  font-size: 29px;
  background: #e6eee1;
  color: #386945;
}
.version {
  font-size: 11px;
  color: #5a7061;
  margin: 20px 0 25px;
  padding: 3px 8px;
  background: #e5ede2;
  border-radius: 4px;
  width: max-content;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
nav a {
  font-size: 13px;
  text-decoration: none;
  color: #55655b;
  padding: 6px 0;
}
nav a:hover {
  color: var(--green);
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: #859184;
  margin: 14px 0 5px;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 30px;
  font-size: 11px;
  color: #708071;
}
.sidebar-foot p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #93a28e;
  line-height: 1.35;
}
main {
  margin-left: 240px;
  max-width: 1440px;
  padding: 0 58px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  height: 77px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #8a968d;
}
header a {
  font-size: 12px;
  letter-spacing: 0;
  text-decoration: none;
}
section {
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 18px;
}
.hero {
  padding: 65px 0 47px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #6e8b73;
}
h1 {
  font-size: clamp(38px, 4.1vw, 65px);
  font-weight: 530;
  letter-spacing: -2.6px;
  line-height: 1.1;
  margin: 20px 0;
}
h1 span {
  font-family: Georgia, serif;
  font-weight: 400;
  font-style: italic;
  color: #52805a;
}
h2 {
  font-size: 29px;
  letter-spacing: -0.9px;
  font-weight: 550;
  line-height: 1.25;
  margin: 10px 0 16px;
}
h3 {
  font-size: 15px;
  line-height: 1.4;
}
p {
  color: #657269;
  max-width: 820px;
  margin: 14px 0;
}
.intro {
  font-size: 17px;
  line-height: 1.7;
  max-width: 650px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0;
}
.chips span {
  font-size: 11px;
  background: #eef3eb;
  border: 1px solid #dbe5d7;
  border-radius: 20px;
  padding: 3px 11px;
  color: #61735c;
}
.notice {
  padding: 15px 18px;
  background: #f1f5ed;
  border-left: 3px solid #a7b992;
  color: #667457;
  font-size: 12px;
  margin-top: 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.live-label {
  font-size: 11px;
  color: #6f8371;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #68a36d;
  vertical-align: middle;
  margin: 0 5px;
}
nav .dot {
  width: 5px;
  height: 5px;
}
.playground {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid #ccd8cc;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 27px;
  background: #fff;
  box-shadow: 0 6px 25px #243c2406;
}
.editor-panel {
  background: #17251f;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #35483a;
  color: #adbeaf;
  font-size: 11px;
  min-height: 58px;
}
.panel-toolbar select {
  padding: 5px;
  background: #25362c;
  border-color: #435747;
  color: #d5e1d3;
  font-size: 11px;
  min-width: 0;
  flex: 1;
}
.panel-toolbar button {
  background: none;
  border-color: #435747;
  color: #c3d2c2;
  padding: 4px 7px;
  font-size: 10px;
}
.source-label {
  color: #8da28f;
  font-size: 10px;
  padding: 12px 18px 0;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 360px;
  flex: 1;
  background: #17251f;
  border: 0;
  color: #d0e2c9;
  font:
    11px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  padding: 12px 18px;
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}
.editor-help {
  font-size: 9px;
  color: #829b85;
  margin: 0;
  padding: 10px 18px;
}
.preview-panel {
  min-width: 0;
  background: #f8faf6;
}
.preview-grid {
  background-color: #f1f5ef;
  background-image:
    linear-gradient(#dbe4d854 1px, transparent 1px), linear-gradient(90deg, #dbe4d854 1px, transparent 1px);
  background-size: 23px 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 260px;
}
.preview-grid canvas {
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
}
.preview-grid canvas:active {
  cursor: grabbing;
}
.compile-status {
  font-size: 10px;
  padding: 7px 15px;
  background: #e9f0e4;
  border-top: 1px solid #d8e4d3;
  color: #598157;
  overflow-wrap: anywhere;
}
.compile-status.invalid {
  background: #f8eae2;
  color: #9b4f36;
}
.controls {
  padding: 14px 17px;
}
.controls > label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.controls output {
  font-family: ui-monospace, monospace;
  color: #588156;
}
.control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 10px;
}
.control-row button {
  font-size: 10px;
  padding: 5px 8px;
}
.metrics {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  padding: 15px 17px;
  gap: 7px;
}
.metrics span {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  color: #8b9c88;
}
.metrics strong {
  font-size: 13px;
  font-weight: 500;
  color: #3e5c43;
  overflow-wrap: anywhere;
}
details {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  padding: 13px 0;
}
summary {
  cursor: pointer;
  color: #607960;
}
summary span {
  border-radius: 12px;
  background: #e8efe3;
  padding: 1px 6px;
  font-size: 9px;
  margin-left: 6px;
}
pre {
  overflow: auto;
  max-width: 100%;
  font:
    11px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  tab-size: 2;
  color: #4b6750;
}
pre.code-block {
  background: #17251f;
  color: #c0d8ba;
  border: 1px solid #334b38;
  border-radius: 9px;
  padding: 23px;
  font-size: 12px;
}
.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 26px;
  background: white;
}
.gallery-layout > div:first-child {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.gallery-layout label {
  font-size: 12px;
}
.gallery-layout select {
  width: 100%;
  font-size: 12px;
}
.gallery-layout button {
  font-size: 11px;
}
.small {
  font-size: 11px;
  line-height: 1.8;
}
.gallery-preview {
  min-height: 360px;
}
.relationship-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 27px 0;
}
.relationship-cards article {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
  background: #fff;
}
.relationship-cards article > code {
  font-size: 10px;
  color: #5a875b;
  background: #edf4e8;
  padding: 3px 6px;
  border-radius: 4px;
}
.relationship-cards p {
  font-size: 12px;
}
.relationship-cards h3 {
  margin: 15px 0 5px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 25px 0;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
th {
  color: #8b9c88;
  font-size: 10px;
  letter-spacing: 0.7px;
  font-weight: 500;
}
td {
  color: #65766a;
}
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 0;
  color: #97a292;
  font-size: 10px;
}
#gallery-status {
  font-size: 10px;
  color: #71846c;
}
#diagnostic-output {
  color: #a45d41;
}
#qualification-status strong {
  color: #455e3c;
}
@media (min-width: 1600px) {
  main {
    margin-left: calc(240px + (100vw - 1600px) / 2);
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 30px 22px;
  }
  main {
    margin-left: 205px;
    padding: 0 30px;
  }
  .playground {
    grid-template-columns: 1fr 1fr;
  }
  .panel-toolbar > label {
    display: none;
  }
  .live-label {
    font-size: 9px;
  }
  .metrics {
    padding: 12px;
  }
  .control-row {
    justify-content: flex-start;
  }
  .relationship-cards article {
    padding: 14px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    border-right: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    font-size: 14px;
  }
  .mark {
    width: 34px;
    height: 37px;
    font-size: 24px;
  }
  .version {
    margin: 0;
    font-size: 9px;
  }
  .sidebar nav,
  .sidebar-foot {
    display: none;
  }
  main {
    margin-left: 0;
    padding: 0 22px;
  }
  header {
    height: 57px;
    font-size: 8px;
  }
  .hero {
    padding-top: 43px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -1.7px;
  }
  .intro {
    font-size: 15px;
  }
  section {
    padding: 42px 0;
  }
  .section-heading {
    align-items: flex-start;
  }
  .live-label {
    display: none;
  }
  h2 {
    font-size: 26px;
  }
  .playground,
  .gallery-layout {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    grid-row: 1;
  }
  .preview-grid {
    min-height: 280px;
  }
  .preview-grid canvas {
    max-width: 320px;
  }
  .controls {
    padding: 12px 16px;
  }
  .metrics {
    padding: 12px 16px;
  }
  .editor-panel textarea {
    min-height: 280px;
    max-height: 400px;
  }
  .gallery-preview {
    grid-row: 1;
    min-height: 300px;
  }
  .gallery-layout > div:first-child {
    padding: 20px;
  }
  .relationship-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .relationship-cards article {
    padding: 17px;
  }
  .relationship-cards p {
    margin-bottom: 0;
  }
  .notice {
    font-size: 11px;
  }
  pre.code-block {
    font-size: 10px;
    padding: 16px;
  }
  .skip {
    left: 15px;
  }
  footer {
    font-size: 9px;
  }
}
