
:root {
  --bg-cream: #F8F5EE;
  --bg-card: #EFEBE0;
  --bg-card-hover: #E7E1D4;
  --text-main: #22201D;
  --text-muted: #666158;
  --accent-wine: #7A2828;
  --accent-wine-hover: #611D1D;
  --accent-gold: #C28B38;
  --accent-glow: rgba(194, 139, 56, 0.22);
  --border-subtle: #E2DCD0;
  --nav-bg: rgba(248, 245, 238, 0.94);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 10px rgba(34, 32, 29, 0.05);
  --shadow-md: 0 12px 36px rgba(34, 32, 29, 0.08);
  --focus-ring: 3px solid #C28B38;
}

[data-theme="dark"] {
  --bg-cream: #141312;
  --bg-card: #1F1D1B;
  --bg-card-hover: #292724;
  --text-main: #F4EFE6;
  --text-muted: #A39E94;
  --accent-wine: #C24E4E;
  --accent-wine-hover: #DB6262;
  --accent-gold: #E0A652;
  --accent-glow: rgba(224, 166, 82, 0.2);
  --border-subtle: #312E29;
  --nav-bg: rgba(20, 19, 18, 0.94);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
}

/* Accessibility Modes */
[data-high-contrast="true"] {
  --bg-cream: #000000 !important;
  --bg-card: #121212 !important;
  --bg-card-hover: #222222 !important;
  --text-main: #FFFFFF !important;
  --text-muted: #E0E0E0 !important;
  --accent-wine: #FF6B6B !important;
  --accent-wine-hover: #FF8787 !important;
  --accent-gold: #FFD166 !important;
  --border-subtle: #FFFFFF !important;
  --nav-bg: #000000 !important;
}

[data-dyslexic="true"] {
  --font-sans: 'Comic Sans MS', 'Arial Rounded MT Bold', sans-serif !important;
  --font-serif: 'Georgia', serif !important;
  letter-spacing: 0.04em !important;
  word-spacing: 0.1em !important;
}

[data-font-size="large"] {
  font-size: 115% !important;
}

[data-font-size="xlarge"] {
  font-size: 130% !important;
}

[data-reduced-motion="true"] * {
  animation: none !important;
  transition: none !important;
}

[data-underlined-links="true"] a {
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

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

*:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

/* Skip Link for Screen Readers & Keyboard Nav */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-wine);
  color: #FFF;
  padding: 10px 18px;
  z-index: 9999;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 14px;
}

/* Reading Ruler Guide */
#readingRuler {
  display: none;
  position: fixed;
  left: 0;
  width: 100vw;
  height: 38px;
  background: rgba(194, 139, 56, 0.18);
  border-top: 2px solid var(--accent-gold);
  border-bottom: 2px solid var(--accent-gold);
  pointer-events: none;
  z-index: 9998;
  transform: translateY(-50%);
}

body {
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Pill Navigation */
header {
  position: sticky;
  top: 12px;
  z-index: 200;
  margin: 0 12px 14px;
}

.nav-pill-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-wine);
}

.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  list-style: none;
  z-index: 210;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item a {
  display: block;
  padding: 9px 14px;
  font-size: 0.9rem;
  border-radius: 8px;
  color: var(--text-main);
  white-space: nowrap;
}
.dropdown-item a:hover {
  background: var(--bg-card);
  color: var(--accent-wine);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cmd-k-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.cmd-k-trigger:hover {
  border-color: var(--accent-wine);
  color: var(--accent-wine);
  transform: translateY(-1px);
}

.paw-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.paw-trigger:hover {
  border-color: var(--accent-wine);
  transform: scale(1.08);
}

.a11y-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.a11y-trigger:hover {
  border-color: var(--accent-wine);
  color: var(--accent-wine);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-card);
  border-color: var(--accent-wine);
}

.hamburger-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-main);
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 290px;
  background: var(--bg-cream);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 35px rgba(0,0,0,0.18);
  z-index: 300;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open { transform: translateX(0); }

.drawer-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 290;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.open { opacity: 1; visibility: visible; }

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.drawer-links a {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-main);
  display: block;
}

.drawer-links a:hover {
  color: var(--accent-wine);
  padding-left: 6px;
}

