:root {
  --ss-ink: #0a2540;
  --ss-bg: #fffbf7;
  --ss-surface: #ffffff;
  --ss-border: #e5e5e5;
  --ss-muted: #475569;
  --ss-teal: #1e5a65;
  --ss-coral: #e85d4d;
  --ss-gold: #f4a46b;
  --ss-ai-cyan: #00d4ff;
  --ss-gradient: linear-gradient(135deg, var(--ss-teal) 0%, var(--ss-coral) 45%, var(--ss-gold) 100%);
  --ss-shadow-lg: 0 28px 70px rgba(10, 37, 64, 0.12);
  --ss-shadow-md: 0 16px 40px rgba(10, 37, 64, 0.1);
  --ss-shadow-sm: 0 10px 24px rgba(10, 37, 64, 0.08);
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --ghost-accent-color: var(--ss-teal);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ss-bg);
  color: var(--ss-ink);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

a {
  color: var(--ss-teal);
}

.viewport {
  background: transparent;
}

.outer {
  padding-left: max(4.5vmin, 22px);
  padding-right: max(4.5vmin, 22px);
}

.inner {
  max-width: 1240px;
}

.gh-head {
  height: auto;
  padding: 14px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: 0 8px 30px rgba(10, 37, 64, 0.04);
}

.home-template.has-cover .gh-head,
.post-template.has-cover .gh-head {
  background: rgba(255, 251, 247, 0.82) !important;
  color: var(--ss-ink) !important;
  position: sticky;
  top: 0;
}

.gh-head-logo img {
  max-height: 42px;
}

.gh-head-menu .nav {
  gap: 12px;
}

