/* Crumbcast Common Styles — shared components used across multiple pages */

/* ---- WordPress admin bar adjustment ---- */
:root {
  --wp-admin-bar-h: 0px;
}
body.admin-bar {
  --wp-admin-bar-h: 32px;
}
html.wp-toolbar {
  margin-top: 0 !important;
  padding-top: var(--wp-admin--admin-bar--height, 32px) !important;
  background: #1a1a18;
}
.cc-nav.sticky-top {
  position: sticky;
}
@media screen and (max-width: 782px) {
  body.admin-bar {
    --wp-admin-bar-h: 46px;
  }
}

/* ---- Section Wrappers ---- */

.home-section {
  padding: 72px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.home-section--dark {
  background: var(--ink);
  max-width: none;
  width: 100%;
  color: var(--chalk);
}
.home-section--stone {
  background: var(--stone);
  max-width: none;
  width: 100%;
  padding-left: max(48px, calc((100% - 1200px) / 2 + 48px));
  padding-right: max(48px, calc((100% - 1200px) / 2 + 48px));
}
.home-section--stone + .home-section--stone {
  padding-top: 0;
}
.home-section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.home-section__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 8px;
}
.home-section--dark .home-section__label { color: var(--sage-light); }
.home-section__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0;
}
.home-section--dark .home-section__title,
.home-section--dark h2 { color: var(--chalk); }
.home-section__link {
  color: var(--rust);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}
.home-section__link:hover { color: var(--rust-light); }
.home-section--dark .home-section__link { color: var(--rust-light); }

/* ---- Sponsors Bar ---- */

.sponsors-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 24px 48px;
}
.sponsors-bar__logo {
  height: 28px;
  display: flex;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.3s;
  cursor: pointer;
  filter: grayscale(1);
  text-decoration: none;
}
.sponsors-bar__logo--bright { opacity: 0.4; filter: grayscale(1) brightness(0.5); }
.sponsors-bar__logo:hover { opacity: 0.7; filter: grayscale(0); }
.sponsors-bar__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* ---- Follow Hub ---- */

.follow-hub {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.home-section--dark .follow-hub__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--chalk);
  margin-bottom: 12px;
}
.follow-hub__subtitle {
  font-size: 14px;
  color: var(--dust);
  opacity: 0.7;
  margin-bottom: 32px;
  line-height: 1.6;
}
.follow-hub__links {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.follow-hub__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  white-space: nowrap;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}
.follow-hub__link:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: var(--chalk);
}
.follow-hub__link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---- 404 ---- */

.cc-404 {
  text-align: center;
  padding: 100px 24px 120px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.cc-404__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 16px;
}
.cc-404__title {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin: 0 0 20px;
}
.cc-404__accent {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 24px;
}
.cc-404__accent span {
  width: 28px;
  height: 3px;
  border-radius: 2px;
}
.cc-404__accent span:nth-child(1) { background: var(--sage); }
.cc-404__accent span:nth-child(2) { background: var(--rust); }
.cc-404__accent span:nth-child(3) { background: var(--amber); }
.cc-404__accent span:nth-child(4) { background: var(--sky); }
.cc-404__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--mist);
  margin-bottom: 36px;
}
.cc-404__links {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.cc-404__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  background: var(--ink);
  color: var(--chalk);
}
.cc-404__link:hover {
  background: #2a2a26;
  color: var(--chalk);
}
.cc-404__link:not(:first-child) {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--dust);
}
.cc-404__link:not(:first-child):hover {
  background: var(--stone);
  border-color: var(--stone);
  color: var(--ink);
}

/* ---- Legal Pages (Privacy, Cookies, etc.) ---- */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  width: 100%;
}
.legal-page__header {
  margin-bottom: 48px;
  border-bottom: 1px solid var(--stone, #e8e2d8);
  padding-bottom: 32px;
}
.legal-page__eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 12px;
}
.legal-page__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 12px;
}
.legal-page__updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--dust, #d4cec4);
}
.legal-page__body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}
.legal-page__body h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 12px;
}
.legal-page__body h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 8px;
}
.legal-page__body p {
  margin: 0 0 16px;
}
.legal-page__body strong {
  font-weight: 600;
  color: var(--ink);
}
.legal-page__body a {
  color: var(--rust);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-page__body a:hover {
  color: var(--rust-light);
}
.legal-page__body ul,
.legal-page__body ol {
  margin: 0 0 16px;
  padding-left: 20px;
}
.legal-page__body li {
  margin-bottom: 6px;
}
.legal-page__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 13px;
}
.legal-page__body th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
  color: var(--mist);
  padding: 10px 12px;
  border-bottom: 2px solid var(--stone, #e8e2d8);
}
.legal-page__body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--stone, #e8e2d8);
  vertical-align: top;
}
.legal-page__body tr:last-child td {
  border-bottom: none;
}
.legal-page__body blockquote {
  border-left: 3px solid var(--sage);
  margin: 24px 0;
  padding: 12px 20px;
  color: var(--mist);
  font-style: italic;
}

/* ---- Responsive ---- */

@media (max-width: 992px) {
  .home-section {
    padding: 40px 20px 47px;
  }
  .home-section__title {
    font-size: 28px;
  }

  .sponsors-bar {
    gap: 28px;
    padding: 16px 20px;
  }
  .sponsors-bar__logo {
    height: 20px;
  }

  .follow-hub__title { font-size: 24px; }
  .follow-hub__links {
    flex-direction: column;
    gap: 12px;
  }
  .follow-hub__link {
    justify-content: center;
    padding: 14px 20px;
  }

  .cc-404 {
    padding: 60px 20px 80px;
  }
  .cc-404__title {
    font-size: 64px;
  }

  .legal-page {
    padding: 40px 20px 60px;
  }
  .legal-page__title {
    font-size: 28px;
  }
  .legal-page__header {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }
}
