/*
Theme Name: Claudette Roast Ledger
Author: Alder & Finch Studio
Description: A classic PHP WordPress theme with a warm coffee editorial layout, dynamic category navigation, Customizer controls, and PBN footprint reduction.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: rcc-theme
*/

:root {
  --rcc-background: #fcf7ee;
  --rcc-surface: #f9eedc;
  --rcc-primary: #7d2c0f;
  --rcc-secondary: #af4f28;
  --rcc-accent: #ff8342;
  --rcc-line: #eadcca;
  --rcc-alert: #7d2c0f;
  --rcc-alert-text: #ffefd5;
  --rcc-button-text: #ffffff;
  --rcc-footer: #7d2c0f;
  --rcc-heading-font: "Boldonse", "Arial Narrow", Impact, sans-serif;
  --rcc-body-font: "Manrope", Arial, sans-serif;
  --rcc-accent-font: "Bayon", "Arial Narrow", Impact, sans-serif;
  --rcc-hero-title-size: 56px;
  --rcc-section-title-size: 48px;
  --rcc-body-size: 16px;
  --rcc-thumbnail-height: 360px;
  --rcc-content-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--rcc-background);
  color: var(--rcc-primary);
  font-family: var(--rcc-body-font);
  font-size: var(--rcc-body-size);
  line-height: 1.55;
}

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

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

a:hover,
a:focus {
  color: var(--rcc-accent);
}

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

.rcc-site {
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    linear-gradient(to right, rgba(234, 220, 202, 0.84) 1px, transparent 1px);
  background-size: 25% 100%;
}

.rcc-shell {
  width: min(calc(100% - 32px), var(--rcc-content-width));
  margin-inline: auto;
}

.rcc-announcement {
  position: relative;
  background: var(--rcc-alert);
  color: var(--rcc-alert-text);
  border-bottom: 1px solid rgba(255, 239, 213, 0.18);
}

.rcc-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
}

.rcc-announcement-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.rcc-announcement-text {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
}

