:root {
  --bg: #f7f7f4;
  --ink: #202220;
  --muted: #70756f;
  --line: #d8dad5;
  --accent: #397645;
  --code-bg: #1f231f;
  --code-ink: #dce3d9;
  --content: 800px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 1rem/1.65 Georgia, "Times New Roman", serif;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover, a:focus-visible { color: var(--ink); }

.site-header, main, footer {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.site-header {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font: 700 1.3rem/1 ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: -0.06em;
  text-decoration: none;
}
.site-name img { display: block; width: 2rem; height: 2rem; flex: none; }

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1.5rem;
  font: 0.85rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
}

nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
nav .personal-site-link { color: var(--accent); }
main { min-height: calc(100vh - 13rem); }
.intro, .page-title { padding: clamp(4rem, 11vw, 3rem) 0; }

/* MEdit landing page */
.home-hero { padding: clamp(4.5rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem); }
.home-hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.92;
}
.hero-introduction {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-left: clamp(0rem, 12vw, 8rem);
}
.hero-introduction > p {
  max-width: 38rem;
  margin: 0;
  color: #4c514c;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.hero-actions a,
.text-link,
.status-links a { font: 0.78rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; }
.hero-actions .primary-action {
  padding: 0.8rem 1rem;
  color: var(--bg);
  background: var(--ink);
  text-decoration: none;
}
.hero-actions .primary-action:hover,
.hero-actions .primary-action:focus-visible { color: var(--bg); background: var(--accent); }
.hero-screenshot { margin: 0 0 clamp(5rem, 12vw, 9rem); }
.hero-screenshot a,
.screenshot-frame a { display: block; overflow: hidden; background: var(--line); }
.hero-screenshot img,
.screenshot-frame img { display: block; width: 100%; height: auto; }
.hero-screenshot a { border: 1px solid #343a33; box-shadow: 0.8rem 0.8rem 0 #dfe3da; }
.hero-screenshot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
}
.home-tour { scroll-margin-top: 2rem; border-top: 1px solid var(--line); }
.tour-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.6fr);
  gap: 1rem clamp(2rem, 8vw, 6rem);
  padding: clamp(4rem, 10vw, 7rem) 0;
}
.tour-heading .kicker { grid-column: 1 / -1; }
.tour-heading h2 { margin: 0; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.08; }
.tour-heading > p:last-child { align-self: end; margin: 0; color: #4c514c; }
.tour-step {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2.5rem, 8vw, 6rem);
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.tour-step-reverse .tour-copy { order: 2; }
.tour-step-reverse .tour-visual { order: 1; }
.tour-copy h3 {
  margin: 1rem 0;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.tour-copy p { margin: 0; color: #4c514c; }
.tour-copy .text-link { display: inline-block; margin-top: 1.5rem; }
.feature-list { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.tour-visual { min-width: 0; margin: 0; }
.editor-diagram { border: 1px solid #343a33; background: var(--code-bg); box-shadow: 0.65rem 0.65rem 0 #dfe3da; }
.diagram-title,
.diagram-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.diagram-title { border-bottom: 1px solid #3b4239; color: #aeb7ab; }
.diagram-status { color: #1b211a; background: #b9d99e; }
.diagram-frames { display: grid; grid-template-columns: 1fr 1fr; min-height: 18rem; }
.diagram-frames div { display: flex; flex-direction: column; gap: 3rem; padding: 1rem; color: #aeb7ab; font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; }
.diagram-frames div + div { border-left: 1px solid #3b4239; }
.diagram-frames b { color: #b9d99e; font-size: 1rem; font-weight: 400; }
.screenshot-frame a { border: 1px solid var(--line); }
.screenshot-frame figcaption { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.72rem; }
.tour-code { box-shadow: 0.65rem 0.65rem 0 #dfe3da; }
.system-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 9vw, 7rem);
  padding: clamp(5rem, 12vw, 9rem) 0;
  border-top: 1px solid var(--line);
}
.system-intro h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.system-intro > p:last-child { color: #4c514c; }
.system-parts { margin: 0; border-top: 1px solid var(--line); }
.system-parts div { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.system-parts dt { color: var(--accent); font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; }
.system-parts dd { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0; }
.system-parts strong { font-size: 1.1rem; font-weight: 400; }
.system-parts span { color: var(--muted); font-size: 0.9rem; text-align: right; }
.project-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 7rem);
  padding: clamp(4rem, 10vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.project-status h2 { margin-bottom: 0; font-size: clamp(2rem, 5vw, 3.25rem); }
.project-status > div:last-child > p { margin-top: 0; color: #4c514c; }
.status-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2rem; }

.intro h1, .page-title h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.7rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.intro p, .page-title > p:not(.kicker) {
  max-width: 34rem;
  margin: 0;
  color: #4c514c;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

.section { padding: clamp(3rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.section-header h2 { margin: 0; }
.section-header a, .compact > a, footer, .kicker, .entry-meta, .editor-title, .editor-status { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.78rem; }
.entry-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.entry-list li { border-bottom: 1px solid var(--line); }
.entry-list a, .muted-entry { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.entry-list a { color: var(--ink); font-size: 1.1rem; text-decoration: none; }
.entry-list a:hover span:first-child, .entry-list a:focus-visible span:first-child { text-decoration: underline; }
.entry-meta, .muted-entry { color: var(--muted); }
.muted-entry { justify-content: flex-start; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 6rem); }
.split > div > p { color: #4c514c; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.compact .empty-state, .empty-page > p { color: var(--muted); }
.showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  gap: 0 clamp(2rem, 8vw, 6rem);
  margin-bottom: clamp(3rem, 8vw, 5rem);
}
.showcase-heading .kicker { grid-column: 1 / -1; }
.showcase-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
}
.showcase-heading > p:last-child {
  align-self: end;
  margin: 0;
  color: #4c514c;
}
.showcase-list { border-top: 1px solid var(--line); }
.showcase-item {
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 5rem);
  padding: clamp(2rem, 6vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.showcase-copy h3 {
  margin: 1rem 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
}
.showcase-copy p { margin: 0; color: #4c514c; }
.syntax-sample {
  align-self: start;
  min-width: 0;
  margin: 0;
  border: 1px solid #343a33;
  background: var(--code-bg);
  box-shadow: 0.65rem 0.65rem 0 #dfe3da;
}
.syntax-sample figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #3b4239;
  color: #aeb7ab;
  font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.syntax-sample pre {
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2rem);
  overflow-x: auto;
  color: var(--code-ink);
  font: 0.88rem/1.8 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.syntax-sample code { display: block; min-width: max-content; }
.syntax-form { color: #b9d99e; }
.syntax-function { color: #9ecbd9; }
.syntax-binding { color: #d8ded5; }
.syntax-keyword { color: #d6b77d; }
.syntax-string { color: #e4cf9a; }
.syntax-number { color: #9ecbd9; }
.syntax-literal { color: #d6a3bd; }
.syntax-muted { color: #7f897c; }
.documentation-page { width: min(calc(100% - 2.5rem), 1080px); }
.docs-title {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}
.docs-title h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.7rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}
.docs-title > p:not(.kicker) {
  max-width: 42rem;
  margin: 0;
  color: #4c514c;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}
.docs-warning {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}
.docs-warning strong {
  color: var(--accent);
  font: 700 0.76rem/1.5 ui-monospace, "Cascadia Code", Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.docs-warning p { margin: 0; color: #383d38; }
.docs-warning b { font-weight: 700; }
.docs-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(3rem, 8vw, 6rem) 0;
  border: 0;
}
.docs-choice {
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.docs-choice + .docs-choice { border-left: 0; }
.docs-choice:hover, .docs-choice:focus-visible { color: var(--ink); background: #eeefe9; }
.docs-choice-number {
  color: var(--accent);
  font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.docs-choice h2 { margin-top: 3rem; font-size: clamp(1.8rem, 4vw, 2.75rem); }
.docs-choice p { margin: 0; color: #4c514c; }
.docs-choice-link {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--accent);
  font: 0.78rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.terminal-block { border-left: 3px solid var(--accent); }
.terminal-command { color: #b9d99e; }
.docs-future-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: #eeefe9;
  color: #4c514c;
}
.docs-layout {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: clamp(3rem, 9vw, 7rem);
}
.docs-index {
  align-self: start;
  position: sticky;
  top: 1.5rem;
  padding-top: 3.5rem;
  font: 0.78rem/1.45 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.docs-index > p { margin: 0 0 1rem; color: var(--ink); }
.docs-index ol { margin: 0; padding: 0; list-style: none; }
.docs-index li + li { margin-top: 0.55rem; }
.docs-index a { color: var(--muted); text-decoration: none; }
.docs-index a:hover, .docs-index a:focus-visible { color: var(--accent); text-decoration: underline; }
.docs-content { min-width: 0; }
.docs-section {
  scroll-margin-top: 2rem;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-bottom: 1px solid var(--line);
}
.docs-section:last-child { border-bottom: 0; }
.docs-section-number {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.docs-section h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.docs-section h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 400;
}
.docs-section h2 + p { color: #383d38; font-size: 1.12rem; }
.docs-section ul { padding-left: 1.25rem; }
.docs-section li + li { margin-top: 0.45rem; }
.table-wrap { max-width: 100%; margin: 2rem 0; overflow-x: auto; }
.table-wrap table { min-width: 38rem; border-right: 0; border-left: 0; }
.table-wrap th, .table-wrap td { border-right: 0; border-left: 0; vertical-align: top; }
.table-wrap th {
  color: var(--muted);
  font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
  text-transform: uppercase;
}
.table-wrap td:first-child { width: 42%; white-space: nowrap; }
.compact-table td { padding-top: 0.45rem; padding-bottom: 0.45rem; }
.limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2rem 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.limit-grid div {
  display: flex;
  min-height: 7rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.limit-grid strong { font-size: 1.8rem; font-weight: 400; }
.limit-grid span { color: var(--muted); font-size: 0.9rem; }
.page-title { border-bottom: 1px solid var(--line); }
.empty-page { min-height: 18rem; display: flex; flex-direction: column; justify-content: center; }
.kicker { margin: 0 0 1rem; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.release-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: stretch;
  margin: 2rem 0 clamp(3rem, 8vw, 5rem);
  border: 1px solid var(--line);
}
.release-overview-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 5.5rem;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--line);
}
.release-overview-item span {
  color: var(--muted);
  font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
  text-transform: uppercase;
}
.release-overview-item a {
  color: var(--ink);
  font-size: 1.2rem;
  text-decoration: none;
}
.release-overview-item a:hover,
.release-overview-item a:focus-visible { text-decoration: underline; }
.archive-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--bg);
  background: var(--ink);
  font: 0.78rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
  text-decoration: none;
}
.archive-link:hover,
.archive-link:focus-visible {
  color: var(--bg);
  background: var(--accent);
}
.archive-title {
  scroll-margin-top: 2rem;
  padding: clamp(4rem, 9vw, 6rem) 0 1.5rem;
  border-top: 1px solid var(--line);
}
.archive-title h2 { margin-bottom: 0; }
.release-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.release-header h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
}
.release-date {
  color: var(--muted);
  font: 0.78rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: nowrap;
}
.release-status {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: nowrap;
}
.release-summary {
  max-width: 38rem;
  margin: 2rem 0 3.5rem;
  color: #4c514c;
  font-size: 1.15rem;
}
.release-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.55fr);
  gap: clamp(3rem, 8vw, 6rem);
}
.release-content h3 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 400;
}
.release-content h3:first-child { margin-top: 0; }
.release-content ul { padding-left: 1.25rem; }
.release-content li + li { margin-top: 0.45rem; }
.downloads {
  align-self: start;
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.downloads a,
.downloads .download-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.downloads a:hover span,
.downloads a:focus-visible span { text-decoration: underline; }
.downloads small {
  color: var(--muted);
  font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
  text-align: right;
}
.download-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.feature-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feature-preview section {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
}
.feature-preview section:first-child { padding-left: 0; }
.feature-preview section:last-child { border-right: 0; }
.feature-preview h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 400;
}
.feature-preview p {
  margin-bottom: 0;
  color: #4c514c;
}
.feature-number {
  color: var(--accent);
  font: 0.72rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.upcoming-note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}
.screenshot-card { margin: 0; }
.screenshot-card:first-child { grid-column: 1 / -1; }
.screenshot-card a {
  display: block;
  overflow: hidden;
  background: var(--line);
}
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease, opacity 180ms ease;
}
.screenshot-card a:hover img,
.screenshot-card a:focus-visible img {
  transform: scale(1.015);
  opacity: 0.92;
}
.editor-sample { margin: 0; }
.editor-title, .editor-status { display: flex; justify-content: space-between; gap: 1rem; color: #aeb7ab; background: var(--code-bg); }
.editor-title { padding: 0.8rem 1rem; border-bottom: 1px solid #3b4239; }
.editor-sample pre { margin: 0; padding: clamp(1.5rem, 5vw, 3rem) 1rem; overflow-x: auto; color: var(--code-ink); background: var(--code-bg); font: 0.9rem/1.9 ui-monospace, "Cascadia Code", Consolas, monospace; }
.editor-sample code { display: grid; grid-template-columns: 2rem 1fr; min-width: max-content; }
.line-no { color: #697167; user-select: none; }
.comment { color: #8a9587; }
.editor-sample b { color: #b9d99e; font-weight: 400; }
.block-cursor { display: inline-block; width: 0.6em; height: 1.1em; background: #b9d99e; vertical-align: -0.15em; }
.editor-status { padding: 0.35rem 0.7rem; color: #1b211a; background: #b9d99e; }
figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.9rem; }
.lightbox {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}
.lightbox:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 16, 0.92);
}
.lightbox figure {
  position: relative;
  z-index: 1;
  width: min(100%, 1200px);
  margin: 0;
}
.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 9rem);
  object-fit: contain;
  background: var(--code-bg);
}
.lightbox figcaption { color: #d4d8d1; }
.lightbox-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  color: #fff;
  font: 0.8rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.article-layout { max-width: 800px; }
.article-title { padding-bottom: 3rem; }
.inline-note {
  scroll-margin-top: 2rem;
  padding: clamp(4rem, 10vw, 3rem) 0 0;
  border-top: 1px solid var(--line);
}
.inline-note-header { max-width: 40rem; padding-bottom: 2rem; }
.inline-note-header h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.inline-note-header > p:last-child { color: var(--muted); font-size: 1.1rem; }
.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 0.78rem/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
}
.prose { max-width: 40rem; padding: 3rem 0 6rem; font-size: 1.08rem; }
.prose .lead { margin-top: 0; color: #383d38; font-size: 1.3rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 {
  margin: 2.75rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 400;
}
.note-aside {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: #eeefe9;
  color: #4c514c;
}
.code-block {
  margin: 1.75rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  color: var(--code-ink);
  background: var(--code-bg);
  font: 0.9rem/1.8 ui-monospace, "Cascadia Code", Consolas, monospace;
}

footer {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer a { color: var(--muted); }

@media (max-width: 620px) {
  .site-header { min-height: 7rem; align-items: flex-start; padding: 1.5rem 0; }
  nav { max-width: 16rem; }
  .split { grid-template-columns: 1fr; }
  .showcase-heading, .showcase-item { grid-template-columns: 1fr; }
  .showcase-heading > p:last-child { margin-top: 1.25rem; }
  .syntax-sample { box-shadow: 0.4rem 0.4rem 0 #dfe3da; }
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-index {
    position: static;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
  }
  .docs-index ol { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
  .docs-index li + li { margin-top: 0; }
  .docs-warning { grid-template-columns: 1fr; }
  .docs-choices { grid-template-columns: 1fr; }
  .docs-choice { min-height: 17rem; }
  .docs-choice + .docs-choice { border-top: 0; border-left: 1px solid var(--line); }
  .limit-grid { grid-template-columns: 1fr; }
  .release-header { display: block; }
  .release-overview { grid-template-columns: 1fr 1fr; }
  .release-overview-item:nth-child(2) { border-right: 0; }
  .archive-link {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .release-date { display: block; margin-top: 1rem; }
  .release-status { display: inline-block; margin-top: 1rem; }
  .release-content { grid-template-columns: 1fr; }
  .feature-preview { grid-template-columns: 1fr; }
  .feature-preview section,
  .feature-preview section:first-child {
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .feature-preview section:last-child { border-bottom: 0; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .screenshot-card:first-child { grid-column: auto; }
  .entry-list a { align-items: flex-start; }
  .entry-meta { text-align: right; }
  .home-hero h1 { font-size: clamp(3.25rem, 18vw, 5rem); }
  .hero-introduction { grid-template-columns: 1fr; padding-left: 0; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero-screenshot a { box-shadow: 0.4rem 0.4rem 0 #dfe3da; }
  .tour-heading,
  .tour-step,
  .system-section,
  .project-status { grid-template-columns: 1fr; }
  .tour-heading > p:last-child { margin-top: 1rem; }
  .tour-step-reverse .tour-copy { order: 1; }
  .tour-step-reverse .tour-visual { order: 2; }
  .diagram-frames { min-height: 13rem; }
  .tour-code { box-shadow: 0.4rem 0.4rem 0 #dfe3da; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
