/*
 * FXNook Community — design tokens
 * =============================================================================
 *
 * The --fxn-* set is the FXNook brand, copied verbatim from
 * fxnook-marketplace/assets/brand.css so the two sites share one palette.
 * Do not edit those values here; change them there and copy them across.
 *
 * The contrast rules from that file are rules here too:
 *   - green FILLS carry INK text            (8.7:1)
 *   - green TEXT on white uses --fxn-green-deep   (5.5:1)
 *   - the plain brand green is never used for small text on white
 *
 * The --fxnc-* set is what a social product needs and the marketplace has no
 * token for: a density scale, a small type scale, vote-state colours, and the
 * layout widths. Nothing else. A component that needs a value not here should
 * use one that is, not invent one.
 */

:root {
	/* 1. Brand ------------------------------------------------------------ */

	--fxn-green:        #9DCC4C;
	--fxn-green-hover:  #8BBB3B;
	--fxn-green-press:  #7DA933;
	--fxn-green-soft:   #B9DC7E;
	--fxn-green-deep:   #4A7515;
	--fxn-green-deeper: #3A5C10;
	--fxn-green-tint:   #F2F8E6;
	--fxn-green-line:   #D9EBBB;

	--fxn-ink:          #231F20;
	--fxn-ink-2:        #3A3536;
	--fxn-text:         #4A4546;
	--fxn-muted:        #6B6667;
	--fxn-subtle:       #9A9596;
	--fxn-line:         #E7E5E2;
	--fxn-line-strong:  #D5D2CE;
	--fxn-surface:      #F7F7F4;
	--fxn-surface-2:    #EFEEEA;
	--fxn-white:        #FFFFFF;

	--fxn-danger:       #B42318;
	--fxn-danger-tint:  #FDECEA;
	--fxn-warn:         #8A5A00;
	--fxn-warn-tint:    #FFF6E0;
	--fxn-star:         #F5B301;

	--fxn-font:         "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fxn-radius:       12px;
	--fxn-radius-sm:    8px;
	--fxn-radius-btn:   10px;
	--fxn-shadow:       0 1px 2px rgba(35, 31, 32, .06), 0 6px 20px rgba(35, 31, 32, .06);
	--fxn-focus:        0 0 0 3px rgba(157, 204, 76, .55);

	/* 2. Community --------------------------------------------------------- */

	/* Density. A feed lives or dies by this. */
	--fxnc-space-1: 4px;
	--fxnc-space-2: 8px;
	--fxnc-space-3: 12px;
	--fxnc-space-4: 16px;
	--fxnc-space-5: 24px;
	--fxnc-space-6: 32px;
	--fxnc-space-7: 48px;

	/* Type. Five sizes. Nothing on a feed page is larger than xl. */
	--fxnc-text-xs: 12px;
	--fxnc-text-sm: 13px;
	--fxnc-text-md: 15px;
	--fxnc-text-lg: 18px;
	--fxnc-text-xl: 22px;

	--fxnc-leading-tight: 1.3;
	--fxnc-leading:       1.55;

	/*
	 * Social state. The downvote is slate, not red: red already means a
	 * losing trade on this site, and a downvote is disagreement, not loss.
	 */
	--fxnc-upvote:      var(--fxn-green-deep);
	--fxnc-upvote-bg:   var(--fxn-green-tint);
	--fxnc-downvote:    #5B6B7C;
	--fxnc-downvote-bg: #EEF1F4;
	--fxnc-thread-line: var(--fxn-line);
	--fxnc-sponsored:   var(--fxn-warn);

	/* Layout. */
	--fxnc-nav-width:     240px;
	--fxnc-feed-width:    680px;
	--fxnc-sidebar-width: 300px;
	--fxnc-header-height: 56px;
	--fxnc-subnav-height: 44px;
	--fxnc-mobilebar-height: 56px;
	--fxnc-gutter:        var(--fxnc-space-5);

	/* Motion. State changes only; nothing decorative. */
	--fxnc-ease:     cubic-bezier(.2, 0, 0, 1);
	--fxnc-fast:     120ms;
	--fxnc-normal:   200ms;

	/* Avatar fallback tones: brand tints, not a rainbow. */
	--fxnc-tone-a-bg: var(--fxn-green-tint);   --fxnc-tone-a-fg: var(--fxn-green-deep);
	--fxnc-tone-b-bg: #EEF1F4;                 --fxnc-tone-b-fg: #3E4C5A;
	--fxnc-tone-c-bg: var(--fxn-warn-tint);    --fxnc-tone-c-fg: var(--fxn-warn);
	--fxnc-tone-d-bg: var(--fxn-surface-2);    --fxnc-tone-d-fg: var(--fxn-ink-2);
	--fxnc-tone-e-bg: #E9EEF9;                 --fxnc-tone-e-fg: #2F4A8A;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--fxnc-fast:   0ms;
		--fxnc-normal: 0ms;
	}
}
