/* ==========================================================================
   247999.xyz design system
   Tokens, base styles, shared components, and public page layouts.
   Loaded on every page. Product surfaces add assets/css/app.css.
   Palette: refined lime, near-black charcoal, warm off-white.
   ========================================================================== */

:root {
  /* Charcoal */
  --ink: #16191a;
  --ink-soft: #23272a;
  --ink-raised: #2d3235;
  --ink-muted: #5b6367;
  --ink-faint: #868e91;

  /* Lime */
  --lime: #c9ef53;
  --lime-strong: #b6e131;
  --lime-deep: #7d9c1c;
  --lime-wash: #eef7d6;
  --lime-tint: #f6fbe8;

  /* Warm neutrals */
  --paper: #f7f5ee;
  --surface: #fffdf8;
  --surface-muted: #f1efe6;
  --line: #e3dfd2;
  --line-strong: #cfc9b8;

  /* On dark surfaces */
  --on-ink: #f4f2ea;
  --on-ink-muted: #b6bbb8;
  --line-on-ink: rgba(255, 255, 255, 0.14);
  --surface-on-ink: rgba(255, 255, 255, 0.045);

  /*
   * Semantic aliases. Light mode keeps the original charcoal values; the dark
   * theme overrides these instead of the raw palette so that ink panels stay
   * dark and text on lime stays dark in both themes.
   */
  --ink-panel: #16191a;
  --ink-on-lime: #16191a;
  --header-bg: rgba(247, 245, 238, 0.92);
  --primary-bg: #16191a;
  --primary-bg-hover: #23272a;
  --primary-fg: #f4f2ea;
  --nav-active-bg: #16191a;
  --nav-active-fg: #f4f2ea;
  --toggle-knob: #fffdf8;
  --danger-wash-hover: #f7ddd6;

  /* Status */
  --danger: #a4341f;
  --danger-wash: #fbe9e4;
  --danger-line: #ecc7bb;
  --warning: #7a5312;
  --warning-wash: #fbf1dc;
  --warning-line: #ecd9ac;
  --success: #35692a;
  --success-wash: #eaf4e2;
  --success-line: #cfe3c1;
  --info: #3c4a52;
  --info-wash: #edf0f1;
  --info-line: #d8dedf;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;
  --space-11: 96px;

  /* Shape and depth */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(22, 25, 26, 0.05);
  --shadow-sm: 0 1px 2px rgba(22, 25, 26, 0.05), 0 6px 16px rgba(22, 25, 26, 0.05);
  --shadow-md: 0 1px 2px rgba(22, 25, 26, 0.06), 0 14px 34px rgba(22, 25, 26, 0.09);

  --container: 1120px;
  --container-narrow: 720px;
  --header-height: 62px;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/*
 * Several components set an explicit `display` (.result-box, .notice,
 * .state-block, .badge, .btn), which outranks the user-agent [hidden] rule.
 * Result panels, empty states, and lockout blocks rely on the attribute, so
 * it needs one explicit override for the whole application.
 */
[hidden] {
  display: none !important;
}

/*
 * Lime surfaces stay bright in both themes, so their whole subtree keeps the
 * light palette. Re-declaring the tokens here means every existing rule inside
 * the hero, lime page head, and review banner renders exactly as it does in
 * light mode, including dark primary buttons and the product mockup.
 */
.hero,
.page-head--lime,
.review-banner {
  --ink: #16191a;
  --ink-soft: #23272a;
  --ink-muted: #5b6367;
  --ink-faint: #868e91;
  --surface: #fffdf8;
  --surface-muted: #f1efe6;
  --line: #e3dfd2;
  --line-strong: #cfc9b8;
  --on-ink: #f4f2ea;
  --primary-bg: #16191a;
  --primary-bg-hover: #23272a;
  --primary-fg: #f4f2ea;
  --lime-tint: #f6fbe8;
  --lime-wash: #eef7d6;
  --lime-deep: #7d9c1c;
  --toggle-knob: #fffdf8;
}

body.is-nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 19px;
}

