:root {
  --background: #f7f4ee;
  --background-strong: #f1ebdd;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-dark: #131722;
  --surface-dark-soft: #1d2433;
  --text: #131722;
  --text-soft: #5f6778;
  --text-inverse: rgba(255, 255, 255, 0.88);
  --border: rgba(19, 23, 34, 0.12);
  --accent: #b78d2b;
  --accent-strong: #d8ae4b;
  --accent-soft: rgba(183, 141, 43, 0.12);
  --shadow: 0 24px 80px rgba(19, 23, 34, 0.08);
  --shadow-soft: 0 16px 36px rgba(19, 23, 34, 0.08);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(183, 141, 43, 0.18), transparent 28%),
    linear-gradient(180deg, #fcfbf7 0%, var(--background) 44%, #ffffff 100%);
  color: var(--text);
  font-family:
    "Segoe UI",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.65;
}

body,
.lede,
.section-heading p,
.hero-panel p,
.post-card p,
.backlink-card span,
.breadcrumbs,
.meta-row,
.post-card__meta,
.article-content {
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
}

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

strong {
  color: var(--text);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand img {
  width: auto;
  height: 40px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-soft);
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.call-button,
.button,
.cms-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.call-button,
.button--primary,
.cms-cta-button {
  background: linear-gradient(135deg, #b8892c, #e2c46b 55%, #b8892c);
  color: #131722;
  box-shadow: 0 18px 34px rgba(183, 141, 43, 0.22);
}

.call-button:hover,
.button:hover,
.cms-cta-button:hover {
  transform: translateY(-1px);
}

.button--secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero {
  padding: 52px 0 24px;
}

.hero-grid,
.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.article-card,
.sidebar-card,
.post-card,
.cover-frame,
.empty-state,
.featured-post {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
  background:
    radial-gradient(circle at top right, rgba(183, 141, 43, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(19, 23, 34, 0.03), rgba(183, 141, 43, 0.03)),
    var(--surface);
}

.hero-panel,
.sidebar-card {
  padding: 28px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, var(--surface-dark) 0%, var(--surface-dark-soft) 100%);
  color: var(--text-inverse);
}

.hero-panel strong {
  color: #fff;
  font-size: 1.35rem;
}

.hero-panel__label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-panel__label {
  color: rgba(255, 255, 255, 0.72);
}

.eyebrow {
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1,
.empty-state h1,
.empty-state h2,
.section-heading h2,
.featured-post__body h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.08;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 4vw, 4.1rem);
}

.lede {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1.1rem;
}

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

.hero-actions--compact {
  margin-top: 20px;
}

.section {
  padding: 28px 0 68px;
}

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

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-heading p {
  max-width: 46ch;
  margin: 0;
  color: var(--text-soft);
}

.content-stack {
  display: grid;
  gap: 24px;
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  overflow: hidden;
  gap: 0;
  background: var(--surface);
}

.featured-post__media,
.post-card__media {
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(19, 23, 34, 0.06), rgba(183, 141, 43, 0.14));
}

.featured-post__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.featured-post__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 32px;
}

.featured-post__body p {
  margin: 0;
  color: var(--text-soft);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  overflow: hidden;
  background: var(--surface);
}

.post-card__media {
  aspect-ratio: 16 / 9;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.03);
}

.post-card__body {
  padding: 24px;
}

.post-card__meta,
.meta-row,
.breadcrumbs,
.post-card__footer,
.tag-list,
.pagination,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.post-card__meta,
.meta-row,
.breadcrumbs,
.pagination,
.footer-meta {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.post-card h2 {
  margin: 14px 0 10px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.2;
}

.post-card p {
  margin: 0;
  color: var(--text-soft);
}

.post-card__footer {
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

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

.backlink-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(183, 141, 43, 0.16), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.backlink-card span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.pagination {
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}

.article-hero {
  display: grid;
  gap: 24px;
}

.breadcrumbs {
  align-items: center;
  gap: 8px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.cover-frame {
  overflow: hidden;
  background: var(--surface);
}

.cover-frame img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 24px;
  align-items: start;
  padding-bottom: 70px;
}

.article-card {
  padding: 38px;
  background: var(--surface);
}

.article-content {
  color: var(--text);
  font-size: 1.05rem;
  word-break: break-word;
}

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

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.8em 0 0.7em;
  color: var(--text);
  line-height: 1.18;
}

.article-content h2 {
  font-size: 1.9rem;
}

.article-content h3 {
  font-size: 1.45rem;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content table,
.article-content pre {
  margin: 0 0 1.1em;
}

.article-content p[data-cms-centered="true"] {
  text-align: center;
}

.article-content ul,
.article-content ol {
  padding-left: 1.35em;
}

.article-content li + li {
  margin-top: 0.45em;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.article-content blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(183, 141, 43, 0.08);
  color: var(--text);
}

.article-content figure,
.article-content [data-cms-table-wrap="true"] {
  margin: 1.6em 0;
}

.article-content img,
.article-content picture {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.article-content figcaption {
  max-width: 62ch;
  margin: 0.75rem auto 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  text-align: center;
}

.article-content hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.article-content pre,
.article-content code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
}

.article-content pre {
  overflow-x: auto;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: #0f131d;
  color: #f7f4ee;
}

.article-content :not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 8px;
  background: rgba(19, 23, 34, 0.08);
  color: var(--text);
}

.article-content [data-cms-table-wrap="true"] {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.article-content table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  background: var(--surface-strong);
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.article-content th {
  background: var(--background-strong);
  color: var(--text);
}

.article-content .cms-cta-button {
  margin-top: 0.6rem;
  text-decoration: none;
}

.article-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 18px;
}

.backlink-list {
  display: grid;
  gap: 10px;
}

.sidebar-card {
  background: var(--surface);
}

.sidebar-card__label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-section {
  padding-top: 0;
}

.empty-state {
  padding: 40px;
  background: var(--surface);
  text-align: center;
}

.empty-state--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.empty-state p {
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--text-soft);
}

.site-footer {
  padding: 44px 0 112px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(183, 141, 43, 0.16), transparent 26%),
    linear-gradient(180deg, var(--surface-dark) 0%, #0f131d 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.footer-grid p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-email {
  color: rgba(255, 255, 255, 0.82);
}

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

.footer-call,
.footer-email {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 800;
}

.footer-email {
  margin-top: 10px;
}

.footer-meta {
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}

.footer-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.floating-call,
.mobile-callbar {
  position: fixed;
  z-index: 45;
  border-radius: 999px;
  background: linear-gradient(135deg, #b8892c, #e2c46b 55%, #b8892c);
  color: #131722;
  box-shadow: 0 20px 40px rgba(183, 141, 43, 0.24);
  font-weight: 800;
}

.floating-call {
  right: 22px;
  bottom: 22px;
  padding: 15px 20px;
}

.mobile-callbar {
  display: none;
}

@media (max-width: 1040px) {
  .hero-grid,
  .article-hero__grid,
  .article-layout,
  .footer-grid,
  .featured-post,
  .backlink-strip {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .featured-post__media img {
    min-height: 240px;
  }

  .hero-copy,
  .article-card,
  .hero-panel,
  .sidebar-card,
  .empty-state {
    padding: 26px;
  }

  .hero h1 {
    max-width: none;
  }

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

  .floating-call {
    display: none;
  }

  .mobile-callbar {
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 18px;
  }

  .site-footer {
    padding-bottom: 128px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    gap: 12px;
  }

  .brand {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .brand img {
    height: 34px;
  }
}
