/*
Theme Name: Gavin Mind Minimal
Theme URI: https://gavinmindio.local
Author: Codex
Description: A clean editorial theme for Gavin Mind.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: gavin-mind-minimal
*/

:root {
  --gm-bg: #f7f3eb;
  --gm-surface: #fffdf8;
  --gm-surface-soft: #eee7dc;
  --gm-border: rgba(31, 35, 39, 0.1);
  --gm-border-strong: rgba(31, 35, 39, 0.18);
  --gm-text: #202428;
  --gm-muted: #606870;
  --gm-accent: #244f6d;
  --gm-accent-soft: #e7eff4;
  --gm-shadow: 0 18px 48px rgba(24, 28, 32, 0.06);
  --gm-radius-lg: 22px;
  --gm-radius-md: 16px;
  --gm-radius-sm: 12px;
  --gm-container: 1080px;
  --gm-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --gm-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
}

/*
 * Launch homepage refresh
 */

.gm-launch-home {
  color: #16201c;
  background: #f7f4ec;
}

.gm-launch-hero {
  position: relative;
  min-height: clamp(620px, 86vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fffefa;
}

.gm-launch-hero__image,
.gm-launch-hero__overlay {
  position: absolute;
  inset: 0;
}

.gm-launch-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  filter: none;
}

.gm-launch-hero__overlay {
  background:
    linear-gradient(90deg, rgba(8, 16, 13, 0.94) 0%, rgba(8, 16, 13, 0.68) 39%, rgba(8, 16, 13, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 16, 13, 0.86) 0%, rgba(8, 16, 13, 0) 42%);
}

.gm-launch-hero__content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  padding: 0 clamp(24px, 7vw, 92px) clamp(76px, 12vw, 120px);
}

.gm-launch-eyebrow,
.gm-launch-kicker,
.gm-launch-note-row span {
  color: #c98237;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.gm-launch-hero h1 {
  max-width: 780px;
  margin: 18px 0 22px;
  color: #fffefa;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 760;
  line-height: 1.03;
  letter-spacing: 0;
}

.gm-launch-title-en {
  display: inline-block;
  max-width: 100%;
}

.gm-launch-hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.gm-launch-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.gm-launch-actions .gm-button--primary {
  background: #f1c87b;
  color: #182019;
}

.gm-launch-actions .gm-button--secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fffefa;
}

.gm-launch-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 0;
}

.gm-launch-intro__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.gm-launch-section h2,
.gm-launch-intro h2 {
  margin: 0;
  color: #16201c;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: 0;
}

.gm-launch-intro p,
.gm-launch-section__head p,
.gm-launch-column-card p,
.gm-launch-note-row p,
.gm-launch-now li {
  color: #60706a;
}

.gm-launch-intro p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.78;
}

.gm-launch-metrics {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 auto;
  padding-bottom: clamp(24px, 5vw, 54px);
}

.gm-launch-metrics div {
  min-height: 154px;
  padding: 28px;
  border: 1px solid #dce4dd;
  background: #fffefa;
}

.gm-launch-metrics strong {
  display: block;
  color: #315f4c;
  font-size: 44px;
  line-height: 1;
}

.gm-launch-metrics span {
  color: #60706a;
}

.gm-launch-section__head {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 32px;
}

.gm-launch-section__head p {
  max-width: 410px;
  margin: 0;
  line-height: 1.76;
}

.gm-launch-column-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gm-launch-column-card {
  min-height: 310px;
  padding: 26px;
  border: 1px solid #dce4dd;
  background: #fffbf1;
}

.gm-launch-column-card span {
  color: #c98237;
  font-size: 14px;
  font-weight: 800;
}

.gm-launch-column-card h3,
.gm-launch-note-row h3 {
  margin: 14px 0 12px;
  color: #16201c;
  font-size: 22px;
  font-weight: 680;
  line-height: 1.28;
  letter-spacing: 0;
}

.gm-launch-column-card p,
.gm-launch-note-row p {
  margin: 0;
  line-height: 1.78;
}

.gm-launch-notes {
  width: min(1040px, calc(100% - 40px));
}

.gm-launch-note-list {
  border-top: 1px solid #dce4dd;
}

.gm-launch-note-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid #dce4dd;
}

.gm-launch-note-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #dce4dd;
  border-radius: 6px;
  color: #315f4c;
  font-weight: 700;
  white-space: nowrap;
}

.gm-launch-now__panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(30px, 6vw, 58px);
  background: #102019;
  color: #fffefa;
}

.gm-launch-now__panel h2 {
  color: #fffefa;
}

.gm-launch-now ul {
  margin: 0;
  padding-left: 22px;
}

