/* The Life of the Law - Main Stylesheet */

/* ============================================
   CSS VARIABLES - BRANDBOOK COLORS & TYPOGRAPHY
   ============================================ */

:root {
    /* Colors */
    --burgundy: #5b1a1a;
    --ivory: #f8f5ef;
    --slate-gray: #333333;
    --burgundy-light: #7a2525;
    --burgundy-dark: #3d1111;

    /* Typography */
    --font-heading: "Cormorant Garamond", serif;
    --font-body: "Source Sans Pro", sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --content-width: 800px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--slate-gray);
    background-color: var(--ivory);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--burgundy);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

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

a:hover {
    color: var(--burgundy-light);
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.content {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background-color: var(--ivory);
    border-bottom: 1px solid rgba(91, 26, 26, 0.1);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--burgundy);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--slate-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--burgundy);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    margin-bottom: var(--spacing-md);
}

.hero-logo h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-xs);
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--slate-gray);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.hero-description {
    max-width: 600px;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: var(--spacing-lg) var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   BUTTONS & FORMS
   ============================================ */

button,
.button {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.875rem 2rem;
    background-color: var(--burgundy);
    color: var(--ivory);
    border: 2px solid var(--burgundy);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

button:hover,
.button:hover {
    background-color: var(--ivory);
    color: var(--burgundy);
    border-color: var(--burgundy);
}

input[type="text"],
input[type="email"],
textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(51, 51, 51, 0.2);
    background-color: var(--ivory);
    color: var(--slate-gray);
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--burgundy);
}

/* ============================================
   NEWSLETTER SIGNUP
   ============================================ */

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-row {
    display: flex;
    gap: var(--spacing-sm);
}

/* ============================================
   FOOTER
   ============================================ */

body > footer {
    background-color: var(--burgundy);
    color: var(--ivory);
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: var(--spacing-xl);
}

body > footer p {
    font-size: 0.875rem;
    opacity: 0.9;
}

body > footer a {
    color: var(--ivory);
    text-decoration: underline;
}

body > footer a:hover {
    opacity: 0.8;
}

/* ============================================
   PODCAST SECTION
   ============================================ */

.podcast-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.podcast-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--burgundy);
    color: var(--burgundy);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.podcast-badge:hover {
    background-color: var(--burgundy);
    color: var(--ivory);
}

/* ============================================
   PAGE SECTIONS
   ============================================ */

.page-section {
    padding-top: var(--spacing-lg);
}

.page-header {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.page-header--large {
    text-align: center;
    margin-bottom: 3rem;
}

.page-intro {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 3rem;
    color: var(--slate-gray);
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */

.content-block {
    margin-bottom: 3rem;
}

.content-block p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.content-block ol {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-left: 3rem;
    margin-bottom: var(--spacing-sm);
}

.highlight-box {
    margin-bottom: 3rem;
    padding: var(--spacing-md);
    background-color: rgba(91, 26, 26, 0.03);
}

.highlight-box p {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ============================================
   BLOCKQUOTE
   ============================================ */

.quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    color: var(--burgundy);
    margin-bottom: 3rem;
    font-style: italic;
    line-height: 1.6;
}

.quote footer {
    font-size: 1rem;
    color: var(--slate-gray);
    margin-top: var(--spacing-sm);
    font-style: normal;
}

.small-caps {
    font-variant: small-caps;
}

/* ============================================
   CENTERED BLOCKS
   ============================================ */

.centered-block {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.centered-block p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.centered-block .button {
    display: inline-block;
    text-decoration: none;
}

/* ============================================
   COMING SOON / CTA BOXES
   ============================================ */

.cta-box {
    background-color: rgba(91, 26, 26, 0.03);
    padding: 3rem;
    margin-top: var(--spacing-lg);
}

.cta-box h2,
.cta-box h3 {
    text-align: center;
}

.cta-box p {
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
}

.cta-box .button {
    margin-top: var(--spacing-md);
}

/* ============================================
   SUBSCRIBE SECTION
   ============================================ */

.subscribe-section {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.subscribe-section p {
    margin-bottom: var(--spacing-md);
}

/* ============================================
   ABOUT PREVIEW SECTION
   ============================================ */

.about-preview {
    background-color: rgba(91, 26, 26, 0.03);
    padding: var(--spacing-lg) var(--spacing-md);
}

.about-preview .content {
    text-align: center;
}

.about-preview p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-preview .button {
    margin-top: var(--spacing-md);
}

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

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-logo h1 {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.125rem;
    }

    nav {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-links {
        gap: var(--spacing-sm);
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-links a {
        font-size: 0.875rem;
    }
}
