/* Bot Finds Projects — public presentation surface.
 *
 * Design direction: modern, clean, technology-forward; navy / white / restrained blue; high-end
 * commercial; lightweight and fast. The palette lives here as tokens in ONE auditable place
 * rather than as literals scattered through templates.
 *
 * No webfont is loaded. A system font stack renders instantly, costs no request and no layout
 * shift, and on this brief "lightweight and fast" is part of the design rather than a trade
 * against it.
 */

:root {
  --navy-900: #071c38;
  --navy-800: #0b2a52;
  --navy-700: #12365f;
  --blue-600: #1d5fd0;
  --blue-500: #2f74e6;
  --blue-100: #e8f0fd;
  --ink:      #16202c;
  --muted:    #5b6675;
  --line:     #dfe5ee;
  --bg:       #ffffff;
  --bg-soft:  #f6f8fc;
  --radius:   10px;
  --wrap:     1080px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--navy-800); color: #fff; padding: .6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

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

header.site {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between;
  max-width: var(--wrap); margin: 0 auto; padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.brand-mark {
  font-weight: 800; letter-spacing: -.03em; font-size: 1.45rem; color: var(--navy-800);
}
.brand-name { color: var(--muted); font-size: .95rem; }
header.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
header.site nav a, footer.site nav a {
  color: var(--navy-700); text-decoration: none; font-weight: 500;
}
header.site nav a:hover, footer.site nav a:hover { color: var(--blue-600); text-decoration: underline; }

footer.site {
  max-width: var(--wrap); margin: 3rem auto 2rem; padding: 1.5rem 1.25rem 0;
  border-top: 1px solid var(--line); color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
}
footer.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---- layout ----------------------------------------------------------------------------- */

main { max-width: var(--wrap); margin: 0 auto; padding: 2rem 1.25rem 0; }

h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em;
     color: var(--navy-900); margin: .2em 0 .35em; }
h2 { font-size: 1.2rem; color: var(--navy-800); margin: 2rem 0 .6rem; }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

.crumb { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.crumb a { color: var(--navy-700); }

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

.hero picture, .hero img {
  display: block; width: 100%; height: auto;         /* the 16:9 box is reserved by the
                                                        width/height attributes on the <img> */
  border-radius: var(--radius); border: 1px solid var(--line);
}
.hero-copy { padding: 1.6rem 0 .5rem; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.2rem; }
.btn {
  display: inline-block; padding: .65rem 1.15rem; border-radius: var(--radius);
  background: var(--navy-800); color: #fff; text-decoration: none; font-weight: 600;
  border: 1px solid var(--navy-800);
}
.btn:hover { background: var(--blue-600); border-color: var(--blue-600); }
.btn.ghost { background: transparent; color: var(--navy-800); }
.btn.ghost:hover { background: var(--blue-100); color: var(--navy-900); }

/* ---- grids ------------------------------------------------------------------------------- */

.cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        margin-top: 2.5rem; }
.cols > div { background: var(--bg-soft); border: 1px solid var(--line);
              border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.cols h2 { margin-top: 0; }

ul.grid { list-style: none; padding: 0; margin: 1.2rem 0 0;
          display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
ul.grid a {
  display: block; padding: .7rem .9rem; border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--navy-700);
  background: var(--bg); font-weight: 500;
}
ul.grid a:hover { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-100); }

/* The featured section renders EMPTY by owner decision until eligible public content exists.
   It says so plainly rather than showing a placeholder that implies content is coming. */
.empty { color: var(--muted); font-style: italic; }

@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color .12s ease, background-color .12s ease, border-color .12s ease; }
}
