/* =========================================================
   TypeAC — site styles
   A quiet, editorial system: paper, ink, and one signal red.
   ========================================================= */

:root {
  --paper: #f6f2e9;
  --paper-raised: #fcfaf5;
  --paper-deep: #ece5d6;
  --ink: #17150f;
  --ink-2: #545046;
  --ink-3: #7a7467;
  --line: #dcd4c4;
  --line-soft: #e9e2d4;
  --accent: #d9481f;
  --accent-deep: #b83814;
  --accent-soft: #f4e2d5;
  --night: #17150f;
  --night-soft: #211e17;
  --cream: #f4efe3;
  --cream-2: #b6ad9b;
  --cream-3: #8f8778;
  --green: #397052;
  --max: 1200px;
  --radius: 20px;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", Georgia, "Songti SC", "Noto Serif SC", serif;
  --mono: "Cascadia Code", "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, .72, .22, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
img, svg { display: block; }
svg { overflow: visible; }

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

.container {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 233, .86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px -26px rgba(23, 21, 15, .34);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  color: var(--ink);
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -.055em;
  line-height: 1;
  text-decoration: none;
}
.brand-mark {
  width: 31px;
  height: 31px;
  flex: none;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(23, 21, 15, .12);
}
.brand-ac { font-weight: 500; opacity: .82; }
.brand:hover .brand-mark { transform: rotate(-3deg); }
.brand-mark { transition: transform .25s var(--ease); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  position: relative;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 540;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: color .18s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lang-wrap { position: relative; }

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.lang-button:hover,
.lang-button[aria-expanded="true"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, .48);
  color: var(--ink);
}
.lang-button .icon { width: 15px; height: 15px; }
.lang-code {
  min-width: 17px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
}
.chevron {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.lang-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 20;
  width: 196px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  box-shadow: 0 24px 50px -22px rgba(23, 21, 15, .32), 0 2px 5px rgba(23, 21, 15, .04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px) scale(.985);
  transform-origin: top right;
  transition: opacity .16s ease, visibility .16s ease, transform .16s var(--ease);
}
.lang-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-menu button:hover { background: #f1ebdf; color: var(--ink); }
.lang-menu button[aria-checked="true"] { color: var(--ink); background: var(--accent-soft); }
.lang-native {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: .06em;
}
.lang-menu button[aria-checked="true"] .lang-native { color: var(--accent-deep); }

.icon-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-2);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.icon-button svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}
.mail-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, .48);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--ease), box-shadow .18s ease;
}
.btn .icon { width: 15px; height: 15px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 0 23px; font-size: 14px; border-radius: 10px; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2a261d; transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px -15px rgba(217, 72, 31, .7);
}
.btn-accent:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -15px rgba(217, 72, 31, .7);
}
.btn-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, .22);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: #b9b09e;
  background: var(--paper-raised);
  transform: translateY(-1px);
}
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fffaf0; transform: translateY(-1px); }
.btn-light svg { width: 16px; height: 16px; fill: currentColor; }
.btn-accent .icon { stroke-width: 1.8; }
.arrow-down { width: 14px; height: 14px; }

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.menu-toggle:hover { background: rgba(255, 255, 255, .5); }
.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.mobile-menu.is-open { display: block; }
.mobile-nav {
  display: grid;
  gap: 0;
  padding-top: 10px;
  padding-bottom: 24px;
}
.mobile-nav > a:not(.btn) {
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}
.mobile-nav .btn { margin-top: 18px; }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(23, 21, 15, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 21, 15, .045) 1px, transparent 1px);
  background-size: 74px 74px;
  opacity: .62;
  mask-image: radial-gradient(ellipse 70% 76% at 73% 46%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 76% at 73% 46%, #000 0%, transparent 72%);
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 700px);
  width: 1400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 21, 15, .08), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: 58px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 62px;
}

.hero-copy { max-width: 560px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-3);
}
.live-dot {
  position: relative;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: .35;
  animation: pulse 2.4s ease-out infinite;
}
.eyebrow-line {
  width: 25px;
  height: 1px;
  margin-left: 3px;
  background: var(--line);
}
.eyebrow-mono { color: var(--ink-3); }

.hero-title {
  margin-top: 24px;
  font-size: clamp(52px, 6.5vw, 86px);
  font-weight: 690;
  line-height: .96;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.hero-title em,
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.035em;
}
.hero-title em { font-size: .99em; }