.rcc-announcement-link {
  color: var(--rcc-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rcc-announcement-close {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--rcc-alert-text);
  background: transparent;
  cursor: pointer;
}

.rcc-announcement-close:hover,
.rcc-announcement-close:focus {
  background: rgba(255, 239, 213, 0.12);
}

.rcc-site-header {
  position: relative;
  background: rgba(252, 247, 238, 0.96);
  border-bottom: 1px solid rgba(234, 220, 202, 0.94);
  backdrop-filter: blur(12px);
}

.rcc-header-grid {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.rcc-desktop-menu {
  justify-self: start;
}

.rcc-menu-list,
.rcc-mobile-menu-list,
.rcc-footer-menu-list,
.rcc-category-list {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rcc-menu-list a,
.rcc-mobile-menu-list a,
.rcc-footer-menu-list a {
  color: var(--rcc-secondary);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.rcc-brand {
  justify-self: center;
}

.rcc-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #684237;
}

.rcc-logo-mark {
  width: 42px;
  height: 42px;
  position: relative;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 42%, #f6c064 0 18%, transparent 19%),
    linear-gradient(135deg, var(--rcc-accent) 0 48%, #8f3217 49% 100%);
}

.rcc-logo-mark::before,
.rcc-logo-mark::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 15px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 80% 20% 80% 20%;
  transform: rotate(28deg);
}

.rcc-logo-mark::before {
  left: 8px;
}

.rcc-logo-mark::after {
  right: 8px;
  transform: rotate(-28deg) scaleX(-1);
}

.rcc-logo-text {
  font-family: var(--rcc-accent-font);
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rcc-logo-image img {
  max-height: 52px;
  width: auto;
}

.rcc-header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rcc-button,
.rcc-order-button,
.rcc-mobile-order,
.rcc-card-link,
.rcc-read-more,
.rcc-about-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid rgba(125, 44, 15, 0.08);
  border-radius: 999px;
  background: var(--rcc-accent);
  color: var(--rcc-button-text);
  box-shadow: 0 5px 0 rgba(125, 44, 15, 0.12);
  font-family: var(--rcc-accent-font);
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.rcc-button:hover,
.rcc-button:focus,
.rcc-order-button:hover,
.rcc-order-button:focus,
.rcc-mobile-order:hover,
.rcc-mobile-order:focus,
.rcc-card-link:hover,
.rcc-card-link:focus,
.rcc-read-more:hover,
.rcc-read-more:focus,
.rcc-about-link:hover,
.rcc-about-link:focus {
  color: var(--rcc-button-text);
  filter: brightness(0.96);
  transform: translateY(1px);
}

.rcc-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.rcc-menu-toggle-bars,
.rcc-menu-toggle-bars::before,
.rcc-menu-toggle-bars::after {
  display: block;
  width: 34px;
  height: 4px;
  margin-inline: auto;
  border-radius: 999px;
  background: var(--rcc-accent);
}

.rcc-menu-toggle-bars {
  position: relative;
}

.rcc-menu-toggle-bars::before,
.rcc-menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.rcc-menu-toggle-bars::before {
  top: -10px;
}

.rcc-menu-toggle-bars::after {
  top: 10px;
}

.rcc-mobile-panel {
  border-top: 1px solid var(--rcc-line);
  background: var(--rcc-background);
}

.rcc-mobile-panel-inner {
  padding: 22px 0 26px;
}

.rcc-mobile-menu-list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.rcc-mobile-menu-list a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--rcc-line);
  font-size: 18px;
}

.rcc-mobile-order {
  width: 100%;
  margin-top: 18px;
}

.rcc-main {
  position: relative;
}

.rcc-hero {
  padding: clamp(48px, 7vw, 86px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}

.rcc-hero-copy {
  max-width: 980px;
  margin-inline: auto;
}

.rcc-kicker,
.rcc-section-label,
.rcc-card-meta,
.rcc-single-meta,
.rcc-empty-note {
  margin: 0 0 18px;
  color: var(--rcc-accent);
  font-family: var(--rcc-accent-font);
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.rcc-hero-title,
.rcc-intro-title,
.rcc-section-title,
.rcc-archive-title,
.rcc-single-title,
.rcc-not-found-title {
  margin: 0;
  color: var(--rcc-primary);
  font-family: var(--rcc-heading-font);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rcc-hero-title {
  font-size: clamp(44px, 9vw, var(--rcc-hero-title-size));
  line-height: 1.36;
}

.rcc-hero-text {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--rcc-secondary);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
}

.rcc-hero-media {
  display: block;
  width: min(100%, 980px);
  margin: clamp(28px, 5vw, 54px) auto 0;
  overflow: hidden;
  border: 1px solid var(--rcc-line);
  border-radius: 0;
  background: var(--rcc-surface);
}

.rcc-hero-image {
  width: 100%;
  height: clamp(260px, 46vw, 540px);
  object-fit: cover;
}

.rcc-hero-media-empty {
  min-height: 340px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 131, 66, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 239, 213, 0.7), rgba(249, 238, 220, 0.96));
}

.rcc-intro {
  padding: clamp(70px, 10vw, 118px) 0;
  text-align: center;
  border-top: 1px solid var(--rcc-line);
}

.rcc-intro-title {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(30px, 6vw, var(--rcc-section-title-size));
  line-height: 1.18;
}

.rcc-intro-copy {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--rcc-secondary);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
}

.rcc-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.rcc-section-title,
.rcc-archive-title {
  font-size: clamp(32px, 5vw, var(--rcc-section-title-size));
  line-height: 1.12;
}

.rcc-section-summary {
  margin: 0;
  color: var(--rcc-secondary);
  font-weight: 700;
}

.rcc-posts {
  padding: clamp(56px, 8vw, 92px) 0;
  border-top: 1px solid var(--rcc-line);
}

.rcc-category-strip {
  margin-bottom: 28px;
  overflow-x: auto;
}

.rcc-category-list {
  gap: 10px;
}

.rcc-category-list a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 18px;
  border: 1px solid var(--rcc-line);
  border-radius: 999px;
  background: var(--rcc-surface);
  color: var(--rcc-secondary);
  font-weight: 800;
}

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

.rcc-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--rcc-surface);
  border: 1px solid var(--rcc-line);
  color: var(--rcc-primary);
}

.rcc-card-media {
  display: block;
  overflow: hidden;
  background: rgba(125, 44, 15, 0.08);
}

.rcc-card-image {
  width: 100%;
  height: var(--rcc-thumbnail-height);
  object-fit: cover;
  transition: transform 220ms ease;
}

.rcc-card:hover .rcc-card-image,
.rcc-card:focus-within .rcc-card-image {
  transform: scale(1.025);
}

.rcc-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 30px);
}

.rcc-card-meta,
.rcc-single-meta {
  color: var(--rcc-secondary);
  font-size: 18px;
}

