/* cachecannon.cc — hand-written, no build step. Fonts from Google Fonts.
   Palette and type follow the Thermite Solutions style guide. */

:root {
  --orange: #D15A2A;
  --teal: #1A8EAD;
  --parchment: #F5F5EC;
  --bg: #1E252B;          /* Deep Slate */
  --bg-elev: #15191C;     /* Midnight Dark */
  --bg-code: #111418;
  --border: #2C353C;
  --text: var(--parchment);
  --text-muted: #9AA3A8;
  --link: #4FB4CF;        /* teal lightened for body-text contrast on slate */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --label: "Space Mono", ui-monospace, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

code { font-family: var(--mono); font-size: 0.92em; }
:not(.install) > code {
  white-space: nowrap;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
}

.wrap {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: Montserrat, var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand .accent { color: var(--orange); font-weight: 500; }

.byline {
  font-family: var(--label);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}
.byline:hover { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { .byline { display: none; } }

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav-links a { color: var(--text-muted); font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav-links { gap: 1rem; } }
/* The hero has a GitHub button; drop the nav copy where it would hit the gutter. */
@media (max-width: 360px) { .nav-links li:last-child { display: none; } }

/* ---------- hero ---------- */

.hero {
  padding-top: 5rem;
  padding-bottom: 3.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 1rem;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  border: 2px solid var(--border);
  color: var(--text);
  background: var(--bg-elev);
}
.btn:hover { text-decoration: none; border-color: var(--text-muted); }
.btn.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--parchment);
}
.btn.primary:hover { border-color: var(--parchment); }

.install {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.95rem;
}
.install code { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.install code::-webkit-scrollbar { display: none; }
.install .prompt { color: var(--text-muted); user-select: none; }
.install button {
  all: unset;
  flex: none;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex;
  padding: 2px;
  border-radius: 4px;
}
.install button:hover { color: var(--text); }
.install button svg { width: 16px; height: 16px; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.badges span::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ---------- sections ---------- */

section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: 0; }

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }

.kicker {
  font-family: var(--label);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.card p { margin: 0; color: var(--text-muted); }
.dot-card h3::before {
  content: "";
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-bottom: 1rem;
}
.grid .dot-card:nth-child(even) h3::before { background: var(--teal); }

.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--teal);
}

.links-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.links-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.links-list a { font-weight: 600; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
footer ul { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; flex-wrap: wrap; }
footer .owner { margin-bottom: 1.5rem; }
.owner-link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.owner-link strong { color: var(--text); font-weight: 600; }
.owner-link:hover { text-decoration: none; }
.owner-link:hover strong { color: var(--orange); }
