/* Better Vibe Coding theme styles */
:root {
  /* Better Vibe Coding design tokens (match the homepage) */
  --bg: #0C0B0F; --surface: #15141A; --surface-hover: #1E1D25;
  --border: rgba(255,255,255,0.06); --border-hover: rgba(255,255,255,0.12); --line: rgba(255,255,255,0.14);
  --text: #F0EDE6; --text-muted: #9B968C; --text-dim: #6B665E; --chapter-text: #D4D0C8;
  --muted: var(--text-muted); --dim: var(--text-dim);
  --accent: #E8FF59; --accent-dim: rgba(232,255,89,0.12); --accent-border: rgba(232,255,89,0.2);
  --lime: var(--accent); --yellow: var(--accent); --yellow-dim: var(--accent-dim); --yellow-border: var(--accent-border);
  --orange: #FF6100; --orange-dim: rgba(255,97,0,0.12); --orange-border: rgba(255,97,0,0.25);
  --warm: var(--orange); --warm-dim: var(--orange-dim);
  --success: #4ADE80; --info: #60A5FA;
  --font-display: 'Fraunces', Georgia, serif; --font-body: 'DM Sans', system-ui, sans-serif; --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: var(--font-display); --body: var(--font-body);
  --radius: 16px; --radius-sm: 10px; --radius-xs: 6px; --radius-pill: 100px; --btn-radius: 100px;
  --width-wide: 1120px; --width-content: 780px; --width-reading: 680px; --width-narrow: 520px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1); --ease-out: cubic-bezier(0, 0, 0.2, 1); --duration: 0.25s;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; font-size: 16px; line-height: 1.6; }
