
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #17191c;
  --muted: #646b73;
  --line: #ddd8cd;
  --accent: #006b6b;
  --accent-2: #9a3d20;
  --soft: #e7efed;
  --shadow: 0 16px 45px rgba(28, 31, 34, .10);
  --max: 1180px;
  --nav-tint: #d9e1eb;
  --nav-tint-2: #bdcce0;
  --nav-border: #6b87a0;
  --nav-hover: #2d3556;
  --display-font: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img, iframe, object { max-width: 100%; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 245, 241, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 18px;
  align-items: baseline;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 36px) 12px;
}

.site-title {
  color: var(--ink);
  display: inline-block;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .98;
  text-decoration: none;
}

.masthead p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.4;
  margin: 0;
}
nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
nav a {
  color: var(--ink);
  padding: 8px 10px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
nav a:hover { border-color: var(--accent); }

.site-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px clamp(18px, 4vw, 36px) 12px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}

.site-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  background: linear-gradient(180deg, var(--nav-tint), var(--nav-tint-2));
  border: 1px solid var(--nav-border);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    0 2px 8px rgba(28, 31, 34, .08);
  color: #1e2f49;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.1;
  transition:
    background .16s ease,
    border-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--nav-hover);
  border-color: var(--nav-hover);
  box-shadow: 0 5px 14px rgba(45, 53, 86, .24);
  color: white;
  outline: 0;
}
main { min-height: 70vh; }
.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(38px, 7vw, 88px) clamp(18px, 4vw, 56px) 44px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  max-width: none;
  margin: 0 0 18px;
  font-size: clamp(28px, 7vw, 90px);
  line-height: .98;
  letter-spacing: 0;
  white-space: nowrap;
}
.hero p { max-width: 720px; color: #3e454c; font-size: 20px; }
.hero img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.home-hero {
  display: block;
  min-height: 0;
  padding: 0;
}
.hero-banner {
  display: grid;
  place-items: center;
  min-height: clamp(220px, 34vw, 430px);
  padding: clamp(34px, 7vw, 84px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(180deg, rgba(23, 25, 28, .46), rgba(23, 25, 28, .34)),
    url("../wp-content/uploads/2018/11/cbpprimergraphicrectangle-001.jpeg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero-banner-copy {
  max-width: 1200px;
}
.hero-banner-copy h1 {
  color: white;
  font-family: var(--display-font);
  white-space: normal;
  text-shadow: 0 3px 18px rgba(23, 25, 28, .62);
}
.hero-banner-copy p {
  margin: 0 auto;
  color: white;
  text-shadow: 0 2px 12px rgba(23, 25, 28, .72);
}
.home-site-nav {
  background: rgba(246, 245, 241, .98);
  border-bottom: 1px solid var(--line);
  border-top: 0;
}
.game-links {
  display: grid;
  width: min(420px, 100%);
  gap: 16px;
  margin: 0 auto;
}
.game-links a {
  display: inline-flex;
  width: 100%;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: white;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.game-links a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.section, .listing {
  padding: clamp(34px, 6vw, 70px) clamp(18px, 4vw, 56px);
}
.section-heading {
  margin-bottom: 22px;
  text-align: center;
}
.section-heading h1, .section-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.15;
}
.section-heading p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}
.home-course-status {
  padding-bottom: clamp(18px, 3vw, 34px);
}
.home-course-status .section-heading,
.home-start .section-heading {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.home-course-status .section-heading {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--ink);
  margin-bottom: 0;
  padding: 18px 0 20px;
  text-align: center;
}
.home-course-status .section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}
.home-start {
  padding-top: clamp(18px, 3vw, 34px);
}
.home-start .link-list {
  max-width: 980px;
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.card {
  min-height: 190px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(28, 31, 34, .05);
}
.card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.2; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card p { color: var(--muted); margin: 0; }
.archive-list {
  border-top: 1px solid var(--ink);
  display: grid;
}
.archive-item {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 138px minmax(0, 1fr);
  padding: 18px 0 17px;
}
.archive-item.has-thumbnail {
  grid-template-columns: 138px minmax(0, 1fr) 176px;
}
.archive-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.archive-item h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.18rem, 2.4vw, 1.72rem);
  line-height: 1.08;
}
.archive-item h2 a {
  color: var(--ink);
  text-decoration: none;
}
.archive-item p {
  color: var(--muted);
  margin: 7px 0 0;
  max-width: 740px;
}
.archive-thumbnail {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  display: block;
  overflow: hidden;
  width: 176px;
}
.archive-thumbnail img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position, 50% 50%);
  width: 100%;
}
.feature { background: linear-gradient(180deg, #ffffff, var(--soft)); }
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.updates-panel {
  background: #efede6;
  border-left: 4px solid var(--accent);
  padding: 20px;
}
.updates-panel .card { margin-bottom: 14px; min-height: 0; }
.link-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
  counter-reset: links;
}
.link-list li {
  counter-increment: links;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.link-list li::before {
  content: counter(links, decimal-leading-zero);
  color: var(--accent-2);
  font-weight: 800;
}
.link-list a { color: var(--ink); font-weight: 800; text-decoration: none; }
.link-list span { grid-column: 2; color: var(--muted); font-size: 15px; }
.post-list {
  display: grid;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.post-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.post-list a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.post-list span {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.lectures-page {
  width: min(1080px, calc(100% - 36px));
  text-align: center;
}
.lecture-index {
  display: grid;
  gap: 16px;
}
.lecture-index-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(28, 31, 34, .05);
}
.lecture-index-body h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.16;
}
.lecture-index-body h2 a {
  color: var(--ink);
  text-decoration: none;
}
.calendar-page .wp-content {
  display: grid;
  gap: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
}
.calendar-page .wp-content h2 {
  margin: 24px 0 0;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.16;
  text-align: center;
  text-transform: uppercase;
}
.calendar-page .wp-content h2:first-child { margin-top: 0; }
.calendar-page .wp-content h3 {
  margin: 4px 0 -8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
.calendar-page .wp-content ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(28, 31, 34, .05);
  list-style: none;
}
.calendar-page .wp-content li {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent-2);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.18;
}
.calendar-page .wp-content li:first-child {
  padding-top: 0;
  border-top: 0;
}
.calendar-page .wp-content li a {
  color: var(--ink);
  text-decoration: none;
}
.calendar-page .calendar-note {
  color: var(--ink);
  font-style: italic;
}
.calendar-page .wp-content hr {
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.content-page {
  width: calc(100% - clamp(24px, 8vw, 120px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 0;
}
.content-page > h1 {
  margin: 0 0 26px;
  font-family: var(--display-font);
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.12;
  text-align: center;
}
.page-kicker {
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  margin-bottom: 10px;
}
.wp-content {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.lecture-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.lecture-nav-top { margin-top: -4px; }
.lecture-nav-button {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.lecture-nav-button span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.lecture-nav-button strong {
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.lecture-nav-button.next { text-align: right; }
.lecture-nav-button:hover { background: var(--soft); }
.lecture-nav-button.disabled {
  border-color: var(--line);
  color: var(--muted);
}
.lecture-nav-button.disabled span { color: var(--muted); }
.wp-content h1, .wp-content h2, .wp-content h3 { line-height: 1.15; margin-top: 1.5em; }
.wp-content h1 { font-size: clamp(20px, 2.4vw, 32px); }
.wp-content > h1:first-child { text-align: center; }
.wp-content h1:first-child, .wp-content h2:first-child, .wp-content h3:first-child { margin-top: 0; }
.wp-content p { max-width: none; }
.wp-content li { max-width: none; }
.wp-content figure { margin: 26px 0; }
.wp-content img {
  height: auto;
  border: 1px solid var(--line);
}
.wp-content iframe, .wp-content object {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wp-content iframe[src*="youtube.com/embed"] {
  display: block;
  width: min(320px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
}
.wp-content object { min-height: 560px; }
.wp-content .wp-block-file {
  margin: 22px 0;
  padding: 14px;
  background: #f8f7f3;
  border: 1px solid var(--line);
}
.philosophy-quote {
  margin: 30px 0;
  padding: clamp(22px, 4vw, 36px);
  background: var(--soft);
  border-left: 6px solid var(--accent);
  text-align: center;
}
.philosophy-quote blockquote {
  margin: 0;
  color: var(--accent);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}
.wp-block-file__button, .wp-element-button {
  display: inline-flex;
  margin-left: 10px;
  padding: 6px 10px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}
.embedded-page {
  display: block;
  width: 100%;
  min-height: 860px;
  background: white;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 0 24px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.listing-posts .search-box {
  margin-left: auto;
  margin-right: auto;
}
.search-box span { color: var(--muted); font-weight: 800; }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  background: transparent;
}
.empty-note { color: var(--muted); font-style: italic; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 820px) {
  .site-header { position: static; }
  .masthead {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .site-nav {
    justify-content: flex-start;
  }
  nav { justify-content: flex-start; }
  .hero, .two-column { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero img { order: -1; max-height: 340px; }
  .lecture-nav { grid-template-columns: 1fr; }
  .lecture-nav-button.next { text-align: left; }
  .site-footer { flex-direction: column; }
}
