
/* ==================================================
   THE HONEY'D LOAF
   Master Stylesheet | Version 0.2
   ================================================== */

/* 1. Brand Variables */

:root {
    --cream: #FAF7F0;
    --honey: #C99B54;
    --amber: #B66C28;
    --sage: #85866A;
    --espresso: #292019;
    --white: #FFFFFF;
    --muted: #71665C;
    --border: #E5DCCD;

    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: Arial, Helvetica, sans-serif;

    --radius: 12px;
    --max-width: 1200px;
    --shadow: 0 4px 16px rgba(41, 32, 25, 0.08);
}

/* 2. Global Reset */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--espresso);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 4px;
}

/* 3. Layout */

.container {
    width: 92%;
    max-width: var(--max-width);
    margin-inline: auto;
}

.section {
    padding: 72px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 32px;
}

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

/* 4. Header and Navigation */

.site-header {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    padding: 24px 0;
    text-align: center;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-style: italic;
    margin: 0;
}

.brand-tagline {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px;
}

.site-nav a {
    font-size: 0.9rem;
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--amber);
}

/* 5. Announcement Bar */

.announcement-bar {
    background: var(--espresso);
    color: var(--cream);
    padding: 10px 16px;
    text-align: center;
    font-size: 0.85rem;
}

/* 6. Hero Section */

.hero {
    background: #EDE2D0;
    padding: 80px 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.hero p {
    color: var(--muted);
    font-size: 1.1rem;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.eyebrow {
    color: var(--amber);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 7. Buttons */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--espresso);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--amber);
    color: var(--white);
}

.btn-secondary {
    border-color: var(--espresso);
    background: transparent;
    color: var(--espresso);
}

.btn-secondary:hover {
    background: var(--espresso);
    color: var(--cream);
}

/* 8. Product Catalog */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-content {
    padding: 24px;
}

.product-content h3 {
    margin-bottom: 8px;
}

.product-description {
    color: var(--muted);
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
}

/* 9. About the Baker */

.about-section {
    background: #E8E6D9;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.about-image {
    width: 100%;
    border-radius: var(--radius);
}

/* 10. Instagram */

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

.instagram-handle {
    color: var(--amber);
    font-weight: 600;
}

/* 11. Order Tracking and Forms */

.form-card {
    max-width: 600px;
    margin: auto;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--espresso);
}

/* 12. Footer */

.site-footer {
    background: var(--espresso);
    color: var(--cream);
    padding: 48px 0 24px;
    text-align: center;
}

.site-footer a:hover {
    color: var(--honey);
}

.footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
}

/* 13. Responsive Design */

@media (max-width: 768px) {
    .section {
        padding: 48px 0;
    }

    .hero {
        padding: 48px 0;
    }

    .hero-inner,
    .about-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        gap: 12px;
    }

    .site-nav a {
        font-size: 0.8rem;
    }

    .form-card {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn {
        transition: none;
    }
}

/* End of Master Stylesheet */
