/* ==========================================================================
   Wicked Hive Garden
   Core Site Styles
   ========================================================================== */

/* Crimson Pro - SIL Open Font License 1.1 (see /fonts/crimson-pro-OFL.txt).
   Self-hosted: no third-party font request. Shared with the Square store's
   header logo so the two sites set the brand name in the same face.
   Only weight 400 ships - every bold rule on the site uses the body font. */
@font-face {
    font-family: "Crimson Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/crimson-pro-400.woff2") format("woff2");
}


:root {
    --green-950: #0d1d16;
    --green-900: #132a1f;
    --green-800: #1b382a;
    --green-700: #294936;

    --gold: #9b804a;
    --gold-light: #b9a06a;
    --gold-dark: #755f36;

    --ivory: #f2ede3;
    --ivory-dark: #e4ddcf;
    --paper: #faf8f3;

    --ink: #1b211d;
    --muted: #62685f;

    --border: rgba(155, 128, 74, 0.42);
    --shadow: 0 16px 45px rgba(13, 29, 22, 0.12);

    --content-width: 1200px;
    --header-height: 78px;

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


/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}


/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--ivory);
    color: var(--green-950);
}

/* Visible focus everywhere, not just where a component defines it. */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}


/* ==========================================================================
   General Layout
   ========================================================================== */

.container {
    width: min(calc(100% - 2.5rem), var(--content-width));
    margin-inline: auto;
}

.section {
    padding: 5.5rem 0;
}

.section--ivory {
    background: var(--ivory);
}

.section--dark {
    background: var(--green-900);
    color: var(--ivory);
}

/* The mid gold (#9b804a) only reaches about 3.2-4.1:1 against both the
   paper and the dark green, and at 12px bold the eyebrow does not qualify
   for the WCAG large-text exemption. So the eyebrow takes the dark gold on
   light grounds and the light gold on dark ones - both clear 4.5:1. */
.eyebrow {
    margin: 0 0 0.65rem;
    color: var(--gold-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow {
    color: var(--gold-light);
}

.section-title {
    max-width: 760px;
    margin: 0 0 1.25rem;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.1;
}

.section-copy {
    max-width: 700px;
    color: var(--muted);
    font-size: 1.05rem;
}

.section--dark .section-copy {
    color: rgba(242, 237, 227, 0.78);
}


/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(19, 42, 31, 0.98);
    border-bottom: 1px solid rgba(155, 128, 74, 0.38);
}

.header-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}


/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    color: var(--ivory);
    text-decoration: none;
}

.brand picture {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-mark {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-name {
    color: var(--ivory);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
}

.brand-name strong {
    color: var(--gold-light);
    font-weight: 400;
}


/* Navigation */

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    color: var(--ivory);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
    color: var(--gold-light);
}

.site-nav .shop-link {
    padding: 0.65rem 1rem;
    border: 1px solid var(--gold);
}

.menu-toggle {
    display: none;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--ivory);
    cursor: pointer;
}


/* ==========================================================================
   Homepage Hero
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    background:
        radial-gradient(
            circle at 82% 40%,
            rgba(155, 128, 74, 0.16),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--green-950),
            var(--green-800)
        );
    color: var(--ivory);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(155, 128, 74, 0.16);
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 360px;
    height: 360px;
    top: -180px;
    right: -100px;
}

.hero::after {
    width: 300px;
    height: 300px;
    bottom: -190px;
    left: -80px;
}

.hero-grid {
    position: relative;
    z-index: 1;
    min-height: 650px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(340px, 0.65fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
}

.hero-content {
    max-width: 760px;
    padding: 6rem 0;
}

.hero h1 {
    margin: 0 0 1.5rem;
    font-family: var(--font-heading);
    font-size: clamp(3.4rem, 5.4vw, 5rem);
    font-weight: 400;
    line-height: 0.98;
}

.hero-copy {
    max-width: 630px;
    margin: 0 0 2.2rem;
    color: rgba(242, 237, 227, 0.82);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.hero-art::before {
    content: "";
    position: absolute;
    width: min(34vw, 430px);
    aspect-ratio: 1;
    border: 1px solid rgba(155, 128, 74, 0.25);
    border-radius: 50%;
}

.hero-art picture {
    display: block;
    position: relative;
    z-index: 1;
    line-height: 0;
}

.hero-art img {
    width: min(100%, 470px);
    height: auto;
    filter: drop-shadow(
        0 20px 25px rgba(0, 0, 0, 0.16)
    );
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button {
    display: inline-block;
    padding: 0.85rem 1.35rem;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--green-950);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.button:hover,
.button:focus-visible {
    background: var(--gold-light);
}

.button--outline {
    background: transparent;
    color: var(--ivory);
}

.button--outline:hover,
.button--outline:focus-visible {
    background: var(--gold-light);
    color: var(--green-950);
}

/* Outline button sitting on paper or ivory rather than on dark green. */
.button--onlight {
    color: var(--green-900);
}