.hero-lede {
  max-width: 490px;
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.66;
  letter-spacing: -.005em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.hero-actions .btn { min-width: 0; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 23px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Editor visual */

.hero-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 22px;
}
.visual-sun {
  position: absolute;
  z-index: 0;
  top: -90px;
  right: -150px;
  width: 570px;
  height: 570px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 72, 31, .85) 0%, rgba(217, 72, 31, .18) 42%, rgba(217, 72, 31, 0) 70%);
  opacity: .22;
  filter: blur(8px);
  pointer-events: none;
}
.visual-outline {
  position: absolute;
  z-index: 0;
  top: 30px;
  right: -18px;
  bottom: 30px;
  left: 28px;
  border: 1px solid #d3c9b6;
  border-radius: 19px;
  opacity: .85;
  pointer-events: none;
}
.visual-outline::before,
.visual-outline::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1px solid #b8ad99;
  border-radius: 50%;
  background: var(--paper);
}
.visual-outline::before { top: -3px; left: -3px; }
.visual-outline::after { right: -3px; bottom: -3px; }

.editor-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid #cfc5b2;
  border-radius: 15px;
  background: var(--paper-raised);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 34px 70px -28px rgba(23, 21, 15, .44),
    0 12px 28px -22px rgba(23, 21, 15, .3);
  font-size: 12px;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 45px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #f3eddf;
}
.window-mark {
  width: 21px;
  height: 21px;
  flex: none;
  color: var(--ink);
  border-radius: 5px;
}
.window-file {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: -.01em;
}
.file-dot { color: var(--accent); font-size: 12px; line-height: 1; }
.saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid #d7ded4;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  color: #4f6858;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.saved-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}
.window-tools { display: flex; align-items: center; gap: 2px; margin-left: 3px; color: #9c9382; }
.window-tools svg {
  width: 16px;
  height: 16px;
  padding: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.window-tools svg:first-child { display: none; }

.window-body {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.04fr) minmax(0, .96fr);
  height: 382px;
  min-height: 0;
}

.activity-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 11px 0;
  border-right: 1px solid var(--line-soft);
  background: #f1ebdf;
}
.rail-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 5px;
  color: #918878;
}
.rail-icon.is-active { background: var(--paper-raised); color: var(--ink); box-shadow: 0 1px 2px rgba(23, 21, 15, .08); }
.rail-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rail-spacer { flex: 1; }

.source-pane,
.preview-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.source-pane { border-right: 1px solid var(--line-soft); background: #fcfaf5; }
.preview-pane { background: #fffdf8; }
.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  color: #a09786;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: .14em;
}
.pane-format { font-size: 7px; letter-spacing: .04em; color: #b0a797; }
.preview-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 7px;
  letter-spacing: .06em;
}
.preview-live i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--green);
}

