:root {
  --charcoal: #171717;
  --warm-white: #FAF8F2;
  --editorial-blue: #2563EB;
  --coral-red: #F05A47;
  --soft-stone: #E7E5E1;
  --muted-slate: #68707A;
  --deep-black: #050505;
  
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  
  --spacing-sm: 0.5rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 6rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--warm-white);
  color: var(--deep-black);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--deep-black);
}

a {
  color: var(--editorial-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--coral-red);
}

ul {
  list-style: none;
}

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

/* Accessibility Focus States */
button:focus-visible, a:focus-visible, input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--editorial-blue);
  outline-offset: 2px;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.divider {
  border: 0;
  height: 2px;
  background-color: var(--charcoal);
  margin: var(--spacing-lg) 0;
}

.thin-divider {
  border: 0;
  height: 1px;
  background-color: var(--soft-stone);
  margin: var(--spacing-md) 0;
}

/* Header & Nav */
.site-header {
  border-bottom: 2px solid var(--charcoal);
  padding: 1.5rem 0;
  background-color: var(--warm-white);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-transform: uppercase;
}

.brand-logo:hover {
  color: var(--editorial-blue);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal);
}

.nav-link:hover {
  color: var(--editorial-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

/* Hero & Masthead */
.masthead {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  text-align: center;
}

.masthead h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.masthead-subtitle {
  font-size: 1.25rem;
  color: var(--muted-slate);
  max-width: 800px;
  margin: 0 auto;
}

/* Grids */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin-bottom: var(--spacing-xl);
}

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* Section Headers */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 4px solid var(--charcoal);
  padding-bottom: 0.5rem;
}

.section-number {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--coral-red);
}

.section-title {
  font-size: 2.5rem;
  text-transform: uppercase;
}

/* Cards */
.book-card {
  background-color: #fff;
  border: 1px solid var(--soft-stone);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.05);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--soft-stone);
  padding-bottom: 0.5rem;
}

.category-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--editorial-blue);
}

.sport-theme {
  font-size: 0.75rem;
  color: var(--muted-slate);
  text-transform: uppercase;
}

.book-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.book-author {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted-slate);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.book-desc {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--charcoal);
  flex-grow: 1;
}

.book-details {
  background-color: var(--warm-white);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--coral-red);
}

.detail-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  color: var(--charcoal);
}

.detail-text {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.detail-text:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background-color: var(--charcoal);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
}

.btn:hover {
  background-color: var(--editorial-blue);
  color: #fff;
}

.btn-large {
  font-size: 1rem;
  padding: 1rem 2rem;
}

.btn-coral {
  background-color: var(--coral-red);
}

.btn-coral:hover {
  background-color: var(--charcoal);
}

.btn-text {
  background: transparent;
  color: var(--charcoal);
  text-decoration: underline;
}

.btn-text:hover {
  color: var(--coral-red);
  background: transparent;
}

/* Reading Notes specific */
.reading-note-section {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--soft-stone);
}

.reading-note-header {
  margin-bottom: 2rem;
}

.note-content {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--charcoal);
  max-width: 800px;
}

/* Content Pages */
.page-content {
  max-width: 800px;
  margin: var(--spacing-lg) auto;
  font-size: 1.1rem;
}

.page-content h2 {
  margin: 2rem 0 1rem;
  font-size: 2rem;
}

.page-content p {
  margin-bottom: 1.5rem;
}

/* Legal Pages Extended Styles */
.legal-content {
  max-width: 900px;
  margin: var(--spacing-lg) auto;
  font-size: 1.05rem;
  color: var(--charcoal);
}

.legal-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--soft-stone);
  padding-bottom: 0.5rem;
}

.legal-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-section ul {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.legal-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.info-panel {
  background-color: #fff;
  border-left: 4px solid var(--coral-red);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.info-panel h3 {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background-color: var(--deep-black);
  color: var(--soft-stone);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--muted-slate);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--warm-white);
}

.footer-legal {
  border-top: 1px solid #333;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted-slate);
  text-align: center;
}

.footer-legal p {
  margin-bottom: 0.5rem;
}

/* V2 COOKIE CONSENT */
.cookie-banner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999998;
}
.cookie-banner-overlay.cb-hidden {
  display: none !important;
}

.cookie-banner-v2 {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 2px solid var(--charcoal);
  padding: 1.5rem;
  z-index: 9999999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}
.cookie-banner-v2.cb-hidden {
  display: none !important;
}

.cb-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cb-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}
.cb-text p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--muted-slate);
}
.cb-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

/* Modal styles */
.cookie-modal-v2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
}
.cookie-modal-v2.cb-show {
  display: flex !important;
}
.cb-modal-content {
  background: #fff;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  border-top: 4px solid var(--coral-red);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.cb-modal-content h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--charcoal);
}
.cb-modal-content > p {
  color: var(--muted-slate);
  margin-bottom: 1.5rem;
}
.cb-option {
  border: 1px solid var(--soft-stone);
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
}
.cb-option label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
}
.cb-option input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--editorial-blue);
  flex-shrink: 0;
}
.cb-option input[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}
.cb-option strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}
.cb-option span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-slate);
  line-height: 1.4;
}
.cb-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .col-4 { grid-column: span 6; }
  .col-8 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .col-4, .col-6 { grid-column: span 12; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--warm-white);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 2px solid var(--charcoal);
    gap: 1.5rem;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .cb-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .masthead h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .cb-actions { flex-direction: column; width: 100%; }
  .cb-actions .btn { width: 100%; }
  .cb-modal-actions { flex-direction: column; width: 100%; }
  .cb-modal-actions .btn { width: 100%; }
}