/* Fenna Crew site. Monochrome UI; colour comes only from the pixel faces and
   the product screenshots. Radius 0, hard shadows, notched 2px pixel frames. */

:root {
  --bg: #0b0b0b;
  --panel: #111111;
  --raised: #171717;
  --hover: #1e1e1e;
  --line: #222222;
  --line-strong: #323232;
  --text: #ededed;
  --text-2: #a6a6a6;
  --text-3: #6f6f6f;
  --pri: #ededed;
  --pri-ink: #141414;
  --pri-hover: #ffffff;
  --sel: #8aa4c4;
  --warn: #d9a441;
  --drop: rgba(0, 0, 0, 0.55);
  --shade: rgba(0, 0, 0, 0.28);
  --lift: rgba(255, 255, 255, 0.06);
  --ink: #161616;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --gutter: 24px;
  --section: clamp(80px, 11vw, 150px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f6f3;
    --panel: #fbfaf8;
    --raised: #ffffff;
    --hover: #efede8;
    --line: #e4e2dc;
    --line-strong: #cfccc4;
    --text: #161616;
    --text-2: #55534e;
    --text-3: #85827b;
    --pri: #161616;
    --pri-ink: #ffffff;
    --pri-hover: #2a2a2a;
    --sel: #4a6688;
    --warn: #a8741a;
    --drop: rgba(0, 0, 0, 0.14);
    --shade: rgba(0, 0, 0, 0.12);
    --lift: rgba(255, 255, 255, 0.7);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f6f3;
  --panel: #fbfaf8;
  --raised: #ffffff;
  --hover: #efede8;
  --line: #e4e2dc;
  --line-strong: #cfccc4;
  --text: #161616;
  --text-2: #55534e;
  --text-3: #85827b;
  --pri: #161616;
  --pri-ink: #ffffff;
  --pri-hover: #2a2a2a;
  --sel: #4a6688;
  --warn: #a8741a;
  --drop: rgba(0, 0, 0, 0.14);
  --shade: rgba(0, 0, 0, 0.12);
  --lift: rgba(255, 255, 255, 0.7);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--sel); color: var(--bg); }
:focus-visible { outline: 2px solid var(--sel); outline-offset: 3px; }

