/* Reset and Base Styles */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fdfbf7;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #5c8a97; /* Muted blue-green accent */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0842a0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.max-w-3xl {
    max-width: 768px;
}

.max-w-xl {
    max-width: 576px;
}

/* Typography */
h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
}

h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: #444746; /* Muted text */
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: #1a1a1a;
}

.note {
    background-color: #fff0d1;
    border-left: 4px solid #f09d00;
    padding: 10px 15px;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #421f00;
}

/* Spacing */
.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* Layout Utilities */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bg-light {
    background-color: #f8fafd; /* Very light blue/gray */
}

.text-center {
    text-align: center;
}

/* Header & Navigation */
header {
    background-color: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: none;
}

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

.logo {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #444746;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    color: #5c8a97;
}

.nav-links a.active {
    color: #1a1a1a;
    border-color: #5c8a97;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #1a1a1a;
    transition: 0.3s;
}

/* Hero Section */
#about {
    padding-top: 120px;
}

.hero-img-container {
    display: flex;
    justify-content: center;
}

.hero-img {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-links a {
    display: inline-block;
    margin-right: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(11, 87, 208, 0.3);
}

.social-links a:hover {
    text-decoration-color: #5c8a97;
}

/* Vertical List (Andrew Ng style) */
.vertical-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem; /* space-y-14 equivalent approximately */
}

.list-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    color: inherit;
}

.list-item:hover .item-content h3 {
    color: #0b57d0;
}

.item-image {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e9eef6;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.list-item:hover .item-image img {
    opacity: 0.8;
}

.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9aa0a6;
    font-size: 0.875rem;
}

.item-content {
    flex-grow: 1;
}

.item-content h3 {
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* Featured Item (Latest Letter) */
.featured-item {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: inherit;
    text-decoration: none;
}

.featured-item:hover .featured-content h3 {
    color: #5c8a97;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e9eef6;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.item-date {
    font-size: 0.875rem;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 0.5rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    max-width: 300px;
    padding: 0.75rem;
    border: 1px solid #c4c7c5;
    border-radius: 4px;
    font-family: inherit;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #5c8a97;
}

.btn-primary {
    background-color: #5c8a97;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0842a0;
}

/* Hero Newsletter */
.hero-newsletter {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.newsletter-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.newsletter-form-cozy {
    display: flex;
    gap: 1rem;
    max-width: 400px;
}

.newsletter-form-cozy input {
    flex-grow: 1;
    border: none;
    border-bottom: 1px solid #c4c7c5;
    background-color: transparent;
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 0.875rem;
}

.newsletter-form-cozy input:focus {
    outline: none;
    border-color: #5c8a97;
}

.btn-subscribe {
    background-color: #e9eef6;
    color: #1a1a1a;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-subscribe:hover {
    background-color: #d0e8f7;
}

/* Contact Section */
.social-links-vertical a {
    display: block;
    margin-bottom: 0.75rem;
    color: #444746;
}

.social-links-vertical a:hover {
    color: #5c8a97;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #c4c7c5;
    border-radius: 8px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5c8a97;
}

/* Footer */
footer {
    border-top: 1px solid #e9eef6;
    color: #9aa0a6;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        display: flex;
    }

    .list-item {
        flex-direction: column;
        gap: 1rem;
    }

    .item-image {
        width: 100%;
        height: 150px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 1rem;
        border-bottom: 1px solid #e9eef6;
        gap: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}