h4 {
  font-size: 16px;
}

p {
  margin: 0;
}

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

a:not([class]) {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

a:not([class]):hover {
  text-decoration-color: currentColor;
}

img,
svg {
  max-width: 100%;
}

svg {
  display: block;
}

hr {
  height: 1px;
  margin: var(--space-7) 0;
  border: 0;
  background: var(--line);
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.on-ink :focus-visible,
.site-footer :focus-visible,
.app-sidebar :focus-visible {
  outline-color: var(--lime);
}

::selection {
  background: var(--lime);
  color: var(--ink-on-lime);
}

/* ---------------------------------------------------------------- layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: 1320px;
}

.section {
  padding: var(--space-10) 0;
}

.section--tight {
  padding: var(--space-8) 0;
}

.section--paper {
  background: var(--paper);
}

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

.section--ink {
  background: var(--ink-panel);
  color: var(--on-ink);
}

.section--ink h2,
.section--ink h3 {
  color: var(--on-ink);
}

.section--ink p,
.section--ink .muted {
  color: var(--on-ink-muted);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.section-head p {
  margin-top: var(--space-3);
  color: var(--ink-muted);
}

.lede {
  font-size: 18px;
  color: var(--ink-muted);
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack--tight {
  gap: var(--space-2);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

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

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

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

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

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 60;
  padding: var(--space-3) var(--space-4);
  background: var(--ink-panel);
  color: var(--on-ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-200%);
}

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

/* ------------------------------------------------------------ typography */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lime-deep);
}

.section--ink .eyebrow,
.on-ink .eyebrow {
  color: var(--lime);
}

.prose {
  max-width: 68ch;
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2 {
  margin-top: var(--space-8);
  font-size: 22px;
}

.prose h3 {
  margin-top: var(--space-7);
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: var(--space-5);
}

.prose li + li {
  margin-top: var(--space-2);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-color: var(--ink);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--surface-muted);
}

.btn--primary {
  background: var(--primary-bg);
  border-color: var(--primary-bg);
  color: var(--primary-fg);
}

.btn--primary:hover {
  background: var(--primary-bg-hover);
  border-color: var(--primary-bg-hover);
}

.btn--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink-on-lime);
}

.btn--lime:hover {
  background: var(--lime-strong);
  border-color: var(--lime-strong);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--surface-muted);
  border-color: var(--ink-faint);
}

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--ink-muted);
  padding: 0 var(--space-3);
}

.btn--quiet:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.btn--danger {
  background: var(--danger-wash);
  border-color: var(--danger-line);
  color: var(--danger);
}

.btn--danger:hover {
  background: var(--danger-wash-hover);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 36px;
  padding: 0 var(--space-4);
  font-size: 14px;
}

