:root {
  --bg: #121212;
  --bg-soft: #1f1f1f;
  --text: #121212;
  --text-muted: #5c6672;
  --surface: #ffffff;
  --border: #dbe1e8;
  --brand: #ed8800;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Mulish", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

img, video {
  max-width: 100%;
  height: auto;
}

a {
  color: #0d5ea8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: #111827;
  border-bottom: 1px solid #1f2937;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #f8fafc;
  font-weight: 700;
  font-size: 0.93rem;
}

.portal-btn {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #1f2937;
  padding: 0.55rem 1rem;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  background: linear-gradient(155deg, #171717, #2c2c2c);
  color: #fff;
  padding: 3rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero-copy {
  margin: 1rem 0 1.5rem;
  color: #e5e7eb;
  max-width: 64ch;
}

.hero-form {
  display: flex;
  gap: 0.5rem;
  max-width: 640px;
}

.hero-form input {
  flex: 1;
  min-width: 190px;
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 0.9rem;
}

.hero-form button {
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #111827;
  font-weight: 900;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.consent {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  color: #d1d5db;
  font-size: 0.92rem;
}

.consent a {
  color: #fff;
  text-decoration: underline;
}

.hero-links {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.hero-links a,
.hero-links .linklike {
  color: #fff;
}

.linklike {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.hero-image-wrap {
  text-align: center;
}

.hero-image {
  max-height: 460px;
  width: auto;
}

.featured-on,
.testimonials,
.recent-posts {
  padding: 3.5rem 0;
}

.featured-on h2,
.testimonials h2,
.recent-posts h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.4rem, 2.8vw, 2.15rem);
  text-align: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.logo-grid img {
  max-height: 76px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}

.testimonial-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-grid img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.listing-head {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0;
}

.listing-head h1 {
  margin: 0;
  line-height: 1.2;
}

.listing-head p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

.listing-body {
  padding: 2rem 0 3rem;
}

.listing-root h1 {
  margin: 0 0 1rem;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.post-card-link {
  display: block;
  color: inherit;
  padding: 0;
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.post-card h2 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0.9rem 0.9rem 0.45rem;
}

.post-card p {
  margin: 0 0.9rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  background: #111827;
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.center {
  text-align: center;
}

.pagination-wrap {
  margin-top: 1.5rem;
}

.article {
  max-width: 860px;
  padding: 2rem 0 3rem;
}

.article-head h1 {
  margin: 0;
  line-height: 1.15;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.meta {
  color: var(--text-muted);
  margin: 0.65rem 0 1rem;
}

.feature-image {
  border-radius: 14px;
  border: 1px solid var(--border);
}

.gh-content {
  font-size: 1.08rem;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  line-height: 1.25;
  margin-top: 1.7em;
}

.gh-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.9rem;
  border-radius: 10px;
  overflow-x: auto;
}

.gh-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.gh-content figure {
  margin: 1.2rem 0;
}

.gh-content figcaption {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

.gh-content .kg-width-wide {
  width: min(1200px, calc(100vw - 2rem));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.gh-content .kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.footer-title {
  color: #fff;
  margin: 0 0 0.8rem;
  font-size: 1.05rem;
}

.footer-text {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #fff;
}

.footer-notes {
  margin-top: 1.4rem;
  border-top: 1px solid #374151;
  padding-top: 1.1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.error-page {
  padding: 4rem 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .logo-grid,
  .testimonial-grid,
  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .nav-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.8rem 0;
  }

  .hero-grid,
  .logo-grid,
  .testimonial-grid,
  .post-grid,
  .footer-grid,
  .hero-form {
    grid-template-columns: 1fr;
  }

  .hero-form {
    display: grid;
  }

  .hero {
    padding: 2.2rem 0;
  }

  .featured-on,
  .testimonials,
  .recent-posts {
    padding: 2.5rem 0;
  }
}
