:root {
  --rf-bg: #ffffff;
  --rf-ink: #121212;
  --rf-muted: #66616a;
  --rf-soft: #f8f6f4;
  --rf-line: #ebe7e4;
  --rf-orange: #ff7a18;
  --rf-red: #ff2d2d;
  --rf-gradient: linear-gradient(135deg, var(--rf-orange) 0%, var(--rf-red) 100%);
  --rf-gradient-soft: linear-gradient(135deg, rgba(255, 122, 24, 0.13), rgba(255, 45, 45, 0.08));
  --rf-shadow: 0 22px 60px rgba(20, 12, 8, 0.1);
  --rf-radius: 8px;
  --rf-max: 1180px;
  --rf-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rf-bg);
  color: var(--rf-ink);
  font-family: var(--rf-font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.has-open-menu {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  margin-inline: auto;
  max-width: var(--rf-max);
  padding-inline: 24px;
  width: 100%;
}

.screen-reader-text,
.skip-link:not(:focus) {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.skip-link:focus {
  background: var(--rf-ink);
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 16px;
  z-index: 1000;
}

.site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(235, 231, 228, 0.8);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 28px;
  margin-inline: auto;
  max-width: var(--rf-max);
  min-height: 76px;
  padding: 14px 24px;
}

.site-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-weight: 820;
  letter-spacing: 0;
  text-decoration: none;
}