.btn--icon {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.section--ink .btn--outline,
.on-ink .btn--outline {
  border-color: var(--line-on-ink);
  color: var(--on-ink);
}

.section--ink .btn--outline:hover,
.on-ink .btn--outline:hover {
  background: var(--surface-on-ink);
  border-color: var(--on-ink-muted);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn-row--center {
  justify-content: center;
}

/* ----------------------------------------------------------- surfaces */

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.card--flat {
  box-shadow: none;
}

.card--lime {
  background: var(--lime-tint);
  border-color: var(--lime-wash);
}

.card h3 {
  font-size: 17px;
}

.card p {
  color: var(--ink-muted);
  font-size: 15px;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-2);
  background: var(--lime-tint);
  border: 1px solid var(--lime-wash);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.card__link {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.card:hover .card__link {
  color: var(--lime-deep);
}

.panel {
  min-width: 0;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.panel--inset {
  background: var(--surface-muted);
  box-shadow: none;
}

.panel--ink {
  background: var(--ink-panel);
  border-color: var(--ink-panel);
  color: var(--on-ink);
}

.panel--ink h2,
.panel--ink h3 {
  color: var(--on-ink);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.panel__head h2,
.panel__head h3 {
  font-size: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px var(--space-3);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.badge--lime {
  background: var(--lime-tint);
  border-color: var(--lime-wash);
  color: var(--lime-deep);
}

.badge--ink {
  background: var(--ink-panel);
  border-color: var(--ink-panel);
  color: var(--on-ink);
}

.badge--danger {
  background: var(--danger-wash);
  border-color: var(--danger-line);
  color: var(--danger);
}

.badge--success {
  background: var(--success-wash);
  border-color: var(--success-line);
  color: var(--success);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--ink-muted);
}

.chip svg {
  color: var(--lime-deep);
}

.divider {
  height: 1px;
  background: var(--line);
}

/* -------------------------------------------------------------- notices */

.notice {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--info-wash);
  border: 1px solid var(--info-line);
  border-radius: var(--radius-sm);
  color: var(--info);
  font-size: 15px;
}

.notice svg {
  flex: none;
  margin-top: 2px;
}

.notice--lime {
  background: var(--lime-tint);
  border-color: var(--lime-wash);
  color: var(--ink-on-lime);
}

.notice--warning {
  background: var(--warning-wash);
  border-color: var(--warning-line);
  color: var(--warning);
}

.notice--danger {
  background: var(--danger-wash);
  border-color: var(--danger-line);
  color: var(--danger);
}

.notice--success {
  background: var(--success-wash);
  border-color: var(--success-line);
  color: var(--success);
}

.notice__body {
  min-width: 0;
}

.notice__body strong {
  display: block;
  margin-bottom: var(--space-1);
}

.notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- forms */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field > label,
.label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field__hint,
.hint {
  font-size: 13px;
  color: var(--ink-muted);
}

.field__error {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 44px;
  padding: 10px var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
}

.textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.select {
  appearance: none;
  padding-right: var(--space-8);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--ink-faint);
}

.input:disabled,
.textarea:disabled,
.select:disabled {
  background: var(--surface-muted);
  color: var(--ink-muted);
  cursor: not-allowed;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] {
  border-color: var(--danger-line);
  background: var(--danger-wash);
}

.input-group {
  display: flex;
  gap: var(--space-2);
}

.input-group .input {
  flex: 1 1 auto;
}

.checkbox,
.radio {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-muted);
}

.checkbox input,
.radio input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--lime-deep);
}

.checkbox strong,
.radio strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.fieldset + .fieldset {
  margin-top: var(--space-8);
}

.fieldset > legend {
  padding: 0;
  margin-bottom: var(--space-4);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.form-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-7);
}

.oauth-row {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 46px;
  padding: 0 var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.oauth-btn:hover {
  background: var(--surface-muted);
  border-color: var(--ink-faint);
}

.separator {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Without JavaScript the navigation stays in the header flow and wraps. */
.site-nav {
  order: 3;
  flex: 1 1 100%;
  padding: var(--space-2) 0 var(--space-3);
  border-top: 1px solid var(--line);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-muted);
}

.nav-list a:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.nav-list a[aria-current="page"] {
  background: var(--nav-active-bg);
  color: var(--nav-active-fg);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-header__actions .btn--quiet {
  display: none;
}

.nav-toggle {
  display: none;
}

/* The toggle only appears when the external script can manage the menu. */
.js .nav-toggle {
  display: inline-flex;
}

.nav-mobile-actions {
  display: none;
}

.js .site-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 39;
  display: none;
  order: 0;
  flex: none;
  overflow-y: auto;
  padding: var(--space-5);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.js .site-nav[data-open="true"] {
  display: block;
}

.js .site-nav .nav-list {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-1);
}

.js .site-nav .nav-list a {
  padding: var(--space-4);
  font-size: 17px;
  border-radius: var(--radius-sm);
}

.js .site-nav .nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: none;
  }

  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav {
    position: static;
    display: flex;
    flex: 1 1 auto;
    order: 2;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
    inset: auto;
  }

  .nav-list,
  .js .site-nav .nav-list {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
  }

  .js .site-nav .nav-list a {
    padding: var(--space-2) var(--space-3);
    font-size: 15px;
  }

  .site-header__actions .btn--quiet {
    display: inline-flex;
  }

  .nav-mobile-actions,
  .js .site-nav .nav-mobile-actions {
    display: none;
  }
}

