@font-face {
  font-family: "Bricolage Grotesque";
  src: url("./assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #202735;
  --soft: #535969;
  --paper: #fffdf5;
  --yellow: #ffdf58;
  --coral: #ff8b7b;
  --blue: #acd9fa;
  --green: #c9ed97;
  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
:focus-visible {
  outline: 3px solid #1645a8;
  outline-offset: 5px;
}
::selection {
  background: var(--yellow);
  color: var(--ink);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 3.7vw, 49px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.05em;
}
code {
  font-family: var(--mono);
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 10;
  padding: 14px;
  background: var(--yellow);
  border: 2px solid;
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}
.site-header,
main,
.site-footer {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 2px solid;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  line-height: 0.98;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.brand strong {
  font-weight: 800;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid;
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font: 800 19px var(--mono);
  transform: rotate(-7deg);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}
.site-header nav > a:not(.button) {
  text-decoration: none;
}
.site-header nav > a:not(.button):hover,
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 17px 22px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--ink);
  background: white;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.button.primary {
  background: var(--yellow);
}
.button.small {
  padding: 11px 16px;
  font-size: 14px;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 82px 0 86px;
}
.hero-copy {
  animation: enter 0.5s ease-out both;
}
.eyebrow {
  margin-bottom: 25px;
  font: 700 11px / 1.5 var(--mono);
  letter-spacing: 0.09em;
}
.eyebrow-flower {
  display: inline-block;
  margin-right: 7px;
  color: #a83329;
  font-size: 21px;
  vertical-align: middle;
}
h1 {
  margin-bottom: 28px;
  font-size: clamp(50px, 5.7vw, 79px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.065em;
}
.highlight {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.highlight::before {
  content: "";
  position: absolute;
  inset: 55% -7px -4px;
  z-index: -1;
  background: var(--coral);
  transform: rotate(-2deg);
  border-radius: 4px;
}
.hero-summary {
  max-width: 420px;
  margin-bottom: 30px;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.text-link {
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 5px;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 34px;
  font-size: 12px;
  font-weight: 600;
}
:where(.hero-notes) span span {
  margin-right: 3px;
}
.demo {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 2px solid;
  border-radius: 19px;
  box-shadow: 8px 8px 0 var(--ink);
  background: white;
  animation: enter 0.5s 0.12s ease-out both;
}
.demo::before {
  content: "";
  position: absolute;
  top: -17px;
  left: calc(50% - 40px);
  width: 80px;
  height: 31px;
  background: #ffdf58d9;
  transform: rotate(-6deg);
}
.demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 22px;
}
.demo h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.live-label {
  font: 700 9px var(--mono);
  padding: 6px 9px;
  background: var(--green);
  border: 1px solid;
  border-radius: 20px;
  white-space: nowrap;
}
.demo-recipes {
  min-width: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.demo-recipes button {
  padding: 9px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.demo-recipes button[aria-pressed="true"] {
  background: var(--blue);
  box-shadow: 2px 2px 0 var(--ink);
}
.demo-recipes button:hover {
  background: #e7f4ff;
}
.code-block {
  min-width: 0;
  padding: 15px;
  border: 1.5px solid;
  border-radius: 10px;
}
.rules-block {
  background: #fff8dc;
}
.regex-block {
  background: var(--ink);
  color: #fffdf5;
  border-color: var(--ink);
}
.code-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 700 9px / 1.4 var(--mono);
  letter-spacing: 0.04em;
}
.code-label button {
  min-height: 30px;
  padding: 5px 8px;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 5px;
  font: 600 10px var(--display);
}
.code-label button:hover {
  text-decoration: underline;
}
.code-block pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 13px / 1.75 var(--mono);
}
.regex-block pre {
  color: var(--yellow);
  font-size: 16px;
}
.connector {
  padding: 12px 0;
  text-align: center;
  color: var(--soft);
  font: 500 10px var(--mono);
}
.sample-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 0;
  font-size: 12px;
  font-weight: 700;
}
.sample-chips > span {
  padding: 5px 9px;
  background: #e6f4d5;
  color: #2d5726;
  border-radius: 5px;
}
.sample-chips .no-match {
  background: #ffe9e2;
  color: #8b3027;
}
.try-sample label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}
.try-sample > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.try-sample input {
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  background: #f7f8fa;
  color: var(--ink);
  border: 1.5px solid;
  border-radius: 7px;
  font: 13px var(--mono);
}
.try-sample output {
  flex: none;
  min-width: 82px;
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
}
.try-sample output[data-match="true"] {
  color: #2d5726;
}
.try-sample output[data-match="false"],
.try-sample output[data-match="invalid"] {
  color: #8b3027;
}
#demo-limits {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.5;
}
#demo-note {
  margin: 10px 0 12px;
  min-height: 30px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.5;
}
.demo-open {
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 3px;
}
.ticker {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 12px 20px;
  padding: 20px 12px;
  background: var(--yellow);
  border-block: 2px solid;
  font-size: 13px;
  font-weight: 700;
  transform: rotate(-1deg);
}
.ticker b {
  margin-left: 18px;
}
.section {
  padding-block: 90px;
}
.section-heading {
  margin-bottom: 36px;
}
.section-heading .eyebrow {
  margin-bottom: 14px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.step {
  position: relative;
  padding: 30px;
  border: 2px solid;
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
.peach {
  background: #ffe3d9;
}
.blue {
  background: #d9edff;
}
.green {
  background: #e6f2d4;
}
.step-icon {
  display: block;
  margin-bottom: 24px;
  font-size: 34px;
}
.step-number {
  margin-bottom: 10px;
  font: 700 10px var(--mono);
}
h3 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.step > p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.step code {
  font-size: 12px;
}
.recipes-section {
  padding-top: 0;
}
.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}
.split h2 {
  margin: 0;
}
.split > p {
  margin: 0 0 6px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.6;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.recipe-card {
  position: relative;
  padding: 25px;
  border: 2px solid;
  border-radius: 12px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.recipe-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}
.recipe-card:nth-child(3n + 1) {
  background: #fff5c7;
}
.recipe-card:nth-child(3n + 2) {
  background: #ffe3d9;
}
.recipe-card:nth-child(3n) {
  background: #d9edff;
}
.recipe-card > span:first-child {
  display: block;
  margin-bottom: 24px;
  font-size: 29px;
}
.recipe-card h3 {
  margin-bottom: 13px;
  font-size: 21px;
}
.recipe-card > code {
  display: inline-block;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid;
  border-radius: 5px;
  background: #ffffffa3;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.recipe-card p {
  margin: 12px 0 0;
  max-width: 26ch;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.6;
}
.recipe-arrow {
  position: absolute;
  top: 23px;
  right: 23px;
  font-size: 25px;
}
.workshop-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 50px;
  padding-top: 0;
}
.workshop-copy h2 {
  font-size: clamp(40px, 4.6vw, 65px);
}
.workshop-underline {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 10px;
  text-underline-offset: 0;
  text-decoration-skip-ink: none;
}
.workshop-copy > p:not(.eyebrow) {
  max-width: 350px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.7;
}
.workshop-copy .local-note {
  margin-top: 22px;
  font-size: 11px;
}
.workshop-preview {
  display: block;
  min-width: 0;
  border: 2px solid;
  border-radius: 12px;
  box-shadow: 7px 7px 0 var(--blue);
  background: white;
  text-decoration: none;
  overflow: hidden;
  transform: rotate(1deg);
}
.preview-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 2px solid;
  background: var(--blue);
  font: 700 8px var(--mono);
}
.preview-bar span:first-child {
  letter-spacing: 4px;
}
.workshop-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 470px;
  object-fit: cover;
  object-position: top;
}
.language-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 64px;
  padding-top: 8px;
}
.language-intro > p:not(.eyebrow) {
  max-width: 390px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.7;
}
.language-intro .scope-note {
  margin-top: 25px;
  font-size: 12px !important;
}
.syntax-list {
  min-width: 0;
  padding: 8px 22px;
  border: 2px solid;
  border-radius: 14px;
  background: #fff8dc;
  box-shadow: 5px 5px 0 var(--ink);
}
.syntax-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-block: 18px;
  border-bottom: 1px solid #20273535;
  font-size: 12px;
}
.syntax-list > div:last-child {
  border: 0;
}
.syntax-list code {
  overflow-wrap: anywhere;
}
.syntax-list code:last-child {
  font-weight: 700;
}
.syntax-list span {
  color: var(--soft);
  text-align: center;
}
.closing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 60px 30px;
  background: var(--green);
  border: 2px solid;
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
}
.closing h2 {
  margin-bottom: 24px;
}
.closing-face {
  font: 800 clamp(55px, 7.5vw, 105px) var(--mono);
  transform: rotate(-8deg);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 80px;
  padding: 30px 0;
  border-top: 2px solid;
}
.site-footer p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.6;
}
.site-footer > div {
  display: flex;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
}
.copy-status {
  position: fixed;
  z-index: 5;
  bottom: 20px;
  right: 20px;
  max-width: calc(100% - 40px);
  margin: 0;
  font-size: 13px;
}
.copy-status:not(:empty) {
  padding: 14px 18px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--yellow);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1000px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 35px;
    padding-top: 65px;
  }
  h1 {
    font-size: clamp(43px, 5.7vw, 65px);
  }
  .hero-summary {
    font-size: 17px;
  }
  .hero-actions {
    gap: 18px;
  }
  .hero-actions .button {
    font-size: 14px;
    padding-inline: 16px;
  }
  .demo {
    padding: 18px;
  }
  .demo h2 {
    font-size: 19px;
  }
  .step {
    padding: 24px;
  }
  .language-section {
    gap: 35px;
  }
  .recipe-card {
    padding: 22px;
  }
}
@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(620px, calc(100% - 36px));
  }
  .site-header {
    padding-block: 18px;
  }
  .site-header nav {
    gap: 16px;
  }
  .site-header nav > a:not(.button) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 54px 0 60px;
  }
  h1 {
    font-size: clamp(48px, 9vw, 70px);
  }
  .hero-summary {
    font-size: 18px;
  }
  .hero-notes {
    margin-top: 27px;
  }
  .demo {
    width: 100%;
    padding: 22px;
  }
  .demo h2 {
    font-size: 22px;
  }
  .ticker {
    justify-content: start;
    gap: 12px 18px;
    padding: 18px;
    font-size: 11px;
  }
  .ticker b {
    margin-left: 10px;
  }
  .section {
    padding-block: 60px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step {
    padding: 25px;
  }
  .step-icon {
    float: right;
    margin: 0 0 10px 16px;
  }
  .split {
    display: block;
  }
  .split > p {
    margin-top: 20px;
  }
  .recipes-section,
  .workshop-section {
    padding-top: 0;
  }
  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .recipe-card {
    padding: 18px;
  }
  .recipe-card h3 {
    font-size: 19px;
  }
  .recipe-card > code {
    font-size: 11px;
  }
  .recipe-arrow {
    top: 17px;
    right: 17px;
  }
  .workshop-section,
  .language-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .workshop-copy h2 {
    font-size: 48px;
  }
  .workshop-preview {
    transform: none;
  }
  .language-section {
    padding-top: 0;
  }
  .closing {
    gap: 24px;
    padding: 36px 24px;
  }
  .closing h2 {
    font-size: 30px;
  }
  .closing-face {
    font-size: 45px;
  }
  .closing .button {
    font-size: 13px;
    padding: 13px 15px;
  }
  .site-footer {
    flex-wrap: wrap;
    margin-top: 60px;
    gap: 24px;
  }
  .site-footer p {
    order: 3;
    width: 100%;
  }
}
@media (max-width: 400px) {
  .brand {
    font-size: 15px;
    gap: 9px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .button.small {
    padding: 10px 12px;
    font-size: 12px;
  }
  h1 {
    font-size: 43px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-actions {
    gap: 22px;
  }
  .demo {
    padding: 16px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .demo h2 {
    font-size: 19px;
  }
  .live-label {
    font-size: 8px;
    padding: 5px 6px;
  }
  .demo-recipes {
    min-width: 0;
    padding: 0;
    border: 0;
    gap: 6px;
  }
  .demo-recipes button {
    padding: 9px 8px;
    font-size: 11px;
  }
  .code-block {
    padding: 12px;
  }
  .regex-block pre {
    font-size: 14px;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .closing {
    flex-direction: column;
    align-items: start;
    gap: 24px;
  }
  .closing-face {
    font-size: 55px;
  }
  .syntax-list {
    padding-inline: 15px;
  }
  .syntax-list > div {
    font-size: 10px;
    gap: 8px;
    grid-template-columns: minmax(0, 1.1fr) 16px minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

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