.gm-launch-now li + li {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .gm-launch-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gm-launch-intro__grid,
  .gm-launch-now__panel {
    grid-template-columns: 1fr;
  }

  .gm-launch-metrics,
  .gm-launch-column-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .gm-launch-hero {
    min-height: 720px;
  }

  .gm-launch-hero__overlay {
    background:
      linear-gradient(90deg, rgba(8, 16, 13, 0.96), rgba(8, 16, 13, 0.68)),
      linear-gradient(0deg, rgba(8, 16, 13, 0.9), rgba(8, 16, 13, 0));
  }

  .gm-launch-hero__content {
    padding: 0 20px 64px;
  }

  .gm-launch-hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 11vw, 48px);
    overflow-wrap: normal;
  }

  .gm-launch-title-en {
    font-size: 0.88em;
    white-space: nowrap;
  }

  .gm-launch-hero p {
    max-width: 19em;
    font-size: 16px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .gm-launch-metrics,
  .gm-launch-column-grid,
  .gm-launch-note-row {
    grid-template-columns: 1fr;
  }

  .gm-launch-column-card,
  .gm-launch-metrics div {
    min-height: auto;
  }

  .gm-launch-note-link {
    width: fit-content;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gm-text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(180deg, #f8f4ed 0%, #f5efe6 100%);
  font-family: var(--gm-sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--gm-radius-sm);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.gm-shell {
  min-height: 100vh;
}

.gm-container {
  width: min(calc(100% - 40px), var(--gm-container));
  margin: 0 auto;
}

.gm-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(246, 241, 232, 0.88);
  border-bottom: 1px solid rgba(27, 31, 35, 0.06);
}

.gm-site-header__inner,
.gm-site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.gm-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gm-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d4d73, #4d7396);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
}

.gm-brand-text strong,
.gm-brand-text span {
  display: block;
}

.gm-brand-text strong {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gm-brand-text span {
  font-size: 0.82rem;
  color: var(--gm-muted);
}

.gm-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.gm-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--gm-muted);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gm-nav a:hover,
.gm-nav a:focus-visible,
.gm-nav .current-menu-item > a,
.gm-nav .current_page_item > a {
  background: rgba(25, 74, 114, 0.08);
  color: var(--gm-accent);
  transform: translateY(-1px);
}

.gm-main {
  padding: 38px 0 80px;
}

.gm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 48px;
}

.gm-card,
.gm-page-card,
.gm-post-card,
.gm-hero-panel,
.gm-stat-card,
.gm-archive-card,
.gm-single-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-lg);
  box-shadow: var(--gm-shadow);
}

.gm-hero-panel {
  padding: 36px;
}

.gm-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gm-accent-soft);
  color: var(--gm-accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.gm-hero h1,
.gm-page-hero h1,
.gm-single-header h1,
.gm-section-head h2 {
  margin: 18px 0 16px;
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.gm-hero h1 {
  font-family: var(--gm-serif);
  font-size: clamp(2.15rem, 4.1vw, 3.45rem);
  max-width: 15ch;
}

.gm-hero p {
  max-width: 60ch;
  color: var(--gm-muted);
  font-size: 1rem;
}

.gm-hero-actions,
.gm-page-hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.gm-button,
.gm-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gm-button:hover,
.gm-button:focus-visible {
  transform: translateY(-1px);
}

.gm-button--primary {
  background: var(--gm-text);
  color: #fff;
  box-shadow: 0 14px 26px rgba(29, 34, 40, 0.14);
}

.gm-button--secondary {
  border-color: var(--gm-border-strong);
  background: transparent;
  color: var(--gm-text);
}

.gm-hero-aside {
  padding: 32px;
  display: grid;
  gap: 16px;
  align-content: space-between;
}

.gm-hero-aside__intro {
  color: var(--gm-muted);
  font-size: 0.96rem;
}

.gm-hero-aside__stats {
  display: grid;
  gap: 14px;
}

.gm-stat-card {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.gm-stat-card strong,
.gm-archive-metric strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 8px;
}

.gm-stat-card span,
.gm-archive-metric span,
.gm-post-meta,
.gm-card-meta,
.gm-page-hero p,
.gm-entry-summary,
.gm-card-description,
.gm-archive-description,
.gm-single-intro,
.gm-footer-note {
  color: var(--gm-muted);
}

.gm-home-hero {
  align-items: center;
  padding: 34px 0 18px;
  border-bottom: 1px solid var(--gm-border);
}

.gm-hero-copy {
  padding: 18px 0 34px;
}

.gm-hero-copy p {
  max-width: 58ch;
}

.gm-lede {
  color: var(--gm-text) !important;
  font-size: clamp(1.04rem, 1.4vw, 1.18rem) !important;
  line-height: 1.82;
}

.gm-thesis {
  padding: 28px;
  border-left: 3px solid var(--gm-accent);
  background: rgba(255, 253, 248, 0.68);
}

.gm-thesis p {
  margin: 0 0 12px;
  color: var(--gm-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gm-thesis strong {
  display: block;
  font-family: var(--gm-serif);
  font-size: clamp(1.32rem, 2vw, 1.78rem);
  line-height: 1.5;
  font-weight: 650;
  margin-bottom: 14px;
}

.gm-thesis span {
  display: block;
  color: var(--gm-muted);
  font-size: 0.96rem;
}

.gm-principle-card {
  box-shadow: none;
  background: rgba(255, 253, 248, 0.66);
}

.gm-series-strip {
  padding: 28px 0;
  border-top: 1px solid var(--gm-border);
  border-bottom: 1px solid var(--gm-border);
}

.gm-series-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--gm-border);
  border-radius: var(--gm-radius-lg);
  overflow: hidden;
  background: rgba(255, 253, 248, 0.64);
}

.gm-series-item {
  padding: 24px;
}

.gm-series-item + .gm-series-item {
  border-left: 1px solid var(--gm-border);
}

.gm-series-item strong,
.gm-series-item span {
  display: block;
}

.gm-series-item strong {
  font-family: var(--gm-serif);
  font-size: 1.18rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.gm-series-item span {
  color: var(--gm-muted);
  font-size: 0.94rem;
}

.gm-section {
  margin-top: 36px;
}

.gm-section--compact {
  margin-top: 30px;
}

.gm-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.gm-section-head h2 {
  font-family: var(--gm-serif);
  font-size: clamp(1.52rem, 2.2vw, 2.08rem);
  letter-spacing: -0.015em;
}

.gm-section-head p {
  margin: 0;
  max-width: 48ch;
  color: var(--gm-muted);
}

.gm-grid {
  display: grid;
  gap: 16px;
}

.gm-grid--posts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gm-grid--stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gm-post-card,
.gm-page-card,
.gm-archive-card {
  padding: 24px;
}

.gm-card-index {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gm-accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gm-post-card h3,
.gm-page-card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.48;
}

.gm-card-description {
  margin: 0 0 18px;
}

.gm-card-meta,
.gm-post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.86rem;
}

.gm-archive-layout,
.gm-page-layout,
.gm-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.gm-page-hero,
.gm-single-card,
.gm-archive-card {
  padding: 42px;
}

.gm-page-hero h1,
.gm-single-header h1 {
  font-family: var(--gm-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.gm-post-list {
  display: grid;
  gap: 20px;
}

.gm-post-list article {
  padding: 26px 28px;
}

.gm-post-list h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.26rem, 1.8vw, 1.68rem);
  line-height: 1.45;
}

.gm-entry-summary {
  margin: 0 0 16px;
}

.gm-sidebar {
  display: grid;
  gap: 18px;
}

.gm-sidebar-block {
  padding: 24px;
}

.gm-sidebar-block h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.gm-sidebar-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gm-sidebar-block li + li {
  margin-top: 12px;
}

.gm-sidebar-block a:hover,
.gm-sidebar-block a:focus-visible,
.gm-post-card a:hover,
.gm-post-card a:focus-visible,
.gm-post-list h2 a:hover,
.gm-post-list h2 a:focus-visible {
  color: var(--gm-accent);
}

.gm-archive-metrics {
  display: grid;
  gap: 16px;
}

.gm-archive-metric {
  padding: 18px 20px;
  border-radius: var(--gm-radius-md);
  background: rgba(241, 234, 223, 0.72);
  border: 1px solid rgba(27, 31, 35, 0.06);
}

.gm-single-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.94rem;
  color: var(--gm-muted);
}

.gm-single-content {
  font-size: 1.03rem;
  line-height: 1.9;
}

.gm-single-content > *:first-child {
  margin-top: 0;
}

.gm-single-content h2,
.gm-single-content h3,
.gm-single-content h4 {
  margin: 2.1em 0 0.8em;
  line-height: 1.3;
}

.gm-single-content p,
.gm-single-content ul,
.gm-single-content ol,
.gm-single-content blockquote {
  margin: 0 0 1.2em;
}

.gm-single-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--gm-accent);
  background: rgba(25, 74, 114, 0.06);
  border-radius: 0 var(--gm-radius-sm) var(--gm-radius-sm) 0;
}

