:root {
  --green-900: #0b2f20;
  --green-800: #11402c;
  --green-700: #1a5a40;
  --mint: #cfeee0;
  --ink: #0d0f0e;
  --accent: #0b4d1e;
  --text: #252523;
  --text-2: #2b2b2a;
  /* System type for the in-site Mac's chrome, as macOS uses SF Pro there (typography.md). */
  --font-sys: -apple-system, BlinkMacSystemFont, 'Inter Tight', system-ui, sans-serif;
  --n: 1px; /* viewport unit for the fixed UI, set by scene.js */
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--green-900);
  color: #fff;
  font-family: 'Inter Tight', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Entrance: elements start hidden only when JS has opted in (Task 8). */
.js .pre { opacity: 0; }

/* Solar icon as a mask; colour follows the text colour. */
.i {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.m-only { display: none; }

.nojs {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  background: var(--green-900);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
