/* Same look as the tool sites. Each site keeps its own copy on purpose. */
/* One colour scheme for everyone: the dark green one. It does not follow the
   visitor's light or dark setting. */
:root {
  --paper: #141a17;
  --card: #1c2420;
  --ink: #e9efe9;
  --muted: #a3b0a8;
  --line: #34403a;
  --green: #4fa67f;
  --orange: #ff8a4f;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

main {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  flex: 1;
  padding-bottom: 2rem;
}

.hero {
  padding-top: 2.5rem;
  text-align: center;
}

.hero-newt {
  display: block;
  margin: 0 auto;
  width: 10rem;
  height: 10rem;
}

h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: 2.5rem;
  line-height: 1.2;
}

.intro {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.tools-heading {
  margin: 2.5rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
}

.tool-link {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 0.7rem;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.tool-link:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.tool-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.tool-text {
  display: block;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* --- The one line below the tools --- */

.note {
  margin: 2rem 0 0;
  color: var(--muted);
  text-align: center;
}
