@font-face {
  font-family: "Demo Inconsolata";
  src: url("fonts/Inconsolata-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Demo Inconsolata";
  src: url("fonts/Inconsolata-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Demo Inconsolata";
  src: url("fonts/Inconsolata-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Demo Inconsolata";
  src: url("fonts/Inconsolata-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Demo Inconsolata Narrow";
  src: url("fonts/InconsolataPragmaticNarrow[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f3ed;
  --surface: #fffdf7;
  --ink: #15191f;
  --muted: #5d6672;
  --line: #d9d2c5;
  --accent: #0f6b5d;
  --accent-dark: #084a40;
  --code: #101419;
  --code-soft: #e7dfd2;
  --panel: #ece4d7;
  --focus: #bd4f2a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Demo Inconsolata", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-feature-settings: "liga" 1, "dlig" 1, "calt" 1;
  line-height: 1.45;
}

a {
  color: inherit;
}

code,
pre,
textarea,
select,
input,
button {
  font: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 237, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-weight: 900;
  font-size: 1.3rem;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 1rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 44px;
  padding: 54px 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  font-size: clamp(4rem, 8.2vw, 8.7rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  font-weight: 900;
}

.lede {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffdf7;
}

.hero-sample {
  border: 1px solid var(--line);
  background: var(--code);
  color: #f4efe6;
  overflow: hidden;
}

.hero-sample pre {
  margin: 0;
  padding: 30px;
  overflow: hidden;
  white-space: pre-wrap;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.32;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metrics div {
  min-height: 150px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  line-height: 1;
}

.metrics span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.1rem;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.section p {
  color: var(--muted);
  font-size: 1.24rem;
}

.operator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.operator-grid span {
  min-height: 66px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  font-weight: 700;
}

.split-band {
  width: 100%;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.comparison {
  display: grid;
  gap: 12px;
}

.comparison div {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
}

.comparison span {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
}

.comparison p {
  margin: 10px 0 0;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(1.55rem, 3vw, 2.75rem);
}

.narrow {
  font-family: "Demo Inconsolata Narrow", "Demo Inconsolata", ui-monospace, monospace;
}

.specimen {
  padding-bottom: 72px;
}

.specimen-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  justify-content: flex-end;
}

.controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.controls select,
.controls input[type="range"] {
  accent-color: var(--accent);
}

.controls select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  text-transform: none;
}

.toggle {
  min-height: 42px;
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px !important;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--ink) !important;
  text-transform: none !important;
}

textarea {
  width: 100%;
  min-height: 430px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--code);
  color: #f4efe6;
  padding: 26px;
  line-height: 1.35;
  font-size: 26px;
  font-family: "Demo Inconsolata", ui-monospace, monospace;
  font-feature-settings: "liga" 1, "dlig" 1, "calt" 1;
}

textarea:focus,
select:focus,
input:focus,
.button:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 16px 42px;
  text-align: center;
  color: var(--muted);
}

.footer p {
  margin: 0 auto;
  width: min(780px, 100%);
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .two-column,
  .split-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 44px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .operator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specimen-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .controls {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-sample pre,
  textarea {
    padding: 18px;
  }

  textarea {
    min-height: 360px;
    font-size: 22px;
  }
}