.wrap { max-width: 1248px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 600px) { :root { --gutter: 16px; } }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--pri); color: var(--pri-ink); text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
.mono, .eyebrow, .chip {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow { color: var(--text-2); margin-bottom: 24px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1.02; max-width: 13em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; max-width: 16em; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
p { max-width: 62ch; }
.lede { color: var(--text-2); font-size: clamp(18px, 1.6vw, 21px); max-width: 56ch; margin-top: 28px; }
.muted { color: var(--text-2); }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: var(--text); }

/* The pixel frame: a notched 2px edge drawn with box-shadow, corners left out. */
.px {
  --px-c: var(--line-strong);
  --px-edge: 0 -2px 0 0 var(--px-c), 0 2px 0 0 var(--px-c), -2px 0 0 0 var(--px-c), 2px 0 0 0 var(--px-c);
  margin: 2px;
  background: var(--raised);
  box-shadow: var(--px-edge);
}
.px.drop { box-shadow: var(--px-edge), 6px 6px 0 0 var(--drop); }

/* Buttons */
.btn {
  --px-c: var(--line-strong);
  --px-edge: 0 -2px 0 0 var(--px-c), 0 2px 0 0 var(--px-c), -2px 0 0 0 var(--px-c), 2px 0 0 0 var(--px-c);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; margin: 2px;
  background: var(--raised); color: var(--text);
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  box-shadow: var(--px-edge), inset 0 2px 0 0 var(--lift), inset 0 -2px 0 0 var(--shade);
}
.btn:hover { --px-c: var(--text-3); }
.btn:active { transform: translateY(1px); box-shadow: var(--px-edge), inset 0 2px 0 0 var(--shade); }
.btn.primary { --px-c: var(--pri); background: var(--pri); color: var(--pri-ink); }
.btn.primary:hover { --px-c: var(--pri-hover); background: var(--pri-hover); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.fine { margin-top: 22px; color: var(--text-3); font-size: 14px; max-width: none; }
.fine.mono { font-size: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 2px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
.nav a:not(.brand):not(.btn) { color: var(--text-2); font-size: 15px; text-decoration: none; }
.nav a:not(.brand):not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-links { display: flex; gap: 28px; }
.theme {
  --px-c: var(--line-strong);
  --px-edge: 0 -2px 0 0 var(--px-c), 0 2px 0 0 var(--px-c), -2px 0 0 0 var(--px-c), 2px 0 0 0 var(--px-c);
  width: 36px; height: 36px; margin: 2px; display: grid; place-items: center;
  box-shadow: var(--px-edge);
}
.theme:hover { --px-c: var(--text-3); }
.theme i { position: relative; width: 14px; height: 14px; border: 2px solid var(--text); display: block; }
.theme i::after { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 10px; background: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } .nav-in { gap: 14px; } }

/* Faces */
.face { display: inline-block; flex: none; width: calc(var(--u, 4px) * 16); height: calc(var(--u, 4px) * 16); vertical-align: middle; }
.face svg { display: block; width: 100%; height: 100%; overflow: visible; shape-rendering: crispEdges; }
.face .b { fill: var(--fb); }
.face .s { fill: var(--fs); }
.face .k, .face .eyes rect { fill: var(--ink); }
.face .dot { fill: var(--warn); }
.face.sit { margin-bottom: calc(var(--u, 4px) * var(--gap, 0) * -1); }
.face { --fb: var(--fbd); --fs: var(--fsd); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .face { --fb: var(--fbl); --fs: var(--fsl); } }
:root[data-theme="light"] .face { --fb: var(--fbl); --fs: var(--fsl); }

@keyframes look { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-1px); } 75% { transform: translateX(1px); } }
@keyframes blink { 0%, 93%, 100% { visibility: visible; } 94%, 97% { visibility: hidden; } }
@keyframes beacon { 0%, 100% { visibility: visible; } 50% { visibility: hidden; } }
@media (prefers-reduced-motion: no-preference) {
  .face[data-mood="work"] .eyes { animation: look 1.6s steps(1, end) infinite; animation-delay: var(--d, 0s); }
  .face[data-mood="idle"] .eyes { animation: blink 5s steps(1, end) infinite; animation-delay: var(--d, 0s); }
  .face[data-mood="need"] .dot { animation: beacon 1.2s steps(1, end) infinite; }
  .btn:hover, .card:hover .face { animation: glitch 200ms steps(1, end) 1; }
}
@keyframes glitch {
  0%, 100% { transform: none; clip-path: none; }
  25% { transform: translateX(-2px); clip-path: inset(0 0 60% 0); }
  50% { transform: translateX(2px); clip-path: inset(40% 0 0 0); }
  75% { transform: translate(-1px, 1px); clip-path: inset(20% 0 30% 0); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:active { transform: none; } }

/* Sections */
.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }
.hero { padding: clamp(56px, 9vw, 120px) 0 0; }
.hero .wrap > p.fine { margin-top: 24px; }

/* The stage: the app window on the pixel field */
.stage { position: relative; isolation: isolate; margin: clamp(56px, 8vw, 96px) 2px 0; background: var(--panel); --px-c: var(--line-strong); box-shadow: 0 -2px 0 0 var(--px-c), 0 2px 0 0 var(--px-c), -2px 0 0 0 var(--px-c), 2px 0 0 0 var(--px-c); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; image-rendering: pixelated; pointer-events: none; }
.stage-in { padding: clamp(72px, 9vw, 110px) clamp(16px, 5vw, 64px) clamp(24px, 5vw, 64px); }
.stage-in.plain { padding-top: clamp(24px, 5vw, 64px); }
.window { position: relative; }
.shot { background: var(--raised); box-shadow: 0 -2px 0 0 var(--line-strong), 0 2px 0 0 var(--line-strong), -2px 0 0 0 var(--line-strong), 2px 0 0 0 var(--line-strong), 8px 8px 0 0 var(--drop); margin: 2px; }
.shot img { width: 100%; }
.shelf { position: absolute; left: clamp(12px, 3vw, 40px); bottom: calc(100% + 2px); display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 28px); --u: 4px; }
@media (min-width: 900px) { .shelf { --u: 5px; } }
@media (max-width: 480px) { .shelf { --u: 3px; } }