/* ----------------------------------------------------------- hero / home */

.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-9) 0 var(--space-8);
  background: var(--lime);
  border-bottom: 1px solid var(--lime-strong);
}

.hero__inner {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  align-items: start;
}

.hero__copy {
  max-width: 560px;
}

.hero .eyebrow {
  color: rgba(22, 25, 26, 0.62);
}

.hero h1 {
  margin-top: var(--space-4);
  font-size: 34px;
  line-height: 1.15;
  color: var(--ink-on-lime);
}

.hero__lede {
  margin-top: var(--space-5);
  font-size: 17px;
  color: rgba(22, 25, 26, 0.76);
}

.hero__actions {
  margin-top: var(--space-7);
}

.hero__note {
  margin-top: var(--space-5);
  font-size: 14px;
  color: rgba(22, 25, 26, 0.66);
}

.hero__media {
  min-width: 0;
}

/* Product preview built from real markup rather than a screenshot. */
.preview {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  grid-template-areas: "note" "paste" "image";
}

.preview__note {
  grid-area: note;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.preview__paste {
  grid-area: paste;
  padding: var(--space-5);
  background: var(--ink-panel);
  border: 1px solid var(--ink-panel);
  border-radius: var(--radius-md);
  color: var(--on-ink);
  box-shadow: var(--shadow-sm);
}

.preview__image {
  grid-area: image;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.preview__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.preview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.preview__bar span:last-child {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
}

.preview__title {
  font-size: 17px;
  font-weight: 600;
}

.preview__lines {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.preview__line {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted);
}

.preview__line--80 {
  width: 80%;
}

.preview__line--60 {
  width: 60%;
}

.preview__line--70 {
  width: 70%;
}

.preview__checklist {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.preview__checklist li {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: 14px;
  color: var(--ink-muted);
}

.preview__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink);
}

.preview__check--on {
  background: var(--lime);
  border-color: var(--lime-strong);
}

.preview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.preview__tag {
  padding: 2px var(--space-3);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.preview__code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-ink-muted);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.preview__meta .badge {
  background: var(--surface-on-ink);
  border-color: var(--line-on-ink);
  color: var(--on-ink-muted);
}

.preview__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  background: var(--lime-tint);
  border: 1px solid var(--lime-wash);
  border-radius: var(--radius-sm);
  color: var(--lime-deep);
}

.preview__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--ink-muted);
}

/* Dark product previews invert the surrounding ink surface. */
.preview__paste .preview__title,
.preview__paste .preview__file strong,
.panel--ink .preview__title,
.panel--ink .preview__file strong {
  color: var(--on-ink);
}

.preview__paste .preview__bar span:last-child,
.preview__paste .preview__file,
.panel--ink .preview__bar span:last-child,
.panel--ink .preview__file {
  color: var(--on-ink-muted);
}

.preview__paste .preview__line,
.panel--ink .preview__line {
  background: var(--surface-on-ink);
}

.preview__paste .preview__tag,
.panel--ink .preview__tag {
  background: var(--surface-on-ink);
  border-color: var(--line-on-ink);
  color: var(--on-ink-muted);
}

@media (min-width: 720px) {
  .preview {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "note paste"
      "note image";
  }
}

@media (min-width: 960px) {
  .hero {
    padding: var(--space-10) 0 var(--space-9);
  }

  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-10);
    align-items: center;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero__lede {
    font-size: 18px;
  }
}

/* --------------------------------------------------------- trust points */

