/* styles.css — global site styles (clean) */

/* :root / theme tokens */
:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #2563eb;    /* blue */
  --accent-2: #16a34a;  /* green */
  --nav-bg: #000;
  --card-bg: #ffffff;
  --max-width: 1100px;
  --page-gutter: 20px;
}

/* Reset / base */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;

  /* Make page a column flex container so main fills space and footer stays flush */
  display: flex;
  flex-direction: column;
  min-height: 100vh;   /* fallback */
  min-height: 100dvh;  /* prefer dynamic viewport on modern mobile browsers */
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container, .site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}

/* Top nav */
.topnav {
  background: var(--nav-bg);
  color: #fff;
}
.topnav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topnav .brand a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.topnav .logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #fff;
  color: #000;
  border-radius: 6px;
  font-weight: 700;
}
.topnav .nav-links a {
  color: #fff;
  margin-left: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* ---- Hero Section (reduced vertical space; centered) ---- */
.hero {
  padding: 18px 10px 18px; /* slightly reduced top/bottom space */
  text-align: center;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  margin: 0 0 8px;            /* reduce bottom margin so hero closer to content */
  font-size: 28px;
  line-height: 1.05;
  text-align: center;
}
.hero h1 .accent {
  color: var(--accent);
  text-decoration: none;      /* remove underline */
  font-weight: 700;
  transition: text-shadow .22s ease, transform .12s ease;
  /* keep baseline appearance — glow applied on hover */
}
.hero h1 .accent:hover,
.hero h1 .accent:focus {
  text-shadow: 0 8px 28px rgba(37,99,235,0.14);
  transform: translateY(-1px);
  outline: none;
}
.lead {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.btn-primary { background: var(--accent); color: #fff; border: none; }
.btn-open {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.btn-share {
  background: #6b7280;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
}

/* Grid helpers */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.cols-3 { grid-template-columns: 1fr; } }

/* Utility / layout bits */
.section { padding: 28px 0; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.center { text-align: center; }

/* ensure page content fills available vertical space so footer is pushed to bottom */
main {
  flex: 1 0 auto;
}


/* Small screens adjustments */
@media (max-width: 560px) {
  .hero h1 { font-size: 22px; }
  .topnav .nav-links { display: none; }
}
