/* Terra Board website. No external fonts, scripts or trackers. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #1f2630;
  --muted: #59636f;
  --line: #dde2e8;
  --accent: #2f5f9e;
  --accent-ink: #ffffff;
  --accent-soft: #e6eef9;
  --note: #f8efd4;
  --note-ink: #4d3f12;
  --shadow: 0 1px 2px rgb(20 30 45 / 6%), 0 12px 32px rgb(20 30 45 / 10%);
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light dark;
}
/* Dark follows the system, unless the night switch on the board says otherwise. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #11151b;
    --surface: #182029;
    --ink: #e6ebf2;
    --muted: #a3adba;
    --line: #2a3440;
    --accent: #8fb4e6;
    --accent-ink: #0f1a29;
    --accent-soft: #1d2a3b;
    --note: #2f2a1b;
    --note-ink: #f1e3b6;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}
:root[data-theme='dark'] {
  --bg: #11151b;
  --surface: #182029;
  --ink: #e6ebf2;
  --muted: #a3adba;
  --line: #2a3440;
  --accent: #8fb4e6;
  --accent-ink: #0f1a29;
  --accent-soft: #1d2a3b;
  --note: #2f2a1b;
  --note-ink: #f1e3b6;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px rgb(0 0 0 / 35%);
  color-scheme: dark;
}
:root[data-theme='light'] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue',
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-family: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Arial,
    sans-serif;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.15rem;
}
p,
ul,
ol {
  margin: 0 0 1em;
}
code {
  font-family: Consolas, 'Cascadia Mono', ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
kbd {
  font-family: inherit;
  font-size: 0.9em;
  font-weight: 600;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 0.35em;
  background: var(--surface);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 700px) {
  .wrap {
    padding: 0 32px;
  }
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

/* Header and footer */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  font-size: 1.05rem;
}
.brand img {
  width: 30px;
  height: 30px;
}
.site-nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-footer a {
  color: var(--muted);
}

/* Hero */
.hero {
  padding: 56px 0 24px;
  text-align: center;
}
.eyebrow {
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
}
.hero h1 .by {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 0.35em;
}
.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  max-width: 40em;
  margin: 0 auto 28px;
}
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 16px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: 56px;
}
.button:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 1rem;
  padding: 12px 20px;
  min-height: 48px;
}
.small {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}
.note {
  background: var(--note);
  color: var(--note-ink);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  max-width: 38em;
  margin: 14px auto 0;
  text-align: left;
}
.note a {
  color: inherit;
}

.shot {
  margin: 40px auto 0;
}
.shot img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: 100%;
}
.shot figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
  text-align: center;
}

/* Sections */
section {
  padding: 56px 0 0;
}
.section-intro {
  max-width: 44em;
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.four {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 8px;
}
.card h3 {
  margin-bottom: 0.4em;
}
.card p,
.card li {
  font-size: 0.97rem;
}
.card ul {
  padding-left: 1.1em;
}
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  margin-left: 6px;
  vertical-align: 2px;
  white-space: nowrap;
}
.facts .card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.3em;
}

.feature-wide {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
}
@media (min-width: 900px) {
  .feature-wide {
    grid-template-columns: 1fr 1fr;
  }
}
.feature-wide img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.plain-list {
  padding-left: 1.2em;
}
.plain-list li {
  margin-bottom: 0.5em;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

/* Article pages */
.article {
  max-width: 46em;
  padding-top: 48px;
}
.article h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
}
.article h2 {
  margin-top: 1.6em;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}
.source {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 1.2em;
}
.source p:last-child {
  margin-bottom: 0;
}
.checked {
  font-size: 0.9rem;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  font-weight: 650;
}
tr:last-child td {
  border-bottom: 0;
}
.todo {
  border: 2px dashed #c0392b;
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--surface);
}
.todo strong {
  color: #c0392b;
}
.download-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 2em 0;
}
.download-box .button {
  margin-bottom: 10px;
}

/* Install commands */
.article pre {
  margin: 10px 0 18px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
}
.article pre code {
  background: none;
  padding: 0;
}
