/*
 * blokcms.app, in the admin's "Studio" look: light warm neutrals, ink text, a vermilion accent,
 * Geist for display and Instrument Sans for text, and the content-type colors as accents.
 * Values come from apps/admin/src/styles.css; fonts are self-hosted (OFL, see /fonts).
 */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: oklch(98.6% 0.003 75);
  --paper-tint: oklch(95.6% 0.005 70);
  --surface: oklch(100% 0 0);
  --line: oklch(92.4% 0.006 70);
  --line-strong: oklch(86.5% 0.008 68);
  --text: oklch(21.5% 0.008 58);
  --text-muted: oklch(45.5% 0.012 62);
  --text-faint: oklch(53% 0.012 65);
  --ink: oklch(21.5% 0.008 58);
  --on-ink: oklch(95% 0.005 80);
  --on-ink-muted: oklch(78% 0.011 70);
  --accent: oklch(56% 0.21 29);
  --accent-hover: oklch(49% 0.185 28);
  --accent-mark: oklch(63.5% 0.215 30);
  --accent-soft: oklch(93.8% 0.03 29);
  --t1: oklch(52% 0.15 255);
  --t2: oklch(55% 0.1 185);
  --t3: oklch(52% 0.17 295);
  --t4: oklch(58% 0.12 78);
  --t5: oklch(56% 0.17 350);
  --t6: oklch(54% 0.13 145);
  --t7: oklch(60% 0.15 45);
  --t8: oklch(58% 0.11 225);
  --shadow-lg: 0 4px 8px -2px oklch(30% 0.015 60 / 0.08), 0 12px 24px -6px oklch(30% 0.015 60 / 0.14);
  --shadow-xl: 0 8px 16px -4px oklch(30% 0.015 60 / 0.1), 0 24px 48px -12px oklch(30% 0.015 60 / 0.2);
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(16.5% 0.006 60);
    --paper-tint: oklch(19.5% 0.007 60);
    --surface: oklch(21.5% 0.008 60);
    --line: oklch(28% 0.009 62);
    --line-strong: oklch(35.5% 0.01 64);
    --text: oklch(95% 0.005 80);
    --text-muted: oklch(76% 0.011 70);
    --text-faint: oklch(67.5% 0.013 68);
    --ink: oklch(23% 0.008 60);
    --accent: oklch(55% 0.2 29);
    --accent-hover: oklch(58.5% 0.2 30);
    --accent-mark: oklch(57% 0.2 29);
    --accent-soft: oklch(29.5% 0.08 29);
    --t1: oklch(76% 0.11 255);
    --t2: oklch(78% 0.09 185);
    --t3: oklch(77% 0.12 295);
    --t4: oklch(80% 0.11 78);
    --t5: oklch(78% 0.12 350);
    --t6: oklch(78% 0.12 145);
    --t7: oklch(78% 0.12 45);
    --t8: oklch(79% 0.09 225);
    --shadow-lg: 0 12px 24px -6px oklch(0% 0 0 / 0.45);
    --shadow-xl: 0 24px 48px -12px oklch(0% 0 0 / 0.55);
  }
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent-mark);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo {
  width: 28px;
  height: 28px;
  flex: none;
}
.logo-ink {
  fill: var(--ink);
}
.logo-accent {
  fill: var(--accent-mark);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.header-nav > a:not(.button) {
  color: var(--text-muted);
  text-decoration: none;
}
.header-nav > a:not(.button):hover {
  color: var(--text);
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.button-primary {
  background: var(--accent);
  color: #fff;
}
.button-primary:hover {
  background: var(--accent-hover);
}
.button-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
}
.button-ghost:hover {
  border-color: var(--text-faint);
}
.button-quiet {
  min-height: 38px;
  padding: 0 14px;
  border-color: var(--line-strong);
  border-radius: 9px;
  font-size: 0.875rem;
}
.button-quiet:hover {
  border-color: var(--text-faint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding-block: 56px 88px;
}

.hero-grid {
  display: grid;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-mark);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-copy .actions {
  margin-top: 32px;
}

.note {
  margin-top: 18px;
  color: var(--text-faint);
  font-size: 0.875rem;
}

/* The editor, drawn with blocks. */

.hero-art {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
  padding-bottom: 56px;
}

.float {
  position: absolute;
  border-radius: 18px;
}
.f1 {
  top: -22px;
  left: -12px;
  width: 72px;
  height: 72px;
  rotate: -10deg;
  background: color-mix(in oklab, var(--t3) 18%, transparent);
}
.f2 {
  top: 28%;
  right: -14px;
  width: 46px;
  height: 46px;
  rotate: 14deg;
  background: color-mix(in oklab, var(--t6) 22%, transparent);
}
.f3 {
  bottom: 18px;
  left: 6%;
  width: 56px;
  height: 56px;
  rotate: 8deg;
  background: color-mix(in oklab, var(--t7) 24%, transparent);
}

.window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-tint);
}
.window-bar > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.window-url {
  flex: 1;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-faint);
  font-size: 0.75rem;
}

.page {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.block {
  --c: var(--t1);
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--c) 12%, var(--surface));
}

.block-hero {
  min-height: 132px;
  padding: 22px;
}
.block-hero.is-selected {
  outline: 2px solid var(--accent-mark);
  outline-offset: 3px;
}
.block-label {
  position: absolute;
  top: -12px;
  left: 14px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-mark);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.block-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.card {
  min-height: 84px;
  align-content: end;
}
.block-text {
  --c: var(--line-strong);
  background: transparent;
  padding: 8px 4px;
}