.gm-single-content a {
  color: var(--gm-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.gm-single-content figure,
.gm-single-content img {
  margin: 1.6em 0;
}

.gm-single-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(27, 31, 35, 0.08);
  font-size: 0.92em;
}

.gm-related-list {
  display: grid;
  gap: 16px;
}

.gm-related-list article {
  padding: 22px;
}

.gm-related-list h3 {
  margin: 8px 0 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.gm-pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.gm-pagination .page-numbers {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--gm-border);
  background: rgba(255, 255, 255, 0.8);
}

.gm-pagination .current,
.gm-pagination .page-numbers:hover {
  background: var(--gm-text);
  color: #fff;
}

.gm-site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(27, 31, 35, 0.08);
}

.gm-site-footer__inner {
  align-items: end;
}

.gm-footer-note {
  max-width: 40ch;
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  .gm-hero,
  .gm-archive-layout,
  .gm-page-layout,
  .gm-single-layout {
    grid-template-columns: 1fr;
  }

  .gm-grid--posts,
  .gm-grid--stats,
  .gm-series-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gm-series-item + .gm-series-item {
    border-left: 0;
    border-top: 1px solid var(--gm-border);
  }
}

@media (max-width: 720px) {
  .gm-container {
    width: min(calc(100% - 28px), var(--gm-container));
  }

  .gm-site-header__inner,
  .gm-site-footer__inner,
  .gm-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gm-main {
    padding-top: 28px;
  }

  .gm-hero-panel,
  .gm-hero-aside,
  .gm-page-hero,
  .gm-single-card,
  .gm-archive-card,
  .gm-post-card,
  .gm-page-card {
    padding: 22px;
  }

  .gm-grid--posts,
  .gm-grid--stats,
  .gm-series-list {
    grid-template-columns: 1fr;
  }

  .gm-home-hero {
    padding-top: 16px;
  }

  .gm-hero-copy {
    padding-bottom: 18px;
  }

  .gm-thesis {
    padding: 22px;
  }

  .gm-nav {
    gap: 8px;
  }

  .gm-nav a {
    padding: 8px 12px;
  }
}

/*
 * Homepage and shell refresh
 */

:root {
  --gm-bg: #f6f2eb;
  --gm-surface: #fbf8f2;
  --gm-surface-soft: #f0eae1;
  --gm-border: rgba(26, 24, 20, 0.1);
  --gm-border-strong: rgba(26, 24, 20, 0.22);
  --gm-text: #171512;
  --gm-muted: #6a645c;
  --gm-accent: #171512;
  --gm-accent-soft: #ede7de;
  --gm-shadow: none;
  --gm-radius-lg: 28px;
  --gm-radius-md: 18px;
  --gm-radius-sm: 12px;
  --gm-container: 1160px;
  --gm-sans: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --gm-serif: "Iowan Old Style", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 22%),
    linear-gradient(180deg, #faf7f1 0%, #f5f0e8 100%);
  color: var(--gm-text);
  font-size: 17px;
}

.gm-container {
  width: min(calc(100% - 48px), var(--gm-container));
}

.gm-site-header {
  backdrop-filter: blur(10px);
  background: rgba(250, 247, 241, 0.82);
  border-bottom: 1px solid var(--gm-border);
}

.gm-site-header__inner {
  padding: 20px 0;
}

.gm-branding {
  gap: 0;
}

.gm-brand-text strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

.gm-brand-text span {
  margin-top: 2px;
  font-size: 0.82rem;
  color: var(--gm-muted);
}