.code {
  flex: 1;
  min-height: 0;
  padding: 12px 0 14px;
  overflow: hidden;
  color: #413c32;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.92;
}
.code-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 20px;
  padding: 0 10px 0 9px;
  white-space: pre;
}
.code-line.is-active {
  background: #f7e7db;
  box-shadow: inset 2px 0 var(--accent);
}
.ln {
  width: 14px;
  flex: none;
  color: #b9b09f;
  font-size: 8.5px;
  line-height: inherit;
  text-align: right;
  user-select: none;
}
.lc {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
}
.tok-h { color: #23415f; font-weight: 600; }
.tok-b { color: #873a22; font-weight: 600; }
.tok-q { color: #526b56; }
.tok-c { color: #7b5d2b; }
.tok-em { color: #6d4c63; font-style: italic; }
.tok-code {
  padding: 0 3px;
  border-radius: 2px;
  background: #eee4d4;
  color: #823c23;
}
.caret {
  display: inline-block;
  width: 1.5px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -1px;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
}

.preview-doc {
  flex: 1;
  min-height: 0;
  padding: 18px 16px 14px;
  overflow: hidden;
}
.preview-eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: .15em;
}
.preview-doc h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 690;
  line-height: 1.04;
  letter-spacing: -.05em;
}
.preview-doc p {
  margin-bottom: 10px;
  color: #625c50;
  font-size: 10px;
  line-height: 1.55;
}
.preview-doc strong { color: var(--ink); font-weight: 650; }
.preview-doc blockquote {
  margin: 12px 0;
  padding: 2px 0 2px 10px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.45;
}
.checklist {
  display: grid;
  gap: 3px;
  margin: 11px 0;
  color: #625c50;
  font-size: 9.5px;
}
.checklist li { display: flex; align-items: center; gap: 6px; }
.checklist li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
}
.preview-keyline {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 12px 0 0;
  color: #7d7566;
  font-family: var(--mono);
  font-size: 8px;
}
.preview-keyline kbd {
  display: inline-grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border: 1px solid #d9d1c1;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #fffdf8;
  color: #5d574b;
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1;
}
.preview-keyline span { margin-left: 3px; }
.preview-caption {
  margin: 11px 0 0;
  color: #9a9181;
  font-family: var(--serif);
  font-size: 9.5px;
  font-style: italic;
}

.window-status {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 28px;
  padding: 0 11px;
  border-top: 1px solid var(--line-soft);
  background: #f4eee2;
  color: #9d9484;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .02em;
}
.status-right { display: flex; gap: 13px; margin-left: auto; }

.hero-caption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  color: #8b8374;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.caption-num { color: var(--accent); }

.platform-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 28px;
}
.strip-label,
.strip-note {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.strip-label { flex: none; }
.strip-os { display: flex; align-items: center; gap: 26px; }
.strip-os span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 560;
}
.strip-os svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.strip-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.strip-version { color: var(--ink-2); }

/* =========================================================
   Shared section furniture
   ========================================================= */

.section { position: relative; padding: 112px 0; }

.section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}
.section-label .label-num { color: var(--accent); }
.section-label::after {
  content: "";
  width: 42px;
  height: 1px;
  margin-left: 2px;
  background: var(--line);
}
.section-label-light { color: #928a7b; }
.section-label-light::after { background: #3d382e; }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 72px;
  margin-bottom: 50px;
}
.section-head h2,
.download-head h2,
.focus-copy h2,
.studio-grid h2 {
  margin-top: 17px;
  font-size: clamp(40px, 4.8vw, 60px);
  font-weight: 680;
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.section-head h2 em,
.download-head h2 em { letter-spacing: -.042em; }

.section-lede {
  max-width: 390px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
  letter-spacing: -.003em;
}
.section-head .section-lede { padding-bottom: 5px; }

/* =========================================================
   Features
   ========================================================= */

.features { padding-top: 106px; }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 17px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s var(--ease);
}
.card:hover {
  border-color: #c8beab;
  box-shadow: 0 24px 50px -38px rgba(23, 21, 15, .34);
  transform: translateY(-2px);
}

.card-preview { grid-column: span 7; min-height: 446px; }
.card-local { grid-column: span 5; min-height: 446px; }
.card-markdown { grid-column: span 5; min-height: 336px; }
.card-language { grid-column: span 7; min-height: 336px; }

.card-copy h3 {
  max-width: 470px;
  margin-top: 16px;
  font-size: 24px;
  font-weight: 670;
  line-height: 1.12;
  letter-spacing: -.04em;
}
.card-copy > p:last-child {
  max-width: 455px;
  margin-top: 9px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}
.card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.card-kicker span:first-child { color: var(--ink-3); }

/* small preview inside preview card */

.mini-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 198px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #dfd6c6;
  border-radius: 11px;
  background: #fffdf9;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.mini-pane { display: flex; flex-direction: column; min-width: 0; }
.mini-source { border-right: 1px solid var(--line-soft); background: #fcfaf5; }
.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line-soft);
  color: #9a9283;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .12em;
}
.mini-dots { letter-spacing: .08em; color: #b2a997; }
.mini-live { color: var(--accent); font-size: 7px; }
.mini-code {
  padding: 11px 12px;
  color: #4b453b;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.9;
  white-space: pre;
}
.mini-caret {
  display: inline-block;
  width: 1.3px;
  height: .95em;
  margin-left: 1px;
  vertical-align: -1px;
  background: var(--accent);
  animation: blink 1.15s step-end infinite;
}
.mini-rendered { padding: 13px 13px; overflow: hidden; }
.mini-rendered h4 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 690;
  line-height: 1;
  letter-spacing: -.04em;
}
.mini-rendered p { color: #625c50; font-size: 9px; line-height: 1.55; }
.mini-rendered p em { font-family: var(--serif); }
.mini-rendered blockquote {
  margin: 9px 0;
  padding-left: 8px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 10.5px;
  font-style: italic;
}
.mini-rendered ul {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  color: #625c50;
  font-size: 8.5px;
}
.mini-rendered li::before { content: "— "; color: var(--accent); }
.mini-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 2px;
  padding: 5px 5px;
  border: 1px solid #d9d0bf;
  border-radius: 999px;
  background: #fffdf9;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 5px rgba(23, 21, 15, .08);
}
.mini-grip i { width: 2px; height: 2px; border-radius: 50%; background: #a79d8b; }

/* local-first card */

.card-local {
  border-color: #2b271e;
  background:
    radial-gradient(ellipse 90% 75% at 115% -10%, rgba(217, 72, 31, .28), transparent 58%),
    linear-gradient(150deg, #211e17 0%, #17150f 62%);
  color: var(--cream);
}
.card-local:hover { border-color: #4a4232; box-shadow: 0 28px 60px -38px rgba(23, 21, 15, .75); }
.card-local::after {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(244, 239, 227, .09);
  border-radius: 50%;
  pointer-events: none;
}
.local-path {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(244, 239, 227, .13);
  border-radius: 6px;
  background: rgba(244, 239, 227, .055);
  color: #b9af9d;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .01em;
}
.local-path svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.local-path > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.local-dot { width: 4px; height: 4px; flex: none; border-radius: 50%; background: var(--accent); }
.card-local .card-copy { margin-top: 27px; }
.card-local .card-kicker { color: #e37c58; }
.card-local .card-kicker span:first-child { color: #7f7768; }
.card-local .card-copy h3 {
  max-width: 330px;
  color: var(--cream);
  font-size: 31px;
  line-height: 1.02;
}
.card-local .card-copy > p:last-child {
  max-width: 330px;
  color: #a79e8d;
  font-size: 13px;
  line-height: 1.65;
}
.local-list {
  display: grid;
  gap: 8px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 239, 227, .12);
  color: #cbc2b2;
  font-size: 11.5px;
}
.local-list li { display: flex; align-items: center; gap: 9px; }
.local-list svg {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: #d46f4c;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.local-stamp {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 24px;
  color: #7f7768;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .13em;
}
.stamp-dot { width: 4px; height: 4px; border-radius: 50%; background: #7d8e67; }

/* markdown card */

.card-markdown {
  border-color: #e4cfbd;
  background: #f4e4d6;
}
.card-markdown:hover { border-color: #d5b7a0; }
.card-markdown .card-copy h3 { font-size: 25px; }
.card-markdown .card-copy > p:last-child { max-width: 390px; }
.syntax-board { margin-top: auto; padding-top: 21px; }
.syntax-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.syntax-chips span {
  padding: 4px 8px;
  border: 1px solid rgba(167, 85, 48, .24);
  border-radius: 999px;
  background: rgba(255, 251, 244, .55);
  color: #81482f;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: .035em;
}
.syntax-code {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #241e17;
  color: #e8ddca;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  box-shadow: 0 10px 24px -18px rgba(36, 30, 23, .6);
}
.syntax-code .code-key { color: #d07653; }
.syntax-code .code-val { color: #b6c2a4; }

/* language card */

.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 22px;
}
.lang-tile {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .46);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s var(--ease);
}
.lang-tile:hover {
  border-color: #c7b9a3;
  background: #fffcf6;
  transform: translateY(-1px);
}
.lang-tile.is-active {
  border-color: rgba(217, 72, 31, .62);
  background: #fbeddf;
  box-shadow: inset 0 0 0 1px rgba(217, 72, 31, .12);
}
.lang-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 640;
  letter-spacing: -.01em;
}
.lang-check {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  opacity: 0;
  transform: translateY(1px);
  transition: opacity .15s ease;
}
.lang-tile.is-active .lang-check { opacity: 1; }
.lang-tile-phrase {
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.42;
  letter-spacing: -.005em;
}
.lang-grid .lang-tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.lang-grid .lang-tile:last-child:nth-child(odd) .lang-tile-phrase {
  max-width: 58%;
  text-align: right;
}

/* =========================================================
   Focus
   ========================================================= */

.focus-section {
  overflow: hidden;
  padding: 118px 0;
  background: var(--night);
  color: var(--cream);
}
.focus-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(244, 239, 227, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 239, 227, .045) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(ellipse 66% 76% at 68% 50%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 66% 76% at 68% 50%, #000, transparent 76%);
  opacity: .55;
}
.focus-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 74px;
}
.focus-copy { max-width: 480px; }
.focus-copy h2 { color: var(--cream); font-size: clamp(42px, 5vw, 64px); }
.focus-copy h2 em { color: #e6dac6; }
.focus-lede {
  max-width: 430px;
  margin-top: 25px;
  color: var(--cream-2);
  font-size: 14.5px;
  line-height: 1.72;
}
.focus-items {
  margin-top: 34px;
  border-top: 1px solid #332f26;
}
.focus-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #332f26;
}
.focus-num {
  padding-top: 3px;
  color: #b85c3d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
}
.focus-item h3 { color: #eee5d5; font-size: 14.5px; font-weight: 620; letter-spacing: -.015em; }
.focus-item p { max-width: 370px; margin-top: 3px; color: #a69d8c; font-size: 12.5px; line-height: 1.55; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s ease;
}
.text-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s var(--ease);
}
.text-link:hover { color: var(--accent); }
.text-link:hover svg { transform: translateX(3px); }
.light-link { color: #e7ddca; }
.light-link:hover { color: #f18a66; }

.focus-visual {
  position: relative;
  min-width: 0;
  padding-bottom: 40px;
}
.focus-window {
  position: relative;
  z-index: 2;
  overflow: visible;
  border: 1px solid #d4c9b5;
  border-radius: 15px;
  background: #faf5e9;
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 42px 80px -32px rgba(0, 0, 0, .7);
}
.focus-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #e3dac9;
  background: #f2ebdc;
  border-radius: 15px 15px 0 0;
}
.focus-file {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6f685b;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: -.01em;
}
.focus-file svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: #8b8271;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid #e2c2af;
  border-radius: 999px;
  background: #f8e7db;
  color: #9e3d1f;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.focus-badge i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.focus-page {
  padding: 30px 35px 32px;
  border-radius: 0 0 15px 15px;
  background: #faf5e9;
}
.focus-page-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  color: #a39a89;
  font-family: var(--mono);
  font-size: 6.8px;
  letter-spacing: .13em;
}
.focus-page h3 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.focus-page p {
  max-width: 440px;
  margin-bottom: 9px;
  color: #7f7768;
  font-size: 11.5px;
  line-height: 1.8;
}
.focus-page p.is-dim { color: #b1a897; }
.focus-page p.is-active {
  margin: 12px -13px;
  padding: 9px 13px;
  border-left: 2px solid var(--accent);
  border-radius: 0 3px 3px 0;
  background: #f1e8d8;
  color: #29251d;
  font-size: 11.8px;
  line-height: 1.8;
}
.type-caret {
  display: inline-block;
  width: 1.5px;
  height: .95em;
  margin-left: 2px;
  vertical-align: -1px;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
}
.focus-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding: 0 13px;
  border-top: 1px solid #e3dac9;
  background: #f2ebdc;
  border-radius: 0 0 15px 15px;
  color: #a09685;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: .03em;
}

.command-palette {
  position: absolute;
  z-index: 4;
  right: -12px;
  bottom: 0;
  width: 306px;
  overflow: hidden;
  border: 1px solid #c9bfac;
  border-radius: 11px;
  background: #fffdf8;
  box-shadow: 0 32px 60px -24px rgba(0, 0, 0, .62);
}
.palette-input {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 41px;
  padding: 0 11px;
  border-bottom: 1px solid #ece4d6;
  color: #8e8575;
  font-size: 9.5px;
}
.palette-input svg {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.palette-caret {
  width: 1px;
  height: 11px;
  margin-left: -3px;
  background: var(--accent);
  animation: blink 1.15s step-end infinite;
}
.palette-input kbd {
  margin-left: auto;
  padding: 2px 4px;
  border: 1px solid #e0d7c7;
  border-radius: 3px;
  background: #faf6ed;
  color: #a29988;
  font-family: var(--mono);
  font-size: 6.5px;
}
.palette-list { padding: 5px; }
.palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px;
  border-radius: 5px;
  color: #6f685b;
  font-size: 9.5px;
}
.palette-item.is-selected { background: #f8e8dc; color: #38291f; }
.palette-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 4px;
  background: #f1eadc;
  color: #9b5c43;
  font-family: var(--mono);
  font-size: 7px;
}
.palette-item kbd {
  margin-left: auto;
  color: #a39a89;
  font-family: var(--mono);
  font-size: 6.5px;
}
.palette-foot {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-top: 1px solid #ece4d6;
  background: #faf6ed;
  color: #a79e8d;
  font-family: var(--mono);
  font-size: 6.5px;
}
.focus-caption {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 27px;
  color: #837b6c;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =========================================================
   Downloads
   ========================================================= */

.downloads { padding: 112px 0; }

.download-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 72px;
  margin-bottom: 46px;
}
.download-side { padding-bottom: 5px; }
.download-side .section-lede { max-width: 360px; }
.release-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.release-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 112, 82, .11);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.download-card {
  display: flex;
  flex-direction: column;
  min-height: 312px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-raised);
  transition: border-color .2s ease, background .2s ease, transform .22s var(--ease), box-shadow .22s ease;
}
.download-card:hover {
  border-color: #c9bfac;
  background: #fffdf8;
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -38px rgba(23, 21, 15, .4);
}
.download-card.is-recommended {
  border-color: rgba(217, 72, 31, .52);
  background: #fffaf2;
  box-shadow: 0 0 0 1px rgba(217, 72, 31, .1), 0 22px 48px -38px rgba(217, 72, 31, .38);
}
.download-card.is-recommended:hover { border-color: var(--accent); }
.download-top { display: flex; align-items: center; }
.os-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffdf8;
  color: var(--ink);
}
.os-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-card.is-recommended .os-icon { border-color: #e3c9b9; background: #fff7ed; }
.recommended {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid #e7c7b4;
  border-radius: 999px;
  background: #f9e8dc;
  color: #9e3e20;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.download-card.is-recommended .recommended { display: inline-flex; }
.download-card h3 {
  margin-top: 22px;
  font-size: 24px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -.045em;
}
.download-formats {
  margin-top: 5px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: -.01em;
}
.download-req {
  margin: 19px 0 23px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.5;
}
.btn-download {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 45px;
  margin-top: auto;
  padding: 0 13px 0 15px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
}
.btn-download:hover { background: #2b271e; transform: none; }
.download-card.is-recommended .btn-download { background: var(--accent); }
.download-card.is-recommended .btn-download:hover { background: var(--accent-deep); }
.download-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(246, 242, 233, .58);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .02em;
}
.download-size svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 10.5px;
}
.download-foot > p { display: flex; align-items: center; gap: 7px; }
.download-foot > p svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-links { display: flex; gap: 21px; flex: none; }
.download-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-size: 10.5px;
  text-decoration: none;
  transition: color .18s ease;
}
.download-links a span:last-child { color: var(--accent); font-size: 9px; }
.download-links a:hover { color: var(--accent-deep); }

