/* macmol.tech */
:root {
  --bg: #0b100e; --panel: #111815; --line: rgba(243, 238, 226, .12);
  --ink: #f3eee2; --soft: #a9b0a6; --accent: #6fd3a2; --warn: #f0b04a;
  --btn: #f3eee2; --btnInk: #0b100e;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: dark;
}
html[data-theme="paper"] {
  --bg: #f3eee2; --panel: #ece5d4; --line: rgba(27, 24, 18, .16);
  --ink: #1b1812; --soft: #6c6557; --accent: #1f4d39; --warn: #8f5200;
  --btn: #1f4d39; --btnInk: #f3eee2;
  color-scheme: light;
}

/* light theme: the look of the current macmol.tech (paper, pine, Fraunces) */
html[data-theme="paper"] h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: .98; font-variation-settings: "opsz" 144; }
html[data-theme="paper"] h1 em { font-weight: 600; }
html[data-theme="paper"] body::before {
  content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .04; 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='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="paper"] body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55vw 48vw at 78% -6%, rgba(31, 77, 57, .10), transparent 60%),
    radial-gradient(48vw 42vw at 10% 108%, rgba(173, 140, 84, .12), transparent 56%);
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; width: 100%; }
.mono { font-family: var(--mono); }

/* header */
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { font-family: var(--mono); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand::before { content: ""; width: 9px; height: 9px; background: var(--accent); }
.topRight { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.badge { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ghost {
  font-family: var(--mono); font-size: 13px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--soft); border: 1px solid var(--line); cursor: pointer;
}
.ghost:hover { color: var(--ink); }

/* hero */
main { flex: 1; display: flex; align-items: center; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; padding-block: 40px 56px; }
.copy { gap: 36px; }
.copy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; }
.kicker { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.kicker span { color: var(--accent); }
h1 { margin: 0; font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -.03em; }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; color: var(--accent); }
.lead { margin: 0; max-width: 30rem; font-size: 1.15rem; line-height: 1.6; color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta {
  background: var(--btn); color: var(--btnInk); font-weight: 600; font-size: 16px;
  padding: 0 24px; min-height: 52px; display: inline-flex; align-items: center; border: 0; cursor: pointer; font-family: inherit;
}
a.cta:hover, .cta:hover { color: var(--btnInk); opacity: .88; }
.links { display: flex; flex-wrap: wrap; gap: 4px 24px; font-family: var(--mono); font-size: 14px; }
.links a { min-height: 44px; display: inline-flex; align-items: center; }

/* fleet panel */
.panel { flex: 1 1 460px; min-width: 0; background: var(--panel); border: 1px solid var(--line); }
.panelBar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--soft);
}
.panelBar .dot { color: var(--accent); }
.push { display: flex; align-items: center; gap: 8px; }
.segs { display: flex; }
.seg {
  font-family: var(--mono); font-size: 13px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--soft); border: 1px solid var(--line); cursor: pointer;
}
.seg + .seg { border-left: 0; }
.seg:hover { color: var(--ink); }
.seg.on { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.panel canvas { display: block; width: 100%; height: 480px; touch-action: pan-y; cursor: crosshair; }
.panelFoot { padding: 12px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; min-height: 44px; color: var(--soft); }
.status { color: var(--accent); }
.status.warn { color: var(--warn); }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px;
  padding-block: 10px; font-family: var(--mono); font-size: 13px; color: var(--soft);
}
.footLinks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.footLinks a, .linkButton {
  color: var(--soft); min-height: 44px; display: inline-flex; align-items: center;
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.footLinks a:hover, .linkButton:hover { color: var(--accent); }

/* privacy notice */
.consent {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(820px, calc(100% - 32px)); z-index: 20;
  background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-top: 2px solid var(--accent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
}
.consent[hidden] { display: none; }
.consentText { flex: 1 1 340px; min-width: 0; }
.consentText h2 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.consentText p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--soft); }
.consentText a { border-bottom: 1px solid var(--line); }
.consentActions { display: flex; flex-wrap: wrap; gap: 10px; }
.consentActions button {
  font-family: var(--sans); font-weight: 600; font-size: 15px; min-height: 48px; padding: 0 20px; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.consentActions button:hover { background: var(--ink); color: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consentIn .35s cubic-bezier(.2, .7, .2, 1); }
  @keyframes consentIn { from { opacity: 0; transform: translate(-50%, 14px); } }
}

/* privacy page */
.prose { max-width: 46rem; padding-block: 48px 72px; display: flex; flex-direction: column; gap: 18px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.prose h2 { margin: 18px 0 0; font-size: 1.3rem; font-weight: 600; }
.prose p, .prose li { margin: 0; line-height: 1.65; color: var(--soft); }
.prose ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 8px; }
.prose code { font-family: var(--mono); font-size: .92em; color: var(--ink); }
.prose a { border-bottom: 1px solid var(--line); }
.todo { color: var(--warn); }
main.page { align-items: flex-start; }

@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .panel canvas { height: 420px; }
}

/* content below the hero: readable without JavaScript */
main.home { display: block; }
main.home .hero { min-height: calc(100svh - 74px); align-content: center; }
.info { display: flex; flex-direction: column; padding-block: 24px 96px; }
.info section { max-width: 46rem; padding-block: 40px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.info h2 { margin: 0; font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; }
.info h3 { margin: 0; font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.info p { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--soft); }
.info p a { border-bottom: 1px solid var(--line); }
.qa { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
html[data-theme="paper"] .info h2 { font-family: var(--serif); letter-spacing: -.01em; }

/* terminal line under the headline */
.term { margin: 0; font-family: var(--mono); font-size: .9rem; letter-spacing: .02em; color: var(--soft); display: inline-flex; align-items: center; gap: .5rem; }
.term .prompt { color: var(--accent); }
.caret { display: inline-block; width: .55ch; height: 1.05em; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: caretBlink 1.1s steps(1) infinite; }
  @keyframes caretBlink { 50% { opacity: 0; } }
}
