:root {
  --bg: #0e1310;
  --ink: #fff1cf;
  --muted: rgba(255, 241, 207, 0.66);
  --rule: rgba(255, 241, 207, 0.14);
  --lime: #c6e83a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

main,
footer {
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
}

main {
  flex: 1;
  padding: clamp(3rem, 16vh, 9rem) 0 3rem;
}

/* Spot for the frog logo. Hidden while empty: drop an <img> in and it shows. */
.mark {
  display: block;
  width: 6rem;
  height: 6rem;
  margin-bottom: 1.5rem;
}
.mark:empty { display: none; }
.mark img { display: block; width: 100%; height: 100%; }

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  text-wrap: pretty;
}

.nowrap { white-space: nowrap; }

a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
footer p {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
}

::selection {
  background: var(--lime);
  color: var(--bg);
}