/* =========================================================
   Studio
   ========================================================= */

.studio {
  position: relative;
  overflow: hidden;
  padding: 112px 0 0;
  background: #1b1811;
  color: var(--cream);
}
.studio::before {
  content: "STUDIO";
  position: absolute;
  top: -66px;
  right: -40px;
  color: transparent;
  font-family: var(--serif);
  font-size: 280px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.07em;
  -webkit-text-stroke: 1px rgba(244, 239, 227, .055);
  pointer-events: none;
  user-select: none;
}
.studio .container { position: relative; z-index: 2; }
.studio-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: end;
  gap: 90px;
}
.studio-grid h2 { color: var(--cream); font-size: clamp(44px, 5.4vw, 70px); }
.studio-grid h2 em { color: #e8dcc8; }
.studio-copy { padding-bottom: 5px; }
.studio-copy > p:first-child {
  max-width: 425px;
  color: #b3aa99;
  font-size: 15px;
  line-height: 1.7;
}
.studio-copy .btn { margin-top: 26px; }
.studio-note {
  margin-top: 14px;
  color: #837b6c;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .02em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 1px solid #363127;
}
.metric {
  padding: 26px 30px 32px 0;
  border-right: 1px solid #363127;
}
.metric:last-child { border-right: 0; }
.metric-value {
  display: block;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
}
.metric-unit { color: #d0633d; font-size: .48em; vertical-align: .36em; }
.metric-label {
  display: block;
  margin-top: 9px;
  color: #8d8475;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.manifesto {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin-top: 12px;
  padding: 24px 0 38px;
  border-top: 1px solid #363127;
  color: #e5dac7;
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 27px);
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.manifesto > span[aria-hidden] { color: #6f6759; font-style: normal; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 62px 0 25px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 70px;
}
.footer-brand p {
  max-width: 290px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
}
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .015em;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}
.footer-mail svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-mail:hover { color: var(--ink); border-color: var(--ink-3); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}
.footer-col h4 {
  margin-bottom: 11px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  width: max-content;
  padding: 4.5px 0;
  color: var(--ink-2);
  font-size: 12px;
  text-decoration: none;
  transition: color .16s ease;
}
.footer-col a:hover { color: var(--accent-deep); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 10px;
}
.footer-privacy { display: flex; align-items: center; gap: 6px; }
.privacy-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-size: 10px;
  text-decoration: none;
}
.back-top svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s var(--ease);
}
.back-top:hover { color: var(--accent-deep); }
.back-top:hover svg { transform: translateY(-2px); }

