:root {
  color-scheme: light;
  background-color: #f8fafc;
  color: #142139;
  --rl-background: #f8fafc;
  --rl-panel: #ffffff;
  --rl-line: #ccd7e6;
  --rl-text: #142139;
  --rl-muted: #47566d;
  --rl-accent: #1749a0;
  --rl-accent-hover: #103773;
  --rl-highlight: #eaf1fc;
  --rl-control-border: #6b819d;
  --rl-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --rl-display: "Trebuchet MS", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--rl-background); color: var(--rl-text); font: 16px/1.65 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--rl-accent); }
a:focus-visible { outline: 2px solid var(--rl-accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--rl-display); font-weight: 700; line-height: 1.08; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 1; left: 1rem; top: 1rem; padding: .6rem 1rem; background: var(--rl-accent); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; color: #fff; }
.top { border-bottom: 1px solid var(--rl-line); }
.top-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; font: 700 21px/1 var(--rl-display); letter-spacing: -.045em; }
.brand-mark { display: inline-flex; align-items: end; gap: 2px; width: 26px; height: 25px; margin-right: 9px; padding: 5px; border: 1px solid var(--rl-control-border); border-radius: 5px; color: var(--rl-accent); }
.brand-mark i { width: 4px; height: 5px; background: currentColor; }
.brand-mark i:nth-child(2) { height: 8px; }
.brand-mark i:nth-child(3) { height: 12px; }
.domain { color: var(--rl-muted); }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); }
nav a { text-decoration: none; color: var(--rl-muted); font-weight: 550; font-size: .94rem; }
nav a[aria-current] { color: var(--rl-accent); text-decoration: underline; }
main { min-height: 65vh; }
.hero { display: grid; grid-template-columns: 1.07fr .93fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(3.3rem, 7vw, 5.7rem); }
.kicker, .byline, .back-link, .console-head, .console-foot, .console-caption { font-family: var(--rl-mono); }
.kicker { color: var(--rl-accent); font-size: .76rem; letter-spacing: .095em; text-transform: uppercase; }
.signal { display: inline-block; vertical-align: .08em; width: 7px; height: 7px; margin-right: .52em; border-radius: 50%; background: var(--rl-accent); }
.hero h1 { font-size: clamp(3rem, 6.1vw, 5.3rem); letter-spacing: -.075em; margin: 1rem 0 1.2rem; line-height: .96; }
.hero h1 em { font-style: normal; color: var(--rl-accent); }
.lead { max-width: 50ch; color: var(--rl-muted); font-size: clamp(1.05rem, 2vw, 1.2rem); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.55rem; }
.button { display: inline-flex; align-items: center; gap: .85em; border: 1px solid var(--rl-control-border); border-radius: 5px; min-height: 47px; padding: .63rem .95rem; text-decoration: none; font-weight: 650; font-size: .9rem; }
.button:hover { background: var(--rl-highlight); }
.button.primary { color: #ffffff; background: var(--rl-accent); border-color: var(--rl-accent); }
.button.primary:hover { background: var(--rl-accent-hover); }
.run-console {
  --rl-text: #f5f8ff;
  --rl-muted: #c4d2e8;
  --rl-accent: #a9c9ff;
  min-width: 0; overflow: hidden; border: 1px solid #455875; border-radius: 9px; background: #15233b; text-decoration: none; color: var(--rl-text); box-shadow: 0 24px 65px #16263c26; }
.run-console:focus-visible { outline-color: var(--rl-accent-hover); }
.run-console:hover { border-color: var(--rl-accent); color: var(--rl-text); }
.console-head, .console-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .9rem 1rem; font-size: .69rem; color: var(--rl-muted); }
.console-head { border-bottom: 1px solid #425370; }
.console-head span:first-child { color: var(--rl-text); font-weight: 700; }
.console-foot { border-top: 1px solid #425370; }
.console-foot span:last-child { color: var(--rl-accent); }
.console-body { padding: 1.2rem 1rem 1.35rem; background: radial-gradient(ellipse at 48% 80%, #263d60, transparent 75%); }
.console-caption { margin-bottom: 1.25rem; font-size: .76rem; color: var(--rl-muted); }
.chart { display: flex; gap: .65rem; padding-bottom: 1.35rem; }
.chart-scale { font: .65rem/2.75rem var(--rl-mono); color: var(--rl-muted); margin-top: -1.37rem; }
.chart-bars { flex: 1; display: flex; justify-content: space-around; align-items: end; height: 8.25rem; border-bottom: 1px solid #8496b1; border-top: 1px solid #425370; background: repeating-linear-gradient(to bottom, transparent 0 calc(33.33% - 1px), #425370 0 33.33%); }
.bar { position: relative; width: 19%; max-width: 76px; border: 1px solid #adcaff; border-bottom: 0; border-radius: 3px 3px 0 0; background: linear-gradient(#a5c5ff, #5883d2); }
.bar span { display: block; position: absolute; bottom: calc(100% + .1rem); left: 50%; transform: translateX(-50%); text-align: center; color: var(--rl-text); font: 700 .75rem var(--rl-mono); }
.bar b { position: absolute; top: calc(100% + .48rem); left: 50%; transform: translateX(-50%); font: .65rem var(--rl-mono); color: var(--rl-muted); white-space: nowrap; }
.home-section { border-top: 1px solid var(--rl-line); padding-block: 1.6rem 2.7rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.15rem; }
.section-head h2 { font-size: clamp(1.55rem, 3.5vw, 2rem); letter-spacing: -.035em; }
.section-head a, .text-link { font-weight: 600; color: var(--rl-accent); font-size: .9rem; }
.work-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.work-card { display: flex; flex-direction: column; min-height: 235px; overflow: hidden; background: var(--rl-panel); border: 1px solid var(--rl-line); border-radius: 8px; }
.work-card:has(.cover) { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.cover { grid-column: 2; grid-row: 1; min-width: 0; background: #21182f; }
.work-card:has(.cover) .work-copy { grid-column: 1; grid-row: 1; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.work-copy { flex: 1; display: flex; flex-direction: column; align-items: start; padding: clamp(1.15rem, 3vw, 1.65rem); }
.work-copy h3 { margin-block: .48rem .55rem; font-size: 1.82rem; letter-spacing: -.045em; }
.work-copy h3 a, .article-row h3 a { text-decoration: none; }
.work-copy p:not(.kicker), .article-row p:not(.kicker) { max-width: 36ch; color: var(--rl-muted); }
.work-card:has(.cover) .work-copy p:not(.kicker) { max-width: 31ch; }
.work-copy .text-link { margin-top: auto; padding-top: 1.1rem; }
.article-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1.15rem 0 1.3rem; border-block-start: 1px solid var(--rl-line); }
.article-row h3 { font-size: 1.3rem; letter-spacing: -.02em; margin-block: .35rem; }
.article-row p:not(.kicker) { max-width: 65ch; }
.arrow { flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--rl-line); border-radius: 50%; width: 44px; height: 44px; color: var(--rl-accent); text-decoration: none; }
.arrow:hover { background: var(--rl-highlight); border-color: var(--rl-accent); }
.footer { border-top: 1px solid var(--rl-line); color: var(--rl-muted); }
.footer .brand { color: var(--rl-text); }
.footer-inner { min-height: 85px; font-size: .85rem; }
.footer-inner > a:last-child { white-space: nowrap; }
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) 2rem; }
.page-head h1 { max-width: 16ch; font-size: clamp(2.5rem, 7vw, 5.25rem); letter-spacing: -.068em; margin-bottom: .85rem; overflow-wrap: anywhere; }
.page-head .kicker { margin-bottom: .6rem; }
.byline, .back-link { color: var(--rl-muted); font-size: .82rem; }
.byline { margin-top: 1rem; }
.back-link { display: inline-block; margin-bottom: 1rem; }
.article-list, main > .work-grid { margin-bottom: 4rem; }
.detail { max-width: 860px; padding-bottom: 3.3rem; }
.detail-cover { max-width: 730px; margin-bottom: 1.8rem; }
.detail-cover img { object-fit: cover; width: 100%; aspect-ratio: 2 / 1; border-radius: 8px; border: 1px solid var(--rl-line); }
.detail-cover figcaption { color: var(--rl-muted); font-size: .8rem; padding-top: .36rem; }
.prose { max-width: 68ch; color: #293851; font-size: 1.125rem; line-height: 1.7; }
.prose p + p { margin-top: .95rem; }
.prose h2, .prose h3 { color: var(--rl-text); margin-block: 1.75rem .6rem; letter-spacing: -.025em; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.3rem; }
.prose a { color: var(--rl-accent); }
.prose code { padding: .1rem .28rem; border-radius: 3px; background: #e4edf9; color: #193764; overflow-wrap: anywhere; font-family: var(--rl-mono); font-size: .9em; }
.prose ul { margin: .7rem 0 1rem; padding-left: 1.4rem; }
.prose li + li { margin-top: .36rem; }
.project-return { margin-top: 1.6rem; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 1.5rem; }
}
@media (max-width: 660px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { min-height: auto; align-items: flex-start; flex-direction: column; gap: .75rem; padding-block: .9rem; }
  nav { width: 100%; justify-content: space-between; }
  nav a { display: inline-flex; align-items: center; min-height: 36px; }
  .hero, .work-grid { grid-template-columns: 1fr; }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(2.75rem, 11.5vw, 4.6rem); }
  .footer-inner { padding-block: 1.15rem; flex-wrap: wrap; justify-content: flex-start; gap: .85rem 1.2rem; }
}
@media (max-width: 420px) {
  .work-card:has(.cover) { grid-template-columns: 1fr; }
  .work-card:has(.cover) .work-copy { grid-column: 1; grid-row: 2; }
  .cover { grid-column: 1; height: 160px; }
}