/* Meet a crew */
.head { display: grid; gap: 0; }
.cards4 { display: grid; gap: 28px; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
@media (max-width: 1000px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards4 { grid-template-columns: 1fr; } }
.card { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card:hover { --px-c: var(--text-3); }
.card .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card p { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.chip { display: inline-block; padding: 3px 7px; color: var(--text-2); background: var(--panel); box-shadow: 0 -2px 0 0 var(--line-strong), 0 2px 0 0 var(--line-strong), -2px 0 0 0 var(--line-strong), 2px 0 0 0 var(--line-strong); margin: 2px; white-space: nowrap; }
.after { margin-top: 40px; color: var(--text-2); }

/* Computer */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }

/* Feature cards */
.feats { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
@media (max-width: 1060px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feats { grid-template-columns: 1fr; } }
.feat { display: flex; flex-direction: column; }
.feat .ui { padding: 18px; min-height: 252px; background: var(--panel); border-bottom: 2px solid var(--line-strong); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.feat .txt { padding: 24px; }
.feat h3 { margin-bottom: 10px; }
.feat p { color: var(--text-2); font-size: 16px; }

.mini { font-size: 13px; line-height: 1.4; }
.mini .row { display: flex; align-items: center; gap: 10px; }
.mini .box { background: var(--raised); padding: 12px; box-shadow: 0 -2px 0 0 var(--line-strong), 0 2px 0 0 var(--line-strong), -2px 0 0 0 var(--line-strong), 2px 0 0 0 var(--line-strong); margin: 2px; }
.mini .b2 { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 500; background: var(--raised); box-shadow: 0 -2px 0 0 var(--line-strong), 0 2px 0 0 var(--line-strong), -2px 0 0 0 var(--line-strong), 2px 0 0 0 var(--line-strong); margin: 2px; }
.mini .b2.pri { background: var(--pri); color: var(--pri-ink); box-shadow: 0 -2px 0 0 var(--pri), 0 2px 0 0 var(--pri), -2px 0 0 0 var(--pri), 2px 0 0 0 var(--pri); }
.mini .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini .ctl { background: var(--pri); color: var(--pri-ink); padding: 8px 10px; font-weight: 500; }
.mini .page { height: 56px; background: var(--hover); position: relative; margin-top: 8px; }
.mini .page::before, .mini .page::after { content: ""; position: absolute; left: 10px; height: 6px; background: var(--line-strong); }
.mini .page::before { top: 12px; width: 55%; }
.mini .page::after { top: 28px; width: 35%; }
.mini .secret { display: inline-flex; gap: 3px; }
.mini .secret i { width: 6px; height: 6px; background: var(--text-3); display: block; }
.mini .grow { flex: 1; min-width: 0; }
.mini .name { font-weight: 600; }
.mini .sub { color: var(--text-2); }
.mini .seg { display: inline-flex; }
.mini .seg span { padding: 3px 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); background: var(--panel); }
.mini .seg span.on { background: var(--pri); color: var(--pri-ink); }
.mini .msg { display: flex; gap: 10px; align-items: flex-start; }
.mini .msg .t { background: var(--raised); padding: 8px 10px; box-shadow: 0 -2px 0 0 var(--line-strong), 0 2px 0 0 var(--line-strong), -2px 0 0 0 var(--line-strong), 2px 0 0 0 var(--line-strong); margin: 2px; }
.mini .msg.me { justify-content: flex-end; }
.mini .msg.me .t { background: var(--hover); }
.mini .amber { color: var(--text-2); }

/* Plan */
.three { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); margin-top: 64px; }
@media (max-width: 800px) { .three { grid-template-columns: 1fr; gap: 20px; } }
.plan { padding: 24px; }
.plan .mono { color: var(--text-2); }
.plan h3 { margin-top: 36px; font-size: clamp(22px, 2.4vw, 28px); }
.plan-note { margin-top: 48px; display: grid; gap: 20px; }
.plan-note p { color: var(--text-2); }

/* Editors */
.editors { list-style: none; margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
@media (max-width: 800px) { .editors { grid-template-columns: 1fr; } }
.editors li { display: flex; gap: 20px; align-items: center; padding: 22px 0; border-top: 2px solid var(--line); }
.editors img { width: 56px; height: 56px; flex: none; }
.editors h3 { font-size: 18px; }
.editors p { color: var(--text-2); font-size: 16px; line-height: 1.5; margin-top: 2px; }

/* Steps */
.steps { list-style: none; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); margin-top: 64px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 0; } }
.steps li { padding-top: 20px; border-top: 2px solid var(--line-strong); }
@media (max-width: 800px) { .steps li { padding: 22px 0; } }
.steps .mono { color: var(--text-3); }
.steps h3 { margin: 18px 0 8px; }
.steps p { color: var(--text-2); font-size: 16px; }

/* Final */
.final { border-top: 2px solid var(--line); }

/* Footer */
.foot { border-top: 2px solid var(--line); padding: 40px 0 56px; color: var(--text-3); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: baseline; }
.foot a { text-decoration: none; color: var(--text-2); }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot .copy { margin-left: auto; }
@media (max-width: 720px) { .foot .copy { margin-left: 0; } }

/* Download page */
.dl-hero { padding: clamp(48px, 7vw, 96px) 0 0; }
.dl-hero h1 { font-size: clamp(40px, 6vw, 72px); }
.installers { list-style: none; margin-top: 56px; display: grid; }
.installers li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 2px solid var(--line); flex-wrap: wrap; }
.installers li:last-child { border-bottom: 2px solid var(--line); }
.installers .os { font-weight: 600; min-width: 220px; }
.installers .file { color: var(--text-3); flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }
.os-steps { margin-top: 48px; display: grid; gap: 0; max-width: 760px; list-style: none; }
.os-steps li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-top: 2px solid var(--line); }
.os-steps li:last-child { border-bottom: 2px solid var(--line); }
.os-steps .mono { color: var(--text-2); padding-top: 5px; }
.os-steps p { max-width: none; }
@media (max-width: 560px) { .os-steps li { grid-template-columns: 1fr; gap: 4px; } }
.tablewrap { margin-top: 48px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 16px; }
th { text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); padding: 0 16px 12px 0; }
td { padding: 16px 16px 16px 0; border-top: 2px solid var(--line); vertical-align: middle; }
td.app { display: flex; align-items: center; gap: 14px; font-weight: 600; white-space: nowrap; }
td.app img { width: 32px; height: 32px; }
td.for { color: var(--text-2); }
td a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.sec { margin-top: var(--section); }
.sec .eyebrow { margin-bottom: 20px; }

