:root {
  color-scheme: dark;
  --background: #030404;
  --surface: #080a0a;
  --surface-strong: #0d1010;
  --ink: #f7f7f2;
  --muted: #a2a5a5;
  --dim: #737777;
  --line: rgba(247, 247, 242, 0.17);
  --line-strong: rgba(247, 247, 242, 0.3);
  --accent: #dfff00;
  --accent-ink: #050603;
  --paper: #f5f5ef;
  --paper-ink: #0b0c0c;
  --content: 1240px;
  --gutter: clamp(20px, 4vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
figure,
pre {
  margin-top: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--surface-strong);
  color: var(--ink);
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.section-shell,
.site-footer {
  width: min(var(--content), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.site-header {
  display: grid;
  min-height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: baseline;
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  line-height: 1;
}

.wordmark span {
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}

.wordmark strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.wordmark small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  color: #c7c9c7;
  font-size: 14px;
  font-weight: 650;
}

.site-header > .button {
  justify-self: end;
}

.site-header nav a,
.text-link,
.footer-product nav a {
  text-underline-offset: 6px;
  transition: color 150ms ease;
}

.site-header nav a:hover,
.text-link:hover,
.footer-product nav a:hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 24px;
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.button:hover {
  border-color: #f0ff76;
  background: #e7ff40;
}

.button:active {
  transform: translateY(1px);
}

.button-small {
  min-height: 40px;
  padding-inline: 18px;
  font-size: 13px;
}

a:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f59e0a;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.hero {
  padding: clamp(70px, 9vw, 126px) 0 clamp(86px, 10vw, 136px);
}

.hero-copy {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  color: var(--accent);
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(50px, 7.4vw, 96px);
  font-weight: 820;
  letter-spacing: -0.067em;
  line-height: 0.94;
}

.hero-copy > p:first-of-type {
  max-width: 760px;
  margin: 0 auto;
  color: #c8caca;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 34px;
}

.text-link {
  border-bottom: 2px solid var(--accent);
  padding: 12px 1px 8px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
}

.workflow-proof {
  overflow: hidden;
  margin: clamp(56px, 8vw, 94px) 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.44);
}

.proof-toolbar {
  display: grid;
  min-height: 62px;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  color: var(--muted);
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
}

.proof-brand {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.proof-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.proof-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(223, 255, 0, 0.56);
}

.proof-saved {
  justify-self: end;
}

.proof-grid {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 1.85fr) minmax(290px, 0.9fr);
}

.proof-page {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(28px, 4vw, 56px);
}

.sample-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid rgba(11, 12, 12, 0.1);
  padding-bottom: 24px;
  color: #444645;
  font-size: 12px;
}

.sample-nav strong {
  margin-right: auto;
  color: var(--paper-ink);
  font-size: 15px;
}

.sample-hero {
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1.08fr) minmax(210px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 4vw, 62px);
}

.sample-hero h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 62px);
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.demo-target {
  position: relative;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  transition:
    background 150ms ease,
    box-shadow 150ms ease,
    outline-color 150ms ease;
}

.demo-target-heading {
  display: inline-block;
  margin: -5px;
  padding: 5px;
  line-height: inherit;
}

.demo-target-copy {
  display: inline-block;
  margin: -4px;
  padding: 4px;
  line-height: inherit;
}

.demo-target:hover,
.demo-target:focus-visible {
  outline: 2px solid rgba(11, 117, 255, 0.78);
  outline-offset: 3px;
}

.demo-target.is-demo-selected {
  outline: 3px solid #0b75ff;
  outline-offset: 3px;
  background: rgba(11, 117, 255, 0.08);
}

