@font-face {
  font-family: "Space Mono";
  src: url("/fonts/space-mono-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f6f6f4;
  --surface: #ffffff;
  --ink: #181a19;
  --body: #444844;
  --muted: #737973;
  --edge: rgb(24 26 25 / 8%);
  --edge-strong: rgb(24 26 25 / 14%);
  --green: #256c4a;
  --green-deep: #194c34;
  --green-soft: #e6f2eb;
  --amber: #9b6713;
  --radius-sm: 6px;
  --radius-md: 9px;
  --shadow: 0 1px 2px rgb(24 26 25 / 5%), 0 6px 18px rgb(24 26 25 / 4%);
  --font-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 50% -18rem, rgb(255 255 255 / 90%), transparent 36rem),
    var(--canvas);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.01em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  cursor: pointer;
}

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding-inline: 24px;
}

.site-header { padding-top: 26px; }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 700 17px/1 "Space Mono", var(--font-mono);
  letter-spacing: -.07em;
  text-decoration: none;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a9b6d;
  box-shadow: 0 0 0 3px var(--green-soft);
}

.site-header nav { display: flex; gap: 16px; }
.site-header nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

.home-shell { padding-block: 62px 52px; }
.intro {
  position: relative;
  padding-right: 112px;
  animation: settle .42s ease-out both;
}

.hero-matrix {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 94px;
  display: grid;
  grid-template-columns: repeat(10, 4px);
  gap: 6px;
  opacity: .72;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000);
}

.hero-matrix span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  opacity: .1;
  transform: scale(.78);
  animation: matrix-signal 4.8s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-delay: var(--matrix-delay);
}

.meta,
.meta-row,
.section-label,
.article-actions {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.meta { margin: 0 0 16px; color: var(--green); }

.intro h1 {
  margin: 0;
  max-width: 28rem;
  font-size: 18px;
  font-weight: 690;
  line-height: 1.28;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.intro > p:last-of-type {
  max-width: 36rem;
  margin: 10px 0 0;
  color: var(--body);
  text-wrap: pretty;
}

.primary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }

.button,
.tiny-button {
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 7px 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--edge), 0 1px 2px rgb(24 26 25 / 7%);
  color: var(--body);
  font: 610 12px/1 var(--font-ui);
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.button:hover,
.tiny-button:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--edge-strong), 0 3px 8px rgb(24 26 25 / 7%); }
.button:active,
.tiny-button:active { transform: scale(.96); box-shadow: 0 0 0 1px var(--edge); }
.button-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 18%), 0 4px 12px rgb(0 0 0 / 10%); }
.button-primary:hover { color: #fff; }

.compact-section { margin-top: 44px; animation: settle .42s ease-out both; }
.compact-section:nth-of-type(2) { animation-delay: 70ms; }
.compact-section:nth-of-type(3) { animation-delay: 120ms; }

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
}

.section-label h2 { margin: 0; color: var(--body); font: inherit; }
.section-label a { color: var(--green-deep); text-decoration: none; text-transform: none; }

.feature-row,
.content-list {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--edge);
}

.feature-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.feature-row:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgb(24 26 25 / 8%), 0 0 0 1px var(--edge-strong); }

.tool-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  color: var(--green-deep);
  font: 700 10px/1 var(--font-mono);
}

.tool-icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.feature-row strong,
.content-row strong { display: block; font-size: 12px; font-weight: 640; line-height: 1.35; }
.feature-row small,
.content-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.content-list { margin: 0; padding: 0; list-style: none; }
.content-list li + li { border-top: 1px solid var(--edge); }

.content-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.content-row:hover { background: #fafbf9; }
.content-row time { padding-top: 1px; color: var(--muted); font: 10px/1.4 var(--font-mono); }

.project-list {
  margin: 28px 0 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--edge);
  list-style: none;
}

.project-list li + li { border-top: 1px solid var(--edge); }

.project-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.project-row:hover { background: #fafbf9; }

.project-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #f5f6f3;
  box-shadow: inset 0 0 0 1px var(--edge);
  color: var(--green-deep);
  font: 700 10px/1 var(--font-mono);
}

.project-mark img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.project-row strong { display: block; font-size: 13px; font-weight: 660; }
.project-row small { display: block; max-width: 29rem; margin-top: 2px; color: var(--muted); font-size: 12px; }
.project-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 10px/1.4 var(--font-mono); white-space: nowrap; }
.project-meta b { color: var(--green-deep); font-size: 12px; }

