/* =========================================================================
   Liuify colour tokens. Three colours only. No other colours, tints,
   white, black, grey or transparent variants anywhere.
   Ratio: ~60% Oat, ~30% Forest Green, ~10% Papaya.
   Max one primary (Papaya) button per screen or section.
   ========================================================================= */
:root {
  /* palette */
  --lf-forest: #1E3A2B;   /* brand */
  --lf-oat: #EEE6D6;      /* base */
  --lf-papaya: #FF7A3D;   /* accent */

  /* roles */
  --lf-background: var(--lf-oat);          /* page, cards, inputs */
  --lf-foreground: var(--lf-forest);       /* all text, headings, icons (10:1 on Oat) */
  --lf-border: var(--lf-forest);           /* 1px lines, dividers, card and input edges */
  --lf-inverse-background: var(--lf-forest); /* footer, hero bands, dark sections */
  --lf-inverse-foreground: var(--lf-oat);  /* text on Forest Green */
  --lf-accent: var(--lf-papaya);           /* primary buttons, highlights, badges, icons */
  --lf-on-accent: var(--lf-forest);        /* text and icons on Papaya (4.8:1). Never Oat or white on Papaya. */
  --lf-focus-ring: var(--lf-papaya);
  --lf-focus-width: 2px;
  --lf-border-width: 1px;
}

/* focus: 2px Papaya, everywhere */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: var(--lf-focus-width) solid var(--lf-focus-ring);
  outline-offset: 3px;
}

/* links: Forest Green with underline. Papaya is never a text colour on Oat. */
.lf-link { color: var(--lf-foreground); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lf-link:hover { text-decoration-thickness: 2px; }
.lf-inverse .lf-link, .lf-footer .lf-link { color: var(--lf-inverse-foreground); }

/* surfaces */
.lf-surface { background: var(--lf-background); color: var(--lf-foreground); }
.lf-inverse { background: var(--lf-inverse-background); color: var(--lf-inverse-foreground); }

/* card: Oat with a 1px Forest Green edge */
.lf-card { background: var(--lf-background); color: var(--lf-foreground); border: var(--lf-border-width) solid var(--lf-border); border-radius: 20px; }

/* buttons */
.lf-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out; }
/* primary: Papaya with Forest text; hover adds a 2px Forest edge */
.lf-btn-primary { background: var(--lf-accent); color: var(--lf-on-accent); border: 0; }
.lf-btn-primary:hover { box-shadow: inset 0 0 0 2px var(--lf-forest); }
/* secondary: transparent, Forest edge and text; hover inverts */
.lf-btn-secondary { background: transparent; color: var(--lf-foreground); border: var(--lf-border-width) solid var(--lf-border); }
.lf-btn-secondary:hover { background: var(--lf-inverse-background); color: var(--lf-inverse-foreground); }
/* secondary on a Forest Green section: Oat edge and text */
.lf-inverse .lf-btn-secondary { color: var(--lf-inverse-foreground); border-color: var(--lf-inverse-foreground); }
.lf-inverse .lf-btn-secondary:hover { background: var(--lf-oat); color: var(--lf-forest); }

/* inputs: Oat with a 1px Forest edge, Forest text */
.lf-input { background: var(--lf-background); color: var(--lf-foreground); border: var(--lf-border-width) solid var(--lf-border); border-radius: 999px; height: 52px; padding: 0 22px; font: inherit; font-size: 15px; }
.lf-input::placeholder { color: var(--lf-foreground); opacity: 1; font-weight: 400; }

/* navigation: Oat, Forest text, active link with a Papaya underline */
.lf-nav { background: var(--lf-background); color: var(--lf-foreground); border-bottom: var(--lf-border-width) solid var(--lf-border); }
.lf-nav-link { color: var(--lf-foreground); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid var(--lf-background); }
.lf-nav-link[aria-current="page"], .lf-nav-link.is-active { border-bottom-color: var(--lf-accent); }

/* badge: Papaya with Forest text */
.lf-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--lf-accent); color: var(--lf-on-accent); font-size: 12px; font-weight: 600; }

/* footer: Forest Green with Oat text */
.lf-footer { background: var(--lf-inverse-background); color: var(--lf-inverse-foreground); }
