/*
Theme Name: CitePulse Lab Theme
Theme URI: https://github.com/CitePulse-io/developer-seo-geo-lab
Author: CitePulse
Author URI: https://citepulse.io
Description: Custom theme for GEO Geek (geo-geek.com). Styled by the GEO Geek design system: see DESIGN-SYSTEM.md.
Version: 0.3.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: citepulse-lab-theme
*/

/* Layout for the classic templates, on the design-system tokens (assets/css/tokens.css).
   Colour, type and element styles come from theme.json; components come from assets/css/components.css. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  background: var(--surface-inverse);
  color: var(--ink-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
}

.skip-link:focus {
  top: var(--space-4);
}

.site-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 860px) {
  .site-shell {
    padding: 0 var(--space-12);
  }
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4) var(--space-8);
  padding: var(--space-6) 0;
}

.site-title {
  margin: 0;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: 15px;
  line-height: 23px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"],
.site-nav__list .current-menu-item > a {
  background: var(--surface-200);
}

/* Main column */

.site-main {
  padding: var(--space-12) 0 var(--space-20);
}

.gg-article {
  max-width: 760px;
  margin: 0 auto;
}

.gg-article__header {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.gg-article__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.gg-article__title,
.archive-header h1 {
  margin: 0;
  font-size: 36px;
  line-height: 42px;
  letter-spacing: -0.025em;
}

@media (min-width: 860px) {
  .gg-article__title,
  .archive-header h1 {
    font-size: 52px;
    line-height: 56px;
    letter-spacing: -0.035em;
  }
}

.gg-article__lead,
.archive-header__lead {
  margin: 0;
  max-width: var(--measure);
  font-size: 21px;
  line-height: 31px;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

.gg-article .gg-byline {
  margin: 0;
}

.gg-article > .gg-meta {
  margin-bottom: var(--space-8);
}

.entry-content > * {
  max-width: var(--measure);
}

.entry-content > .gg-summary,
.entry-content > .gg-meta,
.entry-content > .gg-callout,
.entry-content > .alignwide,
.entry-content > figure {
  max-width: 760px;
}

.entry-content > .gg-meta {
  margin-block: var(--space-8);
}

.gg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  margin: var(--space-12) 0 0;
  padding: 0;
}

/* Archives and lists */

.archive-header {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.archive-header__lead p {
  margin: 0;
}

.gg-card-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 860px) {
  .gg-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gg-card-grid .gg-card__title {
  margin: 0;
}

.entry-list {
  display: grid;
  max-width: 760px;
}

.entry-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}

.entry-row__title {
  margin: 0;
  font-size: 19px;
  line-height: 26px;
  letter-spacing: -0.01em;
}

.entry-row__title a {
  text-decoration: none;
}

.entry-row__title a:hover {
  text-decoration: underline;
}

.entry-row__excerpt {
  margin: 0;
  max-width: var(--measure);
  font-size: 15px;
  line-height: 23px;
  color: var(--ink-muted);
}

.pagination {
  margin-top: var(--space-8);
}

.pagination .nav-links {
  display: flex;
  gap: var(--space-2);
}

.pagination .page-numbers {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
}

.pagination .current {
  background: var(--surface-200);
}

/* Home */

.home-main {
  padding-top: var(--space-20);
}

.home-hero {
  display: grid;
  gap: var(--space-6);
  max-width: 900px;
}

.home-hero__title {
  margin: 0;
  font-size: 44px;
  line-height: 48px;
  letter-spacing: -0.035em;
}

@media (min-width: 860px) {
  .home-hero__title {
    font-size: 76px;
    line-height: 78px;
    letter-spacing: -0.045em;
  }
}

.home-hero__lead {
  margin: 0;
  max-width: var(--measure);
  font-size: 21px;
  line-height: 31px;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.home-section {
  margin-top: var(--space-20);
}

@media (min-width: 860px) {
  .home-section {
    margin-top: var(--space-32);
  }
}

.home-section > h2 {
  margin: 0 0 var(--space-8);
}

.home-steps {
  display: grid;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 860px) {
  .home-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.home-steps li {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 23px;
}

/* Footer */

.site-footer {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8) 0 var(--space-12);
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 23px;
}

.site-footer p {
  margin: 0;
  max-width: var(--measure);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