/* Changelog */
.log-head { padding: clamp(48px, 7vw, 96px) 0 0; }
.log-head h1 { font-size: clamp(40px, 6vw, 72px); }
.releases { margin-top: 64px; padding-bottom: var(--section); }
.release { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 2px solid var(--line); scroll-margin-top: 80px; }
@media (max-width: 800px) { .release { grid-template-columns: 1fr; gap: 16px; } }
.release-meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.release-tag a { text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.release-date { color: var(--text-3); }
.latest { padding: 3px 7px; background: var(--pri); color: var(--pri-ink); }
.release-body { color: var(--text-2); max-width: 70ch; font-size: 17px; }
.release-body h1, .release-body h2, .release-body h3 { color: var(--text); font-size: 18px; letter-spacing: -0.01em; margin: 28px 0 10px; }
.release-body h1:first-child, .release-body h2:first-child, .release-body h3:first-child { margin-top: 0; }
.release-body p { margin: 0 0 12px; }
.release-body ul, .release-body ol { margin: 0 0 12px 22px; }
.release-body li { margin: 4px 0; }
.release-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.release-body code { font-family: var(--mono); font-size: 0.88em; background: var(--panel); padding: 1px 5px; }
.release-body pre { background: var(--panel); padding: 14px; overflow-x: auto; margin: 0 0 12px; font-size: 14px; }
.release-body pre code { background: none; padding: 0; }
.release-body img { max-width: 100%; height: auto; }
.release-dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.state { color: var(--text-2); padding-top: 24px; }

.feats.nohead { margin-top: 0; }
.split .side { margin-top: 0; }
.mini .row.gap { margin-top: 10px; }
.mini .ask { margin-top: 10px; }
.section + .final { margin-top: var(--section); }
.final .actions { margin-top: 36px; }
.sec:last-child { padding-bottom: var(--section); }

.pair .a { width: 80%; }
.pair .b { width: 54%; margin: -15% 2px 2px auto; position: relative; }
@media (max-width: 760px) { .pair .a, .pair .b { width: auto; margin: 2px; } .pair .b { margin-top: 28px; } }
.editors li.note { align-items: flex-start; }
.editors li.note p { color: var(--text-2); }
@media (max-width: 640px) { .feat .ui { min-height: 0; } }
.shot-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .shot-dark { display: none; } :root:not([data-theme="dark"]) .shot-light { display: block; } }
:root[data-theme="light"] .shot-dark { display: none; }
:root[data-theme="light"] .shot-light { display: block; }
