/* Hands in Jars — brand palette and typography
   Locked 2026-05-12 from existing insert-card assets. */

:root {
    --hij-green: #2D4A3E;
    --hij-green-dark: #1F352C;
    --hij-sage: #6B8E7C;
    --hij-cream: #F7F3EC;
    --hij-cream-dark: #E8E2D5;
    --hij-text: #2A2A2A;
    --hij-muted: #6E6E6E;

    --hij-font-serif: "Georgia", "Cambria", "Times New Roman", serif;
    --hij-font-sans: "Inter", "Helvetica Neue", "Arial", sans-serif;
}

/* Brand wordmark */
.hij-wordmark {
    font-family: var(--hij-font-serif);
    color: var(--hij-green);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Section eyebrow label */
.hij-eyebrow {
    font-family: var(--hij-font-sans);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--hij-sage);
    font-weight: 600;
}

/* Jar card base styles */
.hij-jar-card {
    background: var(--hij-cream);
    border: 1px solid var(--hij-cream-dark);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hij-jar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 74, 62, 0.08);
}

.hij-jar-card .hij-jar-wordmark {
    font-family: var(--hij-font-serif);
    font-weight: 700;
    color: var(--hij-green);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hij-jar-card .hij-jar-description {
    color: var(--hij-text);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.hij-jar-card .hij-jar-cta {
    color: var(--hij-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.hij-jar-card .hij-jar-cta:hover {
    color: var(--hij-green-dark);
}

/* Hero section — front page only */
.hij-hero-title {
    font-size: 3.5rem;
    margin: 0.5rem 0;
}

.hij-hero-tagline {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--hij-sage);
    margin-bottom: 1.5rem;
}

.hij-hero-mission {
    font-size: 1.05rem;
    color: var(--hij-text);
    line-height: 1.6;
    max-width: 620px;
}

.hij-hero-image {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.hij-hero-cta-row {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.hij-hero-cta {
    display: inline-block;
    background: var(--hij-green);
    color: var(--hij-cream);
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 3px 10px rgba(45, 74, 62, 0.18);
    letter-spacing: 0.01em;
}

.hij-hero-cta:hover {
    background: var(--hij-green-dark);
    color: var(--hij-cream);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(45, 74, 62, 0.25);
}

@media (max-width: 768px) {
    .hij-hero-title {
        font-size: 2.4rem;
    }
    .hij-hero-tagline {
        font-size: 1.15rem;
    }
    .hij-hero-mission {
        font-size: 0.98rem;
    }
    .hij-hero-image {
        max-width: 220px;
    }
}

/* Footer flex graceful wrap on narrow screens */
.hij-footer .d-flex {
    flex-wrap: wrap;
}

/* ──────────────────────────────────────────────────────────────────────
   CSS glass-jar card (v2) — abstract jar via card design
   The card has a colored "lid" bar at the top and a translucent
   "glass body" with subtle gradient + highlight to evoke a jar without
   a literal jar silhouette.
   ────────────────────────────────────────────────────────────────────── */
.hij-jar-glass {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 10px 10px 14px 14px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 18px rgba(45, 74, 62, 0.10), 0 1px 3px rgba(45, 74, 62, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--hij-cream);
}

.hij-jar-glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(45, 74, 62, 0.16), 0 2px 6px rgba(45, 74, 62, 0.08);
    color: inherit;
}

.hij-jar-glass-lid {
    height: 34px;
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--jar-lid) 100%, white 0%) 0%,
            color-mix(in srgb, var(--jar-lid) 80%, white 0%) 60%,
            color-mix(in srgb, var(--jar-lid) 65%, black 0%) 100%);
    position: relative;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

/* Subtle horizontal highlight across the lid */
.hij-jar-glass-lid::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 6px;
    height: 3px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    filter: blur(1px);
}

/* The lid rim — slight darker step where lid meets jar body */
.hij-jar-glass-lid-rim {
    position: absolute;
    bottom: -5px;
    left: 4%;
    right: 4%;
    height: 6px;
    background: color-mix(in srgb, var(--jar-lid) 55%, black 0%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.hij-jar-glass-body {
    position: relative;
    flex: 1;
    padding: 1.75rem 1.5rem 1.5rem;
    background:
        /* highlight stripe on left side, like sun on glass */
        linear-gradient(105deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0) 22%,
            rgba(255, 255, 255, 0) 78%,
            rgba(0, 0, 0, 0.04) 100%),
        /* glass tint — vertical gradient: lighter top, deeper bottom */
        linear-gradient(180deg,
            color-mix(in srgb, var(--jar-tint) 70%, white) 0%,
            var(--jar-tint) 100%);
    display: flex;
    flex-direction: column;
}

/* "Label" — a paper-feeling rectangle for the wordmark */
.hij-jar-glass-label {
    background: var(--hij-cream);
    border: 1px solid color-mix(in srgb, var(--jar-lid) 30%, transparent);
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 1px 2px rgba(45, 74, 62, 0.08);
    text-align: center;
}

.hij-jar-glass-wordmark {
    font-family: var(--hij-font-serif);
    font-weight: 700;
    color: var(--hij-green);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hij-jar-glass-description {
    color: var(--hij-text);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.hij-jar-glass-cta {
    color: var(--hij-green);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    display: block;
}

.hij-jar-glass:hover .hij-jar-glass-cta {
    color: var(--hij-green-dark);
}

/* SVG jar illustration card (v1) — kept for reference */
.hij-jar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    height: 100%;
}

.hij-jar-link:hover {
    transform: translateY(-4px);
    color: inherit;
}

.hij-jar-link:hover .hij-jar-svg {
    filter: drop-shadow(0 8px 18px rgba(45, 74, 62, 0.18));
}

.hij-jar-svg {
    width: 100%;
    max-width: 240px;
    height: auto;
    filter: drop-shadow(0 3px 10px rgba(45, 74, 62, 0.08));
    transition: filter 0.2s ease;
}

.hij-jar-svg-caption {
    text-align: center;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.hij-jar-svg-caption .hij-jar-description {
    font-size: 0.95rem;
    color: var(--hij-text);
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.hij-jar-svg-caption .hij-jar-cta {
    color: var(--hij-green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* The "shelf" plank under all the jars */
.hij-shelf-plank {
    margin-top: -1rem;
    height: 14px;
    background: linear-gradient(180deg, #C8AE85 0%, #A88B5E 60%, #8C724B 100%);
    border-radius: 2px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
    position: relative;
}

.hij-shelf-plank::after {
    /* underside shadow band */
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
}

/* Tier 2 jar — smaller, sage-tinted, no shelf */
.hij-jar-svg-small {
    max-width: 160px;
}

/* Footer */
.hij-footer {
    background: var(--hij-green);
    color: var(--hij-cream);
    padding: 2rem 0;
    margin-top: 4rem;
}

.hij-footer a {
    color: var(--hij-cream);
    text-decoration: underline;
}

.hij-footer .hij-est {
    font-size: 0.85rem;
    color: var(--hij-cream-dark);
    margin-top: 0.5rem;
}

/* ── Playground shelf (chips + random-jar lever) ────────────────────── */
.hij-hero-wip {
    color: var(--hij-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1.25rem;
}
.hij-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
}
.hij-chip {
    border: 1.5px solid var(--hij-green);
    background: transparent;
    color: var(--hij-green);
    border-radius: 999px;
    padding: 0.35rem 1.1rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.hij-chip:hover { transform: translateY(-1px); }
.hij-chip.is-active,
.hij-chip:active {
    background: var(--hij-green);
    color: var(--hij-cream);
}
.hij-chip-lever { border-style: dashed; margin-left: auto; }
.hij-jar-cell.is-hidden { display: none; }

/* Landing page intro sentences ("This jar exists because…") */
.hij-jar-why {
    color: var(--hij-muted);
    font-style: italic;
    font-size: 1.0rem;
    max-width: 720px;
    margin: 0.25rem 0 1rem;
}

/* ── Playground polish (design pass 1) ──────────────────────────────── */
html { scroll-behavior: smooth; }
#the-shelf { scroll-margin-top: 96px; }

@keyframes hij-jar-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
.hij-jar-cell:not(.is-hidden) { animation: hij-jar-in 0.28s ease both; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hij-jar-cell:not(.is-hidden) { animation: none; }
}
