/* Homepage (/homepage/) tokens and components. Hex values live only in this block. */

:root {
  --ink: #121316;
  --ink-2: #2a2d32;
  --ink-3: #3b3f46;
  --muted: #55595f;
  --muted-2: #6b7076;
  --paper: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f0f0ed;
  --line: #e3e3df;

  --accent: #4338ca;
  --accent-dk: #312e9e;
  --accent-lt: #a5b4fc;

  --amber: #b45309;
  --amber-ink: #8a5209;
  --amber-soft: #fdf4e8;
  --green: #15803d;
  --green-ink: #14632f;
  --green-soft: #e9f5ec;

  --dark-bg: #121316;
  --dark-card: #1c1f23;
  --dark-line: #30343a;
  --dark-text: #f6f6f4;
  --dark-sub: #aeb3b9;
  --dark-mute: #8a9099;

  --dark-rule: #272a2f;
  --field-placeholder: #9298a0;
  --code-text: #d7dbe0;
  --code-comment: #7d8590;
  --code-selector: #f0b86e;
  --code-property: #a5b4fc;
  --code-ok: #7ee3c0;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

.codelz-home {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

.codelz-home .c-header {
  background-color: var(--background-primary);
}

/* Site chrome uses the same column as .cz-wrap. */
.codelz-home .c-header .o-grid,
.codelz-home .c-site-footer .o-grid {
  max-width: 1240px;
  padding-inline: 32px;
}

.codelz-home .c-header .o-grid__col,
.codelz-home .c-site-footer .o-grid__col {
  padding-inline: 0;
}

.cz-page h1,
.cz-page h2,
.cz-page h3,
.cz-page p,
.cz-page ul,
.cz-page ol,
.cz-footer p,
.cz-footer ul,
.cz-footer ol,
.cz-palette p,
.cz-palette ul,
.cz-palette ol {
  margin: 0;
  padding: 0;
}

.cz-page h1,
.cz-page h2,
.cz-page h3 {
  font-family: var(--font-display);
  color: var(--ink);
}

.cz-page h1,
.cz-page h2 {
  font-weight: 700;
}

.cz-page h3 {
  font-weight: 600;
}

.cz-page ul,
.cz-page ol,
.cz-footer ul,
.cz-footer ol,
.cz-palette ul,
.cz-palette ol {
  list-style: none;
}

.cz-page img {
  max-width: 100%;
  display: block;
}

.cz-page button,
.cz-page input,
.cz-palette button,
.cz-palette input,
.cz-footer button,
.cz-footer input {
  font: inherit;
  color: inherit;
}

.codelz-home :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.codelz-home [id] {
  scroll-margin-top: 84px;
}

.cz-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cz-skip {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 50;
  transform: translateY(-150%);
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.cz-skip:focus {
  transform: none;
}

.cz-wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 32px;
}

.cz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1;
}

.cz-btn--accent {
  background: var(--accent);
  color: var(--surface);
}

.cz-btn--accent:hover {
  background: var(--accent-dk);
}

.cz-btn--ink {
  height: 46px;
  padding-inline: 18px;
  background: var(--ink);
  color: var(--surface);
  border-radius: 10px;
  font-size: 14px;
}

.cz-btn--light {
  height: 54px;
  padding-inline: 18px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  font-size: 16px;
}

.cz-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.cz-textlink:hover {
  color: var(--accent-dk);
}

.cz-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cz-eyebrow--amber {
  color: var(--amber);
}

.cz-h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.cz-h2 a {
  color: inherit;
  text-decoration: none;
}

.cz-h2 a:hover {
  color: var(--accent);
}

.cz-h2-md {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.cz-h2-sm {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cz-dek {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 54ch;
}

.cz-rowhead,
.cz-bandhead__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
}

.cz-rowhead {
  align-items: center;
  margin-bottom: 24px;
}

.cz-bandhead {
  margin-bottom: 32px;
}

.cz-bandhead .cz-dek {
  margin-top: 10px;
}

.cz-bandhead__row .cz-textlink {
  margin-left: auto;
}

/* Header */

.cz-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.cz-header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.cz-header__spacer {
  flex-grow: 1;
}

.cz-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.cz-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.cz-logo__word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cz-search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 280px;
  flex: 0 0 280px;
  height: 44px;
  padding: 0 12px;
  background: var(--paper);
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.cz-search-trigger__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cz-search-trigger__kbd {
  margin-left: auto;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-3);
}

.cz-header__subscribe {
  height: 44px;
  padding-inline: 18px;
  border-radius: 10px;
  font-size: 14px;
  flex: none;
}

/* Hero */

.cz-hero {
  background: var(--dark-bg);
  color: var(--dark-text);
  padding: 76px 0 72px;
}

.cz-hero h1,
.cz-hero h2 {
  color: var(--dark-text);
}

.cz-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-lt);
}

