/*
Theme Name: Lawton Food Bank
Theme URI: https://example.com/lfb
Description: Bespoke Genesis child theme for the Lawton Food Bank. Photo bands under bold flat colour overlays, a parallaxed pattern band, impact stat grids, icon landing grids and an image-left blog. Copy is transcribed from the client site plan and lives in partials/; the client edits the 17 shared Theme Options. Forked from "starter".
Author: Agency
Author URI: https://example.com
Template: genesis
Version: 1.2.1
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lfb
Tags: business, one-column, custom-menu, featured-images, theme-options
*/

/* Self-hosted webfonts (latin, variable). Preloaded in functions.php. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-var.woff2') format('woff2');
}

/* ==========================================================================
   HOW THIS THEME IS ORGANISED

   You edit:
     partials/*.php            the markup for each part of the page
     assets/css/lfb.css    the design
     assets/js/main.js         behaviour
     section 1 of this file    the design tokens

   You generally don't edit:
     functions.php             plumbing — Theme Options, Genesis wiring, CPT
     section 2 of this file    the Genesis wrapper reset

   Anything tagged [genesis-fix:*] is a workaround for a known Genesis bug.
   See wp-themes/README.md before changing one.
   ========================================================================== */

/* ==========================================================================
   1. Design tokens
   The single source of truth for the palette and type stack. EDIT THESE.

   Appearance > Theme Options overrides --color-primary / --color-secondary /
   --color-text / --color-accent with an inline block printed in wp_head, so
   the values here are the defaults a fresh install starts from.

   Add tokens beyond the shared four wherever the design genuinely needs them
   (mfin3 keeps --color-dark and --color-white, for instance). The shared four
   are a floor, not a ceiling.
   ========================================================================== */

:root {
  /* --- The client's palette, from LFB-Brand-guide.jpg (2026-09-28) ------
     Primary: deep teal #184B4A, golden yellow #E2B342, tomato #D96A50.
     Secondary: fresh green #6F9D73, soft sky #A7C9C5, warm white #F8F3EA.
     The token NAMES are kept from the first palette (navy, orange, gold,
     mint...) so no component selector had to change; each now paints the
     nearest brand swatch. The four shared keys below are wired to
     Appearance > Theme Options; the named tokens are what the CSS uses. */

  --color-primary: #184B4A;   /* deep teal — the dark anchor */
  --color-secondary: #E2B342; /* golden yellow — primary CTA */
  --color-text: #1A2B30;
  --color-accent: #6F9D73;    /* fresh green */

  --color-green: #6F9D73;       /* fresh green */
  --color-green-tint: #BED3C0;
  --color-orange: #D96A50;      /* tomato */
  --color-orange-tint: #EEBCB0;

  /* --- Text-safe shades of the same hues ---------------------------------
     Tomato and fresh green are too light to carry small text, or to sit
     behind white text, at WCAG 2.1 AA:

       #D96A50 on white            3.43:1   (needs 4.5)
       #6F9D73 on white            3.11:1   (needs 4.5)

     These are the same hue walked down in lightness until they pass. The
     brand hexes above are still what every non-text use paints with. */
  --color-orange-text: #A83C25;   /* small text on white / warm white / mint tint: 4.9+ */
  --color-orange-deep: #B8432A;   /* ground under white text:          5.0+ */
  --color-green-text: #517754;    /* small text on warm white:         4.6+ */
  --color-green-deep: #567E59;    /* ground under white text:          4.6  */
  --color-green-bright: #527855;  /* support band ground, white:       5.0  */

  /* Buttons paint golden yellow with deep-teal ink — the logo's own
     pairing. #184B4A on #E2B342 is 5.02:1. White on the yellow fails
     (1.95:1); never use it. */
  --color-button: var(--color-gold);
  --color-button-ink: var(--color-navy);
  /* "navy" is deep teal. White on it is 9.79:1. */
  --color-navy: #184B4A;
  --color-navy-ink: #133C3B;     /* a step darker, for deep washes only */
  --color-navy-tint: #97AEAE;
  --color-mint: #A7C9C5;         /* soft sky */
  --color-mint-tint: #D7E7E5;
  --color-gold: #E2B342;         /* golden yellow */
  --color-gold-tint: #F2DDAA;
  --color-sage: #A7C9C5;         /* soft sky */
  --color-sage-tint: #E5EFEE;

  /* Interior banner colour casts (2026-09-28). Purple and blue are not in
     the brand guide; the client asked for them by name for the rotation.
     White on each clears 6.7:1. */
  --color-purple: #5E4B8B;
  --color-blue: #2B5F8A;

  --color-paper: #F8F3EA;     /* warm white */
  --color-bg: #FFFFFF;
  --color-bg-alt: var(--color-paper);
  --color-dark: #12262B;
  --color-white: #FFFFFF;
  --color-rule: #D8D6CF;

  /* --- Type ---------------------------------------------------------------
     The site plan is silent on typefaces. Archivo is the closest Google Font
     to the logo's heavy condensed grotesque; Inter carries the body. Both are
     enqueued in functions.php, subset to the weights actually used below.
     Recorded under "Assumptions" in the site's CLAUDE.md. */
  --font-heading: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* The header is position: fixed (see section 3 of lfb.css), so these are
     real heights, not minimums: the page is padded by --header-height and
     the compact state never reflows the document. */
  --pre-nav-height: 44px;
  --nav-height: 132px;
  --nav-height-compact: 78px;
  --header-height: calc(var(--pre-nav-height) + var(--nav-height));
  --gutter: 24px;

  --container-max: 1240px;
  --container-wide: 1480px;

  /* The plan's "bold overlay" over photography. One value, so every band that
     uses it stays consistent. */
  --overlay-strength: 0.82;

  /* Motion. One easing and one distance, so entrances and scroll reveals
     read as one system. Everything under these is switched off by
     prefers-reduced-motion in section 19 of lfb.css. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-distance: 28px;
  --reveal-duration: 800ms;
  --radius: 4px;
  --shadow-card: 0 2px 4px rgba(18, 38, 43, .06), 0 12px 28px rgba(18, 38, 43, .08);
}

/* ==========================================================================
   2. Genesis wrapper reset

   Genesis nests every page inside .site-container > .site-inner >
   .content-sidebar-wrap > main.content > article.entry > .entry-content.
   Full-bleed section wrappers have to run edge to edge, so every one of those
   Genesis wrappers is zeroed out here.

   This is the single most common cause of a mystery top/bottom margin on a
   Genesis child theme — DO NOT DELETE THIS BLOCK.
   ========================================================================== */

.site-container,
.site-inner,
.content-sidebar-wrap,
main.content,
.content,
.entry,
.entry-content {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
  background: none;
  border: 0;
}

.site-container::before,
.site-container::after,
.site-inner::before,
.site-inner::after,
.content-sidebar-wrap::before,
.content-sidebar-wrap::after,
.content::before,
.content::after,
.entry::before,
.entry::after {
  content: none;
}

/* Genesis prints a skip-links list at the top of the document. Keep it
   keyboard-reachable but out of the layout. */
.genesis-skip-link {
  margin: 0;
  padding: 0;
  list-style: none;
}

.genesis-skip-link li {
  height: 0;
  width: 0;
  list-style: none;
}

.genesis-skip-link a {
  position: absolute;
  left: -9999px;
  display: block;
  padding: 15px 23px 14px;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 14px;
  z-index: 1000;
}

.genesis-skip-link a:focus {
  left: 0;
  top: 0;
  outline: 2px solid var(--color-primary);
}

/* The rest of the design lives in assets/css/lfb.css. */