.bar {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--c) 55%, transparent);
}
.bar.thin {
  height: 8px;
  background: color-mix(in oklab, var(--c) 38%, transparent);
}
.block-text .bar {
  background: var(--line);
}
.w90 {
  width: 90%;
}
.w80 {
  width: 80%;
}
.w70 {
  width: 70%;
}
.w60 {
  width: 60%;
}
.w55 {
  width: 55%;
}
.w45 {
  width: 45%;
}
.w40 {
  width: 40%;
}
.chip {
  display: block;
  width: 88px;
  height: 22px;
  margin-top: 6px;
  border-radius: 6px;
  background: var(--c);
}

.panel {
  position: absolute;
  right: -10px;
  bottom: 0;
  width: min(250px, 62%);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 0.75rem;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 0.8125rem;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--c);
}
.field {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}
.field-label {
  color: var(--text-faint);
  font-weight: 500;
}
.field-input {
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field.is-editing .field-input {
  border-color: var(--accent-mark);
}
.field-input.muted {
  color: var(--text-muted);
}
.caret {
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--text);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.status {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--t4) 18%, transparent);
  color: var(--text-muted);
  font-weight: 500;
}
.publish {
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* The content-type colors. */
.t1 {
  --c: var(--t1);
}
.t2 {
  --c: var(--t2);
}
.t3 {
  --c: var(--t3);
}
.t4 {
  --c: var(--t4);
}
.t5 {
  --c: var(--t5);
}
.t6 {
  --c: var(--t6);
}
.t7 {
  --c: var(--t7);
}
.t8 {
  --c: var(--t8);
}

/* ── Sections ───────────────────────────────────────────────────────────── */

.section {
  padding-block: 88px;
}
.section-tint {
  background: var(--paper-tint);
}

.section-title {
  max-width: 22ch;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.3rem + 1.7vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.steps {
  display: grid;
  gap: 32px;
  counter-reset: step;
}
.step p {
  margin-top: 8px;
  color: var(--text-muted);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 600;
  font-size: 0.875rem;
}

.code {
  margin-top: 48px;
  overflow: hidden;
  border-radius: 14px;
  background: oklch(21.5% 0.008 58);
  color: oklch(92% 0.008 80);
  box-shadow: var(--shadow-lg);
}
.code-head {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
  color: oklch(72% 0.012 70);
  font-size: 0.8125rem;
}
.code-lang {
  color: oklch(62% 0.012 70);
}
.code pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.75;
}
.code .k {
  color: oklch(78% 0.12 32);
}
.code .s {
  color: oklch(80% 0.11 145);
}
.code .c {
  color: oklch(64% 0.013 68);
}

.features {
  display: grid;
  gap: 16px;
}
.feature {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.feature p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.icon {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: color-mix(in oklab, var(--c) 18%, transparent);
}
.icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--c);
}

.section-ink {
  background: var(--ink);
  color: var(--on-ink);
}
.section-ink .section-title {
  margin-bottom: 16px;
}
.eu-grid {
  display: grid;
  gap: 40px;
}
.eu-lede {
  max-width: 32rem;
  color: var(--on-ink-muted);
  font-size: 1.0625rem;
}
.eu-points {
  display: grid;
  gap: 0;
}
.eu-points li {
  padding-block: 18px;
  border-top: 1px solid oklch(100% 0 0 / 0.12);
  color: var(--on-ink-muted);
}
.eu-points li:last-child {
  border-bottom: 1px solid oklch(100% 0 0 / 0.12);
}
.eu-points strong {
  display: block;
  margin-bottom: 2px;
  color: var(--on-ink);
  font-weight: 600;
}

.cta-box {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.3rem + 1.7vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.cta-box p {
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}
.cta-box .actions {
  justify-content: center;
  margin-top: 8px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.875rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── Legal pages ────────────────────────────────────────────────────────── */

.legal {
  max-width: calc(68ch + 64px);
  padding-block: 56px 96px;
  font-size: 1rem;
}
.legal-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal h1 {
  font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem);
}
.legal-meta {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 0.875rem;
}
.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  scroll-margin-top: 24px;
}
.legal p,
.legal ul {
  margin-bottom: 14px;
  color: var(--text-muted);
}
.legal ul {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal li::marker {
  color: var(--text-faint);
}
.legal strong {
  color: var(--text);
  font-weight: 600;
}
.legal a {
  color: var(--text);
  text-decoration-color: var(--line-strong);
}
.legal a:hover {
  text-decoration-color: currentColor;
}
/* Details still to fill in before these pages go live. */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--t4) 30%, transparent);
  color: var(--text);
}

/* ── The 404 page ───────────────────────────────────────────────────────── */

.lost {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding-block: 96px 120px;
}
.lost p {
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ── Larger screens ─────────────────────────────────────────────────────── */

@media (min-width: 640px) {
  .wrap {
    padding-inline: 32px;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .eu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .hero {
    padding-block: 80px 112px;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .header-nav {
    gap: 14px;
  }
  .hero-art {
    padding-bottom: 0;
  }
  .panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 82%;
    margin: -36px 0 0 auto;
  }
  .f2 {
    right: -6px;
  }
  .card {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    animation: none;
  }
  .button {
    transition: none;
  }
}
