@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  --paper: #f4f2eb;
  --ink: #22372e;
  --muted: #70786e;
  --line: #dcded3;
  --orange: #db6235;
  --green: #668559;
  --purple: #9785b9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #db6235;
  outline-offset: 4px;
}
header {
  height: 88px;
  max-width: 1440px;
  margin: auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  width: 36px;
  height: 36px;
  font-family: monospace;
  font-size: 26px;
  letter-spacing: -7px;
  padding-right: 6px;
}
.edition {
  font-size: 12px;
  color: #8a9287;
  margin-left: 9px;
  font-weight: 400;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}
.tag {
  border: 1px solid var(--line);
  padding: 9px 12px;
  font-size: 9px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tag i,
.live-dot:before {
  background: #718d61;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.live-dot:before {
  content: "";
  margin-right: 6px;
}
main {
  max-width: 1344px;
  margin: auto;
  padding: 0 0 48px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 55px 0 45px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
}
.hero h1 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(40px, 4.5vw, 65px);
  line-height: 1.06;
  letter-spacing: -3px;
  font-weight: 500;
  margin: 20px 0;
}
.hero h1 span {
  color: var(--orange);
}
.hero p {
  max-width: 460px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.hero-note {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 12px 20px;
  padding: 15px 25px;
  border-left: 1px solid var(--line);
  margin-right: 35px;
  transform: rotate(-3deg);
}
.note-number {
  font-family: "Space Grotesk";
  font-size: 86px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -8px;
}
.hero-note div {
  font-size: 17px;
  line-height: 1.5;
}
.hero-note small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.3px;
}
.workspace {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 18px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbf6;
  padding: 24px;
}
.design {
  background: #eceee4;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}
.small-label {
  font-size: 10px;
  color: var(--muted);
}
.select-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
select {
  width: 100%;
  background: #fafbf6;
  border: 1px solid #ccd1c2;
  padding: 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
}
.preset-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 52px;
}
.control {
  margin: 16px 0;
}
.control label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.control output {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-size: 13px;
}
.control input {
  width: 100%;
  height: 5px;
  margin: 13px 0 2px;
  accent-color: var(--ink);
  cursor: pointer;
}
.allocation {
  margin: 23px 0;
}
.allocation > div:first-child {
  height: 7px;
  display: flex;
  overflow: hidden;
  border-radius: 8px;
}
.allocation-bar span {
  height: 7px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 9px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.orange {
  background: var(--orange);
}
.purple {
  background: var(--purple);
}
.green {
  background: var(--green);
}
details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 15px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.fine {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.stage {
  padding: 24px 28px;
}
.live-dot {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.world-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h2 {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 24px;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin: 0;
}
.day-badge {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  font-size: 9px;
  letter-spacing: 1px;
}
.day-badge b {
  font-size: 21px;
  font-family: "Space Grotesk";
}
.day-badge span {
  color: var(--muted);
}
.world {
  margin: 14px -8px 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f2e9;
}
.world svg {
  width: 100%;
  display: block;
}
.pipe {
  stroke: #b5bdab;
  stroke-width: 2;
  fill: none;
  marker-end: url(#arrow);
}
.flow {
  stroke: #7f946c;
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 5 40;
  opacity: 0.45;
}
.running .flow {
  animation: flow 2s linear infinite;
}
.running .friend {
  animation: float 1.2s ease-in-out infinite alternate;
}
.running .friend-two {
  animation-delay: 0.5s;
}
.node {
  fill: #fafbf6;
  stroke: #cbd1c2;
}
.burn-node {
  fill: #f9e9dc;
  stroke: #e9c9b0;
}
.creator-node {
  fill: #efeaf5;
  stroke: #d9d0e5;
}
.reserve-node {
  fill: #e2eddb;
  stroke: #bccfae;
}
.node-label {
  font:
    9px "DM Sans",
    Arial;
  letter-spacing: 1px;
  fill: #536249;
  font-weight: 700;
}
.node-value {
  font:
    19px "Space Grotesk",
    Arial;
  fill: var(--ink);
}
.roof-label {
  font:
    10px "DM Sans",
    Arial;
  fill: white;
  font-weight: 700;
  letter-spacing: 2px;
}
.flow-label {
  font:
    8px "DM Sans",
    Arial;
  fill: #7b8872;
  letter-spacing: 1px;
}
.scenario-row {
  display: flex;
  gap: 8px;
}
.scenario {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 11px 5px;
}
.scenario span {
  font-size: 16px;
  margin-right: 5px;
}
.scenario.selected {
  background: #e6ecdd;
  border-color: #879b73;
  color: var(--ink);
}
.transport {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.primary,
.secondary,
.dark,
.icon-button {
  border-radius: 7px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  padding: 13px 24px;
}
.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.icon-button {
  margin-left: auto;
  font-size: 18px;
  padding: 8px 12px;
}
.scrubber {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.scrubber input {
  flex: 1;
  min-width: 0;
  accent-color: var(--ink);
  height: 4px;
}
.scrubber output {
  min-width: 43px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.metrics > div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.metrics > div:first-child {
  padding-left: 0;
  border: 0;
}
.metrics span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.metrics strong {
  font-size: 25px;
  letter-spacing: -1px;
  font-family: "Space Grotesk";
  font-weight: 500;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.report,
.notebook {
  padding: 26px;
}
.report-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
}
.report h2 {
  font-size: 23px;
  max-width: 380px;
}
.health {
  white-space: nowrap;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
  padding: 7px 8px;
  background: #e8ecdf;
  color: #506940;
}
.health.danger {
  background: #f9dfd1;
  color: #ae472b;
}
.report p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 610px;
  color: var(--muted);
}
#chart {
  width: 100%;
  height: 150px;
  overflow: visible;
  margin-top: 16px;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
}
.chart-footer .legend {
  margin: 0;
}
.unit-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 16px;
  font-size: 11px;
  gap: 12px;
}
.unit-row strong {
  white-space: nowrap;
}
.report-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.report-actions button {
  font-size: 11px;
}
.stress-result {
  background: #edf0e6;
  padding: 13px 15px;
  border-radius: 7px;
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.7;
}
.notebook {
  background: #f0ede3;
}
.notebook h2 {
  font-size: 28px;
  margin-bottom: 24px;
}
.numbered {
  display: flex;
  gap: 16px;
  align-items: start;
  margin: 16px 0;
}
.numbered b {
  font: 12px "Space Grotesk";
  color: var(--orange);
  padding-top: 2px;
}
.numbered p {
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}
.numbered strong {
  color: var(--ink);
}
.wide {
  display: block;
  width: 100%;
  margin-top: 12px;
}
.method {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: 55px 0 10px;
}
.method h2 {
  margin: 15px 0;
  font-size: 28px;
}
.method p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.method details:first-child {
  margin-top: 0;
}
.method summary {
  padding-bottom: 4px;
  font-size: 13px;
}
.method a {
  text-decoration: underline;
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1440px;
  margin: auto;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
.brand-small {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
}
@keyframes flow {
  to {
    stroke-dashoffset: -90;
  }
}
@keyframes float {
  to {
    translate: 0 -4px;
  }
}
@media (min-width: 1500px) {
  main {
    max-width: 1320px;
  }
}
@media (max-width: 1439px) {
  main {
    margin: 0 48px;
  }
}
@media (max-width: 1000px) {
  header {
    padding: 0 25px;
  }
  main {
    margin: 0 25px;
  }
  .workspace {
    grid-template-columns: 260px 1fr;
  }
  .stage {
    padding: 20px;
  }
  .hero-note {
    margin: 0;
  }
  .scenario {
    font-size: 9px;
  }
  .scenario span {
    display: none;
  }
  .metrics strong {
    font-size: 20px;
  }
  .metrics > div {
    padding-left: 10px;
  }
  .metrics span {
    font-size: 9px;
  }
  .analysis-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .report-heading {
    display: block;
  }
  .health {
    display: inline-block;
    margin-top: 10px;
  }
  .report-actions {
    flex-direction: column;
  }
  nav .tag {
    display: none;
  }
}
@media (max-width: 720px) {
  header {
    height: 70px;
    padding: 0 18px;
  }
  .brand {
    font-size: 12px;
    gap: 8px;
  }
  .edition {
    display: none;
  }
  nav {
    gap: 14px;
    font-size: 10px;
  }
  nav a:first-child {
    display: none;
  }
  main {
    margin: 0 16px;
  }
  .hero {
    padding: 35px 0 30px;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .hero p {
    font-size: 13px;
    max-width: 320px;
  }
  .hero-note {
    display: none;
  }
  .workspace,
  .analysis-grid,
  .method {
    grid-template-columns: 1fr;
  }
  .design {
    padding: 20px;
  }
  .design #controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .preset-note {
    min-height: 0;
  }
  .control {
    margin: 12px 0;
  }
  .stage {
    padding: 20px 16px;
  }
  .world-heading h2 {
    font-size: 21px;
  }
  .world {
    margin: 12px -8px;
  }
  .scenario {
    font-size: 10px;
  }
  .primary {
    padding: 12px 15px;
  }
  .secondary {
    padding: 12px;
  }
  .transport {
    gap: 7px;
  }
  .transport .secondary {
    font-size: 10px;
  }
  .metrics strong {
    font-size: 22px;
  }
  .metrics span {
    font-size: 9px;
  }
  .report,
  .notebook {
    padding: 22px;
  }
  .report-actions {
    flex-direction: row;
  }
  .report-actions button {
    flex: 1;
    font-size: 10px;
  }
  .method {
    gap: 15px;
    padding-top: 38px;
  }
  .method h2 {
    font-size: 25px;
  }
  footer {
    padding: 23px 18px;
    flex-wrap: wrap;
  }
  footer span:last-child {
    display: none;
  }
  .section-heading {
    margin-bottom: 18px;
  }
  .small-label {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