.trust {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: var(--lime-tint);
  border: 1px solid var(--lime-wash);
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.trust strong {
  display: block;
  font-weight: 600;
}

.trust span {
  font-size: 14px;
  color: var(--ink-muted);
}

@media (min-width: 720px) {
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust li {
    flex-direction: column;
  }
}

/* ----------------------------------------------------------------- flow */

.flow {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow__step {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.flow__step::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  margin-bottom: var(--space-4);
  padding: 0 var(--space-3);
  background: var(--lime);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-on-lime);
}

/* Template catalogue outline preview. */
.template-outline {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.template-outline h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.template-outline h3 + ul {
  margin-top: var(--space-2);
}

.template-outline ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-outline li {
  font-size: 13px;
}

.template-outline ul + h3 {
  margin-top: var(--space-4);
}

.template-outline code {
  display: inline-block;
  padding: 2px var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--ink-muted);
}

.flow__step h3 {
  margin-bottom: var(--space-2);
}

.flow__step p {
  font-size: 15px;
  color: var(--ink-muted);
}

@media (min-width: 720px) {
  .flow {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----------------------------------------------------------- tool lists */

.tool-list {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li a {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  height: 100%;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.tool-list li a:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.tool-list h3 {
  font-size: 16px;
}

.tool-list p {
  margin-top: var(--space-1);
  font-size: 14px;
  color: var(--ink-muted);
}

/*
 * Cards that sit inside a dark section keep the warm surface palette. Without
 * this reset the section's `--on-ink` heading and link colours land on a
 * near-white card and disappear.
 */
.section--ink .card,
.section--ink .flow__step,
.section--ink .tool-list li a {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.section--ink .card h3,
.section--ink .flow__step h3,
.section--ink .tool-list h3 {
  color: var(--ink);
}

.section--ink .card p,
.section--ink .flow__step p,
.section--ink .tool-list p {
  color: var(--ink-muted);
}

.section--ink .card__link {
  color: var(--ink);
}

.section--ink .tool-list li a:hover {
  border-color: var(--line-strong);
}

@media (min-width: 640px) {
  .tool-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tool-list--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----------------------------------------------------------------- misc */

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.facts li {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: 15px;
  color: var(--ink-muted);
}

.facts svg {
  flex: none;
  color: var(--lime-deep);
}

.section--ink .facts svg {
  color: var(--lime);
}

.cta-band {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-7);
  background: var(--ink-panel);
  border-radius: var(--radius-md);
  color: var(--on-ink);
}

.cta-band h2 {
  color: var(--on-ink);
  font-size: 22px;
}

.cta-band p {
  margin-top: var(--space-2);
  color: var(--on-ink-muted);
}

@media (min-width: 860px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    padding: var(--space-8);
  }
}

/* --------------------------------------------------------------- footer */

.site-footer {
  padding: var(--space-8) 0 var(--space-5);
  background: var(--ink-panel);
  color: var(--on-ink-muted);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: start;
  padding-bottom: var(--space-6);
}

.site-footer .brand {
  color: var(--on-ink);
}

.site-footer .brand__name small {
  color: var(--on-ink-muted);
}

.site-footer p {
  margin-top: var(--space-4);
  max-width: 42ch;
  font-size: 14px;
}

.footer-nav {
  display: grid;
  gap: var(--space-5) var(--space-6);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-nav h3 {
  margin-bottom: var(--space-3);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--on-ink);
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav a {
  font-size: 14px;
  color: var(--on-ink-muted);
}

.footer-nav a:hover {
  color: var(--lime);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-on-ink);
  font-size: 13px;
}

@media (min-width: 560px) {
  /* Product, Tools, and Trust stay on one deliberate row. */
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--space-7);
  }
}

/* ----------------------------------------------------- simple page shell */

.page-head {
  padding: var(--space-9) 0 var(--space-7);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-head--lime {
  background: var(--lime);
  border-bottom-color: var(--lime-strong);
}

.page-head--lime .lede {
  color: rgba(22, 25, 26, 0.74);
}

.page-head--lime h1 {
  color: var(--ink-on-lime);
}

.page-head h1 {
  margin-top: var(--space-3);
}

.page-head .lede {
  margin-top: var(--space-4);
  max-width: 62ch;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-muted);
}

.breadcrumbs a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--ink-faint);
}

/* --------------------------------------------------- authentication shell */

/*
 * Sign-in, registration, password, and vault screens share one split
 * composition: a charcoal privacy panel beside the working card. The panel
 * collapses to a compact band on narrow screens so the form stays high.
 */
.auth-shell {
  min-height: 100vh;
  background: var(--paper);
}

.auth-shell__inner {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--ink-panel);
  color: var(--on-ink);
}