.gm-nav {
  gap: 22px;
}

.gm-nav a {
  padding: 0;
  border-radius: 0;
  color: var(--gm-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.gm-nav a:hover,
.gm-nav a:focus-visible,
.gm-nav .current-menu-item > a,
.gm-nav .current_page_item > a {
  background: transparent;
  color: var(--gm-text);
  transform: none;
  border-color: var(--gm-text);
}

.gm-main {
  padding: 20px 0 92px;
}

.gm-home-hero {
  display: grid;
  gap: 34px;
  margin-bottom: 0;
  padding: 76px 0 42px;
  border-bottom: 1px solid var(--gm-border);
}

.gm-hero-banner {
  position: relative;
}

.gm-hero-copywrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.7fr);
  gap: 44px;
  align-items: start;
}

.gm-hero-copy {
  padding: 0;
  max-width: 720px;
}

.gm-kicker {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #8e877e;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.gm-hero h1 {
  max-width: none;
  margin: 12px 0 14px;
  font-family: var(--gm-sans);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.gm-lede {
  max-width: 34ch;
  color: #4e4942 !important;
  font-size: 1.04rem !important;
  line-height: 1.88;
}

.gm-hero-actions {
  gap: 12px;
  margin-top: 26px;
}

.gm-hero-photo {
  margin: 0;
  min-height: 430px;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(23, 21, 18, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 30px 80px rgba(63, 54, 44, 0.1);
}

.gm-hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: 36px;
  filter: saturate(0.92) contrast(1.02);
}

.gm-hero-caption {
  max-width: 30ch;
}

.gm-hero-caption--overlay {
  position: absolute;
  left: 28px;
  bottom: 26px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(247, 242, 235, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.gm-hero-caption p {
  margin: 10px 0 0;
  color: #4f4942;
  font-size: 0.92rem;
  line-height: 1.75;
}

.gm-brand-panel {
  display: grid;
  gap: 28px;
  padding: 10px 0 4px 28px;
  border-left: 1px solid var(--gm-border);
}

.gm-brand-panel__top h2 {
  margin: 14px 0 12px;
  font-family: var(--gm-sans);
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.gm-brand-panel__top p {
  margin: 0;
  color: var(--gm-muted);
  line-height: 1.82;
}

.gm-brand-panel__meta {
  display: grid;
  gap: 16px;
}

.gm-brand-panel__meta--inline {
  margin-top: 34px;
}

.gm-brand-panel__item {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--gm-border);
}

.gm-brand-panel__item span {
  color: #8e877e;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gm-brand-panel__item strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gm-button,
.gm-button:visited {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  box-shadow: none;
}

.gm-button--primary {
  background: var(--gm-text);
}

.gm-button--secondary {
  background: transparent;
  border-color: var(--gm-border-strong);
}

.gm-home-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 34px 0 0;
}

.gm-signal {
  padding-top: 18px;
  border-top: 1px solid var(--gm-border);
}

.gm-signal span,
.gm-section-label,
.gm-card-index {
  display: inline-block;
  color: #8e877e;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gm-signal p {
  margin: 10px 0 0;
  color: var(--gm-text);
  font-size: 1rem;
  line-height: 1.8;
}

.gm-section {
  margin-top: 0;
}

.gm-home-statement,
.gm-home-themes,
.gm-home-posts {
  border-top: 1px solid var(--gm-border);
}

.gm-home-statement {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  gap: 56px;
  padding: 84px 0 46px;
}

.gm-home-statement__body p {
  margin: 0;
  color: var(--gm-text);
  font-size: clamp(1.32rem, 2.2vw, 1.82rem);
  line-height: 1.72;
  letter-spacing: -0.02em;
}

.gm-signature-block {
  display: inline-grid;
  gap: 4px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--gm-border);
}

.gm-signature-block span {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gm-signature-block em {
  color: var(--gm-muted);
  font-size: 0.88rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gm-home-themes {
  padding: 34px 0 42px;
}

.gm-home-themes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 30px;
}

.gm-theme-item {
  padding-top: 8px;
  padding-right: 10px;
}

.gm-theme-item h3 {
  margin: 14px 0 12px;
  font-family: var(--gm-sans);
  font-size: 1.55rem;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.gm-theme-item p {
  margin: 0;
  color: var(--gm-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.gm-home-posts {
  padding: 84px 0 0;
}

.gm-section-head {
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 34px;
}

.gm-section-head h2 {
  margin-top: 12px;
  font-family: var(--gm-sans);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.gm-section-head p {
  max-width: 52ch;
  color: var(--gm-muted);
  line-height: 1.85;
}

.gm-grid--posts {
  gap: 28px;
}

.gm-post-card {
  padding: 26px 0 18px;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--gm-text);
  border-radius: 0;
  box-shadow: none;
}

.gm-post-card h3 {
  margin: 12px 0;
  font-size: 1.42rem;
  line-height: 1.34;
  letter-spacing: -0.03em;
}

.gm-card-meta {
  color: #8e877e;
  font-size: 0.88rem;
}

.gm-card-description {
  margin-bottom: 0;
  color: var(--gm-muted);
  line-height: 1.85;
}

.gm-post-card--empty {
  padding-top: 30px;
}

.gm-site-footer {
  margin-top: 90px;
  padding: 0 0 24px;
  border-top: 1px solid var(--gm-border);
}

.gm-site-footer__inner {
  align-items: flex-start;
  padding: 42px 0 24px;
}

.gm-site-footer__brand strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.gm-site-footer__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--gm-muted);
  font-size: 0.95rem;
}

.gm-footer-note {
  margin: 0;
  max-width: 520px;
  color: var(--gm-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .gm-home-signals,
  .gm-home-themes__grid,
  .gm-grid--posts,
  .gm-home-statement {
    grid-template-columns: 1fr;
  }

  .gm-hero-copywrap {
    grid-template-columns: 1fr;
  }

  .gm-home-statement {
    gap: 20px;
  }

  .gm-brand-panel {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--gm-border);
  }

  .gm-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gm-site-footer__inner {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .gm-container {
    width: min(calc(100% - 28px), var(--gm-container));
  }

  .gm-site-header__inner {
    align-items: flex-start;
  }

  .gm-nav {
    gap: 14px;
  }

  .gm-nav a {
    padding: 0;
  }

  .gm-main {
    padding-top: 10px;
  }

  .gm-home-hero {
    padding: 44px 0 30px;
  }

  .gm-hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.3rem);
  }

  .gm-hero-caption--overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
  }

  .gm-hero-photo,
  .gm-hero-photo img {
    min-height: 320px;
  }

  .gm-brand-panel__top h2 {
    font-size: 1.5rem;
  }

  .gm-home-signals {
    padding-top: 24px;
  }

  .gm-home-statement {
    padding: 64px 0 38px;
  }

  .gm-home-posts {
    padding-top: 64px;
  }
}

/*
 * Homepage reset
 */

.gm-home {
  display: grid;
  gap: 34px;
}

.gm-home-hero {
  position: relative;
  display: block;
  margin: 0;
  padding: 28px 0 0;
  border: 0;
}

.gm-home-hero__image {
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(20, 18, 15, 0.08);
  box-shadow: 0 28px 64px rgba(55, 46, 36, 0.1);
}

.gm-home-hero__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 54%;
  border-radius: 36px;
  filter: saturate(0.9) contrast(1.02) brightness(0.86);
}

.gm-home-hero__overlay {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 34px;
  max-width: 760px;
  padding: 0;
}

.gm-home-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(255, 248, 238, 0.82);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gm-home-hero__overlay h1 {
  margin: 0 0 14px;
  color: #fff9f1;
  font-family: var(--gm-sans);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.gm-home-hero__overlay p {
  max-width: 54ch;
  margin: 0;
  color: rgba(255, 248, 238, 0.86);
  font-size: 1rem;
  line-height: 1.82;
}

.gm-home-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.gm-home-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gm-home-strip__item {
  padding: 20px 0 0;
  border-top: 1px solid rgba(20, 18, 15, 0.1);
}

.gm-home-strip__item span {
  display: block;
  margin-bottom: 8px;
  color: #8d8477;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gm-home-strip__item strong {
  color: #1b1814;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.gm-home-manifesto {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: 44px;
  padding: 34px 0;
  border-top: 1px solid rgba(20, 18, 15, 0.1);
}

.gm-home-manifesto__label {
  color: #8d8477;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gm-home-manifesto__content p {
  margin: 0;
  color: #1b1814;
  font-size: clamp(1.26rem, 2vw, 1.72rem);
  line-height: 1.74;
  letter-spacing: -0.02em;
}

.gm-home-manifesto__signature {
  display: inline-grid;
  gap: 4px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 18, 15, 0.1);
}

.gm-home-manifesto__signature span {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gm-home-manifesto__signature em {
  color: #8d8477;
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gm-home-topics,
.gm-home-posts {
  padding-top: 34px;
  border-top: 1px solid rgba(20, 18, 15, 0.1);
}

.gm-home-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.gm-home-section-head--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.gm-home-section-head h2 {
  margin: 0;
  color: #171512;
  font-family: var(--gm-sans);
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.gm-home-section-head p {
  max-width: 56ch;
  margin: 2px 0 0;
  color: var(--gm-muted);
  line-height: 1.8;
}

.gm-home-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gm-home-topic-card {
  padding: 24px 24px 22px;
  background: rgba(255, 252, 246, 0.82);
  border: 1px solid rgba(20, 18, 15, 0.08);
  border-radius: 24px;
}

.gm-home-topic-card__index {
  display: inline-block;
  margin-bottom: 14px;
  color: #8d8477;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gm-home-topic-card h3 {
  margin: 0 0 10px;
  color: #171512;
  font-size: 1.32rem;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.gm-home-topic-card p {
  margin: 0;
  color: var(--gm-muted);
  line-height: 1.8;
}

.gm-home-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gm-home-post-card {
  padding: 24px 0 0;
  background: transparent;
  border: 0;
  border-top: 2px solid #171512;
  border-radius: 0;
  box-shadow: none;
}

.gm-home-post-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #8d8477;
  font-size: 0.84rem;
}

.gm-home-post-card h3 {
  margin: 12px 0 10px;
  color: #171512;
  font-size: 1.34rem;
  line-height: 1.34;
  letter-spacing: -0.03em;
}

.gm-home-post-card p {
  margin: 0;
  color: var(--gm-muted);
  line-height: 1.8;
}

@media (max-width: 980px) {
  .gm-home-strip,
  .gm-home-topic-grid,
  .gm-home-post-grid,
  .gm-home-manifesto,
  .gm-home-section-head--split {
    grid-template-columns: 1fr;
  }

  .gm-home-hero__overlay {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }
}

@media (max-width: 720px) {
  .gm-home {
    gap: 28px;
  }

  .gm-home-hero {
    padding-top: 18px;
  }

  .gm-home-hero__image,
  .gm-home-hero__image img {
    min-height: 420px;
    height: 420px;
    border-radius: 24px;
  }

  .gm-home-hero__overlay {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .gm-home-hero__overlay h1 {
    font-size: clamp(1.52rem, 8vw, 2.1rem);
  }

  .gm-home-manifesto__content p {
    font-size: 1.12rem;
  }
}

/*
 * Gavin Mind worldview homepage
 */

:root {
  --gm-bg: #f4f6f3;
  --gm-surface: #ffffff;
  --gm-surface-soft: #eef2ee;
  --gm-border: rgba(20, 26, 28, 0.12);
  --gm-border-strong: rgba(20, 26, 28, 0.22);
  --gm-text: #15191a;
  --gm-muted: #5f6967;
  --gm-accent: #2f6f64;
  --gm-accent-soft: #dfece7;
  --gm-blue: #315c8a;
  --gm-rust: #9a5b3d;
  --gm-shadow: 0 24px 70px rgba(20, 31, 34, 0.08);
  --gm-container: 1180px;
}

body {
  background:
    linear-gradient(120deg, rgba(47, 111, 100, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfcf9 0%, #eef3ef 100%);
}

.gm-site-header {
  background: rgba(248, 250, 247, 0.86);
}

.gm-home-v2 {
  gap: 0;
}

.gm-home-v2-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 118px);
  padding: 56px 0 46px;
  border-bottom: 1px solid var(--gm-border);
}

.gm-home-v2-hero__copy {
  max-width: 760px;
}

.gm-home-v2-eyebrow,
.gm-home-v2-section-label {
  display: inline-block;
  color: #6c7c78;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gm-home-v2-hero h1 {
  margin: 14px 0 20px;
  color: var(--gm-text);
  font-family: var(--gm-sans);
  font-size: clamp(2.9rem, 7vw, 6.7rem);
  font-weight: 670;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.gm-home-v2-hero h1 span {
  display: block;
}

.gm-home-v2-hero__copy p {
  max-width: 45ch;
  margin: 0;
  color: #3f4947;
  font-size: clamp(1.03rem, 1.3vw, 1.16rem);
  line-height: 1.92;
}

.gm-home-v2-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.gm-button--primary {
  background: #172120;
}

.gm-button--secondary {
  background: rgba(255, 255, 255, 0.64);
}

.gm-worldview-orbit {
  position: relative;
  min-height: 540px;
  border-radius: 8px;
  border: 1px solid var(--gm-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(239, 244, 239, 0.72)),
    radial-gradient(circle at center, rgba(47, 111, 100, 0.18), transparent 38%);
  box-shadow: var(--gm-shadow);
  overflow: hidden;
}

.gm-worldview-orbit::before,
.gm-worldview-orbit::after {
  content: "";
  position: absolute;
  inset: 76px;
  border: 1px solid rgba(47, 111, 100, 0.22);
  border-radius: 50%;
}

.gm-worldview-orbit::after {
  inset: 136px;
  border-color: rgba(49, 92, 138, 0.18);
}

.gm-worldview-orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(46%, 205px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 50%;
  background: #172120;
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
}

.gm-worldview-orbit__core span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gm-worldview-orbit__core strong {
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  line-height: 1.34;
}

.gm-worldview-orbit__node {
  position: absolute;
  z-index: 3;
  width: 126px;
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(20, 26, 28, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #172120;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.36;
  text-align: center;
  box-shadow: 0 18px 40px rgba(20, 31, 34, 0.08);
}

.gm-worldview-orbit__node--top {
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
}

.gm-worldview-orbit__node--right {
  top: 50%;
  right: 38px;
  transform: translateY(-50%);
  border-top-color: rgba(49, 92, 138, 0.42);
}

.gm-worldview-orbit__node--bottom {
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  border-top-color: rgba(154, 91, 61, 0.42);
}

.gm-worldview-orbit__node--left {
  top: 50%;
  left: 38px;
  transform: translateY(-50%);
  border-top-color: rgba(47, 111, 100, 0.42);
}

.gm-home-v2-strip {
  padding: 30px 0 62px;
  border-bottom: 1px solid var(--gm-border);
}

.gm-home-v2-statement {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: 54px;
  padding: 72px 0;
  border-bottom: 1px solid var(--gm-border);
}

.gm-home-v2-statement__body {
  display: grid;
  gap: 22px;
}

.gm-home-v2-statement__body p {
  margin: 0;
  color: var(--gm-text);
  font-size: clamp(1.38rem, 2.35vw, 2.08rem);
  line-height: 1.66;
  letter-spacing: 0;
}

.gm-home-v2-section {
  padding: 76px 0;
  border-bottom: 1px solid var(--gm-border);
}

.gm-home-v2-section-head {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: 34px;
}

.gm-home-v2-section-head h2 {
  margin: 0;
  color: var(--gm-text);
  font-family: var(--gm-sans);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.gm-home-v2-section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--gm-muted);
  line-height: 1.86;
}

.gm-dimension-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gm-dimension-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--gm-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.gm-dimension-card__top span {
  display: block;
  margin-bottom: 16px;
  color: #7a8784;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.gm-dimension-card h3 {
  min-height: 3em;
  margin: 0;
  color: var(--gm-text);
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.22;
  letter-spacing: 0;
}

.gm-dimension-card p {
  margin: 16px 0 0;
  color: var(--gm-muted);
  line-height: 1.78;
}

.gm-dimension-card__question {
  color: var(--gm-text) !important;
  font-weight: 650;
}

.gm-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 22px;
}

.gm-tag-row span {
  padding: 5px 9px;
  border: 1px solid var(--gm-border);
  border-radius: 999px;
  background: #f8faf7;
  color: #53615e;
  font-size: 0.8rem;
  line-height: 1.35;
}

.gm-flywheel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.gm-flywheel li {
  position: relative;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--gm-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.gm-flywheel li::after {
  content: "→";
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(47, 111, 100, 0.6);
}

.gm-flywheel li:nth-child(4)::after,
.gm-flywheel li:nth-child(8)::after {
  content: "↓";
}

.gm-flywheel span {
  display: block;
  color: #7a8784;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.gm-flywheel strong {
  display: block;
  margin-top: 28px;
  color: var(--gm-text);
  font-size: 1.18rem;
  line-height: 1.42;
}

.gm-tree-root {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  margin-bottom: 22px;
  padding: 0 22px;
  border-radius: 8px;
  background: #172120;
  color: #fff;
  font-weight: 700;
}

.gm-tree-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gm-tree-branch {
  padding: 22px;
  border: 1px solid var(--gm-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.gm-tree-branch h3 {
  margin: 0 0 16px;
  font-size: 1.22rem;
  line-height: 1.32;
}

.gm-tree-branch ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gm-tree-branch li {
  position: relative;
  padding-left: 18px;
  color: var(--gm-muted);
  line-height: 1.58;
}

.gm-tree-branch li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 1px;
  background: var(--gm-accent);
}

.gm-home-v2-posts {
  padding-bottom: 0;
  border-bottom: 0;
}

.gm-home-v2-posts .gm-home-section-head h2 {
  letter-spacing: 0;
}

@media (max-width: 1080px) {
  .gm-home-v2-hero,
  .gm-home-v2-statement {
    grid-template-columns: 1fr;
  }

  .gm-home-v2-hero {
    min-height: auto;
  }

  .gm-dimension-grid,
  .gm-tree-grid,
  .gm-flywheel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gm-dimension-card {
    min-height: 330px;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .gm-container {
    width: min(calc(100% - 28px), 362px);
  }

  .gm-home-v2-hero {
    gap: 34px;
    padding: 42px 0 38px;
    min-width: 0;
  }

  .gm-home-v2-hero h1 {
    max-width: 100%;
    font-size: clamp(2.02rem, 11vw, 3rem);
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .gm-home-v2-hero__copy,
  .gm-home-v2-hero__copy p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .gm-home-v2-hero__copy p {
    max-width: 20em;
    font-size: 1rem;
  }

  .gm-worldview-orbit {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "top"
      "left"
      "right"
      "core"
      "bottom";
    gap: 12px;
    min-height: auto;
    padding: 18px;
  }

  .gm-worldview-orbit::before {
    display: none;
  }

  .gm-worldview-orbit::after {
    display: none;
  }

  .gm-worldview-orbit__core {
    position: static;
    grid-area: core;
    width: 190px;
    margin: 10px auto 0;
    transform: none;
  }

  .gm-worldview-orbit__node {
    position: static;
    width: 100%;
    min-height: 54px;
    padding: 8px 10px;
    font-size: 0.82rem;
    transform: none;
    overflow-wrap: anywhere;
  }

  .gm-worldview-orbit__node--top {
    grid-area: top;
    justify-self: stretch;
  }

  .gm-worldview-orbit__node--right {
    grid-area: right;
    justify-self: stretch;
    width: auto;
  }

  .gm-worldview-orbit__node--bottom {
    grid-area: bottom;
    justify-self: stretch;
  }

  .gm-worldview-orbit__node--left {
    grid-area: left;
    justify-self: stretch;
    width: auto;
  }

  .gm-home-v2-strip,
  .gm-home-v2-statement,
  .gm-home-v2-section {
    padding: 48px 0;
  }

  .gm-dimension-grid,
  .gm-tree-grid,
  .gm-flywheel {
    grid-template-columns: 1fr;
  }

  .gm-dimension-card {
    min-height: auto;
  }

  .gm-flywheel li:nth-child(4)::after,
  .gm-flywheel li:nth-child(8)::after {
    content: "→";
  }
}

/*
 * Typography refinement
 */

:root {
  --gm-sans: "Avenir Next", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --gm-serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
}

body {
  font-family: var(--gm-sans);
  font-weight: 400;
  letter-spacing: 0;
}

.gm-brand-text strong,
.gm-nav a,
.gm-button,
.gm-home-v2-eyebrow,
.gm-home-v2-section-label,
.gm-home-strip__item span,
.gm-dimension-card__top span,
.gm-flywheel span {
  font-weight: 500;
}

.gm-home-v2-hero {
  min-height: auto;
  padding: 78px 0 58px;
}

.gm-home-v2-hero h1 {
  max-width: 11.5em;
  font-size: clamp(2.08rem, 3.35vw, 3.65rem);
  font-weight: 520;
  line-height: 1.12;
}

.gm-home-v2-hero__copy p {
  font-size: clamp(1rem, 1.05vw, 1.08rem);
  line-height: 1.92;
}

.gm-home-v2-statement__body p {
  font-size: clamp(1.16rem, 1.65vw, 1.48rem);
  font-weight: 400;
  line-height: 1.82;
}

.gm-home-v2-section-head h2,
.gm-home-section-head h2 {
  font-size: clamp(1.55rem, 2.45vw, 2.35rem);
  font-weight: 520;
  line-height: 1.24;
}

.gm-dimension-card h3,
.gm-home-post-card h3,
.gm-tree-branch h3 {
  font-weight: 520;
}

.gm-dimension-card h3 {
  min-height: auto;
  font-size: clamp(1.16rem, 1.35vw, 1.32rem);
  line-height: 1.34;
}

.gm-dimension-card__question {
  font-weight: 500 !important;
}

.gm-flywheel strong {
  font-size: 1.04rem;
  font-weight: 500;
}

.gm-worldview-orbit__core strong {
  font-size: clamp(1.04rem, 1.55vw, 1.32rem);
  font-weight: 500;
}

.gm-worldview-orbit__node {
  font-weight: 500;
}

.gm-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--gm-border);
}

.gm-post-actions__stat {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--gm-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.gm-post-actions__stat span {
  color: var(--gm-muted);
  font-size: 0.86rem;
}

.gm-post-actions__stat strong {
  font-size: 0.96rem;
  font-weight: 520;
}

.gm-action-button,
.gm-sidebar-action {
  appearance: none;
  border: 1px solid var(--gm-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--gm-text);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.gm-action-button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
}

.gm-action-button:hover,
.gm-action-button:focus-visible,
.gm-sidebar-action:hover,
.gm-sidebar-action:focus-visible,
.gm-action-button.is-active,
.gm-sidebar-action.is-active {
  border-color: rgba(47, 111, 100, 0.34);
  background: var(--gm-accent-soft);
  color: #172120;
}

.gm-sidebar-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.gm-site-footer__meta span {
  color: var(--gm-muted);
}

@media (max-width: 720px) {
  .gm-container {
    width: auto !important;
    max-width: none !important;
    margin-left: 14px;
    margin-right: 14px;
  }

  .gm-site-header__inner {
    display: block;
  }

  .gm-nav {
    width: 100%;
    margin-top: 16px;
    gap: 8px 14px;
  }

  .gm-nav a {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .gm-home-v2-hero {
    padding: 46px 0 42px;
  }

  .gm-home-v2-hero h1 {
    max-width: 8.5em;
    font-size: clamp(1.72rem, 7.2vw, 2.12rem);
    line-height: 1.2;
  }

  .gm-home-v2-hero__copy p {
    max-width: 21em;
    font-size: 0.96rem;
    line-height: 1.86;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .gm-home-v2-section-head h2,
  .gm-home-section-head h2 {
    font-size: clamp(1.42rem, 6vw, 1.86rem);
    line-height: 1.28;
  }

  .gm-home-v2-statement__body p {
    font-size: 1.05rem;
    line-height: 1.82;
  }

  .gm-single-layout,
  .gm-single-card,
  .gm-single-header,
  .gm-single-content {
    min-width: 0;
    max-width: 100%;
  }

  .gm-single-layout {
    display: block !important;
    width: 100%;
  }

  .gm-single-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 22px;
    overflow: hidden;
  }

  .gm-single-layout .gm-sidebar {
    margin-top: 20px;
  }

  .gm-single-header h1 {
    max-width: 10em;
    font-size: clamp(1.58rem, 6.5vw, 2.05rem);
    line-height: 1.34;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .gm-single-meta,
  .gm-post-actions {
    gap: 8px;
    min-width: 0;
  }

  .gm-single-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gm-single-meta > * {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .gm-single-intro,
  .gm-single-content p,
  .gm-single-content li,
  .gm-single-content blockquote {
    max-width: 19em;
  }

  .gm-single-content {
    font-size: 1rem;
    line-height: 1.9;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .gm-single-content * {
    max-width: 100%;
  }

  .gm-single-content p,
  .gm-single-content li,
  .gm-single-content a {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .gm-action-button,
  .gm-post-actions__stat {
    min-height: 40px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/*
 * Homepage banner and topic generator
 */

.gm-home-v2-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  padding: 54px 0 58px;
}

.gm-home-v2-hero__copy {
  max-width: 880px;
}

.gm-home-v2-hero h1 {
  max-width: 13em;
}

.gm-hero-landscape {
  position: relative;
  margin: 0;
  aspect-ratio: 21 / 8;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(20, 26, 28, 0.1);
  border-radius: 8px;
  background: #dfe8ed;
  box-shadow: var(--gm-shadow);
}

.gm-hero-landscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 24, 0.02), rgba(10, 20, 24, 0.18));
  pointer-events: none;
}

.gm-hero-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  border-radius: 8px;
}

.gm-topic-generator {
  scroll-margin-top: 96px;
}

.gm-topic-generator__head {
  max-width: 900px;
}

.gm-topic-generator__panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: 28px;
  align-items: start;
}

.gm-topic-generator__intro {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.gm-topic-generator__intro strong {
  color: var(--gm-text);
  font-size: 1.22rem;
  font-weight: 520;
  line-height: 1.35;
}

.gm-topic-generator__intro p {
  margin: 0;
  color: var(--gm-muted);
  line-height: 1.84;
}

.gm-topic-generator__intro .gm-button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.gm-topic-generator__intro .gm-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.gm-topic-generator__status {
  min-height: 1.5em;
  color: #6c7c78;
  font-size: 0.9rem;
  line-height: 1.6;
}

.gm-topic-generator__results {
  display: grid;
  gap: 14px;
}

.gm-topic-card {
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border: 1px solid var(--gm-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.gm-topic-card span {
  color: #6c7c78;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gm-topic-card h3 {
  margin: 0;
  color: var(--gm-text);
  font-size: clamp(1.12rem, 1.45vw, 1.42rem);
  font-weight: 520;
  line-height: 1.42;
}

.gm-topic-card p,
.gm-topic-card small {
  margin: 0;
  color: var(--gm-muted);
  line-height: 1.82;
}

.gm-topic-card small {
  padding-top: 4px;
  font-size: 0.88rem;
}

.gm-topic-card small a {
  color: var(--gm-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.gm-topic-card small em {
  display: inline-flex;
  margin-left: 10px;
  color: #6c7c78;
  font-style: normal;
}

.gm-topic-card--placeholder {
  min-height: 180px;
  align-content: center;
  border-style: dashed;
}

@media (max-width: 980px) {
  .gm-topic-generator__panel {
    grid-template-columns: 1fr;
  }

  .gm-topic-generator__intro {
    position: static;
  }
}

@media (max-width: 720px) {
  .gm-home-v2-hero {
    gap: 24px;
    padding: 38px 0 44px;
  }

  .gm-hero-landscape {
    aspect-ratio: 4 / 3;
    min-height: 300px;
  }

  .gm-topic-card {
    padding: 18px;
  }

  .gm-topic-card span {
    letter-spacing: 0.08em;
  }
}