.site-brand__mark {
  align-items: center;
  background: var(--rf-gradient);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.site-brand__name {
  font-size: 18px;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav__menu,
.footer-nav__menu {
  align-items: center;
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a,
.footer-nav a {
  color: var(--rf-muted);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  transition: color 180ms ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.footer-nav a:hover {
  color: var(--rf-ink);
}

.header-search {
  align-items: center;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 760;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.header-search:hover {
  border-color: rgba(255, 122, 24, 0.48);
  transform: translateY(-1px);
}

.language-switcher ul {
  align-items: center;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  display: inline-flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 3px;
}

.language-switcher li {
  margin: 0;
}

.language-switcher a,
.language-switcher span {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 840;
  height: 34px;
  justify-content: center;
  min-width: 38px;
  padding: 0 9px;
  text-decoration: none;
  text-transform: uppercase;
}

.language-switcher .current-lang a,
.language-switcher .current-lang span {
  background: var(--rf-gradient);
  color: #fff;
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  margin-left: auto;
  padding: 8px;
}

.nav-toggle span:not(.screen-reader-text) {
  background: var(--rf-ink);
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 22px;
}

.hero {
  overflow: hidden;
  padding: 88px 0 64px;
  position: relative;
}

.hero::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 122, 24, 0.18), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(255, 45, 45, 0.12), transparent 28%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero__inner {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  position: relative;
}

.hero h1,
.archive-hero h1,
.single-hero h1,
.not-found h1 {
  font-size: clamp(38px, 6.6vw, 78px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 780px;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.single-hero h1 {
  font-size: clamp(34px, 5.2vw, 64px);
  max-width: 1020px;
}

.hero p,
.archive-hero p,
.not-found p {
  color: var(--rf-muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 640px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.wp-block-button__link,
.search-form button {
  align-items: center;
  border: 0;
  border-radius: var(--rf-radius);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 790;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button--primary,
.wp-block-button.is-style-rateforge-gradient .wp-block-button__link,
.search-form button {
  background: var(--rf-gradient);
  box-shadow: 0 14px 34px rgba(255, 80, 29, 0.24);
  color: #fff;
}

.button--ghost {
  background: #fff;
  border: 1px solid var(--rf-line);
  color: var(--rf-ink);
}

.button:hover,
.wp-block-button__link:hover,
.search-form button:hover {
  transform: translateY(-2px);
}

.hero-preview {
  background: #fff;
  border: 1px solid rgba(235, 231, 228, 0.9);
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow);
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.hero-preview::after {
  background: var(--rf-gradient);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.hero-preview__bar {
  display: flex;
  gap: 7px;
  margin-bottom: 28px;
}

.hero-preview__bar span {
  background: var(--rf-line);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.hero-preview__score {
  align-items: flex-end;
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-preview__score strong {
  background: var(--rf-gradient);
  background-clip: text;
  color: transparent;
  font-size: 76px;
  line-height: 0.9;
}

.hero-preview__score span {
  color: var(--rf-muted);
  font-size: 14px;
  font-weight: 720;
  padding-bottom: 8px;
  text-transform: uppercase;
}

.hero-preview__rows {
  display: grid;
  gap: 12px;
}

.hero-preview__rows span {
  background: var(--rf-soft);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.hero-preview__rows span::before {
  background: var(--rf-gradient);
  border-radius: inherit;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: var(--w);
}

.hero-preview__cards {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}

.hero-preview__cards div {
  background: var(--rf-soft);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-muted);
  display: grid;
  font-size: 13px;
  gap: 10px;
  padding: 16px;
}

.hero-preview__cards strong {
  color: var(--rf-ink);
  font-size: 28px;
  line-height: 1;
}

.featured-section,
.category-rail,
.post-grid-section,
.newsletter-section {
  padding: 72px 0;
}

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

.section-heading h2,
.newsletter-card h2,
.empty-state h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.section-heading p {
  color: var(--rf-muted);
  margin: 8px 0 0;
  max-width: 520px;
}

.section-heading a,
.text-link {
  color: var(--rf-red);
  font-weight: 800;
  text-decoration: none;
}

.featured-post {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}

.featured-post__media {
  background: var(--rf-gradient-soft);
  min-height: 380px;
}

.featured-post__image,
.single-featured-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.featured-post__body {
  align-content: center;
  display: grid;
  padding: clamp(28px, 5vw, 54px);
}

.featured-post h3 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.02;
  margin: 14px 0 16px;
}

.featured-post h3 a,
.post-card__title a {
  text-decoration: none;
}

.featured-post p,
.post-card p {
  color: var(--rf-muted);
  margin: 0;
}

.post-meta {
  align-items: center;
  color: var(--rf-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 680;
  gap: 10px;
  margin-top: 18px;
}

.post-meta span:not(:last-child)::after {
  color: #c9c1bb;
  content: "/";
  margin-left: 10px;
}

.post-meta a {
  color: inherit;
}

.post-card__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.term-chip {
  background: rgba(255, 122, 24, 0.09);
  border: 1px solid rgba(255, 122, 24, 0.18);
  border-radius: 999px;
  color: #b93e12;
  font-size: 12px;
  font-weight: 820;
  padding: 5px 9px;
  text-decoration: none;
}

.category-rail {
  background:
    linear-gradient(180deg, #fff 0%, rgba(248, 246, 244, 0.72) 100%);
}

.category-rail__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-card {
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  display: grid;
  gap: 18px;
  min-height: 128px;
  padding: 18px;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.category-card:hover {
  border-color: rgba(255, 122, 24, 0.38);
  box-shadow: 0 16px 36px rgba(20, 12, 8, 0.08);
  transform: translateY(-3px);
}

.category-card span {
  font-weight: 820;
}

.category-card strong {
  background: var(--rf-gradient);
  background-clip: text;
  color: transparent;
  font-size: 34px;
  line-height: 1;
}

.category-card--empty {
  color: var(--rf-muted);
}

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

.post-card {
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.post-card:hover {
  border-color: rgba(255, 122, 24, 0.32);
  box-shadow: 0 18px 44px rgba(20, 12, 8, 0.08);
  transform: translateY(-3px);
}

.post-card__media {
  background: var(--rf-gradient-soft);
  display: block;
  height: 210px;
  overflow: hidden;
}

.post-card__image {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

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

.post-card__body {
  padding: 22px;
}

.post-card__title {
  font-size: 22px;
  line-height: 1.18;
  margin: 14px 0 10px;
}

.placeholder-image {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 122, 24, 0.2), rgba(255, 45, 45, 0.1)),
    #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 0.72fr 0.48fr;
  padding: 20px;
}

.placeholder-image span {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 122, 24, 0.18);
  border-radius: var(--rf-radius);
  min-height: 64px;
}

.placeholder-image span:nth-child(2) {
  min-height: 106px;
}

.placeholder-image span:nth-child(3) {
  min-height: 148px;
}

.newsletter-card {
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--rf-gradient) border-box;
  border: 1px solid transparent;
  border-radius: var(--rf-radius);
  box-shadow: var(--rf-shadow);
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: clamp(34px, 7vw, 72px);
  text-align: center;
}

.newsletter-card p {
  color: var(--rf-muted);
  margin: 0;
  max-width: 560px;
}

.newsletter-form,
.search-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  width: 100%;
}

.newsletter-form input,
.search-field {
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  color: var(--rf-ink);
  min-height: 48px;
  min-width: 0;
  padding: 0 16px;
  width: 100%;
}

.newsletter-form input:focus,
.search-field:focus {
  border-color: rgba(255, 122, 24, 0.58);
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.12);
  outline: 0;
}

.archive-hero {
  padding: 86px 0 52px;
}

.archive-hero .search-form {
  margin-top: 28px;
}

.single-hero {
  padding: 76px 0 38px;
}

.single-hero__inner {
  max-width: 920px;
}

.single-hero h1 {
  margin-top: 18px;
}

.single-layout {
  display: grid;
  gap: 42px;
  max-width: 980px;
  padding-bottom: 80px;
}

.single-layout__media {
  border-radius: var(--rf-radius);
  min-height: 420px;
  overflow: hidden;
}

.entry-content {
  font-size: 19px;
}

.entry-content > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.entry-content > .alignwide {
  max-width: 980px;
}

.entry-content > .alignfull {
  max-width: none;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  line-height: 1.12;
  margin-top: 1.8em;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  color: #2a2727;
}

.entry-content blockquote {
  border-left: 4px solid var(--rf-orange);
  color: var(--rf-ink);
  font-size: 24px;
  font-weight: 760;
  line-height: 1.35;
  padding-left: 24px;
}

.is-style-rateforge-panel {
  background: var(--rf-soft);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  padding: 24px;
}

.is-style-rateforge-checklist {
  list-style: none;
  padding-left: 0;
}

.is-style-rateforge-checklist li {
  padding-left: 30px;
  position: relative;
}

.is-style-rateforge-checklist li::before {
  background: var(--rf-gradient);
  border-radius: 999px;
  color: #fff;
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  top: 0.58em;
  width: 10px;
}

.navigation.pagination {
  margin-top: 42px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  align-items: center;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  display: inline-flex;
  font-size: 14px;
  font-weight: 760;
  min-height: 40px;
  min-width: 40px;
  justify-content: center;
  padding: 0 12px;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--rf-gradient);
  border-color: transparent;
  color: #fff;
}

.empty-state,
.not-found {
  padding: 96px 0;
}

.empty-state {
  background: var(--rf-soft);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  padding: 44px;
}

.empty-state p {
  color: var(--rf-muted);
}

.site-footer {
  background: #121212;
  color: #fff;
  padding: 54px 24px 24px;
}

.site-footer__inner,
.site-footer__bottom {
  margin-inline: auto;
  max-width: var(--rf-max);
}

.site-footer__inner {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
}

.site-footer .site-brand__mark {
  box-shadow: 0 10px 26px rgba(255, 80, 29, 0.32);
}

.site-footer__brand p {
  color: rgba(255, 255, 255, 0.68);
  margin: 16px 0 0;
  max-width: 420px;
}

.site-footer__widgets {
  color: rgba(255, 255, 255, 0.76);
}

.footer-nav__menu {
  justify-content: end;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.66);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 20px;
}

.site-footer__legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: #fff;
}

.cookie-banner {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-radius);
  bottom: 18px;
  box-shadow: 0 20px 60px rgba(20, 12, 8, 0.16);
  display: flex;
  gap: 18px;
  left: 50%;
  max-width: min(920px, calc(100vw - 32px));
  padding: 16px;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 100;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  color: var(--rf-muted);
  flex: 1;
  font-size: 14px;
  margin: 0;
}

.cookie-banner a {
  color: var(--rf-red);
  font-weight: 800;
  text-decoration: none;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-banner .button {
  min-height: 42px;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero__inner,
  .featured-post,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .site-header__inner {
    gap: 12px;
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    background: #fff;
    border-bottom: 1px solid var(--rf-line);
    box-shadow: 0 24px 44px rgba(20, 12, 8, 0.08);
    display: none;
    inset: 68px 0 auto;
    margin: 0;
    padding: 24px;
    position: fixed;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav__menu {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .header-search {
    display: none;
  }

  .language-switcher {
    margin-left: 0;
  }

  .hero {
    padding-top: 58px;
  }

  .hero__inner {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  .hero h1,
  .archive-hero h1,
  .single-hero h1,
  .not-found h1 {
    font-size: clamp(30px, 8.6vw, 42px);
    line-height: 1.04;
  }

  .single-hero h1 {
    font-size: clamp(28px, 7.6vw, 36px);
    text-wrap: wrap;
  }

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

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

  .category-card {
    min-height: 104px;
  }

  .newsletter-form,
  .search-form {
    flex-direction: column;
  }

  .featured-section,
  .category-rail,
  .post-grid-section,
  .newsletter-section {
    padding: 52px 0;
  }

  .single-layout__media {
    min-height: 280px;
  }

  .entry-content {
    font-size: 17px;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .container,
  .site-header__inner {
    padding-inline: 18px;
  }

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

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .wp-block-button__link {
    width: 100%;
  }
}