.demo-target.has-demo-note:not(.is-demo-selected) {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.sample-hero p {
  max-width: 35ch;
  margin-bottom: 24px;
  color: #555957;
  font-size: 14px;
  line-height: 1.5;
}

.sample-button.demo-target {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: #090a0a;
  color: #fff;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 800;
}

.demo-pin {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.sample-art {
  display: grid;
  aspect-ratio: 1 / 0.86;
  place-items: center;
  background:
    linear-gradient(rgba(11, 12, 12, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 12, 12, 0.04) 1px, transparent 1px),
    #e6e7e2;
  background-size: 26px 26px;
}

.sample-art span {
  position: relative;
  width: 46%;
  aspect-ratio: 1;
  border: 3px solid rgba(11, 12, 12, 0.28);
  transform: rotate(45deg);
}

.sample-art span::after {
  position: absolute;
  right: -20%;
  bottom: -20%;
  width: 58%;
  aspect-ratio: 1;
  border: 3px solid rgba(11, 12, 12, 0.17);
  content: "";
}

.sample-rule {
  height: 1px;
  background: rgba(11, 12, 12, 0.2);
}

.sample-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
}

.sample-features span {
  display: block;
  height: 70px;
  background:
    linear-gradient(#111, #111) 0 0 / 26px 3px no-repeat,
    linear-gradient(rgba(11, 12, 12, 0.13), rgba(11, 12, 12, 0.13)) 0 18px / 86% 2px no-repeat,
    linear-gradient(rgba(11, 12, 12, 0.08), rgba(11, 12, 12, 0.08)) 0 29px / 65% 2px no-repeat;
}

.proof-notes {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 11px;
  border-left: 1px solid var(--line);
  background: #070909;
  padding: 22px;
}

.notes-heading,
.brief-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.notes-heading > span,
.brief-heading button {
  color: var(--accent);
  text-transform: none;
}

.demo-empty {
  border: 1px dashed var(--line-strong);
  padding: 18px;
}

.demo-empty strong {
  font-size: 14px;
}

.demo-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.demo-note-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  padding: 16px;
}

.demo-note-form label {
  color: #d9dbda;
  font-size: 13px;
  line-height: 1.45;
}

.demo-note-form label strong {
  color: var(--ink);
}

.demo-note-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #030404;
  color: var(--ink);
  padding: 11px 12px;
  font: 12px/1.55 "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

.demo-note-form textarea::placeholder {
  color: var(--dim);
}

.demo-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.demo-cancel,
.demo-submit,
.brief-heading button {
  min-height: 36px;
  border-radius: 3px;
  padding: 0 12px;
  font: 750 11px/1 "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  cursor: pointer;
}

.demo-cancel {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
}

.demo-submit {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.demo-notes-list {
  display: grid;
  gap: 10px;
}

.proof-note {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.proof-note:hover {
  border-color: var(--line-strong);
  background: #111414;
}

.proof-note b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
}

.proof-note-copy {
  display: block;
  min-width: 0;
}

.proof-note-copy strong {
  display: block;
  margin-bottom: 5px;
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px;
  text-transform: uppercase;
}

.proof-note-text {
  display: block;
  color: #d7d9d7;
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.brief-heading {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.brief-heading button {
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 0;
}

.brief-heading button:disabled {
  color: var(--dim);
  cursor: not-allowed;
}

.proof-notes pre {
  min-height: 170px;
  max-height: 340px;
  flex: 1 1 170px;
  overflow: auto;
  margin-bottom: 0;
  border: 1px solid var(--line);
  background: #030404;
  color: #d3d6d4;
  padding: 17px;
  font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.section-shell h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1;
}

.context-value {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(44px, 8vw, 112px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(76px, 8vw, 112px) 0;
}

.anchor-alias {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.context-value-heading .section-kicker {
  margin: 0 0 20px;
}

.context-value-heading h2 {
  margin-bottom: 0;
}

.context-value-copy {
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(32px, 5vw, 72px);
}

.context-value-copy > p {
  margin: 0;
  color: #c8cbca;
  font-size: clamp(19px, 2vw, 27px);
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.context-value-copy > p + p {
  margin-top: 28px;
  color: var(--ink);
  font-weight: 700;
}

.context-points {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(12px, 2vw, 24px);
}

.context-points article {
  border-top: 1px solid var(--line-strong);
  padding: 28px clamp(20px, 3.5vw, 46px) 0 0;
}

.context-points article + article {
  border-left: 1px solid var(--line);
  padding-left: clamp(20px, 3.5vw, 46px);
}

.context-points h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.context-points p {
  max-width: 31ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.product-boundary {
  border-bottom: 1px solid var(--line);
  padding: clamp(34px, 4vw, 54px) 0;
}

.product-boundary p {
  max-width: 900px;
  margin: 0 auto;
  color: #c8cbca;
  font-size: clamp(18px, 2.2vw, 27px);
  letter-spacing: -0.025em;
  line-height: 1.4;
  text-align: center;
}

.closing {
  display: grid;
  place-items: center;
  padding: clamp(78px, 9vw, 126px) 0;
  text-align: center;
}

.closing h2 {
  max-width: 790px;
  margin-bottom: 32px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: clamp(30px, 5vw, 72px);
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
}

.footer-product {
  display: grid;
  gap: 18px;
}

.footer-product nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer > p {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.cappslock-product-mark {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 8px;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  padding: 36px 32px 34px;
  color: rgba(247, 245, 237, 0.72);
  background: #090908;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cappslock-product-mark > span {
  font-size: 13px;
}

.cappslock-product-mark strong {
  color: #f7f5ed;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.cappslock-product-mark strong span {
  color: #0b75ff;
}

.cappslock-product-mark small {
  grid-column: 1 / -1;
  justify-self: end;
  font-size: 13px;
}

.cappslock-product-mark:focus-visible {
  outline: 3px solid #f59e0a;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 74px;
  }

  .proof-toolbar {
    grid-template-columns: 1fr auto;
  }

  .proof-mode,
  .proof-saved {
    display: none;
  }

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

  .proof-notes {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .proof-notes pre {
    min-height: 180px;
    max-height: none;
    flex: 0 0 auto;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p {
    grid-row: 2;
    margin-bottom: 0;
  }

  .site-footer .cappslock-product-mark {
    grid-row: 1 / span 2;
    grid-column: 2;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 18px;
  }

  .site-header {
    min-height: 64px;
  }

  .wordmark span {
    font-size: 14px;
  }

  .wordmark strong {
    font-size: 17px;
  }

  .wordmark small {
    font-size: 12px;
  }

  .site-header .button {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .hero {
    padding: 58px 0 82px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(44px, 13.8vw, 62px);
    letter-spacing: -0.07em;
  }

  .hero-copy > p:first-of-type {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
  }

  .text-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 0 18px;
  }

  .workflow-proof {
    margin-top: 48px;
    border-radius: 7px;
  }

  .proof-toolbar {
    min-height: 52px;
    padding-inline: 14px;
  }

  .proof-page {
    min-height: 450px;
    padding: 22px;
  }

  .sample-nav {
    gap: 14px;
    font-size: 9px;
  }

  .sample-nav span:last-child {
    display: none;
  }

  .sample-hero {
    min-height: 270px;
    grid-template-columns: 1fr;
  }

  .sample-hero h2 {
    font-size: 38px;
  }

  .demo-target-copy {
    min-height: 44px;
  }

  .sample-button.demo-target {
    min-height: 44px;
  }

  .sample-art {
    display: none;
  }

  .proof-notes {
    padding: 18px;
  }

  .context-value {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 76px 0;
  }

  .context-value-copy {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
    padding-top: 36px;
    padding-left: 0;
  }

  .context-value-copy > p {
    font-size: 21px;
  }

  .context-points {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 4px;
  }

  .context-points article {
    padding: 26px 4px 0;
  }

  .context-points article + article {
    border-left: 0;
    padding-left: 4px;
  }

  .product-boundary p {
    font-size: 18px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
  }

  .site-footer > p,
  .site-footer .cappslock-product-mark {
    grid-row: auto;
    grid-column: auto;
  }

  .site-footer > p {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
