/* ═══════════════════════════════════════════
   JUNKATOUILLE ~8> — Pantry Intelligence System
   Hub-harmonized: Tailwind Amber × Sky — v0.5.0
   (was bespoke Orange #ff8c42 + Blue #4a9eff in v0.4.0;
   now amber-500 + sky-500 matching russelldangerr.com)
   ═══════════════════════════════════════════ */

:root {
    /* ── Arcade/Toy — warm paper, blue workhorse, orange spice ── */
    --bg-primary:    #fbf8f1;   /* paper */
    --bg-secondary:  #fffdf8;
    --bg-surface:    #fffdf8;
    --bg-card:       #fffdf8;
    --bg-card-hover: #f3eee3;
    --bg-input:      #fffdf8;

    --text-primary:   #1a1714;  /* ink */
    --text-secondary: #56504a;
    --text-muted:     #6f675c;

    --border:        #1a1714;   /* ink — thick arcade outlines */
    --border-light:  #1a1714;
    --border-accent: rgba(35, 69, 140, 0.25);

    --font-body:  'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:  'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    --font-pixel: 'Press Start 2P', monospace;

    --radius:    8px;
    --radius-lg: 12px;

    --spacing-xs:  0.25rem;
    --spacing-sm:  0.5rem;
    --spacing-md:  1rem;
    --spacing-lg:  1.5rem;
    --spacing-xl:  2.25rem;

    --transition:      140ms ease;
    --transition-slow: 200ms ease;

    /* Blue = workhorse. Flipping --accent's VALUE recolors the app's
       ~40 amber usages to blue in one move; *-glow → transparent kills
       every neon halo app-wide. */
    --accent:             #23458c;
    --accent-dim:         #e7edf7;
    --accent-hover:       #3e6fb5;
    --accent-glow:        transparent;
    --accent-glow-strong: transparent;

    --blue:        #23458c;
    --blue-dim:    #e7edf7;
    --blue-bright: #23458c;
    --blue-glow:   transparent;

    /* Semantic status colors — re-tuned to read on paper */
    --red:         #b91c1c;
    --red-dim:     rgba(185, 28, 28, 0.10);
    --green-check: #15803d;

    --purple:      #23458c;
    --purple-glow: transparent;

    /* Orange = rare spice: the rat + the "ready to cook" success state */
    --ok:          #d9622b;
    --ok-deep:     #9a3412;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Top bar ── */
.top-bar {
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--blue) 50%, var(--accent) 100%);
    background-size: 200% 100%;
    animation: barSweep 4s ease-in-out infinite;
    box-shadow: 0 0 12px var(--accent-glow-strong), 0 0 30px var(--accent-glow);
}

@keyframes barSweep {
    0%, 100% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

/* ── Header ── */
header { margin-bottom: var(--spacing-lg); }

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Hub-wide BACK button — shared spec across landing, Junkatouille, Chorenival, ASCII Sim.
   Rectangle, single "BACK" word, amber default → sky on hover.
   .back-link is a legacy alias so cached HTML referencing the old class still renders correctly. */
.btn-back,
.back-link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(5, 5, 5, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 3px;
    padding: 0.55rem 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    transition: color 200ms, border-color 200ms, background 200ms, box-shadow 200ms;
}
.btn-back:hover, .btn-back:focus-visible,
.back-link:hover, .back-link:focus-visible {
    color: #0ea5e9;
    border-color: rgba(14, 165, 233, 0.6);
    background: rgba(14, 165, 233, 0.06);
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.4);
    outline: none;
}

.site-title {
    font-family: var(--font-pixel);
    font-size: 1.8rem;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(245, 158, 11, 0.08);
    letter-spacing: 2px;
    margin-top: var(--spacing-xs);
}

.rat {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.6em;
    opacity: 0.9;
    display: inline-block;
    animation: rat-twitch 3s ease-in-out infinite;
}

@keyframes rat-twitch {
    0%, 90%, 100% { transform: translateX(0); }
    93% { transform: translateX(2px) rotate(2deg); }
    96% { transform: translateX(-1px) rotate(-1deg); }
}

.site-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.header-stats {
    display: flex;
    gap: var(--spacing-lg);
}

.stat { text-align: center; }

.stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* ── Tabs ── */
.tab-navigation {
    display: flex;
    gap: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--spacing-lg);
}

.tab-button {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--blue);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    position: relative;
    transition: color var(--transition);
}

.tab-button:hover { color: var(--blue-bright); }

.tab-button.active {
    color: var(--accent);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Buttons ── */
.btn {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn:hover {
    background: rgba(245, 158, 11, 0.15);
    box-shadow: 0 0 10px var(--accent-glow);
}

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

.btn-secondary:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
    background: rgba(14, 165, 233, 0.08);
    box-shadow: none;
}

.btn-small {
    font-size: 0.7rem;
    padding: var(--spacing-xs) var(--spacing-sm);
}

/* ── Filter select ── */
.filter-select {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--blue);
}

/* ═══════════════════════════════════════════
   PANTRY TAB
   ═══════════════════════════════════════════ */

.pantry-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.pantry-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
    font-family: var(--font-mono);
}