.cz-hero h1 {
  max-width: 16ch;
  margin-top: 16px;
  font-size: 62px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.cz-hero__lead {
  max-width: 60ch;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark-sub);
}

.cz-hero__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin-top: 32px;
}

.cz-hero__field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
  min-width: 0;
  height: 62px;
  padding-inline: 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  color: var(--dark-mute);
}

.cz-hero__field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input.cz-hero__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: 15px;
  box-shadow: none;
}

input.cz-hero__input:focus,
input.cz-hero__input:focus-visible,
input.cz-palette__input:focus,
input.cz-palette__input:focus-visible {
  outline: none;
}

input.cz-hero__input::placeholder,
input.cz-palette__input::placeholder {
  color: var(--field-placeholder);
}

input.cz-hero__input::-webkit-search-cancel-button,
input.cz-palette__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.cz-hero__submit {
  height: 62px;
  padding-inline: 24px;
  border-radius: 14px;
  font-size: 16px;
}

.cz-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.cz-chips__label {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--dark-mute);
}

.cz-chip-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 13px;
  background: var(--dark-card);
  color: var(--dark-text);
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  cursor: pointer;
}

.cz-chip-btn:hover {
  border-color: var(--dark-mute);
}

.cz-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-rule);
}

.cz-promise {
  flex: 1 1 200px;
  max-width: 280px;
}

.cz-promise__title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.cz-promise__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-mute);
}

/* Stacks */

.cz-stacks {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 44px;
}

.cz-stacks__row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cz-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 150px;
  min-width: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease;
}

.cz-stack:hover {
  border-color: var(--ink);
}

.cz-stack__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.cz-stack__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted-2);
}

/* Featured */

.cz-band--paper {
  background: var(--paper);
  padding: 60px 0;
}

.cz-band--latest {
  padding: 0 0 72px;
}

.cz-band--ruled {
  padding: 68px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cz-band--books {
  padding: 68px 0;
}

.cz-feature__card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 40px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.cz-feature__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 999 1 420px;
  min-width: 0;
}

.cz-triad {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cz-triad__box {
  flex: 1 1 150px;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 12px;
}

.cz-triad__box--symptom {
  background: var(--amber-soft);
}

.cz-triad__box--cause {
  background: var(--surface-2);
}

.cz-triad__box--fix {
  background: var(--green-soft);
}

.cz-triad__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cz-triad__box--symptom .cz-triad__label {
  color: var(--amber-ink);
}

.cz-triad__box--cause .cz-triad__label {
  color: var(--muted);
}

.cz-triad__box--fix .cz-triad__label {
  color: var(--green-ink);
}

.cz-triad__text {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cz-feature__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.cz-feature__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

.cz-feature__visual {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  min-width: 0;
}

.cz-feature__card:has(.cz-feature__media:not([hidden])) {
  align-items: center;
}

.cz-feature__card:has(.cz-feature__media:not([hidden])) .cz-feature__copy {
  flex: 1.05 1 380px;
}

.cz-feature__card:has(.cz-feature__media:not([hidden])) .cz-feature__visual {
  flex: 1.2 1 420px;
  justify-content: center;
}

.cz-feature__card.is-plain .cz-feature__visual {
  display: none;
}

.cz-feature__media {
  flex: none;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 16px;
}

.cz-feature__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cz-code {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 240px;
  padding: 22px;
  background: var(--dark-bg);
  border-radius: 16px;
  overflow: hidden;
}

.cz-code[hidden],
.cz-feature__media[hidden] {
  display: none !important;
}

.cz-code__caption {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--dark-mute);
}

.cz-code pre {
  flex: 1 1 auto;
  margin: 0;
  min-height: 0;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--code-text);
}