/* Floating back-to-top */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(252, 250, 245, .88);
  color: var(--ink);
  box-shadow: 0 16px 34px -20px rgba(23, 21, 15, .5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity .22s var(--ease),
    transform .22s var(--ease),
    visibility .22s,
    background .18s ease,
    color .18s ease,
    border-color .18s ease;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.to-top svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s var(--ease);
}
.to-top:hover svg { transform: translateY(-2px); }

@media (max-width: 640px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
}

/* =========================================================
   Motion
   ========================================================= */

@keyframes pulse {
  0% { transform: scale(.7); opacity: .5; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}
@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(19px); }
  to { opacity: 1; transform: translateY(0); }
}

.js .hero-eyebrow,
.js .hero-title,
.js .hero-lede,
.js .hero-actions,
.js .hero-meta {
  animation: heroIn .8s var(--ease) both;
}
.js .hero-title { animation-delay: .07s; }
.js .hero-lede { animation-delay: .14s; }
.js .hero-actions { animation-delay: .21s; }
.js .hero-meta { animation-delay: .27s; }
.js .editor-window { animation: heroIn 1s .16s var(--ease) both; }
.js .hero-caption { animation: heroIn .8s .36s var(--ease) both; }

.js .reveal {
  opacity: 0;
  transform: translateY(21px);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Language-specific typography
   ========================================================= */

:lang(zh-CN) body,
:lang(ja) body { letter-spacing: 0; }

:lang(zh-CN) .hero-title,
:lang(ja) .hero-title {
  font-size: clamp(48px, 6.2vw, 80px);
  line-height: 1.1;
  letter-spacing: -.055em;
}
:lang(zh-CN) .hero-title em,
:lang(ja) .hero-title em,
:lang(zh-CN) h2 em,
:lang(ja) h2 em,
:lang(zh-CN) .focus-copy h2 em,
:lang(ja) .focus-copy h2 em,
:lang(zh-CN) .studio-grid h2 em,
:lang(ja) .studio-grid h2 em {
  color: var(--accent);
  font-family: var(--sans);
  font-style: normal;
  font-weight: 680;
  letter-spacing: -.045em;
}
:lang(zh-CN) .focus-copy h2 em,
:lang(ja) .focus-copy h2 em,
:lang(zh-CN) .studio-grid h2 em,
:lang(ja) .studio-grid h2 em { color: #e37a55; }
:lang(zh-CN) .hero-lede,
:lang(ja) .hero-lede { line-height: 1.8; }
:lang(zh-CN) .section-head h2,
:lang(ja) .section-head h2,
:lang(zh-CN) .download-head h2,
:lang(ja) .download-head h2 { line-height: 1.12; }
:lang(zh-CN) .card-copy h3,
:lang(ja) .card-copy h3 { line-height: 1.28; }
:lang(zh-CN) .focus-page h3,
:lang(ja) .focus-page h3 { font-family: var(--sans); font-weight: 650; }
:lang(de) .hero-title { font-size: clamp(48px, 5.9vw, 78px); }
:lang(de) .card-local .card-copy h3 { font-size: 28px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1120px) {
  .hero-grid { gap: 38px; }
  .hero-title { font-size: clamp(50px, 6.4vw, 74px); }
  .window-body { height: 366px; }
  .section-head,
  .download-head { gap: 48px; }
  .focus-grid { gap: 46px; }
}

@media (max-width: 980px) {
  .container { width: min(calc(100% - 48px), var(--max)); }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .hero { padding-top: 46px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-top: 16px;
    padding-bottom: 48px;
  }
  .hero-copy { max-width: 690px; margin-inline: auto; text-align: center; }
  .hero-eyebrow,
  .hero-actions,
  .hero-meta { justify-content: center; }
  .hero-lede { margin-inline: auto; }
  .hero-title { font-size: clamp(54px, 8.6vw, 82px); }
  .hero-visual { width: min(100%, 700px); margin-inline: auto; }
  .hero-caption { justify-content: flex-end; }
  .section-head,
  .download-head { grid-template-columns: 1fr; gap: 22px; }
  .section-head .section-lede,
  .download-side .section-lede { max-width: 540px; }
  .section-head h2,
  .download-head h2 { margin-top: 14px; }
  .download-side { display: block; }
  .release-line { margin-top: 16px; }
  .bento { gap: 14px; }
  .card-preview,
  .card-local { grid-column: span 6; }
  .card-markdown,
  .card-language { grid-column: span 6; }
  .card { padding: 24px; }
  .card-language { display: flex; }
  .focus-grid { grid-template-columns: 1fr; gap: 54px; }
  .focus-copy { max-width: 640px; }
  .focus-visual { width: min(100%, 620px); margin-inline: auto; }
  .download-grid { grid-template-columns: 1fr; gap: 12px; }
  .download-card { min-height: 0; }
  .download-card h3 { margin-top: 18px; }
  .download-req { margin-bottom: 20px; }
  .btn-download { max-width: 360px; }
  .studio-grid { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .studio-copy { max-width: 560px; }
  .studio::before { top: -28px; right: -22px; font-size: 250px; }
  .footer-top { grid-template-columns: 1fr; gap: 38px; }
  .footer-brand p { max-width: 420px; }
  .footer-links { gap: 30px; }
}

@media (max-width: 760px) {
  .section { padding: 82px 0; }
  .features { padding-top: 82px; }
  .container { width: calc(100% - 36px); }
  .nav { height: 68px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 28px; height: 28px; }
  .mail-link { display: none; }
  .lang-code { display: none; }
  .lang-button { width: 36px; padding: 0; justify-content: center; }
  .lang-button .chevron { display: none; }
  .hero { padding-top: 36px; }
  .hero-title { font-size: clamp(45px, 11.5vw, 68px); }
  .hero-lede { font-size: 15px; line-height: 1.75; margin-top: 22px; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 190px; }
  .hero-meta { gap: 13px; justify-content: center; }
  .hero-visual { width: 100%; padding-bottom: 12px; }
  .visual-outline { left: 12px; right: -8px; top: 18px; bottom: 18px; }
  .window-body { grid-template-columns: 32px minmax(0, 1fr); height: 340px; }
  .preview-pane { display: none; }
  .source-pane { border-right: 0; }
  .window-tools svg:nth-child(2) { display: none; }
  .hero-caption { display: none; }
  .platform-strip { flex-wrap: wrap; gap: 12px 20px; padding: 15px 0; }
  .strip-label { width: 100%; }
  .strip-os { gap: 18px; }
  .strip-note { margin-left: 0; width: 100%; padding-top: 4px; border-top: 1px solid var(--line-soft); }
  .section-label::after { width: 28px; }
  .section-head { margin-bottom: 34px; }
  .section-head h2,
  .download-head h2,
  .focus-copy h2,
  .studio-grid h2 { font-size: clamp(36px, 9.4vw, 50px); line-height: 1.08; }
  .bento { grid-template-columns: 1fr; }
  .card-preview,
  .card-local,
  .card-markdown,
  .card-language { grid-column: auto; min-height: 0; }
  .card-preview { min-height: 430px; }
  .card-local { min-height: 400px; }
  .card-markdown { min-height: 340px; }
  .card-language { min-height: 350px; }
  .mini-split { min-height: 200px; }
  .focus-section { padding: 82px 0; }
  .focus-page { padding: 24px 24px 26px; }
  .focus-page h3 { font-size: 30px; }
  .focus-page p { font-size: 11px; }
  .focus-page p.is-active { font-size: 11.2px; }
  .command-palette { position: relative; right: auto; bottom: auto; width: calc(100% - 24px); margin: -12px auto 0; }
  .focus-caption { margin-top: 14px; padding-right: 12px; }
  .downloads { padding: 82px 0; }
  .download-foot { align-items: flex-start; flex-direction: column; gap: 14px; }
  .download-links { flex-wrap: wrap; gap: 16px; }
  .metrics { grid-template-columns: 1fr 1fr; margin-top: 46px; }
  .metric { padding: 22px 20px 26px 0; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3),
  .metric:nth-child(4) { border-top: 1px solid #363127; }
  .metric-value { font-size: 48px; }
  .manifesto { padding-bottom: 30px; gap: 6px 15px; }
  .studio { padding-top: 82px; }
  .studio::before { font-size: 190px; }
  .site-footer { padding-top: 46px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-col:last-child { grid-column: span 2; }
  .footer-col:last-child a { display: inline-block; margin-right: 20px; }
  .footer-bottom { flex-wrap: wrap; gap: 10px 18px; margin-top: 34px; }
  .footer-privacy { order: 3; width: 100%; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 28px); }
  .hero-title { font-size: clamp(41px, 12.3vw, 58px); }
  .eyebrow { font-size: 8px; letter-spacing: .09em; gap: 7px; }
  .eyebrow-line { width: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { font-size: 8px; gap: 10px; }
  .hero-meta li { gap: 4px; }
  .window-bar { gap: 6px; padding: 0 9px; }
  .window-mark { width: 18px; height: 18px; }
  .saved-pill { font-size: 7px; padding: 3px 6px; }
  .window-tools { display: none; }
  .window-body { height: 318px; }
  .pane-head { padding: 0 9px; }
  .code { font-size: 9.5px; }
  .code-line { gap: 7px; padding-left: 7px; padding-right: 7px; }
  .ln { width: 12px; font-size: 7.5px; }
  .window-status { gap: 8px; font-size: 6.5px; }
  .status-right { gap: 8px; }
  .platform-strip { gap: 10px 14px; }
  .strip-os { gap: 14px; }
  .strip-os span { font-size: 10.5px; }
  .section-head h2,
  .download-head h2,
  .focus-copy h2,
  .studio-grid h2 { font-size: clamp(33px, 9.8vw, 45px); }
  .card { padding: 20px; }
  .card-copy h3 { font-size: 22px; }
  .card-local .card-copy h3 { font-size: 27px; }
  .card-preview { min-height: 402px; }
  .card-language { min-height: 390px; }
  .mini-code { font-size: 8.5px; }
  .mini-rendered { padding: 10px; }
  .mini-rendered h4 { font-size: 15px; }
  .mini-rendered p { font-size: 8px; }
  .mini-rendered blockquote { font-size: 9px; }
  .lang-grid { grid-template-columns: 1fr; }
  .lang-tile { min-height: 0; padding: 10px 11px; }
  .lang-grid .lang-tile:last-child:nth-child(odd) {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .lang-grid .lang-tile:last-child:nth-child(odd) .lang-tile-phrase {
    max-width: none;
    text-align: left;
  }
  .focus-page { padding: 22px 20px 24px; }
  .focus-page h3 { font-size: 27px; }
  .focus-page p { font-size: 10.5px; }
  .focus-page p.is-active { margin-left: -10px; margin-right: -10px; padding: 8px 10px; font-size: 10.8px; }
  .command-palette { width: calc(100% - 10px); }
  .palette-input { font-size: 8.5px; }
  .palette-item { font-size: 8.8px; padding: 6px; }
  .focus-window-bar { padding: 0 10px; }
  .focus-file { font-size: 8px; }
  .metric-value { font-size: 42px; }
  .metric-label { font-size: 7px; }
  .manifesto { font-size: 20px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: span 2; }
  .footer-bottom { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
