/*
Theme Name: Vera Calloway
Theme URI: https://veracalloway.com
Description: Custom child theme for veracalloway.com built on Kadence. Designed from Vera's brief.
Author: Vera Calloway / Ryan Atkinson
Author URI: https://veracalloway.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: kadence
Text Domain: veracalloway
*/


/* ============================================================
   PALETTE
   ============================================================
   Background:      #0e0e14
   Surface/Cards:   #16161f
   Border:          #252535
   Text primary:    #e8e6e1
   Text secondary:  #8a8898
   Accent:          #4a9b8e
   Accent hover:    #5bb5a7
   Accent warm:     #b8962e
   ============================================================ */

:root {
    --bg:            #0e0e14;
    --surface:       #16161f;
    --border:        #252535;
    --text:          #e8e6e1;
    --text-muted:    #8a8898;
    --accent:        #4a9b8e;
    --accent-hover:  #5bb5a7;
    --accent-warm:   #b8962e;
    --content-width:  760px;
    --page-width:    1100px;
}


/* ============================================================
   RESET & GLOBAL
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body,
body.flavor-flavor,
body.flavor-flavor .site {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::selection {
    background: var(--accent);
    color: var(--bg);
}

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


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    font-weight: 500;
    line-height: 1.3;
    margin-top: 0;
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.625rem;
    margin-bottom: 1.25rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: left;
}

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

a:hover,
a:focus {
    color: var(--accent-hover);
}

blockquote {
    border-left: 3px solid var(--accent-warm);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.375rem;
    color: var(--text);
    line-height: 1.6;
}

blockquote p {
    margin-bottom: 0;
}

strong {
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}


/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */

.vera-page-container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.vera-prose {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

.vera-prose p,
.vera-prose blockquote,
.vera-prose h2,
.vera-prose h3 {
    text-align: left;
}


/* ============================================================
   HEADER — STICKY, MINIMAL
   ============================================================ */

.site-header,
#masthead {
    background: rgba(14, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.site-header .site-container,
.site-header .site-header-inner-wrap,
#masthead .site-container {
    max-width: var(--page-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* Site name */
.site-branding .site-title,
.site-branding .site-title a,
.site-branding a.brand {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.25px;
}

.site-branding .site-title a:hover {
    color: var(--accent-hover);
}

.site-branding .site-description {
    display: none;
}

/* Navigation */
.main-navigation a,
.primary-navigation a,
.header-navigation a,
#primary-menu a,
.menu a {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.primary-navigation a:hover,
.header-navigation a:hover,
#primary-menu a:hover,
.menu a:hover {
    color: var(--text);
    text-decoration: none;
}

/* Mobile menu */
.menu-toggle {
    color: var(--text-muted);
}


/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */

.vera-hero {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.vera-hero-opening {
    font-family: 'Lora', Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    max-width: var(--content-width);
    margin-bottom: 2.5rem;
}

.vera-hero-thesis {
    max-width: var(--content-width);
}

.vera-hero-thesis p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}


/* ============================================================
   HOMEPAGE — STATS GRID
   ============================================================ */

.vera-stats {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.vera-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.vera-stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.75rem 1.5rem;
}

.vera-stat-value {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.vera-stat-label {
    font-family: 'Lora', Georgia, serif;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}


/* ============================================================
   HOMEPAGE — SECTIONS
   ============================================================ */

.vera-home-section {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
}

.vera-home-section h2 {
    font-size: 1.375rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    margin-top: 0;
}

.vera-home-section p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    margin-bottom: 1.25rem;
}

.vera-cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 0.75rem;
    transition: background 0.2s ease;
}

.vera-cta:hover {
    background: var(--accent-hover);
    color: #fff;
}


/* ============================================================
   PROSE PAGES — ABOUT, RYAN, WHITE PAPER, CHANGELOG, ETC.
   ============================================================ */

.vera-prose h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.vera-prose p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.vera-prose h2 {
    font-size: 1.375rem;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.vera-prose h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.vera-prose h3 {
    font-size: 1.125rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}


/* ============================================================
   EVIDENCE PAGE — DATA TABLES
   ============================================================ */

.vera-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.vera-prose table th {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.vera-prose table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.vera-prose table tr:nth-child(even) td {
    background: rgba(22, 22, 31, 0.5);
}

.vera-prose table tr:hover td {
    background: rgba(37, 37, 53, 0.5);
}


/* ============================================================
   ACCENT WARM — SPARINGLY
   ============================================================ */

.vera-warm {
    color: var(--accent-warm);
}


/* ============================================================
   FOOTER — MINIMAL
   ============================================================ */

.site-footer,
#colophon {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
}

.site-footer .site-container,
.site-footer .site-footer-inner-wrap,
#colophon .site-container {
    max-width: var(--page-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.vera-footer-left {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.vera-footer-right {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Hide default WordPress footer content */
.site-footer-wrap,
.footer-widget-area,
.site-info {
    display: none;
}


/* ============================================================
   KADENCE OVERRIDES
   ============================================================ */

/* Override Kadence's default background and colors */
.site,
.content-area,
.site-main,
.entry-content,
.site-container,
.content-wrap,
.site-inner-wrap {
    background-color: var(--bg);
    color: var(--text);
}

/* Override Kadence button styles */
.wp-block-button__link,
.button,
button,
input[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: background 0.2s ease;
}

.wp-block-button__link:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* Override link colors in content */
.entry-content a {
    color: var(--accent);
}

.entry-content a:hover {
    color: var(--accent-hover);
}

/* Remove Kadence's default entry header */
.entry-hero-container-inner {
    background: transparent;
}

/* Override Kadence heading colors */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text);
}

/* Override Kadence paragraph color */
.entry-content p {
    color: var(--text);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .vera-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vera-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .vera-hero-opening {
        font-size: 1.625rem;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1rem;
    }

    .vera-stats-grid {
        grid-template-columns: 1fr;
    }

    .vera-hero {
        padding: 3rem 1.25rem 2rem;
    }

    .vera-hero-opening {
        font-size: 1.375rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.375rem;
    }

    .vera-prose {
        padding: 3rem 1.25rem 4rem;
    }

    .vera-home-section {
        padding: 2rem 1.25rem;
    }

    .site-header .site-container,
    #masthead .site-container {
        padding: 0.75rem 1.25rem;
    }
}