.pantry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.pantry-category {
    flex: 1 1 220px;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    position: relative;
    transition: border-color var(--transition);
}

.pantry-category:hover {
    border-color: var(--border-light);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
}

.category-icon { font-size: 1.1rem; }

.category-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 5px var(--spacing-sm);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
    user-select: none;
}

.ingredient-item:hover {
    background: var(--bg-card-hover);
}

.ingredient-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-light);
    border-radius: 2px;
    background: var(--bg-input);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition);
}

.ingredient-item input[type="checkbox"]:checked {
    background: rgba(57, 255, 20, 0.15);
    border-color: var(--green-check);
}

.ingredient-item input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 12px;
    color: var(--green-check);
    font-weight: bold;
}

.ingredient-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.ingredient-item input:checked ~ .ingredient-label {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   RECIPES TAB
   ═══════════════════════════════════════════ */

.recipe-controls {
    margin-bottom: var(--spacing-lg);
}

.recipe-filters {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-mono);
}

.toggle-label input[type="checkbox"] {
    accent-color: var(--accent);
}

.recipe-section {
    margin-bottom: var(--spacing-xl);
}

.recipe-section-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
}

.ready-title { color: var(--accent); }
.almost-title { color: var(--blue); }

.almost-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
}

.suggestions-title { color: var(--blue); }

.suggestions-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.recipe-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.recipe-card:hover {
    border-color: var(--border-light);
    border-left-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.recipe-card.ready { border-left-color: var(--accent); }
.recipe-card.almost { border-left-color: var(--blue); }

.recipe-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.recipe-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-bright);
}

.recipe-category-badge {
    font-size: 1.1rem;
}

.recipe-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.recipe-ingredients-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ingredient-have { color: var(--green-check); }

.ingredient-missing {
    color: var(--red);
    text-decoration: line-through;
    opacity: 0.7;
}

.missing-count {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 6px;
    background: var(--red-dim);
    color: var(--red);
    border-radius: var(--radius);
    margin-top: var(--spacing-sm);
}

.empty-msg {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: var(--spacing-lg);
    text-align: center;
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════
   GROCERY LIST TAB
   ═══════════════════════════════════════════ */

.grocery-controls {
    margin-bottom: var(--spacing-lg);
}

.grocery-intro {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.grocery-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.grocery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.grocery-category {
    flex: 1 1 220px;
    max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    position: relative;
}

.grocery-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 5px var(--spacing-sm);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition);
    user-select: none;
}

.grocery-item:hover {
    background: var(--bg-card-hover);
}

.grocery-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--border-light);
    border-radius: 2px;
    background: var(--bg-input);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all var(--transition);
}

.grocery-item input[type="checkbox"]:checked {
    background: rgba(57, 255, 20, 0.15);
    border-color: var(--green-check);
}

.grocery-item input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 12px;
    color: var(--green-check);
    font-weight: bold;
}

.grocery-item-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.grocery-item input:checked ~ .grocery-item-label {
    color: var(--green-check);
}

.grocery-empty {
    width: 100%;
    text-align: center;
    padding: var(--spacing-xl);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.grocery-summary {
    margin-top: var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.grocery-summary h3 {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: var(--spacing-md);
}

.grocery-summary ul {
    list-style: none;
    columns: 2;
}

.grocery-summary li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 2px 0;
    font-family: var(--font-mono);
}

.grocery-summary li::before {
    content: '\25B8 ';
    color: var(--accent);
}

/* ═══════════════════════════════════════════
   RECIPE MODAL
   ═══════════════════════════════════════════ */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal[hidden] { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 15px var(--blue-glow);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
}

.modal-close:hover { color: var(--accent); }

.modal-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: var(--spacing-xs);
}

.modal-meta {
    display: flex;
    gap: var(--spacing-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-lg);
}

.modal-section-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.modal-ingredients {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.modal-ingredients li {
    font-size: 0.85rem;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.modal-ingredients li::before {
    content: '\25C6';
    font-size: 0.5rem;
}

.modal-ingredients li.have::before { color: var(--accent); }
.modal-ingredients li.have { color: var(--text-primary); }
.modal-ingredients li.missing::before { color: var(--red); }
.modal-ingredients li.missing { color: var(--text-muted); }

.modal-ingredients li.missing .add-to-grocery {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 1px 6px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.modal-ingredients li.missing .add-to-grocery:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.modal-steps {
    list-style: none;
    counter-reset: step;
}

.modal-steps li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: var(--spacing-sm) 0;
    padding-left: 28px;
    position: relative;
    counter-increment: step;
    border-bottom: 1px solid var(--border);
}

.modal-steps li:last-child { border-bottom: none; }

.modal-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--blue);
    font-weight: 600;
    width: 20px;
    text-align: center;
}

/* ═══════════════════════════════════════════
   CORNER BRACKET DECORATIONS
   ═══════════════════════════════════════════ */

.pantry-category::before,
.recipe-card::before,
.grocery-category::before,
.grocery-summary::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 12px; height: 12px;
    border-top: 2px solid var(--blue);
    border-left: 2px solid var(--blue);
    transition: border-color var(--transition), filter var(--transition);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.pantry-category::after,
