@font-face {
  font-family: Geist;
  src: url('/site-assets/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Page theme and scale are owned here; components consume named roles. */
:root {
  font-size: 93.75%;
  color-scheme: light;
  --background: #f7f8f4;
  --foreground: #26331f;
  --action-foreground: #304322;
  --action-border: #4d692c;
  --muted-foreground: #64705a;
  --disabled-border: #929b89;
  --hover: #eaf0e1;
  --text-base: 1rem;
  --text-3xl: 1.875rem;
  --space-2: .5rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --radius: .5rem;
  --tree-size: 10.666666667rem;
  --action-width: 14rem;
  --action-height: 3.2rem;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Geist, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
}
main {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--space-8);
  padding-bottom: calc(var(--space-8) + var(--space-12) * 2);
}
.download { text-align: center; max-width: 100%; }
.tree {
  display: block;
  width: min(100%, var(--tree-size));
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto var(--space-6);
}
h1 {
  margin: 0;
  font-size: var(--text-3xl);
  line-height: 1.25;
  font-weight: 500;
}
.platforms {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
.platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--action-width);
  min-height: var(--action-height);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--action-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--action-foreground);
  font: 500 var(--text-base)/1.5 Geist, -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
}
a.platform:hover { background: var(--hover); }
a.platform:focus-visible {
  outline: 2px solid var(--action-border);
  outline-offset: 4px;
}
.platform:disabled {
  color: var(--muted-foreground);
  border-color: var(--disabled-border);
  cursor: default;
}
@media (max-width: 36rem) {
  .platforms { flex-direction: column; align-items: center; }
  .platform { width: 100%; min-width: 0; }
}
@media (max-height: 30rem) {
  main { padding-block: var(--space-8); }
}