.rcc-card-title {
  margin: 0;
  color: var(--rcc-primary);
  font-family: var(--rcc-heading-font);
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rcc-card-excerpt {
  margin: 18px 0 24px;
  color: var(--rcc-secondary);
  font-weight: 600;
}

.rcc-card-link {
  align-self: flex-start;
  min-height: 42px;
  margin-top: auto;
  padding-inline: 18px;
  font-size: 19px;
}

.rcc-card-placeholder {
  min-height: var(--rcc-thumbnail-height);
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 131, 66, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(125, 44, 15, 0.08), rgba(255, 239, 213, 0.76));
}

.rcc-about {
  padding: clamp(62px, 9vw, 108px) 0;
  border-top: 1px solid var(--rcc-line);
}

.rcc-about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.rcc-about-title {
  margin: 0;
  color: var(--rcc-primary);
  font-family: var(--rcc-heading-font);
  font-size: clamp(32px, 5.5vw, var(--rcc-section-title-size));
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rcc-about-copy {
  color: var(--rcc-secondary);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 600;
}

.rcc-about-copy p {
  margin: 0 0 18px;
}

.rcc-about-link {
  margin-top: 12px;
}

.rcc-archive {
  padding: clamp(54px, 8vw, 92px) 0;
}

.rcc-pagination {
  margin-top: 36px;
  color: var(--rcc-secondary);
  font-weight: 800;
}

.rcc-pagination a,
.rcc-pagination span {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0 4px 8px 0;
  border: 1px solid var(--rcc-line);
  border-radius: 999px;
  background: var(--rcc-surface);
}

.rcc-pagination .current {
  background: var(--rcc-primary);
  color: var(--rcc-alert-text);
}

.rcc-single {
  padding: clamp(54px, 8vw, 98px) 0;
}

.rcc-single-article {
  width: min(100%, 860px);
  margin-inline: auto;
}

.rcc-single-title {
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.04;
}

.rcc-entry-content {
  margin-top: 34px;
  color: var(--rcc-primary);
  font-size: clamp(17px, 2vw, 20px);
}

.rcc-entry-content p,
.rcc-entry-content ul,
.rcc-entry-content ol,
.rcc-entry-content blockquote {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.rcc-entry-content a {
  color: var(--rcc-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rcc-entry-content h2,
.rcc-entry-content h3,
.rcc-entry-content h4 {
  margin: 1.6em 0 0.55em;
  color: var(--rcc-primary);
  font-family: var(--rcc-heading-font);
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
}

.rcc-post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.rcc-post-nav a {
  display: block;
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--rcc-line);
  background: var(--rcc-surface);
  color: var(--rcc-secondary);
  font-weight: 800;
}

.rcc-not-found {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(60px, 10vw, 120px) 0;
  text-align: center;
}

.rcc-not-found-title {
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.08;
}

.rcc-site-footer {
  background: var(--rcc-footer);
  color: var(--rcc-alert-text);
}

.rcc-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  padding: clamp(42px, 8vw, 76px) 0;
}

.rcc-footer-brand {
  color: var(--rcc-alert-text);
}

.rcc-footer-text {
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(255, 239, 213, 0.78);
  font-weight: 600;
}

.rcc-footer-menu-list {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.rcc-footer-menu-list a {
  color: var(--rcc-alert-text);
}

.rcc-footer-widgets {
  margin-top: 28px;
  color: rgba(255, 239, 213, 0.84);
}

.rcc-copyright {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 239, 213, 0.18);
  color: rgba(255, 239, 213, 0.72);
  font-size: 14px;
}

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

@media (max-width: 900px) {
  .rcc-site {
    background-size: 50% 100%;
  }

  .rcc-announcement-inner {
    min-height: 92px;
    grid-template-columns: 1fr auto;
  }

  .rcc-announcement-text {
    text-align: left;
    font-size: 14px;
  }

  .rcc-header-grid {
    min-height: 84px;
    grid-template-columns: 1fr auto;
  }

  .rcc-desktop-menu,
  .rcc-order-button {
    display: none;
  }

  .rcc-brand {
    justify-self: start;
  }

  .rcc-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .rcc-section-head,
  .rcc-about-panel,
  .rcc-footer-inner {
    grid-template-columns: 1fr;
  }

  .rcc-footer-menu-list {
    justify-content: flex-start;
  }
}

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

  .rcc-logo-text {
    font-size: 34px;
  }

  .rcc-logo-mark {
    width: 36px;
    height: 36px;
  }

  .rcc-hero {
    padding-top: 40px;
  }

  .rcc-hero-title {
    font-size: clamp(34px, 13vw, 52px);
    line-height: 1.24;
  }

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

  .rcc-card-image,
  .rcc-card-placeholder {
    height: min(var(--rcc-thumbnail-height), 320px);
  }

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