/* Page shell adapted from the Nearo website. See LICENSE. */
:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #f1f0eb;
  --ink: #202126;
  --muted: #595d65;
  --line: #deded7;
  --accent: #214fc4;
  --serif: "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--accent); }
button, input, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1440px, calc(100% - 8vw)); margin-inline: auto; }
.top, footer, .top nav, footer nav, .brand, .chapter-heading, .downloads, .platform { display: flex; align-items: center; }
.top, footer, .chapter-heading { justify-content: space-between; }
.top { min-height: 78px; }
.brand { gap: 10px; font-size: 24px; font-weight: 730; letter-spacing: -.055em; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; overflow: hidden; width: 36px; height: 36px; border-radius: 10px; }
.brand-mark img { width: 100%; height: 100%; }
.brand-back { position: absolute; inset: 0; width: 100%; height: 100%; padding: 7px; border-radius: inherit; background: #151d32; fill: none; stroke: #a8ebcd; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.portfolio-link:focus-visible, .portfolio-link:active { --logo-offset: 45%; --logo-opacity: 0; --arrow-offset: 0%; --arrow-opacity: 1; }
@media (hover: hover) {
  .portfolio-link:hover { --logo-offset: 45%; --logo-opacity: 0; --arrow-offset: 0%; --arrow-opacity: 1; }
}
.brand-mark img { transform: translateX(var(--logo-offset, 0%)); opacity: var(--logo-opacity, 1); }
.brand-back { transform: translateX(var(--arrow-offset, -45%)); opacity: var(--arrow-opacity, 0); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .brand-mark img, .brand-back { transition: transform .19s ease-out, opacity .15s ease-out; }
}
.top nav, footer nav { gap: 25px; }
nav a, .downloads a, .photo-caption a, .chapter-heading a { text-decoration: none; }
.top nav a, footer nav a { font-size: 14px; }
.nav-github, .downloads a { border: 1px solid #dbdad4; border-radius: 12px; background: #f0efeb; font-weight: 600; }
.nav-github { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; }
h1, h2 { line-height: 1.03; letter-spacing: -.055em; }
h1 { font-size: clamp(52px,6.25vw,94px); }
h2 { font-size: clamp(32px,3.3vw,48px); font-weight: 570; }
h3 { font-size: 22px; letter-spacing: -.035em; }
.pitch > p, .intro { color: var(--muted); font-size: clamp(17px,1.45vw,20px); max-width: 39ch; }
.pitch > p { margin: 24px 0 30px; }
.downloads { gap: 10px; flex-wrap: wrap; }
.downloads a { display: inline-flex; justify-content: space-between; gap: 20px; padding: 11px 19px; }
.downloads .primary { background: #1b2026; color: white; border-color: #1b2026; box-shadow: 0 5px 12px #20232920; }
.downloads .primary:hover { background: #34414a; }
.platform { flex-wrap: wrap; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.chapter, footer { border-top: 1px solid var(--line); padding-block: clamp(36px,4vw,64px); }
.chapter-heading { align-items: baseline; gap: 20px; margin-bottom: 25px; }
.chapter-heading a, .help a, .guide a { color: var(--accent); }
.setup { display: grid; grid-template-columns: 1fr 1.65fr; gap: 30px; }
.help details { border-bottom: 1px solid var(--line); padding: 13px 0; }
.help details:first-child { padding-top: 0; }
.help summary { font-weight: 600; }
.help details[open] summary { color: var(--accent); }
.help p, .help ol { margin: 10px 0; }
.help li + li { margin-top: 6px; }
footer { gap: 16px; flex-wrap: wrap; }
footer nav { flex-wrap: wrap; gap: 18px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 2; background: var(--panel); padding: 8px; }
:root { --bg: #f9f9f2; --ink: #19231e; --muted: #536055; --line: #d7dcd0; --accent: #206247; --mono: ui-monospace, Menlo, Consolas, monospace; }
.wrap { width: min(1270px, calc(100% - 9vw)); }
.top { min-height: 76px; border-bottom: 1px solid var(--line); }
.top .brand { gap: 9px; }
.brand-back { background: #184933; }
.nav-github { background: transparent; border-color: var(--line); border-radius: 22px; }
.hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(36px,5.5vw,92px); padding-block: clamp(54px,6vw,94px); }
.pitch > .eyebrow, .eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; color: #365a41; font: 600 11px/1.4 var(--mono); letter-spacing: .095em; text-transform: uppercase; }
.signal { letter-spacing: 1px; color: #438359; }
.hero h1 { font-size: clamp(68px,7.5vw,112px); font-weight: 600; line-height: .93; letter-spacing: -.059em; word-spacing: .045em; }
.hero h1 em { font-family: var(--serif); font-weight: 500; letter-spacing: -.055em; color: #316247; }
.pitch > .lead { max-width: 39ch; margin: 24px 0 27px; color: var(--muted); font-size: clamp(17px,1.45vw,21px); line-height: 1.5; }
.downloads a { border-radius: 24px; padding: 11px 18px; background: transparent; border-color: #cbd2c6; font-size: 14px; }
.downloads .primary { background: #233f31; color: #fff; border-color: #233f31; box-shadow: none; }
.pitch > .platform { font: 12px/1.5 var(--mono); gap: 7px; margin: 15px 0 0; max-width: none; }
.studio { min-width: 0; border: 1px solid #bcc7b6; border-radius: 19px; background: #e7ecdf; overflow: hidden; box-shadow: 0 14px 32px -22px #384c3977; scroll-margin-top: 20px; }
.studio-head { padding: 14px 23px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.studio-head h2 { font: 650 15px/1.4 var(--sans); letter-spacing: -.026em; }
.source, .scope-label, .ticks, .demo-caption, #status { font: 11px/1.5 var(--mono); }
.source { color: #4e6052; }
.scope { position: relative; color: #b6d3ab; background-color: #17382d; background-image: linear-gradient(90deg,#a0cb991b 1px,transparent 1px),linear-gradient(#a0cb991b 1px,transparent 1px),radial-gradient(ellipse at 55% 60%,#34503b,transparent 75%); background-size: 24px 24px,24px 24px,100% 100%; border-block: 1px solid #203e2e; }
.scope-label, .ticks { position: absolute; left: 20px; right: 20px; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .11em; }
.scope-label { top: 10px; } .ticks { bottom: 9px; }
.scope img { width: 100%; height: clamp(135px,12vw,176px); }
.desk { padding: 17px 22px 12px; }
.destinations, .controls { display: flex; align-items: center; gap: 4px; }
.destinations { margin-bottom: 10px; }
.destinations button { padding: 5px 11px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #485545; font-size: 12px; font-weight: 550; }
.destinations button[aria-pressed=true] { color: #213b2b; background: #f8faf4; border-color: #c3cebd; }
.destinations button:hover { background: #f8faf4; }
.paper { background: #fffef8; border-radius: 9px; border: 1px solid #cbd1c3; padding: 13px 18px; box-shadow: 0 2px 5px #35473409; }
.paper label { display: block; font: 600 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .09em; color: #596459; }
.paper textarea { display: block; margin-top: 6px; padding: 0; border: 0; width: 100%; resize: vertical; min-height: 3.75em; height: 3.75em; max-height: 11em; font: 400 clamp(19px,1.7vw,25px)/1.25 var(--serif); background: transparent; color: #263e2b; }
.controls { justify-content: space-between; gap: 12px; margin-top: 13px; }
.play { background: #233f31; color: #fff; border: 0; padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.play span:first-child { font-size: 9px; margin-right: 4px; }
.play:hover, .primary:hover { background: #305640; }
#status { color: #3c5642; }
.demo-caption { padding: 0 22px 14px; color: #53634e; font-size: 10px; }
h2 { font-size: clamp(34px,3.55vw,52px); }
.flow, .packages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(22px,4vw,60px); }
.flow { margin-top: 35px; }
.flow article + article { border-left: 1px solid var(--line); padding-left: clamp(20px,3vw,46px); }
.flow h3, .packages h3 { font-size: 23px; font-weight: 620; }
.flow p, .packages p, .film p, .section-intro { color: var(--muted); line-height: 1.6; }
.flow p { margin-top: 8px; max-width: 36ch; }
.flow kbd, .pill, .cursor-mark { display: inline-flex; gap: 8px; align-items: center; height: 35px; margin-bottom: 17px; }
.flow kbd { padding: 0 10px; border: 1px solid #b5c4b0; border-bottom-width: 3px; border-radius: 7px; font: 14px var(--mono); background: #f2f4e9; }
.flow small { font: 10px var(--mono); }
.pill { padding: 0 12px; color: #b3f4a5; border-radius: 20px; background: #203b30; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: #c3f2ab; }
.cursor-mark { font: 30px var(--serif); }
.cursor-mark span { margin-left: -7px; color: #3b7445; font-size: 25px; }
.film { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 8%; }
.film p { max-width: 36ch; margin: 14px 0; }
.film details { font-size: 13px; color: var(--muted); }
.film video { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; display: block; }
.section-intro { max-width: 75ch; margin-bottom: 25px; }
.packages { gap: 14px; }
.packages article { display: flex; flex-direction: column; padding: clamp(18px,2vw,30px); background: #f0f2e8; border: 1px solid var(--line); border-radius: 13px; }
.packages p { margin: 8px 0 22px; }
.packages article > :last-child { margin-top: auto; }
.packages a, .chapter-heading a { font-size: 14px; color: var(--accent); font-weight: 600; }
.packages a + a { margin-left: 12px; }
footer { padding-block: 28px; } footer .brand { font-size: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .playing .scope img { animation: recording .55s ease-in-out alternate infinite; }
  @keyframes recording { to { transform: scaleY(.64); } }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px; gap: 30px; }
  .hero h1 { font-size: clamp(64px,10vw,90px); }
  .hero h1 br { display: none; }
  .hero h1 br::after { content: ' '; }
  .pitch > .lead { max-width: 53ch; }
  .scope img { height: 145px; }
  .flow, .packages { gap: 14px; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 36px); }
  .top { min-height: 61px; }
  .brand { font-size: 21px; } .brand-mark { width: 29px; height: 29px; }
  .top nav { gap: 13px; } .top nav a { font-size: 12px; }
  .pitch > .eyebrow { margin-bottom: 16px; }
  .hero h1 br { display: initial; }
  .hero { padding-top: 34px; }
  .desk { padding-inline: 14px; } .studio-head, .demo-caption { padding-inline: 14px; }
  .scope img { height: 120px; }
  .paper textarea { height: 4.9em; }
  .flow, .packages, .setup, .film { grid-template-columns: 1fr; }
  .flow { gap: 20px; }
  .flow article + article { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .flow p { max-width: none; }
  .film { gap: 22px; } .chapter-heading { align-items: start; flex-direction: column; gap: 12px; }
}
