/* Colours come from the icon in assets/kisk.svg. */
:root {
  --deep: #0c1120;
  --tile: #171f36;
  --line: #3a4769;
  --text: #e6ebf5;
  --soft: #a9b4cc;
  --teal: #5ff0d8;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--text);
  font: 1.0625rem/1.65 "Segoe UI", system-ui, sans-serif;
}

header,
main,
footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

a {
  color: var(--teal);
}

a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

h1 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  margin: 3.5rem 0 0.75rem;
  font-size: 1.5rem;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
}

.lead {
  color: var(--soft);
  font-size: 1.2rem;
}

.button {
  display: inline-block;
  margin: 0.75rem 0.9rem 0.75rem 0;
  padding: 0.7rem 1.4rem;
  border-radius: 0.6rem;
  background: var(--teal);
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #d9fff8;
}

.note,
figcaption,
footer {
  color: var(--soft);
  font-size: 0.925rem;
}

figure {
  margin: 2rem 0 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

figcaption {
  margin-top: 0.6rem;
}

/* Feature cards and the requirements list share one look: a tile per item. */
.tiles {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tiles li,
.warning {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--tile);
}

.tiles p,
.warning p {
  margin: 0;
  color: var(--soft);
}

.warning {
  margin: 1.25rem 0 0;
  border-color: #c9a227;
}

.warning h3 {
  color: #f2cf5b;
}

code {
  padding: 0.1em 0.4em;
  border-radius: 0.3rem;
  background: var(--tile);
  font: 0.95em Consolas, ui-monospace, monospace;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--tile);
}