.container-wide { max-width: var(--width-wide); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.site-nav { padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); letter-spacing: -0.02em; text-decoration: none; flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { display: inline-block; padding: 8px 16px; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-sm); transition: color var(--duration) var(--ease), background var(--duration) var(--ease); }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent); background: var(--accent-dim); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.nav-mobile { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); text-decoration: none; padding: 12px 24px; border-radius: var(--radius-sm); transition: color var(--duration) var(--ease); }
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-close { position: absolute; top: 24px; right: 32px; background: none; border: none; color: var(--text); font-size: 1.8rem; cursor: pointer; padding: 8px; line-height: 1; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.03em; }
h1 em { font-style: italic; color: var(--accent); font-weight: 700; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
h2 em { font-style: italic; color: var(--accent); font-weight: 700; }
.section-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 20px; }
.divider { width: 48px; height: 1px; background: rgba(255,255,255,0.08); margin: 56px auto; }
.signup-section { text-align: center; padding: 40px 0 64px; }
.signup-section h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-bottom: 12px; }
.signup-section .body-text { font-size: 1rem; color: var(--text-muted); max-width: 420px; margin: 0 auto 24px; line-height: 1.7; }
.signup-wrap { max-width: var(--width-narrow); margin: 0 auto; }
.signup-form { display: flex; gap: 10px; }
.signup-form input { flex: 1; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem; outline: none; transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.signup-form input::placeholder { color: var(--text-muted); }
.signup-form input:focus { border-color: rgba(232,255,89,0.3); box-shadow: 0 0 0 3px rgba(232,255,89,0.06); }
.signup-form input.error { border-color: var(--warm); box-shadow: 0 0 0 3px rgba(255,107,74,0.1); }
.signup-form button { padding: 14px 28px; background: var(--accent); color: var(--bg); border: none; border-radius: 12px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.signup-form button:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(232,255,89,0.25); }
.signup-form button:active { transform: translateY(0); }
.signup-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.signup-msg { font-size: 0.85rem; margin-top: 12px; text-align: center; min-height: 1.4em; }
.signup-msg.muted { color: var(--text-muted); }
.signup-msg.success { color: var(--success); }
.signup-msg.error-msg { color: var(--warm); }
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 56px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 0.82rem; color: var(--text-dim); text-decoration: none; transition: color var(--duration) var(--ease); }
.footer-links a:hover { color: var(--text); }
.nav-links > li { position: relative; }
.nav-links > li > a .dd-arrow { font-size: 0.6rem; transition: transform var(--duration) var(--ease); }
.nav-links > li:hover > a .dd-arrow { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--border-hover); border-radius: 12px; padding: 8px; padding-top: 12px; opacity: 0; pointer-events: none; transition: opacity var(--duration) var(--ease); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.nav-links > li > .nav-dropdown::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-links > li:hover .nav-dropdown { opacity: 1; pointer-events: auto; }
.nav-dropdown a { display: block; padding: 10px 14px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); text-decoration: none; border-radius: 8px; transition: color var(--duration) var(--ease), background var(--duration) var(--ease); }
.nav-dropdown a:hover { color: var(--text); background: var(--surface-hover); }
.nav-dropdown a:visited { color: var(--text-muted); }
.nav-links > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); text-decoration: none; border-radius: 10px; transition: color var(--duration) var(--ease), background var(--duration) var(--ease); }
.nav-links > li > a:hover { color: var(--text); background: var(--surface); }
.nav-links > li > a:visited { color: var(--text-muted); text-decoration: none; }
.nav-links > li > a.active, .nav-links > li > a.active:visited { color: var(--yellow); background: none; border-bottom: 4px solid var(--yellow); border-radius: 0; padding-bottom: 4px; }
.nav-dropdown .dd-divider { height: 1px; background: var(--border); margin: 6px 0; }
.nav-dropdown .dd-label { font-size: 0.72rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 14px 4px; pointer-events: none; }
.nav-mobile a:visited { color: var(--text); }
.nav-mobile .mobile-sub { font-family: var(--font-body); font-size: 0.95rem; color: var(--text-muted); padding: 6px 24px 6px 48px; }
.nav-mobile .mobile-sub:visited { color: var(--text-muted); }
.nav-mobile .mobile-cta { font-family: var(--font-body); font-size: 1rem; color: #0C0B0F; background: var(--yellow); border: none; border-radius: var(--btn-radius); padding: 12px 28px; margin-top: 12px; text-decoration: none; }
.nav-mobile .mobile-cta:visited { color: #0C0B0F; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 4px 24px rgba(232, 255, 89, 0.25); }
.btn-primary:visited { color: #0C0B0F; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.btn-secondary:visited { color: var(--text); }
.signup-section p { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }
.footer-links a:visited { color: var(--text-dim); }
.footer-links a:hover, .footer-links a:hover:visited { color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }
.badge-accent { background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent); }
.badge-pulse::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.reading { padding: 0 0 40px; }
.reading h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin: 48px 0 20px; color: var(--text); }
.reading h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; margin: 36px 0 16px; color: var(--text); }
.reading p { font-size: 1.05rem; line-height: 1.8; color: var(--chapter-text); margin-bottom: 18px; }
.reading p strong { color: var(--text); font-weight: 600; }
.reading .callout { background: var(--surface); border-left: 3px solid var(--warm); border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 28px 0; font-size: 0.95rem; color: var(--text-muted); font-style: italic; line-height: 1.65; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; border: none; border-radius: 12px; cursor: pointer; text-decoration: none; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.reading .inset-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; margin: 24px 0; font-size: 0.95rem; line-height: 1.7; color: var(--chapter-text); }
.reading .inset-box p { font-size: 0.95rem; margin-bottom: 10px; }
.reading .inset-box p:last-child { margin-bottom: 0; }
.reading .inset-box strong { color: var(--text); font-weight: 600; }
h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.guide-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; max-width: 960px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.guide-sidebar { position: sticky; top: 32px; align-self: start; }
.sidebar-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 12px; }
.sidebar-nav { list-style: none; }
.sidebar-nav a { display: block; padding: 8px 12px; font-size: 0.85rem; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-xs); border-left: 2px solid transparent; transition: color var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease); margin-bottom: 2px; }
.sidebar-nav a:hover { color: var(--text); background: var(--surface); }
.sidebar-nav a.sidebar-active { color: var(--accent); background: var(--accent-dim); border-left-color: var(--accent); }
.sidebar-mobile { display: none; margin-bottom: 24px; }
.sidebar-toggle { width: 100%; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.sidebar-toggle::after { content: '▾'; font-size: 0.8rem; color: var(--text-dim); }
.sidebar-dropdown { display: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 4px; padding: 8px; }
.sidebar-dropdown.open { display: block; }
.sidebar-dropdown a { display: block; padding: 10px 12px; font-size: 0.88rem; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-xs); }
.sidebar-dropdown a:hover { color: var(--text); background: var(--surface-hover); }
.sidebar-dropdown a.sidebar-active { color: var(--accent); background: var(--accent-dim); }
.reading p a { color: var(--accent); text-decoration: none; font-weight: 500; }
.reading p a:hover { text-decoration: underline; }
.badge-warm { background: var(--warm-dim); border: 1px solid rgba(255,107,74,0.2); color: var(--warm); }
.badge-dim { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim); }
@media (max-width: 768px) {
  .nav-links { display: none; }
    .nav-hamburger { display: flex; }
  .nav-links,   .site-nav { padding: 20px 24px; }
  .container-wide { padding: 0 20px; }
  .nav-links,   .divider { margin: 48px auto; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
  .guide-sidebar { display: none; }
  .sidebar-mobile { display: block; }
}
@media (max-width: 600px) {

}
@media (max-width: 520px) {
  .container-wide { padding: 0 20px; }
  .signup-form { flex-direction: column; }
  .signup-form button { padding: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
/* ===== Homepage style, applied site-wide ===== */
body { position: relative; }
/* Blueprint grid: visible behind the top of the page, fades out before the reading area */
.bvc-grid { position: absolute; top: 0; left: 0; right: 0; height: min(110vh, 1000px); z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(232,255,89,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(232,255,89,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.6) 35%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.6) 35%, transparent 100%); }
.bvc-site { position: relative; z-index: 1; }
/* Fluid layout like the homepage; reading text keeps a comfortable width */
.container-wide, .bvc-bar { max-width: none; padding: 0 var(--pad); }
h1 { font-weight: 900; line-height: 1.05; letter-spacing: -0.035em; font-size: clamp(2.2rem, 5vw, 3.6rem); }
h1 em, h2 em { font-weight: 700; }
.nav-logo { font-weight: 800; font-size: clamp(1.05rem, 1.5vw, 1.35rem); }
/* Pills everywhere */
.btn, .signup-form button, .signup-form input { border-radius: var(--radius-pill); }
.btn-warm, .btn-orange { background: var(--orange); color: var(--bg); }
/* Header */
.site-nav { padding: 20px 0; }
.nav-links > li > a.active, .nav-links > li.current-menu-item > a, .nav-links > li.current-menu-ancestor > a, .nav-links > li.current-page-ancestor > a { color: var(--accent); }
.btn-book { display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; min-height: 44px; padding: 0 22px; border-radius: var(--radius-pill); background: var(--accent); color: var(--bg); font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-book:hover { transform: translateY(-1px); box-shadow: 0 4px 24px rgba(232,255,89,0.25); }
.btn-book:visited { color: var(--bg); }
.bvc-bar-right { display: flex; align-items: center; gap: 12px; }
.nav-mobile { overflow-y: auto; padding: 72px 24px 40px; justify-content: flex-start; }
.nav-mobile .mobile-cta { margin-top: 20px; }
/* Section menu (guides, etc.) */
.guide-layout { max-width: 1180px; grid-template-columns: 220px minmax(0, 1fr); padding: 0 var(--pad); gap: clamp(32px, 4vw, 64px); }
.guide-content { min-width: 0; }
.guide-sidebar { top: 24px; }
/* Default page wrapper for pages that bring no layout of their own */
.bvc-page-default { padding: 32px var(--pad) 64px; max-width: calc(var(--width-content) + 2 * var(--pad)); margin: 0 auto; }
.bvc-page-default > h1 { margin-bottom: 24px; }
/* Accessibility */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (max-width: 768px) {
  .site-nav { padding: 14px 0; gap: 12px; }
  .bvc-bar { padding: 0 20px; }
  .btn-book { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 360px) { .btn-book { padding: 0 12px; font-size: 0.82rem; } .nav-logo { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Dropdowns from the WordPress menu (items nested under a parent) */
.nav-links .sub-menu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--border-hover); border-radius: 12px; padding: 8px; opacity: 0; pointer-events: none; transition: opacity var(--duration) var(--ease); box-shadow: 0 16px 48px rgba(0,0,0,0.4); z-index: 50; }
.nav-links .sub-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-links > li:hover > .sub-menu, .nav-links > li:focus-within > .sub-menu { opacity: 1; pointer-events: auto; }
.nav-links .sub-menu a { display: block; padding: 10px 14px; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); text-decoration: none; border-radius: 8px; white-space: nowrap; }
.nav-links .sub-menu a:hover { color: var(--text); background: var(--surface-hover); }
.nav-links > li.menu-item-has-children > a::after { content: '\25BE'; font-size: 0.6rem; margin-left: 4px; }
.sidebar-label a { color: inherit; text-decoration: none; }
.sidebar-label a:hover { color: var(--text); }
/* Buttons also work on their own (some pages use .btn-primary without .btn) */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; border-radius: var(--radius-pill); text-decoration: none; cursor: pointer; transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), border-color var(--duration) var(--ease); }
.btn-primary { border: none; }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); }
.btn-secondary:hover { border-color: var(--accent-border); background: var(--accent-dim); color: var(--accent); }
/* Sign-up sections keep side spacing even when they sit outside a page container */
.signup-section { padding-left: var(--pad); padding-right: var(--pad); }
.container-wide .signup-section, .container .signup-section, .container-content .signup-section, .container-reading .signup-section, .guide-content .signup-section { padding-left: 0; padding-right: 0; }

/* Footer social icons (44px tap targets) */
.footer-social { display: flex; gap: 4px; align-items: center; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-dim); transition: color var(--duration) var(--ease), background var(--duration) var(--ease); }
.footer-social a:visited { color: var(--text-dim); }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--text); background: var(--surface-hover); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-social span { font-size: 0.8rem; }
@media (max-width: 768px) { .footer-social { justify-content: center; } }
