:root {
  /* Same palette as the Free Tools dashboard, so the embedded grid and the
     page around it read as one site. Dark only, deliberately. */
  --bg: #0a0a0b;
  --surface: #141417;
  --surface-2: #1b1b20;
  --text: #ececf1;
  --muted: #8f8f9b;
  --border: #26262c;
  --accent: #34d27f;
  --accent-text: #06210f;
  --warn-bg: rgba(229, 181, 103, 0.1);
  --warn-border: rgba(229, 181, 103, 0.25);
  --warn-text: #e5b567;
  --radius: 12px;
  color-scheme: dark;
}

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

body {
  font-family:
    system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main,
header,
footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Prose stays a comfortable measure even though the page is wide enough for
   the four-column tool grid. */
.prose {
  max-width: 44rem;
  margin: 0 auto;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 750;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 3rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.75rem 0 0.4rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 1px 5px;
  background: var(--surface-2);
  border-radius: 5px;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: 4rem;
  padding-bottom: 1rem;
  text-align: center;
}

.mark {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  display: block;
}

.subline {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 1rem auto 2rem;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
}

.button:hover {
  filter: brightness(1.08);
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* The embedded dashboard brings its own stylesheet; this only gives it room. */
#tools {
  margin-top: 2.5rem;
  scroll-margin-top: 1rem;
}

.under-button {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Cards, notes ---------- */

.card {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card + .card {
  margin-top: 0.75rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-top: 0;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

.warn {
  padding: 1.1rem 1.25rem;
  color: var(--warn-text);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
}

.warn p:last-child {
  margin-bottom: 0;
}

details {
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

details + details {
  margin-top: 0.5rem;
}

summary {
  font-weight: 600;
  cursor: pointer;
}

details[open] summary {
  margin-bottom: 0.5rem;
}

details p:last-child {
  margin-bottom: 0;
}

/* ---------- Grid of tools / principles ---------- */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 620px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid .card + .card {
  margin-top: 0;
}

.tool {
  display: flex;
  flex-direction: column;
}

.tool .never {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.tool .never strong {
  color: var(--text);
  font-weight: 650;
}

.tool-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.18em;
  color: var(--warn-text);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 999px;
}

.tool.coming {
  border-style: dashed;
}

/* ---------- Footer ---------- */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

footer p {
  margin-bottom: 0.5rem;
}
