@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --base-color: #ffffff;
    --text-color: #000000;
    --primary-color: #ffc06e;
    --secondary-color: #8D8DFF;
    --color-1: #363D3F;
    --color-2: #5e6263;
    --color-3: #FF0000;
}

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

html {
    font-family: Open-Sans, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

body {
    padding: 1em;
    background-color: var(--color-1);
}

h1, h2, h3 {
    font-family: Lora, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav {
    margin: 1em auto 3em auto;
    width: min(1000px, 100%);
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 2em;
}

nav li:first-child {
    margin-right: auto;
    font-family: Lora, Open-Sans;
    font-weight: bold;
    font-size: 1.3rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
}

nav a:hover {
    text-decoration: underline;
}

header, section {
    margin: 2em auto;
    width: min(75rem, 95%);
    background-color: var(--base-color);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 1em;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em;
}

header img {
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: top;
}

.text-container {
    flex: 1 1 500px;
    max-width: 700px;
}

h1 {
    margin-top: -0.8em;
    font-size: 2rem;
}

.text-container p {
    margin: 0.75em 0 1em 0;
    font-size: 1.25rem;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: var(--color-2);
    padding: 0.75em 1.25em;
    border-radius: 0.5em;
    font-weight: 600;
}

.secondary {
    background-color: var(--secondary-color);
}

section {
    padding: 3em, min(2em, 15%);
    background-color: var(--base-color);
    text-align: center;
}

h2 {
    font-size: 2rem;
}

section p {
    margin-top: 1em;
    font-size: 1.25rem;
}

/* Podcast episode spacing */
.podcast-episode h2 {
    margin-bottom: 0.3em;   /* smaller space between title and subtitle */
}

.podcast-episode p {
    margin-top: 0.5em;
    margin-bottom: 1em;     /* larger space before video */
}

/* Page Header */
.page-header h1 {
    margin-top: 0.05em;
    text-align: center;
    font-size: 2.5rem;
}

.page-header p {
    margin-top: 1.5em;
    text-align: center;
}