.recipe-card::after,
.grocery-category::after,
.grocery-summary::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 12px; height: 12px;
    border-bottom: 2px solid var(--blue);
    border-right: 2px solid var(--blue);
    transition: border-color var(--transition), filter var(--transition);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.pantry-category:hover::before,
.recipe-card:hover::before,
.grocery-category:hover::before,
.pantry-category:hover::after,
.recipe-card:hover::after,
.grocery-category:hover::after {
    border-color: var(--accent);
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--accent-glow));
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
    text-align: center;
}

footer p {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    .container { padding: var(--spacing-md); }
    .site-title { font-size: 1.2rem; }
    .header-row { flex-direction: column; align-items: flex-start; }
    .header-stats { gap: var(--spacing-md); }

    .tab-button {
        font-size: 0.75rem;
        padding: var(--spacing-sm);
    }

    .pantry-category,
    .grocery-category {
        max-width: 100%;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
    }

    .recipe-filters { flex-direction: column; align-items: flex-start; }
    .grocery-summary ul { columns: 1; }
}

/* ═══════════════════════════════════════════
   ARCADE / TOY OVERHAUL — light paper · blue primary · orange spice
   Placed last so it wins on source order. Adds the primitives tokens
   can't express (hard offset shadows, 2px borders, spring) and the
   handful of orange-spice spots; hides the legacy EVA corner brackets.
   ═══════════════════════════════════════════ */

body {
    background-image: radial-gradient(rgba(26, 23, 20, 0.06) 1.5px, transparent 1.6px);
    background-size: 22px 22px;
    background-position: -11px -11px;
}

/* Top bar — static blue rail + orange notch (no sweep/glow) */
.top-bar {
    height: 6px;
    background: var(--blue);
    border-bottom: 2px solid var(--text-primary);
    box-shadow: none;
    animation: none;
    position: relative;
}
.top-bar::after {
    content: '';
    position: absolute; top: 0; bottom: 0; left: 7%;
    width: 56px; background: var(--ok);
}

/* Orange spice — rat + success state only */
.rat { color: var(--ok); opacity: 1; }
.ready-title { color: var(--ok-deep); }
.recipe-card.ready { border-left-color: var(--ok); }

/* Brand title — readable blue on paper, no glow */
.site-title { color: var(--blue); text-shadow: none; }

/* Chunky tactile buttons */
.btn, .btn-back, .back-link {
    border-width: 2px;
    border-color: var(--text-primary);
    border-radius: 8px;
    box-shadow: 3px 3px 0 var(--text-primary);
    transition: transform 150ms cubic-bezier(.34,1.56,.64,1),
                box-shadow 150ms cubic-bezier(.34,1.56,.64,1),
                background 180ms ease, color 180ms ease;
}
/* .btn-back shipped with a near-black rest background — repaint to paper */
.btn-back, .back-link { background: var(--bg-card); color: var(--accent); }
.btn:hover, .btn-back:hover, .btn-back:focus-visible,
.back-link:hover, .back-link:focus-visible {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--text-primary);
    background: var(--blue); color: #fff; border-color: var(--text-primary);
}
.btn:active, .btn-back:active, .back-link:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--text-primary);
}
.btn-secondary { color: var(--text-secondary); }
.btn-secondary:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* Chunky panels — hard offset shadow replaces the glow + brackets */
.pantry-category, .recipe-card, .grocery-category, .grocery-summary {
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    box-shadow: 5px 5px 0 var(--text-primary);
    transition: transform 150ms cubic-bezier(.34,1.56,.64,1),
                box-shadow 150ms cubic-bezier(.34,1.56,.64,1);
}
.pantry-category:hover, .recipe-card:hover, .grocery-category:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--text-primary);
    background: var(--bg-card);
}
.recipe-card { border-left-width: 6px; }

/* Retire the legacy EVA corner brackets — the border+shadow is the new language */
.pantry-category::before, .pantry-category::after,
.recipe-card::before, .recipe-card::after,
.grocery-category::before, .grocery-category::after,
.grocery-summary::before, .grocery-summary::after { display: none; }

/* Modal — chunky */
.modal-content {
    border: 2px solid var(--text-primary);
    border-radius: 12px;
    box-shadow: 8px 8px 0 var(--text-primary);
}
.modal-backdrop { background: rgba(26, 23, 20, 0.45); }

/* Tabs — muted ink inactive, blue active, orange underline */
.tab-navigation { border-bottom: 2px solid var(--text-primary); }
.tab-button { color: var(--text-secondary); font-weight: 600; }
.tab-button:hover { color: var(--text-primary); }
.tab-button.active { color: var(--blue); }
.tab-button.active::after { background: var(--ok); height: 4px; box-shadow: none; }

/* Checkboxes — readable green tick on paper */
.ingredient-item input[type="checkbox"]:checked,
.grocery-item input[type="checkbox"]:checked {
    background: rgba(21, 128, 61, 0.14);
    border-color: var(--green-check);
}

/* Focus — orange ring */
:focus-visible { outline: 3px solid var(--ok); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .top-bar { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