/* Header Hint Banner */
.header-hint-banner {
  max-width: 1060px;
  margin: 0 auto 18px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px dashed var(--accent-gold);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.header-hint-banner strong {
  color: var(--accent-wine);
}

/* Hero Section Partitioned to Right with Profile Portrait */
.hero-cole-partition {
  margin: 8px auto 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: stretch;
  position: relative;
}

.hero-left-col {
  padding: 54px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-headline-wrapper {
  margin-bottom: 20px;
}

/* Headline, three lines, inside one block */
.hero-headline-block {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  line-height: 1.12;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* Paragraph moved up directly under headline */
.hero-subparagraph {
  font-size: 1.18rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: 18px;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-micro-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary { background: var(--accent-wine); color: #FFF; }
.btn-primary:hover { background: var(--accent-wine-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(122, 40, 40, 0.3); }

.btn-secondary { background: var(--bg-cream); color: var(--text-main); border: 1px solid var(--border-subtle); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-muted); transform: translateY(-2px); }

/* Payment Buttons */
.btn-paypal {
  background: #003087 !important;
  color: #FFC439 !important;
  font-weight: 700 !important;
  border: 1px solid #002569 !important;
}
.btn-paypal:hover {
  background: #002569 !important;
  color: #FFD266 !important;
  transform: translateY(-2px);
}

.btn-applepay {
  background: #000000 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  border: 1px solid #333333 !important;
}
.btn-applepay:hover {
  background: #1C1C1E !important;
  transform: translateY(-2px);
}

.btn-venmo {
  background: #5B6675 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  border: 1px solid #485260 !important;
}
.btn-venmo:hover {
  background: #4A5462 !important;
  transform: translateY(-2px);
}

.btn-substack {
  background: #FF6719 !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}
.btn-substack:hover {
  background: #E55409 !important;
  transform: translateY(-2px);
}

/* Right Partition Portrait */
.hero-right-col {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(122, 40, 40, 0.08), rgba(194, 139, 56, 0.12));
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-portrait-blend {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%),
              linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%),
                      linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

[data-theme="dark"] .hero-portrait-blend {
  filter: brightness(0.92) contrast(1.05);
}

/* Sections */
.section-heading-center {
  text-align: center;
  margin-bottom: 28px;
}

.section-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-wine);
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
}

/* The Work Cards */
.work-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 36px 0 50px;
}

.art-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-wine);
}

.art-card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--accent-glow);
  filter: blur(40px);
  pointer-events: none;
}

.inline-link {
  color: var(--accent-wine);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inline-link:hover {
  color: var(--accent-wine-hover);
}

/* Three Doors (Start Here) Section */
.three-doors-section {
  background: var(--bg-card);
  border-radius: 26px;
  border: 1px solid var(--border-subtle);
  padding: 48px 36px;
  margin: 50px auto;
}

.three-doors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.door-card {
  background: var(--bg-cream);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.door-card:hover {
  border-color: var(--accent-wine);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.door-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.door-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(18, 16, 15, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  color: #FFF; padding: 24px;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-close-x {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: #9E988E; font-size: 2.5rem;
  cursor: pointer; line-height: 1;
}
.modal-close-x:hover { color: #FFF; }

.game-modal-card {
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  padding: 36px 28px;
  max-width: 660px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  position: relative;
}

/* Accessibility Control Drawer */
.a11y-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  z-index: 999;
  max-width: 340px;
  width: 90%;
  display: none;
  color: var(--text-main);
}

.a11y-panel.open {
  display: block;
}

.a11y-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

.a11y-btn-group {
  display: flex;
  gap: 6px;
}

.a11y-toggle-btn {
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-cream);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.a11y-toggle-btn.active {
  background: var(--accent-wine);
  color: #FFF;
  border-color: var(--accent-wine);
}

/* Cole Adrian Massive Footer Style */
footer.cole-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 40px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

.massive-name-display {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8.8vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-main);
  text-align: center;
  padding: 24px 0 10px;
  border-top: 1px solid var(--border-subtle);
  white-space: nowrap;
  user-select: none;
}

.footer-socials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-socials a {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.footer-socials a:hover {
  color: var(--accent-wine);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger-btn { display: flex; }
  .hero-cole-partition { grid-template-columns: 1fr; }
  .hero-left-col { padding: 40px 24px 30px; }
  .hero-right-col { min-height: 380px; }
  .work-duo-grid { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 30px; }
}
