/* GearGraph — shared styles.
   No framework, no fonts to fetch, no analytics. The site should load in one
   round trip and say the same thing about privacy that the app does. */

:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --text: #1c1f24;
  --muted: #5c626b;
  --accent: #2371e7;
  --rule: rgba(0, 0, 0, 0.09);
  --tile-a: #353a43;
  --tile-b: #22262d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --surface: #1c2026;
    --text: #eceef1;
    --muted: #9aa2ad;
    --accent: #5b9dff;
    --rule: rgba(255, 255, 255, 0.11);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 0 20px;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 56px 0 80px;
}

/* Header ------------------------------------------------------------------ */

.masthead {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 40px;
}

.masthead img { width: 56px; height: 56px; border-radius: 13px; display: block; }
.masthead .name { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
.masthead .tag { color: var(--muted); font-size: 0.95rem; }

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

.hero {
  background: linear-gradient(160deg, var(--tile-a), var(--tile-b));
  color: #fff;
  border-radius: 20px;
  padding: 40px 32px;
  margin-bottom: 40px;
}

.hero img { width: 76px; height: 76px; border-radius: 18px; display: block; margin-bottom: 20px; }
.hero h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -0.02em; }
.hero p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; }

/* Type -------------------------------------------------------------------- */

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 2rem; margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 40px 0 10px; }
h3 { font-size: 1.05rem; margin: 28px 0 6px; }

p, li { color: var(--text); }
.lede { color: var(--muted); font-size: 1.05rem; margin-top: 0; }
.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 32px; }

a { color: var(--accent); text-underline-offset: 3px; }

ul { padding-left: 1.2em; }
li { margin: 6px 0; }

/* Cards ------------------------------------------------------------------- */

.cards { display: grid; gap: 14px; margin: 28px 0 8px; }
@media (min-width: 34rem) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
}

.card:hover { border-color: var(--accent); }
.card strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.card span { color: var(--muted); font-size: 0.92rem; }

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

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

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer a { color: var(--muted); }
footer .spacer { flex: 1; }

/* Contact form ------------------------------------------------------------ */

form { margin: 28px 0 8px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.field .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 11px 13px;
}

textarea { min-height: 9rem; resize: vertical; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button[type="submit"] {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
}

button[type="submit"]:hover { filter: brightness(1.08); }

/* The honeypot. Off-screen rather than display:none, because some bots skip
   fields that are display:none and the point is that they fill it in. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