.auth-aside__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.auth-aside .brand {
  color: var(--on-ink);
}

.auth-aside .brand__name small {
  color: var(--on-ink-muted);
}

.auth-aside .eyebrow {
  color: var(--lime);
}

.auth-aside__title {
  margin-top: var(--space-3);
  color: var(--on-ink);
  font-size: 23px;
}

.auth-aside__lede {
  margin-top: var(--space-3);
  max-width: 42ch;
  color: var(--on-ink-muted);
  font-size: 15px;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.auth-points li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.auth-points__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  background: var(--surface-on-ink);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius-sm);
  color: var(--lime);
}

.auth-points strong {
  display: block;
  color: var(--on-ink);
  font-size: 14px;
  font-weight: 600;
}

.auth-points li span span {
  display: block;
  margin-top: 2px;
  color: var(--on-ink-muted);
  font-size: 13px;
}

.auth-aside__foot {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-on-ink);
  color: var(--on-ink-muted);
  font-size: 13px;
}

.auth-shell__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-5) var(--space-9);
}

.auth-shell__flash {
  width: 100%;
  max-width: 460px;
}

.auth-shell__main .center-card--wide + .auth-shell__flash {
  max-width: 620px;
}

@media (max-width: 899px) {
  /* Keep the mobile band short: brand, headline, and one line of context. */
  .auth-points,
  .auth-aside__foot {
    display: none;
  }

  .auth-aside__lede {
    margin-bottom: var(--space-1);
  }
}

@media (min-width: 900px) {
  .auth-shell__inner {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  }

  .auth-aside {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: var(--space-7);
  }

  .auth-shell__main {
    padding: var(--space-9) var(--space-7);
  }
}

.center-card {
  width: 100%;
  max-width: 440px;
  padding: var(--space-7);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.center-card--wide {
  max-width: 620px;
}

.center-card__head {
  margin-bottom: var(--space-6);
}

.center-card__head h1 {
  font-size: 25px;
}

.center-card__head p {
  margin-top: var(--space-3);
  color: var(--ink-muted);
  font-size: 15px;
}

.center-card__foot {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
}

.center-card__foot a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.center-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
}

.center-divider::before,
.center-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.center-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
}

.center-links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.center-links a:hover {
  text-decoration-color: currentColor;
}

/* ------------------------------------------------------------ error page */

.error-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  background: var(--paper);
}

.error-page__code {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-4);
  background: var(--lime);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-on-lime);
}

.error-page h1 {
  font-size: 30px;
}

.error-page p {
  max-width: 46ch;
  color: var(--ink-muted);
}

