:root {
  --ink: #111;
  --paper: #fff;
  --muted: #667085;
  --line: #e7e7e7;
  --accent: #111;
  --max: 720px;
  --wide: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Montserrat", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.gg-articles {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Nav styles live in /css/site-nav.css (.gg-nav-bar) */

.gg-hero {
  position: relative;
  isolation: isolate;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding: 8.5rem 1.25rem 3.25rem;
  background-color: #111;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 45% 28%;
  background-attachment: fixed;
  overflow: hidden;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .gg-hero {
    /* Beat desktop inline zooms (e.g. hands crop) — cover + face-friendly focus */
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: 50% 36% !important;
    min-height: 56svh;
  }
}
.gg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 48%, rgba(0,0,0,0.22) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
  pointer-events: none;
}
.gg-hero-inner {
  position: relative;
  z-index: 1;
}

.gg-hero-inner,
.gg-wrap {
  max-width: var(--wide);
  margin: 0 auto;
}

.gg-kicker {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.75;
  margin: 0 0 0.75rem;
}

.gg-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}

.gg-hero p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  opacity: 0.9;
}

.gg-main {
  padding: 2.5rem 1.25rem 4rem;
}

.gg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gg-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gg-card:hover {
  border-color: #111;
  transform: translateY(-2px);
}

.gg-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd;
}

.gg-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gg-card:hover .gg-card-media img {
  transform: scale(1.04);
}

.gg-card-body {
  padding: 1.25rem 1.3rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gg-card .meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.gg-card h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.gg-card-body > p {
  margin: 0 0 1.1rem;
  color: #333;
  flex: 1;
}

.gg-card .more {
  font-weight: 500;
  font-size: 0.92rem;
}

.gg-article-hero {
  margin: 0 0 1.75rem;
}

.gg-article-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.gg-article {
  max-width: var(--max);
  margin: 0 auto;
}

.gg-article-header {
  margin-bottom: 2rem;
}

.gg-article-header .meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 0.85rem;
}

.gg-article-header h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.gg-article-header .deck {
  font-size: 1.12rem;
  color: #333;
  margin: 0;
}

.gg-article h2 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 2.4rem 0 0.85rem;
  line-height: 1.25;
}

.gg-article h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
}

.gg-article p,
.gg-article li {
  font-size: 1.05rem;
}

.gg-article p { margin: 0 0 1.1rem; }

.gg-article ul,
.gg-article ol {
  padding-left: 1.2rem;
  margin: 0 0 1.25rem;
}

.gg-article li { margin-bottom: 0.45rem; }

.gg-article a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.gg-callout {
  background: #fff;
  border-left: 3px solid #111;
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
}

.gg-callout p { margin: 0; }

.gg-refs {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.gg-refs h2 {
  font-size: 1.25rem;
  margin-top: 0;
}

.gg-refs ol {
  padding-left: 1.2rem;
}

.gg-refs li {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: #333;
  overflow-wrap: anywhere;
}

.gg-cta {
  margin-top: 2.5rem;
  padding: 1.4rem 1.3rem;
  background: #111;
  color: #fff;
}

.gg-cta h2 {
  font-family: var(--display);
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: #fff;
}

.gg-cta p { margin: 0 0 1rem; opacity: 0.9; }

.gg-cta a {
  color: #fff;
  font-weight: 500;
}

.gg-footer {
  background: #000;
  color: #fff;
  padding: 3rem 1.25rem 1.5rem;
  font-size: 0.95rem;
  text-align: left;
}

.gg-footer a {
  color: #fff;
  text-decoration: none;
}

.gg-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.gg-footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.gg-footer-brand .name {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 0.55rem;
  letter-spacing: 0.02em;
}

.gg-footer-brand .name a {
  text-decoration: none;
}

.gg-footer-brand .tagline {
  margin: 0;
  opacity: 0.75;
  line-height: 1.55;
  max-width: 28ch;
}

.gg-footer h3 {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
  opacity: 0.7;
  font-weight: 400;
}

.gg-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.gg-footer-links a {
  opacity: 0.9;
}

.gg-footer-contact p {
  margin: 0 0 0.55rem;
  opacity: 0.9;
  line-height: 1.5;
}

.gg-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.gg-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255,255,255,0.28);
  opacity: 0.92;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gg-social a:hover {
  opacity: 1;
  border-color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.gg-social svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.gg-footer-bottom {
  max-width: var(--wide);
  margin: 2.25rem auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.86rem;
  opacity: 0.7;
}

.gg-footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .gg-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .gg-hero { padding-top: 2.5rem; }
  .gg-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .gg-footer-bottom {
    flex-direction: column;
  }
}


.gg-article-body figure { margin: 1.5rem 0; }
.gg-article-body img { max-width: 100%; height: auto; display: block; }
.gg-article-body figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }
.gg-article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid #111;
  background: #fff;
}
.gg-article-body h3, .gg-article-body h4 { font-family: var(--display); }
.gg-source {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}


.gg-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin: 0;
}
.gg-legal-links a { opacity: 0.95; }
