/* WeKoded site
   Colours come from the logo: ink #0f1316 and green #74b82c. Fonts match
   docs.wekoded.com so the two sites read as one brand. */

:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --panel: #eceee6;
  --ink: #0f1316;
  --muted: #555c61;
  --line: #dcdfd6;
  --brand: #74b82c;
  --brand-strong: #3d7a12;   /* green for text and links on light ground */
  --brand-soft: #e6f2d8;
  --on-brand: #0f1316;
  --shadow: 0 1px 2px rgb(15 19 22 / 0.06), 0 12px 32px -12px rgb(15 19 22 / 0.18);
  --ok: #1d7a4b;
  --error: #b42318;

  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --section: clamp(80px, 11vw, 148px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e10;
    --surface: #12171a;
    --panel: #171d20;
    --ink: #eceee8;
    --muted: #a0a7ac;
    --line: #253034;
    --brand: #84c43c;
    --brand-strong: #9fd862;
    --brand-soft: #1c2a12;
    --on-brand: #0b0e10;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.7);
    --ok: #4cc38a;
    --error: #ff8a7a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e10;
  --surface: #12171a;
  --panel: #171d20;
  --ink: #eceee8;
  --muted: #a0a7ac;
  --line: #253034;
  --brand: #84c43c;
  --brand-strong: #9fd862;
  --brand-soft: #1c2a12;
  --on-brand: #0b0e10;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -16px rgb(0 0 0 / 0.7);
  --ok: #4cc38a;
  --error: #ff8a7a;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:not([class]) { color: var(--brand-strong); text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--page) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--panel { background: var(--panel); }
.section-head { display: grid; gap: 18px; max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }

/* The slash eyebrow mirrors the logo's "THEME / APP / CUSTOM SOLUTIONS" line. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.6em; align-items: center;
}
.eyebrow b { color: var(--brand-strong); font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-line: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid var(--btn-line); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--brand { --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-line: var(--brand); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-line: var(--line); }
.btn--ghost:hover { --btn-line: var(--ink); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font: 500 0.8125rem/1.4 var(--font-body); color: var(--muted);
}
.chip--brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; flex-shrink: 0; }
.logo img { height: 28px; width: auto; }
.logo .logo--dark { display: none; }
:root[data-theme="dark"] .logo .logo--light { display: none; }
:root[data-theme="dark"] .logo .logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo--light { display: none; }
  :root:not([data-theme="light"]) .logo .logo--dark { display: block; }
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--panel); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.menu-toggle { display: none; }
.header-cta { min-height: 44px; padding: 10px 18px; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 1.125rem; border-radius: var(--radius-sm); }
  .header-actions { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); } }
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__copy h1 em { font-style: normal; color: var(--brand-strong); }
.hero__lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 54ch; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* The logo's K chevron, drawn large behind the preset switcher. */
.chevron {
  position: absolute; z-index: 0; pointer-events: none;
  width: min(62vw, 720px); aspect-ratio: 0.72;
  right: max(-14vw, -180px); top: 50%; transform: translateY(-50%);
  background: var(--brand);
  clip-path: polygon(38% 0, 100% 0, 52% 50%, 100% 100%, 38% 100%, 0 50%);
  opacity: 0.16;
}
@media (max-width: 999px) { .chevron { top: auto; bottom: -10%; transform: none; width: 90vw; right: -40vw; } }

/* ---------- preset switcher ---------- */
.showcase { position: relative; z-index: 1; display: grid; gap: 18px; }
.showcase__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
/* On phones the five tabs stay on one row and swipe sideways. */
@media (max-width: 559px) {
  .showcase__tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
  }
  .showcase__tabs::-webkit-scrollbar { display: none; }
  .showcase__tab { flex-shrink: 0; scroll-snap-align: start; }
}
.showcase__tab {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0;
  padding: 8px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 0.9375rem/1.3 var(--font-body); cursor: pointer; text-align: left;
}
.showcase__tab small { font-weight: 500; font-size: 0.75rem; color: var(--muted); }
.showcase__tab[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.showcase__tab[aria-selected="true"] small { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.showcase__stage { position: relative; padding-bottom: 7%; padding-right: 9%; }
.browser {
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.browser__bar {
  display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--panel);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser__url {
  flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; padding: 0 10px;
  border-radius: 6px; background: var(--surface);
  font: 0.75rem/1 var(--font-mono); color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__view { position: relative; aspect-ratio: 16 / 10; background: var(--panel); }
.browser__view img, .phone img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity 0.45s ease;
}
.browser__view img.is-active, .phone img.is-active { opacity: 1; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 24%; min-width: 110px;
  aspect-ratio: 390 / 694; border-radius: 22px; overflow: hidden;
  border: 6px solid var(--ink); background: var(--panel); box-shadow: var(--shadow);
}
.showcase__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; min-height: 3.2em; }
.showcase__caption strong { font-family: var(--font-head); font-size: 1.125rem; }
.showcase__caption span { color: var(--muted); }

/* ---------- what we do ---------- */
.pillars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pillar {
  display: grid; gap: 14px; align-content: start;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.pillar__mark { font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-strong); }
.pillar p { color: var(--muted); }
.pillar .status { margin-top: 4px; justify-self: start; }

/* ---------- numbers ---------- */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.figure { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.figure b { font: 700 clamp(2.25rem, 4.5vw, 3.25rem)/1 var(--font-head); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.figure span { color: var(--muted); font-size: 0.9375rem; }

/* ---------- feature cards with screenshots ---------- */
.shots { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shot { display: grid; gap: 14px; align-content: start; }
.shot__img {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); aspect-ratio: 4 / 3;
}
.shot__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.shot:hover .shot__img img { transform: scale(1.025); }
.shot__meta { display: grid; gap: 6px; }
.shot__meta p { color: var(--muted); font-size: 0.975rem; }
.shot__preset { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- help band ---------- */
.help { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.help-card {
  display: grid; gap: 12px; align-content: start; padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.help-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.help-card p { color: var(--muted); }
.help-card .go { margin-top: 8px; font-weight: 600; color: var(--brand-strong); display: inline-flex; gap: 8px; align-items: center; }
.help-card--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.help-card--dark p { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.help-card--dark .go { color: var(--brand); }

/* ---------- theme page ---------- */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; gap: 28px; position: relative; z-index: 1; }
.page-hero p.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--ink);
}
.notice code {
  font-family: var(--font-mono); font-size: 0.9375rem; padding: 3px 8px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line);
}
.copy-btn {
  border: 0; background: none; color: var(--brand-strong); font: 600 0.9375rem var(--font-body);
  cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px;
}

.preset { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .preset { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .preset:nth-of-type(even) .preset__media { order: 2; }
}
.preset__media { position: relative; padding-right: 12%; padding-bottom: 8%; }
.preset__media .browser__view { aspect-ratio: 800 / 998; }
.preset__media .browser__view img { opacity: 1; }
.preset__media .phone { width: 28%; }
.preset__media .phone img { opacity: 1; }
.preset__body { display: grid; gap: 20px; align-content: start; }
.preset__body .tagline { font-size: 1.1875rem; color: var(--muted); }
.preset__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.preset__highlights { display: grid; gap: 14px; margin: 4px 0 8px; padding: 0; list-style: none; }
.preset__highlights li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.preset__highlights li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--brand);
}
.preset__highlights strong { font-weight: 600; }
.preset__highlights span { color: var(--muted); font-size: 0.9375rem; }

/* Open the demo, with that store's password right beside it. */
.demo-access { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.demo-pass {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; color: var(--muted);
}
.demo-pass code {
  font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink);
  padding: 4px 8px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line);
}

.feature-groups { display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.feature-group { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.feature-group h3 { font-size: 1.0625rem; }
.feature-group p { color: var(--muted); font-size: 0.975rem; }

.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: minmax(130px, 0.4fr) minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }

.two-col { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }

/* ---------- support / form ---------- */
.support-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 960px) { .support-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); } }
.form-card { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; align-items: start; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: 0.9375rem; }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.field .req { color: var(--brand-strong); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 170px; resize: vertical; }
.select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, var(--bg)); }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.875rem; display: none; }
.field.is-invalid .field__error { display: block; }