.cz-code code {
  font-family: inherit;
  font-size: inherit;
  white-space: pre;
}

.cz-tok--comment {
  color: var(--code-comment);
}

.cz-tok--sel {
  color: var(--code-selector);
}

.cz-tok--prop {
  color: var(--code-property);
}

.cz-tok--ok {
  color: var(--code-ok);
}

/* Latest and sidebar */

.cz-split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.cz-split__main {
  flex: 999 1 560px;
  min-width: 0;
}

.cz-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 300px;
  min-width: 0;
}

.cz-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cz-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cz-chip {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
}

.cz-chip--tag:empty,
.cz-score--tag:empty,
.cz-best--tag:empty,
.cz-book__author--tag:empty,
.cz-book__author--fallback:empty {
  display: none;
}

.cz-card:has(.cz-chip--tag:not(:empty)) .cz-chip--fallback,
.cz-review__top:has(.cz-score--tag:not(:empty)) .cz-score--fallback,
.cz-book__body:has(.cz-score--tag:not(:empty)) .cz-score--fallback,
.cz-review__best:has(.cz-best--tag:not(:empty)) .cz-best--fallback,
.cz-book__body:has(.cz-book__author--tag:not(:empty)) .cz-book__author--fallback {
  display: none;
}

.cz-card__title {
  font-size: 18px;
  line-height: 1.3;
}

.cz-card__title a,
.cz-review__name a,
.cz-book__title a,
.cz-trend__title {
  color: var(--ink);
  text-decoration: none;
}

.cz-card__title a:hover,
.cz-review__name a:hover,
.cz-book__title a:hover,
.cz-trend__title:hover {
  color: var(--accent);
}

.cz-card__dek {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.cz-card__meta,
.cz-trend__meta {
  font-family: var(--font-mono);
  color: var(--muted-2);
}

.cz-card__meta {
  font-size: 12px;
  line-height: 1.5;
}

.cz-side__card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cz-trend {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cz-trend__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cz-trend__rank {
  flex: none;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.2;
  color: var(--muted-2);
}

.cz-trend__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.cz-trend__meta {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
}

.cz-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cz-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13.5px;
  text-decoration: none;
}

.cz-pill__count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.cz-sponsor {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  background: var(--dark-bg);
  border-radius: 16px;
}

.cz-sponsor h2 {
  color: var(--surface);
}

.cz-sponsor__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-mute);
}

.cz-sponsor__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.cz-sponsor__dek {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark-sub);
}

.cz-sponsor .cz-btn--light {
  height: 44px;
  font-size: 14px;
  border-radius: 10px;
}

/* Reviews and books */