/* ==========================================================================
   Cards
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    padding: 2rem;
    background: var(--paper);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.card-number {
    color: var(--gold-dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.card h3 {
    margin: 1rem 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 400;
}

.card p {
    margin-bottom: 0;
    color: var(--muted);
}


/* Cards carrying a photo. The image is full-bleed, so the padding moves to
   an inner body. Plain .card, used on the blog and about pages, is
   deliberately untouched. */

.card--media {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.card-media picture {
    display: block;
    line-height: 0;
}

.card-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 2rem;
}

.card-body p {
    flex: 1;
}

/* Only cards that actually go somewhere get the lift and the pointer
   affordance. An image card with no destination stays inert - a card that
   looks clickable and is not is worse than a plain one. */
.card--linked {
    position: relative;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

/* The heading link is stretched over the whole card, so the card is a
   single target carrying one accessible name - the heading - rather than
   several competing links. */
.card-link {
    text-decoration: none;
}

.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* The card itself takes the focus ring, since the link's own box is only
   the heading text. */
.card-link:focus-visible {
    outline: none;
}

.card--linked:hover,
.card--linked:focus-within {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 22px 50px rgba(13, 29, 22, 0.18);
}

.card--linked:focus-within {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.card-cta {
    margin-top: 1.5rem;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-cta::after {
    content: " \2192";
}

.card--linked:hover .card-cta,
.card--linked:focus-within .card-cta {
    color: var(--green-800);
}

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

    .card--linked {
        transition: none;
    }

    .card--linked:hover,
    .card--linked:focus-within {
        transform: none;
    }
}


/* ==========================================================================
   Split Content
   ========================================================================== */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

/* Framed panel for the full arched logo, which is drawn dark-on-light and
   needs a pale field to sit on. */
.brand-panel {
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--paper);
    border: 1px solid var(--border);
}

.brand-panel picture {
    display: block;
    line-height: 0;
}

.brand-panel img {
    width: min(100%, 400px);
    height: auto;
}

/* Product photography in the split sections. The 4:3 box is fixed so the
   text column and the picture stay balanced and nothing reflows as the
   image decodes. */
.feature-image {
    border: 1px solid var(--border);
    background: var(--ivory-dark);
}

.feature-image picture {
    display: block;
    line-height: 0;
}

.feature-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}


/* ==========================================================================
   Interior Page Hero
   ========================================================================== */

.page-hero {
    padding: 6rem 0;
    background: var(--green-900);
    color: var(--ivory);
}

.page-hero h1 {
    max-width: 800px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1;
}


/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

/* Inline prose links need to be distinguishable without relying on colour
   alone, so they keep their underline. */
.inline-link {
    color: var(--green-800);
    text-decoration-color: var(--gold);
    text-underline-offset: 0.2em;
}

.inline-link:hover,
.inline-link:focus-visible {
    color: var(--gold-dark);
}


/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 4rem 0 2rem;
    background: var(--green-950);
    color: var(--ivory);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-title {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
}

.footer-copy {
    margin: 0 0 0.75rem;
    color: rgba(242, 237, 227, 0.75);
    max-width: 38ch;
}

.footer-links {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.footer-links a {
    color: rgba(242, 237, 227, 0.75);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--gold-light);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(155, 128, 74, 0.25);
    color: rgba(242, 237, 227, 0.55);
    font-size: 0.85rem;
}


/* ==========================================================================
   Responsive - Narrow Desktop
   ========================================================================== */

/* Six nav items plus the brand get tight before the mobile menu kicks in. */
@media (max-width: 1040px) {

    .site-nav {
        gap: 1.25rem;
    }

    .site-nav a {
        font-size: 0.82rem;
        letter-spacing: 0.06em;
    }

    .site-nav .shop-link {
        padding: 0.55rem 0.75rem;
    }
}


/* ==========================================================================
   Responsive - Tablet / Mobile
   ========================================================================== */

@media (max-width: 800px) {

    .container {
        width: min(
            calc(100% - 2rem),
            var(--content-width)
        );
    }

    /* Header */

    .brand {
        gap: 0.55rem;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .brand-name {
        font-size: 1.12rem;
        letter-spacing: 0.035em;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: -1rem;
        right: -1rem;
        display: none;
        padding: 1.5rem;
        background: var(--green-900);
        border-bottom: 1px solid var(--gold);
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav .shop-link {
        text-align: center;
    }

    /* Hero */

    .hero {
        min-height: auto;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-content {
        max-width: 680px;
        padding: 5rem 0 2rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 12vw, 4.8rem);
    }

    .hero-art {
        padding: 0 0 4rem;
    }

    .hero-art::before {
        width: min(75vw, 380px);
    }

    .hero-art img {
        width: min(75vw, 400px);
    }

    /* General */

    .card-grid,
    .split,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 0;
    }

    .page-hero {
        padding: 4.5rem 0;
    }
}


/* ==========================================================================
   Responsive - Small Mobile
   ========================================================================== */

@media (max-width: 480px) {

    :root {
        --header-height: 70px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .hero-content {
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        text-align: center;
    }
}