.dropzone {
  position: relative; display: grid; gap: 6px; justify-items: center; text-align: center;
  padding: 26px 18px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--muted); cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone strong { color: var(--ink); }
.dropzone svg { width: 28px; height: 28px; color: var(--brand-strong); }
.file-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.file-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px;
  border-radius: var(--radius-sm); background: var(--panel); font-size: 0.875rem;
}
.file-list li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.form-status { display: none; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.is-ok { display: block; background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.form-status.is-error { display: block; background: color-mix(in srgb, var(--error) 12%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--error) 40%, transparent); }
.form-note { font-size: 0.875rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aside { display: grid; gap: 24px; }
.aside-block { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.aside-block ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; color: var(--muted); }
.aside-block .links { list-style: none; padding: 0; }
.aside-block .links a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.aside-block .links li:last-child a { border-bottom: 0; }
.aside-block .links a:hover { color: var(--brand-strong); }

/* ---------- prose pages ---------- */
.prose { max-width: 720px; display: grid; gap: 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 18px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 320px; }
.footer-brand p { color: var(--muted); font-size: 0.9375rem; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h2 { font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-col a { text-decoration: none; color: var(--ink); }
.footer-col a:hover { color: var(--brand-strong); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }

/* ---------- entrance motion (content is visible without it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise:nth-child(2) { animation-delay: 0.06s; }
  .rise:nth-child(3) { animation-delay: 0.12s; }
  .rise:nth-child(4) { animation-delay: 0.18s; }
  .rise:nth-child(5) { animation-delay: 0.24s; }
  @keyframes rise { from { transform: translateY(14px); opacity: 0.001; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