.error-page__ref {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------- tables */

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.table th {
  background: var(--surface-muted);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.table td {
  color: var(--ink);
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td.wrap {
  white-space: normal;
}

/* ------------------------------------------------------------- utilities */

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.full-width {
  width: 100%;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (min-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section {
    padding: var(--space-11) 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 30px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .panel,
  .card,
  .center-card {
    padding: var(--space-5);
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .btn-row,
  .cta-band {
    display: none !important;
  }

  body {
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ------------------------------------------------------------- dark theme */

/*
 * Dark mode overrides the semantic aliases rather than the raw palette, so ink
 * panels stay dark (--ink-panel) and text on lime stays dark (--ink-on-lime).
 * `views/partials/head.php` sets data-theme before first paint; the media
 * block is the fallback for a visitor whose system prefers dark and whose
 * browser did not run that script. Keep the two token lists in step.
 */
:root[data-theme="dark"] {
  --paper: #0f1211;
  --surface: #171b19;
  --surface-muted: #1f2422;
  --line: #2b312e;
  --line-strong: #3b423f;

  --ink: #f1efe6;
  --ink-soft: #dedbd1;
  --ink-raised: #cfccc2;
  --ink-muted: #a7afab;
  --ink-faint: #828a86;

  --ink-panel: #0b0e0d;
  --ink-on-lime: #16191a;
  --header-bg: rgba(15, 18, 17, 0.92);
  --primary-bg: #c9ef53;
  --primary-bg-hover: #b6e131;
  --primary-fg: #16191a;
  --nav-active-bg: #c9ef53;
  --nav-active-fg: #16191a;
  --toggle-knob: #f7f5ee;
  --danger-wash-hover: #3a1d18;

  --on-ink: #f1efe6;
  --on-ink-muted: #a7afab;
  --line-on-ink: rgba(255, 255, 255, 0.16);
  --surface-on-ink: rgba(255, 255, 255, 0.06);

  --lime-tint: #1b2413;
  --lime-wash: #293716;
  --lime-deep: #c9ef53;

  --danger: #f0a08c;
  --danger-wash: #2a1512;
  --danger-line: #4a2620;
  --warning: #e8c684;
  --warning-wash: #2a2110;
  --warning-line: #4a3c1c;
  --success: #a8d68f;
  --success-wash: #16240f;
  --success-line: #2c4220;
  --info: #c2ccd1;
  --info-wash: #1a1f21;
  --info-line: #2c3437;

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --paper: #0f1211;
    --surface: #171b19;
    --surface-muted: #1f2422;
    --line: #2b312e;
    --line-strong: #3b423f;
    --ink: #f1efe6;
    --ink-soft: #dedbd1;
    --ink-raised: #cfccc2;
    --ink-muted: #a7afab;
    --ink-faint: #828a86;
    --ink-panel: #0b0e0d;
    --header-bg: rgba(15, 18, 17, 0.92);
    --primary-bg: #c9ef53;
    --primary-bg-hover: #b6e131;
    --primary-fg: #16191a;
    --nav-active-bg: #c9ef53;
    --nav-active-fg: #16191a;
    --toggle-knob: #f7f5ee;
    --danger-wash-hover: #3a1d18;
    --on-ink: #f1efe6;
    --on-ink-muted: #a7afab;
    --lime-tint: #1b2413;
    --lime-wash: #293716;
    --lime-deep: #c9ef53;
    --danger: #f0a08c;
    --danger-wash: #2a1512;
    --danger-line: #4a2620;
    --warning: #e8c684;
    --warning-wash: #2a2110;
    --warning-line: #4a3c1c;
    --success: #a8d68f;
    --success-wash: #16240f;
    --success-line: #2c4220;
    --info: #c2ccd1;
    --info-wash: #1a1f21;
    --info-line: #2c3437;
    color-scheme: dark;
  }
}

/* --------------------------------------------------------- theme toggle */

.theme-toggle {
  position: relative;
  flex: none;
}

.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
  display: inline-flex;
}

[data-theme="dark"] .theme-toggle__icon--moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle__icon--sun {
    display: inline-flex;
  }

  :root:not([data-theme]) .theme-toggle__icon--moon {
    display: none;
  }
}

/*
 * The mobile menu already carries the primary call to action, so the header
 * drops its own copy on small screens and keeps the theme control visible.
 */
@media (max-width: 639px) {
  .site-header__actions .btn--primary {
    display: none;
  }
}
