/* ============ DRACO — one-screen splash (index.html) ============ */

:root {
  --bg: #0b0c0d;
  --ink: #f1f3f4;
  --line: #23272a;
  --muted: #9aa0a5;
  --ice: #c9dde7;
  --font: "Times New Roman", Times, serif;
  --pad: clamp(24px, 6vw, 88px);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s;
}
a:hover { text-decoration-color: var(--ice); }
a:focus-visible { outline: 1px solid var(--ice); outline-offset: 3px; }

/* text on the left, tree on the right, footer pinned under the text */
.splash {
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "text tree"
    "foot tree";
}

.splash-text {
  grid-area: text;
  padding: var(--pad) var(--pad) 0;
  max-width: calc(40rem + 2 * var(--pad));
}

h1 {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 0.7rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
}

.lead {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}

.splash-text p:not(.lead) { color: var(--muted); }

.links {
  display: flex;
  gap: 1.8rem;
  margin-top: 2rem;
}

.splash-foot {
  grid-area: foot;
  display: flex;
  gap: 1.4rem;
  padding: 0 var(--pad) var(--pad);
  color: var(--muted);
}
.splash-foot a { color: var(--muted); }

.splash-tree {
  grid-area: tree;
  position: relative;
  min-height: 0;
}
#tree {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* phone: text, then the tree fills what's left, footer last */
@media (max-width: 760px) {
  :root { --pad: 24px; }
  .splash {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "text" "tree" "foot";
    min-height: 600px;
  }
  .splash-text { padding-top: 32px; }
  .splash-foot { padding-top: 12px; padding-bottom: 24px; }
}
