/* hosttools.net: one small stylesheet, no external fonts or frameworks. */

:root {
  --bg: #ffffff;
  --fg: #1c2128;
  --muted: #57606a;
  --surface: #f6f8fa;
  --border: #d0d7de;
  --accent: #1f6feb;
  --accent-fg: #ffffff;
  --badge-bg: #fff4d6;
  --badge-fg: #7a5200;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #9198a1;
    --surface: #161b22;
    --border: #30363d;
    --accent: #4493f8;
    --accent-fg: #0d1117;
    --badge-bg: #3a2c05;
    --badge-fg: #f2cc60;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

code, pre { font-family: var(--mono); font-size: 0.9em; }

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 0; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  color: var(--fg);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}
.brand span { color: var(--accent); }
.tagline { color: var(--muted); font-size: 0.95rem; }

/* Home */
.intro p { max-width: 42rem; color: var(--muted); font-size: 1.1rem; margin: 0; }

.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}
.tool {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.tool p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.95rem; }
.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.badge {
  flex: none;
  background: var(--badge-bg);
  color: var(--badge-fg);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer p { margin: 0.75rem 0; }

@media (max-width: 30rem) {
  h1 { font-size: 1.6rem; }
  .intro p { font-size: 1rem; }
}