.cz-reviews,
.cz-books {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cz-review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 240px;
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cz-review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cz-review__name {
  font-size: 19px;
  line-height: 1.3;
}

.cz-review__dek {
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.cz-review__best {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}

.cz-review__best-label {
  color: var(--green-ink);
  font-weight: 600;
}

.cz-score {
  flex: none;
  align-self: flex-start;
  padding: 4px 8px;
  background: var(--surface-2);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
}

.cz-book {
  display: flex;
  flex: 1 1 280px;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.cz-book__cover {
  position: relative;
  flex: none;
  width: 76px;
  height: 108px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
}

.cz-book__cover--2 {
  background: var(--ink-2);
}

.cz-book__cover--3 {
  background: var(--ink-3);
}

.cz-book__cover img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.cz-book__cover-title {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.cz-book__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.cz-book__title {
  font-size: 17px;
  line-height: 1.3;
}

.cz-book__author {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted-2);
}

.cz-book__dek {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* Newsletter */

.cz-news {
  background: var(--dark-bg);
  padding: 64px 0;
}

.cz-news h2 {
  color: var(--dark-text);
}

.cz-news__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.cz-news__copy {
  flex: 1 1 320px;
  min-width: 0;
}

.cz-news__title {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.cz-news__dek {
  max-width: 46ch;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-sub);
}

.cz-news__form {
  flex: 1 1 420px;
  min-width: 0;
  max-width: 100%;
}

.cz-news__fields {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

input.cz-news__input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 54px;
  margin: 0;
  padding: 0 16px;
  background: var(--dark-card);
  color: var(--dark-text);
  border: 1px solid var(--dark-line);
  border-radius: 12px;
  font-size: 16px;
  box-shadow: none;
}

.cz-news__fields .cz-btn--light {
  flex: none;
  width: auto;
  height: 54px;
  margin: 0;
  padding: 0 18px;
}

input.cz-news__input::placeholder {
  color: var(--field-placeholder);
}

.cz-news__fine {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dark-mute);
}

.cz-news__form .cz-alert {
  display: none;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--accent-lt);
}

.cz-news__form.success .c-alert--success,
.cz-news__form.error .c-alert--error,
.cz-news__form.invalid .c-alert--invalid {
  display: block;
}

.cz-news__form.error .c-alert--error,
.cz-news__form.invalid .c-alert--invalid {
  color: var(--code-selector);
}

/* Footer */

.cz-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.cz-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-top: 52px;
}

.cz-footer__brand {
  flex: 999 1 240px;
  max-width: 360px;
}

.cz-footer__dek {
  max-width: 34ch;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
}

.cz-footer nav {
  flex: 1 1 140px;
}

.cz-footer__heading {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cz-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cz-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-3);
  font-size: 14px;
  text-decoration: none;
}

.cz-footer__link:hover {
  color: var(--ink);
}

.cz-footer__copy {
  margin-top: 32px;
  padding: 16px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* Command palette */

.cz-palette {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 12vh 16px 32px;
  background: color-mix(in srgb, var(--ink) 48%, transparent);
}

.cz-palette[hidden] {
  display: none;
}

.cz-palette__panel {
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(72vh, 640px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.cz-palette__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
}

.cz-palette__bar:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

input.cz-palette__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  box-shadow: none;
}

.cz-palette__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.cz-palette__results {
  overflow: auto;
  padding: 8px;
}

.cz-palette__group-label {
  padding: 8px 12px 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.cz-palette__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
}

.cz-palette__row.is-active,
.cz-palette__row:hover {
  background: var(--surface-2);
}

.cz-palette__error {
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
}

.cz-palette__stack {
  flex: none;
  font-size: 13px;
  color: var(--muted-2);
}

.cz-palette__empty {
  padding: 16px 12px;
  font-size: 14px;
  color: var(--muted);
}

body.cz-lock {
  overflow: hidden;
}

@media (max-width: 900px) {
  .cz-hero {
    padding: 48px 0;
  }

  .cz-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 760px) {
  .cz-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .cz-wrap,
  .codelz-home .c-header .o-grid,
  .codelz-home .c-site-footer .o-grid {
    padding-inline: 24px;
  }

  .cz-hero__form {
    flex-direction: column;
    align-items: stretch;
  }

  .cz-hero__field,
  .cz-hero__submit {
    width: 100%;
  }

  .cz-news__fields {
    flex-direction: column;
    align-items: stretch;
  }

  .cz-news__fields .cz-btn--light {
    width: 100%;
  }

  .cz-search-trigger {
    width: 44px;
    flex-basis: 44px;
    justify-content: center;
    padding: 0;
  }

  .cz-search-trigger__label,
  .cz-search-trigger__kbd {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .codelz-home *,
  .codelz-home *::before,
  .codelz-home *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
