:root {
  --bg: #f4f0ea;
  --bg-card: #ffffff;
  --bg-top: #2f3338;
  --ink: #1d1f23;
  --muted: #5b616a;
  --line: #ddd6cc;
  --accent: #d95b00;
  --accent-dark: #b84c00;
  --font-ui: "Libre Franklin", sans-serif;
  --font-brand: "Source Serif 4", Georgia, serif;
  --font-script: "Caveat", cursive;
  --wrap: min(1140px, calc(100% - 2rem));
  --shadow: 0 2px 10px rgba(29, 31, 35, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--accent-dark); }
img { max-width: 100%; display: block; height: auto; }
.wrap { width: var(--wrap); margin: 0 auto; }

.cf-promo {
  background: #3a3f46;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
}

.cf-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.cf-top__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  min-height: 78px;
}
.cf-logo {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.cf-logo span { color: var(--accent); }
.cf-search {
  display: flex;
  border: 1px solid #cfc7bc;
  background: #fff;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.cf-search input {
  flex: 1;
  border: 0;
  padding: 0.7rem 0.9rem;
  font: inherit;
}
.cf-search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  width: 3rem;
  font-size: 1.15rem;
  cursor: pointer;
}
.cf-top__links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}
.cf-top__links a {
  color: var(--ink);
  text-decoration: none;
}

.cf-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.cf-nav__row {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  padding: 0.7rem 0;
}
.cf-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}
.cf-nav a:hover { color: var(--accent); }

.cf-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.cf-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 26, 0.35), rgba(20, 22, 26, 0.62)),
    radial-gradient(circle at 70% 40%, rgba(217, 91, 0, 0.25), transparent 45%),
    #2a3038;
  background-size: cover;
  background-position: center;
}
.cf-hero__copy {
  position: relative;
  padding: 3.5rem 1rem;
  max-width: 46rem;
}
.cf-hero__brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 0.95;
  font-weight: 700;
}
.cf-hero__brand em {
  font-style: normal;
  color: #ffb066;
}
.cf-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
}
.cf-hero p {
  margin: 0 auto 0.9rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
}
.cf-hero__link {
  color: #fff;
  font-weight: 600;
}

.cf-filters {
  background: #ebe5dc;
  border-bottom: 1px solid var(--line);
}
.cf-filters__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.cf-filters__left {
  display: flex;
  gap: 0.75rem;
}
.cf-filters__left span {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  font-size: 0.9rem;
}
.cf-filters__search {
  display: flex;
  border: 1px solid var(--line);
  background: #fff;
}
.cf-filters__search input {
  border: 0;
  padding: 0.5rem 0.75rem;
  min-width: 220px;
  font: inherit;
}
.cf-filters__search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.cf-grid-section { padding: 1.75rem 0 2.5rem; }
.cf-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.cf-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  min-height: 100%;
  transition: transform 0.2s ease;
}
.cf-card:hover { transform: translateY(-2px); }
.cf-card__img {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #d9d2c8, #b9b1a6);
  background-size: cover;
  background-position: center;
}
.cf-card__body { padding: 1rem 1rem 1.15rem; }
.cf-card__body h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
}
.cf-card__by {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.cf-card__by em {
  font-family: var(--font-script);
  font-style: normal;
  color: var(--accent);
  font-size: 1.2rem;
}
.cf-card--text .cf-card__body { padding-top: 1.4rem; min-height: 8rem; }

.cf-loadmore {
  margin-top: 1.75rem;
  text-align: center;
}
.cf-loadmore a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.4rem;
}

.cf-trust {
  background: #e8e2d8;
  padding: 2.25rem 0;
  text-align: center;
}
.cf-trust h2 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
}
.cf-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cf-trust__grid strong {
  display: block;
  color: var(--accent);
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.cf-trust__grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.cf-index {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.cf-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.4rem 1rem;
}
.cf-index__list a {
  color: var(--ink);
  text-decoration: none;
}
.cf-index__list a:hover { color: var(--accent); }
.cf-index__toggle {
  margin-top: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.55rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.cf-article, .cf-page { padding: 1.75rem 0 3rem; background: #fff; }
.cf-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
}
.cf-crumbs {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}
.cf-crumbs a { color: var(--muted); text-decoration: none; }
.cf-article__header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.15;
}
.cf-article__by {
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.cf-article__by em {
  font-family: var(--font-script);
  color: var(--accent);
  font-style: normal;
  font-size: 1.25rem;
}
.cf-article__deck {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.cf-article__hero {
  margin: 1.25rem 0;
}
.cf-article__hero figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.4rem;
}
.cf-quick {
  background: #fff4ea;
  border-left: 4px solid var(--accent);
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.4rem;
}
.cf-body h2 {
  margin-top: 1.7rem;
  font-size: 1.45rem;
}
.cf-body .extract {
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
  font-size: 1.05rem;
}
.cf-author, .cf-faq { margin-top: 2rem; }
.cf-faq details {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}
.cf-faq summary { cursor: pointer; font-weight: 600; }

.cf-side {
  border: 1px solid var(--line);
  padding: 1rem;
  align-self: start;
  position: sticky;
  top: 1rem;
  background: var(--bg);
}
.cf-side h2 {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.cf-side a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}
.cf-side__cta {
  margin-top: 1rem !important;
  text-align: center;
  background: var(--accent) !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0.7rem !important;
  font-weight: 700;
}

.cf-footer {
  background: #e7e1d7;
  padding: 2.25rem 0 1.25rem;
  border-top: 1px solid var(--line);
}
.cf-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cf-footer h3 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cf-footer a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  margin: 0.3rem 0;
  font-size: 0.92rem;
}
.cf-footer p { color: var(--muted); }
.cf-footer__cta {
  display: inline-block !important;
  margin-top: 0.5rem !important;
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}
.cf-footer__copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #d5cec4;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .cf-top__row,
  .cf-card-grid,
  .cf-trust__grid,
  .cf-article__layout,
  .cf-footer__grid {
    grid-template-columns: 1fr;
  }
  .cf-search { max-width: none; }
  .cf-side { position: static; }
}
