/*
Theme Name: BCCC
Author: Thirst Creative
Description: Custom WordPress theme for BCCC.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.3
Text Domain: bccc
*/

:root {
  --bccc-content-width: 48rem;
  --bccc-wide-width: 75rem;
  --bccc-space: clamp(1rem, 2.5vw, 2rem);
  --bccc-text: #17211f;
  --bccc-background: #ffffff;
  --bccc-muted: #5b6663;
  --bccc-accent: #176b5b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--bccc-text);
  background: var(--bccc-background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--bccc-accent);
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 0.15em;
}

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

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

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.5rem;
  left: 0.5rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--bccc-background);
  background: var(--bccc-text);
}

.site-header,
.site-main,
.site-footer {
  width: min(100% - (2 * var(--bccc-space)), var(--bccc-wide-width));
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  gap: var(--bccc-space);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--bccc-space);
}

.site-header {
  border-bottom: 1px solid #dce2e0;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-main {
  min-height: 65vh;
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.content-area {
  max-width: var(--bccc-content-width);
  margin-inline: auto;
}

.page-title,
.entry-title {
  line-height: 1.15;
  text-wrap: balance;
}

.entry {
  padding-block: var(--bccc-space);
}

.entry + .entry {
  border-top: 1px solid #dce2e0;
}

.entry-meta {
  color: var(--bccc-muted);
}

.site-footer {
  color: var(--bccc-muted);
  border-top: 1px solid #dce2e0;
}

@media (max-width: 40rem) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