.gh-head-menu .nav a {
  color: var(--ss-ink) !important;
  border-radius: 999px;
  font-weight: 700;
  padding: 10px 14px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.gh-head-menu .nav a:hover {
  background: rgba(30, 90, 101, 0.08);
  color: var(--ss-teal) !important;
  opacity: 1;
}

.gh-head-actions {
  gap: 12px;
}

.gh-search {
  color: var(--ss-ink) !important;
}

.ss-btn,
.gh-head-button,
.kg-btn,
.pagination a,
.ss-hero-actions a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  line-height: 1;
  padding: 14px 22px;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.ss-btn:hover,
.gh-head-button:hover,
.kg-btn:hover,
.pagination a:hover,
.ss-hero-actions a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.ss-btn-primary,
.gh-head-button,
.kg-btn,
.pagination a {
  background: var(--ss-gradient);
  box-shadow: 0 18px 42px rgba(232, 93, 77, 0.22);
  color: #ffffff !important;
}

.ss-btn-secondary,
.ss-hero-actions .ss-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ss-btn-secondary-dark {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

.ss-btn-inline-secondary {
  background: rgba(30, 90, 101, 0.08);
  color: var(--ss-teal) !important;
}

.ss-header-cta {
  white-space: nowrap;
}

.site-header-content {
  min-height: auto !important;
  padding-top: clamp(7.5rem, 11vw, 10rem) !important;
  padding-bottom: clamp(4rem, 7vw, 6rem) !important;
  position: relative;
  text-align: left;
}

.site-header-content::before {
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.78) 0%, rgba(10, 37, 64, 0.52) 45%, rgba(10, 37, 64, 0.28) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 0;
}

.site-header-content::after {
  background: linear-gradient(90deg, rgba(10, 37, 64, 0.18) 0%, rgba(10, 37, 64, 0.04) 38%, rgba(10, 37, 64, 0) 70%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.site-header-cover {
  filter: brightness(0.6) saturate(0.95) contrast(1.02);
}

.site-header-inner {
  max-width: 1240px;
  position: relative;
  z-index: 2;
}

.ss-blog-hero {
  color: #ffffff;
  max-width: 700px;
}

.ss-blog-eyebrow {
  color: rgba(255, 255, 255, 0.84);
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.ss-blog-eyebrow-teal {
  color: var(--ss-teal);
}

.ss-blog-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 7vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 0;
  max-width: 10ch;
  text-wrap: balance;
}

.ss-blog-copy {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.8rem, 2.2vw, 2.15rem);
  line-height: 1.5;
  margin: 18px 0 0;
  max-width: 34ch;
}

.ss-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.home-template .site-description {
  display: none;
}

.site-main.outer,
.site-main {
  position: relative;
}

.post-feed,
.read-more {
  gap: 28px;
}

.post-feed {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-top: clamp(30px, 4vw, 50px);
}

.post-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 30px;
  box-shadow: var(--ss-shadow-sm);
  grid-column: span 4;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.post-card:hover {
  box-shadow: var(--ss-shadow-lg);
  transform: translateY(-4px);
}

.post-card.post-card-large {
  grid-column: span 12;
}

.post-card-image-link {
  margin: 0;
}

.post-card-image-link::after {
  padding-bottom: 62%;
}

.post-card-image {
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-image {
  transform: scale(1.035);
}

.post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 26px;
}

.post-card-primary-tag,
.article-tag a {
  background: rgba(30, 90, 101, 0.08);
  border: 1px solid rgba(30, 90, 101, 0.14);
  border-radius: 999px;
  color: var(--ss-teal) !important;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.post-card-title,
.article-title,
.ss-inline-cta h3,
.ss-footer-brand h3,
.ss-footer-links h4,
.read-more-title,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.ss-footer-panel-title {
  color: var(--ss-ink);
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.post-card-title {
  font-size: clamp(2.3rem, 2.4vw, 3.2rem);
  margin-bottom: 10px;
}

.post-card-large .post-card-title {
  font-size: clamp(2.8rem, 3.2vw, 4.2rem);
}

.post-card-excerpt,
.article-excerpt,
.post-card-meta,
.article-byline-meta,
.gh-content,
.gh-content p,
.gh-content li,
.site-footer,
.ss-inline-cta p,
.read-more-subtitle,
.ss-footer-panel-copy,
.ss-footer-brand p {
  color: var(--ss-muted);
}

.post-card-excerpt,
.article-excerpt {
  font-size: 1.75rem;
  line-height: 1.65;
}

.post-card-meta {
  font-size: 1.35rem;
  font-weight: 600;
}

.pagination {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 48px 0 12px;
}

.pagination .page-number {
  color: var(--ss-muted);
  font-size: 1.4rem;
  font-weight: 600;
}

.article {
  padding-top: clamp(14px, 3vw, 28px);
}

.article-header {
  padding-top: clamp(26px, 4vw, 42px);
}

.article-header,
.gh-content,
.ss-inline-cta {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.article-title {
  font-size: clamp(4rem, 5.3vw, 6.2rem);
  margin-bottom: 18px;
  max-width: 12ch;
  text-wrap: balance;
}

.article-excerpt {
  margin-bottom: 22px;
  max-width: 42ch;
}

.article-byline {
  margin-bottom: 22px;
}

.article-image img,
.kg-image,
.post-card-image,
.ss-footer-panel {
  border-radius: 30px;
}

.article-image img,
.kg-image {
  box-shadow: var(--ss-shadow-md);
}

.gh-canvas,
.kg-width-full .kg-image-card img {
  margin-left: auto;
  margin-right: auto;
  max-width: min(920px, calc(100vw - 48px));
  width: 100%;
}

.gh-content {
  font-size: 1.95rem;
  line-height: 1.82;
  max-width: 840px;
  padding-bottom: 0;
}

.gh-content > * + * {
  margin-top: 1.35em;
}

.gh-content h2 {
  font-size: clamp(3rem, 3.6vw, 4.6rem);
  margin-top: 1.8em;
}

.gh-content h3 {
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin-top: 1.65em;
}

.gh-content h4 {
  font-size: 2.2rem;
  margin-top: 1.55em;
}

.gh-content a {
  color: var(--ss-teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.15em;
}

.gh-content strong {
  color: var(--ss-ink);
  font-weight: 800;
}

.gh-content > blockquote:not([class]) {
  background: var(--ss-surface);
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 28px;
  box-shadow: var(--ss-shadow-sm);
  color: var(--ss-muted);
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-style: normal;
  line-height: 1.72;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  padding: 28px 32px;
  position: relative;
}

.gh-content > blockquote:not([class])::before {
  background: linear-gradient(180deg, var(--ss-teal) 0%, var(--ss-coral) 100%);
  border-radius: 999px;
  content: "";
  height: calc(100% - 24px);
  left: 14px;
  position: absolute;
  top: 12px;
  width: 4px;
}

.gh-content > blockquote:not([class]) strong {
  color: var(--ss-ink);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 3.4vw, 3.6rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 12px;
  max-width: 16ch;
}

.gh-content > blockquote:not([class]) a {
  color: var(--ss-teal);
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 700;
  margin-top: 18px;
  text-decoration: none;
}

.gh-content > blockquote:not([class]) a:hover {
  color: var(--ss-coral);
}

.gh-content hr {
  border-color: rgba(10, 37, 64, 0.08);
  margin: 3.4rem 0;
}

.gh-content :is(ul, ol) {
  padding-left: 1.2em;
}

.gh-content :is(ul, ol) li::marker {
  color: var(--ss-coral);
}

.kg-card.kg-callout-card {
  border-radius: 24px;
}

.ss-inline-cta {
  background: linear-gradient(135deg, rgba(30, 90, 101, 0.08), rgba(244, 164, 107, 0.1));
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 32px;
  box-shadow: var(--ss-shadow-md);
  margin: 40px auto 0;
  max-width: 840px;
  padding: 28px;
}

.ss-inline-cta h3 {
  color: var(--ss-ink);
  font-size: clamp(2.8rem, 4vw, 4rem);
  margin: 0 0 12px;
}

.ss-inline-cta p {
  font-size: 1.65rem;
  line-height: 1.7;
  margin: 0;
  max-width: 42ch;
}

.ss-inline-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.ss-read-more-intro {
  margin-top: 52px;
}

.ss-read-more-intro .inner {
  max-width: 1240px;
}

.read-more-title {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  margin: 0 0 8px;
}

.read-more-subtitle {
  font-size: 1.6rem;
  line-height: 1.7;
  margin: 0;
  max-width: 44ch;
}

.read-more-wrap {
  margin-top: 24px;
}

.read-more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.read-more .post-card {
  grid-column: span 1;
}

.site-footer {
  background: linear-gradient(180deg, #12324f 0%, #0a2540 100%);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 72px;
  padding-bottom: 0;
}

.site-footer a {
  color: #ffffff;
}

.site-footer .inner {
  color: inherit;
  display: flex;
  flex-direction: column;
  font-size: inherit;
  gap: 28px;
  max-width: 1240px;
  padding: 52px 0 28px;
  width: 100%;
}

.ss-footer-hero {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  margin-bottom: 28px;
  overflow: hidden;
  padding: 30px;
}

.ss-footer-brand-mark {
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  gap: 12px;
  margin-bottom: 20px;
}

.ss-footer-logo {
  border-radius: 12px;
  max-height: 40px;
}

.ss-footer-brand h3 {
  color: #ffffff;
  font-size: clamp(3.2rem, 4vw, 4.6rem);
  margin: 0 0 12px;
  max-width: 12ch;
}

.ss-footer-brand p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.65rem;
  line-height: 1.7;
  margin: 0;
  max-width: 40ch;
}

.ss-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ss-footer-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 100%;
  padding: 26px;
}

.ss-footer-panel-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.ss-footer-panel-title {
  color: #ffffff;
  font-size: 2.8rem;
  line-height: 1.05;
  margin: 0 0 10px;
}

.ss-footer-panel-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.5rem;
  line-height: 1.7;
  margin: 0;
}

.ss-footer-links {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
  padding: 6px 4px 0;
}

.ss-footer-links > div {
  min-width: 0;
}

.ss-footer-links h4 {
  color: #ffffff;
  font-size: 1.9rem;
  margin: 0 0 14px;
}

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

.ss-footer-links li + li {
  margin-top: 10px;
}

.ss-footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ss-footer-links a:hover {
  color: #ffffff;
  opacity: 1;
}

.ss-footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding-top: 20px;
  width: 100%;
}

.ss-footer-bottom-copy,
.ss-footer-bottom-note,
.ss-footer-bottom-note a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.3rem;
  line-height: 1.6;
}

@media (min-width: 992px) {
  .post-card.post-card-large {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .post-card.post-card-large .post-card-image-link::after {
    padding-bottom: 100%;
  }

  .post-card.post-card-large .post-card-content {
    justify-content: center;
    padding: 30px 32px;
  }
}

@media (max-width: 991px) {
  .post-feed {
    grid-template-columns: 1fr 1fr;
  }

  .post-card,
  .post-card.post-card-large {
    grid-column: span 1;
  }

  .read-more,
  .ss-footer-hero,
  .ss-footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .article-title {
    max-width: 11.5ch;
  }

  .gh-canvas,
  .ss-inline-cta {
    max-width: min(760px, calc(100vw - 48px));
  }
}

@media (max-width: 767px) {
  .gh-head {
    padding: 0;
  }

  .gh-content > blockquote:not([class]) {
    border-radius: 22px;
    font-size: 1.65rem;
    padding: 24px 22px 24px 26px;
  }

  .gh-content > blockquote:not([class])::before {
    left: 10px;
    top: 10px;
  }

  .gh-content > blockquote:not([class]) strong {
    font-size: clamp(2.3rem, 7vw, 3rem);
    max-width: none;
  }

  .gh-head-open #gh-head {
    background: rgba(255, 251, 247, 0.98) !important;
  }

  #gh-head .gh-head-actions {
    background: rgba(255, 251, 247, 0.98);
    border-top: 1px solid rgba(10, 37, 64, 0.08);
    padding-bottom: 24px;
  }

  #gh-head .nav a {
    color: var(--ss-ink) !important;
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: -0.03em;
  }

  .ss-header-cta {
    display: none;
  }

  .site-header-content {
    padding-top: 8.6rem !important;
  }

  .ss-blog-title {
    max-width: 9ch;
  }

  .post-feed {
    display: grid;
    grid-template-columns: 1fr;
  }

  .read-more,
  .ss-footer-hero,
  .ss-footer-links {
    grid-template-columns: 1fr;
  }

  .post-card,
  .post-card.post-card-large,
  .read-more .post-card {
    grid-column: span 1;
  }

  .post-card-content,
  .ss-inline-cta,
  .ss-footer-hero,
  .ss-footer-panel {
    padding: 22px;
  }

  .article-title,
  .ss-footer-brand h3 {
    max-width: none;
  }

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

  .site-footer .inner {
    padding-top: 38px;
  }
}
