/* --- Base Styles & Resets --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base */
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4; /* Light Neutral */
    color: #333; /* Dark Neutral */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Caveat', cursive; /* Friendly script for headings */
    line-height: 1.2;
    margin-bottom: 0.75em;
    color: #333;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive heading */
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-top: 1.5em; /* Space above section titles */
    border-bottom: 2px solid #66CDAA; /* Accent underline */
    display: inline-block; /* Underline only spans text width */
    padding-bottom: 0.2em;
}

h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-family: 'Inter', sans-serif; /* Keep subheadings sans-serif for clarity */
    font-weight: 700;
}

p {
    margin-bottom: 1em;
    max-width: 65ch; /* Improve readability */
}

a {
    color: #66CDAA; /* Accent color for links */
    text-decoration: none;
    transition: opacity 0.3s ease-out;
}

a:hover, a:focus {
    opacity: 0.7;
    text-decoration: underline;
}

ul {
    list-style: none;
    padding-left: 0;
}

/* --- Layout --- */
main {
    max-width: 800px;
    margin: 0 auto; /* Center content */
    padding: 2rem 1rem;
}

.content-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd; /* Subtle separator */
}

.content-section:last-of-type {
    border-bottom: none;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 60vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff; /* Text on overlay */
    overflow: hidden; /* Contain background image */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area */
    filter: blur(5px); /* Blur effect */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for contrast */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 1rem;
    max-width: 700px;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 0.5em;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

.jarvis-note {
    display: block;
    font-size: 0.9rem;
    margin-top: 1.5em;
    opacity: 0.8;
}

/* --- The Story / Timeline --- */
.timeline {
    margin-top: 2em;
    position: relative;
    padding-left: 3em; /* Space for icons and line */
}

.timeline::before { /* The vertical line */
    content: '';
    position: absolute;
    left: 1em; /* Align with center of icons */
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: #ddd;
}

.timeline li {
    margin-bottom: 2.5em;
    position: relative;
}

.timeline-icon {
    position: absolute;
    left: -2.3em; /* Position icon over the line */
    top: 0;
    font-size: 1.8rem;
    background-color: #f4f4f4; /* Match page background */
    padding: 0 0.3em; /* Clear space around icon */
    line-height: 1;
}

.timeline-content h3 {
    margin-bottom: 0.3em;
}

/* --- Megan's Apology --- */
.pull-quote {
    border-left: 5px solid #66CDAA; /* Accent border */
    padding: 1em 1.5em;
    margin: 2em 0;
    background-color: #eaf6f6; /* Very light accent background */
    font-size: 1.2rem;
    font-style: italic;
    border-radius: 4px;
}

.pull-quote p {
    margin-bottom: 0;
}

.cupcake-image {
    display: block;
    margin: 1.5em auto 0;
    max-width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- What I've Done / Checklist --- */
.checklist {
    margin-top: 1.5em;
    padding-left: 1em;
}

.checklist li {
    margin-bottom: 0.8em;
    display: flex;
    align-items: flex-start;
}

.check-icon {
    color: #28a745; /* Green checkmark */
    margin-right: 0.7em;
    font-size: 1.2rem;
    line-height: 1.3; /* Align with text */
}

.tooltip-link {
    font-size: 0.85em;
    margin-left: 0.5em;
    opacity: 0.8;
    border-bottom: 1px dotted #66CDAA;
}

.tooltip-link:hover {
    text-decoration: none;
    opacity: 1;
}

/* --- Call to Connect / Button --- */
.cta-button {
    display: inline-block;
    background-color: #66CDAA; /* Accent color */
    color: #333; /* Dark text for contrast on light button */
    padding: 0.8em 1.5em;
    border-radius: 50px; /* Rounded button */
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease-out, transform 0.2s ease-out;
    margin-top: 1em;
    border: 1px solid transparent; /* Prevent layout shift on focus */
}

.cta-button:hover, .cta-button:focus {
    background-color: #57b396; /* Darker shade on hover */
    transform: translateY(-2px);
    text-decoration: none;
    outline: 2px solid #333; /* Accessibility focus */
    outline-offset: 2px;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666; /* Low contrast footer text */
}

.signature {
    font-family: 'Caveat', cursive; /* Handwritten script */
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.2em;
}

/* --- Animations --- */
/* Initial state for animations */
.fade-in, .slide-in {
    opacity: 0;
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.slide-in {
    transform: translateY(30px);
}

/* Visible state (added by JS on scroll) */
.fade-in.visible, .slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays for hero text */
.delay-1 { transition-delay: 200ms; }
.delay-2 { transition-delay: 400ms; }

/* --- Responsiveness --- */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }
    h1 { font-size: clamp(2rem, 7vw, 3rem); }
    h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

    .timeline { padding-left: 2.5em; }
    .timeline-icon { left: -2em; font-size: 1.6rem; }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }
    main {
        padding: 1.5rem 0.8rem;
    }
    .hero {
        min-height: 45vh;
    }
    .timeline { padding-left: 2em; }
    .timeline-icon { left: -1.8em; font-size: 1.5rem; }
    .pull-quote { font-size: 1.1rem; }
}

/* --- Accessibility --- */
*:focus-visible { /* Modern focus outline */
    outline: 3px solid #66CDAA;
    outline-offset: 2px;
}