.article-shell { padding-block: 54px 66px; }
.article-shell article,
.article-body,
.demo-card,
.timetable { min-width: 0; }

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.meta-row a { color: var(--green-deep); text-decoration: none; }

.article-title {
  margin: 20px 0 0;
  font-size: clamp(25px, 8vw, 32px);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.article-kicker { margin: 14px 0 0; color: var(--body); font-size: 15px; text-wrap: pretty; }

.note-callout {
  display: grid;
  gap: 4px;
  margin-top: 24px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: #f2f0e8;
  box-shadow: 0 0 0 1px rgb(155 103 19 / 12%);
  color: #665329;
  font-size: 12px;
  line-height: 1.45;
}

.note-callout strong { color: var(--amber); font-size: 11px; }

.article-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--edge-strong);
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: none;
}

.article-actions a { color: var(--green-deep); }

.article-body { padding-top: 12px; color: var(--body); font-size: 15px; line-height: 1.67; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 14px; }
.article-body p { margin: 1.15em 0; }
.article-body h2,
.article-body h3,
.article-body h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.025em; }
.article-body h2 { margin: 2.4em 0 .7em; font-size: 20px; }
.article-body h3 { margin: 2.2em 0 .65em; font-size: 18px; }
.article-body h4 { margin: 2em 0 .55em; font-size: 15px; }
.article-body ul,
.article-body ol { padding-left: 1.35em; }
.article-body li + li { margin-top: .22em; }
.article-body a { color: var(--green-deep); }
.article-body figure { margin: 24px 0; }
.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px var(--edge), 0 8px 24px rgb(24 26 25 / 6%);
}
.article-body figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; }
.article-body pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 22px 0;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #1d211f;
  box-shadow: 0 6px 18px rgb(24 26 25 / 12%);
  color: #f6f7f4;
  font: 12px/1.6 var(--font-mono);
}
.article-body code { font-family: var(--font-mono); }
.article-body pre code { color: #d8ded8; }
.tok-comment { color: #7f9186; font-style: italic; }
.tok-string { color: #a8d7a5; }
.tok-number { color: #e5bd82; }
.tok-keyword { color: #cfacf2; }
.article-body blockquote { margin: 24px 0; padding-left: 14px; border-left: 2px solid var(--edge-strong); color: var(--muted); }

.demo-card {
  max-width: 100%;
  margin-top: 12px;
  padding: 10px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--edge);
}

.timetable {
  position: relative;
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 0 !important;
  border-radius: var(--radius-sm);
  scrollbar-color: #aeb4ae transparent;
  scrollbar-width: thin;
}

.timetable * { box-sizing: content-box; }

.timetable .controls { display: none; }
.timetable .eventHolder { background-image: none !important; }
.timetable .eventHolder .event[role="button"] {
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.timetable .eventHolder .event[role="button"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
}
.timetable .eventHolder .event.is-selected {
  background: var(--green-soft) !important;
  box-shadow: inset 0 0 0 1px rgb(37 108 74 / 26%);
  color: var(--green-deep) !important;
}
.demo-footer {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.event-readout {
  min-width: 0;
  display: flex;
  gap: 7px;
  margin: 0 !important;
  color: var(--muted);
  font: 10px/1.3 var(--font-mono);
}
.event-readout strong { color: var(--green-deep); }
.event-readout span { white-space: nowrap; }
.demo-controls { display: flex; flex: none; gap: 6px; }
.tiny-button { min-height: 28px; padding: 6px 9px; font-size: 11px; }

.site-footer { padding-bottom: 30px; }
.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--edge);
  color: var(--muted);
  font-size: 10px;
  font-family: var(--font-mono);
}

.not-found { min-height: 68dvh; display: grid; place-items: center; text-align: center; }
.not-found h1 { margin: 0; font-size: 24px; }
.not-found p:last-child { color: var(--body); }

@keyframes settle {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@keyframes matrix-signal {
  0%, 62%, 100% { opacity: .1; transform: scale(.78); }
  72% { opacity: .58; transform: scale(1); }
  82% { opacity: .16; transform: scale(.88); }
}

@media (max-width: 520px) {
  .shell { padding-inline: 18px; }
  .site-header { padding-top: 20px; }
  .home-shell { padding-block: 42px; }
  .intro { padding-right: 0; }
  .hero-matrix { display: none; }
  .article-shell { padding-block: 40px 52px; }
  .primary-actions { align-items: stretch; }
  .article-actions { display: grid; gap: 6px; }
  .project-row { grid-template-columns: 34px minmax(0, 1fr); }
  .project-meta { grid-column: 2; justify-content: space-between; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-matrix span { opacity: .18; transform: none; }
}
