:root {
    --accent: #ffef80;
    --light: #fff;
    --dark: #000;
    --mute: #ccc;
    --bg-page: #f4f4f4;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Reset & Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--bg-page);
    scroll-behavior: smooth;
}

/* Accessibility Focus States */
a:focus-visible, 
button:focus-visible, 
details:focus-visible {
    outline: 3px solid var(--dark);
    outline-offset: 2px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Top Navigation Bar */
.top-nav {
    background-color: var(--dark);
    padding: 10px 20px;
    text-align: right;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

.top-nav a {
    color: var(--light);
    text-decoration: none;
    margin-left: 15px;
    opacity: 0.7;
    transition: 0.3s;
}

.top-nav a:hover,
.top-nav a.active {
    opacity: 1;
    color: var(--accent);
}

/* Typography & Buttons */
h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h2 span {
    display: inline; 
    background: linear-gradient(to top, var(--accent) 35%, transparent 35%);
    
    /* These properties ensure the yellow highlight cuts off cleanly at the start and end of every single line, rather than bleeding over */
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

/* Clean standard links for the Book/Blog cards */
.card a {
    color: var(--dark);
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    display: inline-block;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-primary:hover {
    background: #e6d773;
}

.btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: #eee;
}

/* Button Group Wrapper */
.button-group {
    display: inline-grid;
    gap: 1rem;
    margin-top: 1rem;
}

.button-group .btn {
    margin: 0;
    width: 100%;
}

@media (min-width: 600px) {
    .button-group {
        grid-template-columns: 1fr 1fr;
    }
}

/* Layout */
header {
    background-color: var(--dark);
    color: var(--light);
    padding: 4rem 2rem 5rem;
    text-align: center;
}

section {
    padding: 2rem 2rem 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bg-white {
    background: var(--light);
    padding: 4rem 2 rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Connect Section */
.connect-section {
    padding: 4rem 2rem;
}

.connect-btn {
    font-size: 1.2rem;
    padding: 15px 35px;
}

/* Testimonials Styling */
.testimonials-wrapper {
    margin-top: 1rem;
}

.color-quote {
    font-style: italic; 
    margin-bottom: 2rem; 
}

.color-quote::before {
    content: "\201C"; 
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 0;
    margin-right: 2px;
}

.color-quote::after {
    content: "\201D"; 
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 0;
    margin-left: 2px;
}

#testimonials h2 {
    text-align: left;
    display: inline-block;
    margin-bottom: 2rem;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card p {
    flex-grow: 1;
}

/* Featured Card Modifications */
.card-featured {
    border-top: 4px solid var(--accent);
    display: flex;
    flex-direction: column;
}

.card-featured h3 {
    margin: 0.5rem 0;
}

.card-featured p {
    flex-grow: 1;
}

.price {
    font-weight: bold;
    background-color: var(--accent);
    color: var(--dark);
    font-size: 1.2rem;
    margin-top: 1rem;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
}

.tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    background-color: var(--accent);
    color: var(--dark);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

/* FAQ Accordion */
details {
    margin-bottom: 1rem;
    border: 1px solid var(--mute);
    padding: 15px;
    border-radius: 5px;
    background: var(--light);
}

details[open] {
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    margin-top: 15px;
    margin-bottom: 0;
    color: #444;
}

/* Footer & Modals */
footer {
    background: var(--dark);
    color: var(--mute);
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.9rem;
}

.legal-links {
    margin-bottom: 2rem;
}

.legal-links button {
    background: none;
    border: none;
    color: var(--mute);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    margin: 0 10px;
    font-size: 0.9rem;
}

.legal-links button:hover {
    opacity: 1;
    color: var(--accent);
}

dialog {
    border: none;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.close-btn {
    background: var(--dark);
    color: var(--light);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

.close-btn:hover {
    background: #333;
}

/* Mobile Padding Adjustments */
@media (max-width: 600px) {
    header, 
    section, 
    .bg-white, 
    .connect-section, 
    footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}