/* ==========================================================================
   Backyard Apiaries -- shared design foundation
   Design tokens, reset, base typography, and shared button/card treatments
   used across every page. Load this file first, before any page stylesheet.
   ========================================================================== */

@font-face {
    font-family: 'Journal';
    src: url('fonts/journal.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'SegoeScript';
    src: url('fonts/segoescript.ttf') format('truetype');
    font-display: swap;
}

:root {
    /* Colors */
    --color-cream: #F6F4F3;
    --color-cream-soft: #FBF8F2;
    --color-white: #FFFFFF;
    --color-honey: #FCAB4C;
    --color-honey-dark: #E8963A;
    --color-honeycomb: #FFE286;
    --color-star: #FDE414;
    --color-ink: #2B2420;
    --color-ink-muted: #6B6259;
    --color-border: #EDE7DD;
    --color-success: #33691E;
    --color-success-bg: #DCEDC8;
    --color-success-icon: #8BC34A;
    --color-error: #C0392B;

    /* Radius scale */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Shadow scale */
    --shadow-sm: 0 1px 3px rgba(43, 36, 32, .08), 0 1px 2px rgba(43, 36, 32, .06);
    --shadow-md: 0 6px 20px rgba(43, 36, 32, .10);
    --shadow-lift: 0 10px 28px rgba(43, 36, 32, .16);

    /* Spacing scale (4px base) */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;

    /* Motion */
    --transition-fast: 150ms ease;
    --transition-base: 220ms cubic-bezier(.4, 0, .2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-cream);
    color: var(--color-ink);
    line-height: 1.5;
}

h1 {
    font-family: 'Journal', Arial, sans-serif;
    font-size: clamp(2.75rem, 6vw, 5.25rem);
    line-height: 1.1;
    text-align: center;
    font-weight: 500;
}

h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

a {
    color: var(--color-ink);
}

p {
    color: var(--color-ink);
}

/* Shared primary button -- pages may override width/margin as needed */
.button {
    display: inline-block;
    background-color: var(--color-honey);
    color: var(--color-ink);
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    font-size: 18px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.button:hover {
    background-color: var(--color-honey-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
}

/* Shared soft card surface used by product/category/review/info cards */
.card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

/* Visible, honey-colored focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.button:focus-visible {
    outline: 3px solid var(--color-honey-dark);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
