:root {
  font-family: Inter, system-ui, sans-serif;
  background: #101d2c;
  color: #e0e8ee;
  line-height: 1.6;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1440px;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 25px 42px;
  border-bottom: 1px solid #314459;
}
header > a {
  font-size: 23px;
  font-weight: 650;
  color: #eff3f6;
}
header > a span {
  font-size: 10px;
  color: #9badc2;
  letter-spacing: 0.13em;
  margin-left: 10px;
}
a {
  color: #9fc8da;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.badge {
  font-size: 9px;
  border: 1px solid #5a6e83;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 0.09em;
  white-space: nowrap;
}
main {
  padding: 0 42px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 70px;
  padding: 48px 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #f4bd72;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 15px 0 22px;
}
h1 em {
  color: #f4bd72;
  font-family: Georgia, serif;
  font-weight: 400;
}
.hero p {
  font-size: 13px;
  color: #a6b8c9;
  max-width: 530px;
}
.note {
  border-left: 1px solid #43586c;
  padding: 20px 0 20px 30px;
}
.note strong {
  font-family: ui-monospace, monospace;
  font-size: 24px;
  font-weight: 400;
}
.note a {
  font-size: 11px;
}
.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.panel {
  background: #182a3d;
  border: 1px solid #354c63;
  border-radius: 10px;
  padding: 24px;
  min-width: 0;
}
.results {
  display: grid;
  gap: 22px;
}
h2 {
  font-weight: 500;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.section-heading .eyebrow {
  font-size: 9px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.metrics strong {
  display: block;
  font-size: 26px;
  font-weight: 450;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metrics span {
  font-size: 10px;
  color: #a6b8c9;
}
.metrics > div {
  border-right: 1px solid #354c63;
}
.metrics > div:last-child {
  border: 0;
}
label {
  display: block;
  font-size: 11px;
  color: #bdcad6;
  margin: 14px 0 6px;
}
input,
select,
textarea,
button {
  font: inherit;
}
input:not([type="range"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  background: #101d2c;
  color: #e0e8ee;
  border: 1px solid #546b81;
  border-radius: 5px;
  padding: 8px;
  font-size: 12px;
}
textarea {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  resize: vertical;
}
button {
  border: 1px solid #5b7187;
  border-radius: 5px;
  padding: 9px 13px;
  font-size: 11px;
  background: #20384f;
  color: #e0e8ee;
  cursor: pointer;
}
button:hover {
  background: #304e68;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #f4bd72;
  outline-offset: 3px;
}
#run {
  width: 100%;
  margin: 20px 0 6px;
  background: #f4bd72;
  color: #182433;
  border-color: #f4bd72;
  font-weight: 650;
}
.muted,
.caption {
  font-size: 11px;
  color: #a6b8c9;
}
.caption {
  line-height: 1.6;
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-size: 11px;
  color: #b8cfdf;
  padding: 14px 0;
}
.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.three input {
  padding: 8px 4px;
}
#message {
  font-size: 11px;
  color: #a6b8c9;
}
.error {
  color: #ffc3b5 !important;
}
svg {
  width: 100%;
  height: auto;
  display: block;
  background: #102033;
  border-radius: 7px;
}
svg text {
  fill: #a0b5c8;
  font: 10px system-ui;
}
.gridline {
  stroke: #294058;
  stroke-width: 1;
}
input[type="range"] {
  width: 100%;
  accent-color: #f4bd72;
  cursor: pointer;
}
output {
  float: right;
  color: #f4bd72;
}
.exports {
  display: flex;
  gap: 7px;
}
.conversion {
  background: #102033;
  color: #a9c3d4;
  font-size: 11px;
  padding: 14px;
  border-left: 2px solid #f4bd72;
  border-radius: 3px;
  margin-top: 15px;
}
.method {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  padding: 60px 0 45px;
}
.method h2 {
  font-size: 29px;
  font-family: Georgia, serif;
  font-weight: 400;
}
.method h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}
.method p,
.method a {
  font-size: 12px;
  color: #a6b8c9;
}
.method p {
  margin: 0 0 25px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #314459;
  padding: 22px 42px;
  font-size: 10px;
  color: #a6b8c9;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  main {
    padding: 0 24px;
  }
  header,
  footer {
    padding: 22px 24px;
  }
  .workspace {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .panel {
    padding: 20px;
  }
  .hero {
    gap: 30px;
  }
  .note strong {
    font-size: 19px;
  }
  .metrics {
    gap: 10px;
  }
  .metrics strong {
    font-size: 23px;
  }
}
@media (max-width: 740px) {
  svg text {
    font-size: 22px;
  }
  header {
    flex-wrap: wrap;
    gap: 7px;
  }
  main {
    padding: 0 15px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 32px 0;
  }
  .note {
    padding: 10px 0 10px 20px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .method {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .metrics span {
    font-size: 9px;
  }
  .metrics strong {
    font-size: 22px;
  }
  .panel {
    padding: 19px;
  }
  footer {
    padding: 20px 15px;
  }
}
