:root {
  --bg-page: #faf7f0;
  --bg-surface: #ffffff;
  --bg-featured: #fdfaf2;
  --bg-band: #f3ede0;
  --navy: #1b365d;
  --navy-hover: #132744;
  --gold: #b8860b;
  --gold-light: #f6ead0;
  --gold-border: #d4a843;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --border-subtle: #e2dcd0;
  --shadow-sm: 0 2px 8px rgba(27, 54, 93, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 54, 93, 0.10);
  --radius: 12px;
  --max-w: 1060px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, .brand-title {
  font-family: Georgia, "Palatino Linotype", Palatino, "Book Antiqua", serif;
  color: var(--navy);
  line-height: 1.25;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header & Navigation */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 12px;
  border-radius: 7px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--navy);
  background: var(--bg-band);
}

.nav-links a.nav-cta {
  background: var(--gold);
  color: #ffffff;
  font-weight: 600;
  padding: 7px 14px;
  margin-left: 4px;
}

.nav-links a.nav-cta:hover {
  background: #9a6f07;
  color: #ffffff;
}

/* Hero Banner */
.hero {
  background: linear-gradient(180deg, #1b365d 0%, #244675 100%);
  color: #ffffff;
  padding: 52px 24px 48px;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f6ead0;
  margin-bottom: 10px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin: 0 0 12px 0;
}

.hero p.tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: #e2e8f0;
  margin: 0 auto 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: #d49b16;
  color: #111827;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-gold:hover {
  background: #eab32e;
  color: #111827;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-primary {
  background: var(--navy);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--navy-hover);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--bg-band);
  color: var(--navy-hover);
}

/* Main Layout Sections */
main {
  flex: 1;
}

.section {
  padding: 48px 24px;
}

.section-band {
  background: var(--bg-band);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 28px;
}

.section-header h2 {
  font-size: 1.75rem;
  margin: 0 0 6px 0;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* Two-Column Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.grid-play {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 820px) {
  .grid-play {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-featured {
  background: var(--bg-featured);
  border: 2px solid var(--gold-border);
  box-shadow: var(--shadow-md);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.badge-gold {
  background: var(--gold);
  color: #ffffff;
}

.badge-slate {
  background: #e2e8f0;
  color: #334155;
}

.card h3 {
  font-size: 1.38rem;
  margin: 0 0 10px 0;
}

.card p {
  color: var(--text-muted);
  margin: 0 0 16px 0;
  font-size: 0.98rem;
}

.board-preview-link {
  display: block;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: opacity 0.15s ease;
}

.board-preview-link:hover {
  opacity: 0.93;
}

.board-preview-link svg {
  display: block;
  width: 100%;
  height: auto;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
}

.feature-pills li {
  font-size: 0.82rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* Video & Learn Zone */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.resource-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.resource-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.resource-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--gold-light);
  color: #7c5806;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.resource-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.88rem;
}

/* Piece Mini Guide */
.piece-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.piece-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.piece-card svg {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.piece-card h3 {
  font-size: 1.1rem;
  margin: 0 0 4px 0;
}

.piece-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Subpages Prose */
.page-banner {
  background: var(--navy);
  color: #ffffff;
  padding: 36px 24px;
  border-bottom: 3px solid var(--gold);
}

.page-banner h1 {
  color: #ffffff;
  margin: 0 0 6px 0;
  font-size: 2.1rem;
}

.page-banner p {
  margin: 0;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.prose-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.prose-card h2 {
  margin-top: 0;
  font-size: 1.45rem;
}

.prose-card p {
  color: var(--text-main);
  font-size: 1.02rem;
}

/* Footer */
.site-footer {
  background: #162947;
  color: #cbd5e1;
  padding: 28px 24px;
  margin-top: auto;
  font-size: 0.92rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-footer a {
  color: #f6ead0;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
