/* Butterforge — warm dark theme for Forgejo.
 * Layers on top of the built-in forgejo-dark theme: everything not
 * overridden here (syntax highlighting, diff colors, etc.) inherits
 * from it. Palette: dark toast surfaces, butter-amber primary. */

@import url("theme-forgejo-dark.css");

:root {
	color-scheme: dark;

	/* primary: butter amber */
	--color-primary: #f4c84f;
	--color-primary-contrast: #1e1503;
	--color-primary-dark-1: #e8b737;
	--color-primary-dark-2: #d4a326;
	--color-primary-dark-3: #b98e21;
	--color-primary-dark-4: #9e791c;
	--color-primary-dark-5: #826417;
	--color-primary-dark-6: #674f12;
	--color-primary-dark-7: #4c3a0d;
	--color-primary-light-1: #f6d06b;
	--color-primary-light-2: #f8d986;
	--color-primary-light-3: #fae1a0;
	--color-primary-light-4: #fbe9bb;
	--color-primary-light-5: #fdf1d5;
	--color-primary-light-6: #fef8ea;
	--color-primary-light-7: #fffcf5;
	--color-primary-alpha-10: rgba(244, 200, 79, 0.1);
	--color-primary-alpha-20: rgba(244, 200, 79, 0.2);
	--color-primary-alpha-30: rgba(244, 200, 79, 0.3);
	--color-primary-alpha-40: rgba(244, 200, 79, 0.4);
	--color-primary-alpha-50: rgba(244, 200, 79, 0.5);
	--color-primary-alpha-60: rgba(244, 200, 79, 0.6);
	--color-primary-alpha-70: rgba(244, 200, 79, 0.7);
	--color-primary-alpha-80: rgba(244, 200, 79, 0.8);
	--color-primary-alpha-90: rgba(244, 200, 79, 0.9);

	/* surfaces: warm charcoal instead of blue-gray */
	--color-body: #171210;
	--color-box-body: #1c1611;
	--color-box-body-highlight: #241c15;
	--color-box-header: #211a13;
	--color-card: #1c1611;
	--color-navbar: #1f1813;
	--color-navbar-transparent: rgba(31, 24, 19, 0);
	--color-header-bar: #1f1813;
	/* Forgejo 16 paints the navbar with these two, not --color-navbar */
	--color-nav-bg: #1f1813;
	--color-nav-hover-bg: #2a2016;
	--color-footer: #1f1813;
	--color-menu: #1f1813;
	--color-list: #1c1611;
	--color-input-background: #211a13;
	--color-input-border: #3f3424;
	--color-input-border-hover: #57482f;
	--color-light: rgba(244, 200, 79, 0.05);
	--color-light-border: #382d1f;
	--color-hover: rgba(244, 200, 79, 0.06);
	--color-hover-opaque: #241c15;
	--color-active: rgba(244, 200, 79, 0.1);
	--color-active-line: #f4c84f;
	--color-secondary: #382d1f;
	--color-secondary-bg: #241c15;
	--color-secondary-alpha-10: rgba(56, 45, 31, 0.1);
	--color-secondary-alpha-20: rgba(56, 45, 31, 0.2);
	--color-secondary-alpha-30: rgba(56, 45, 31, 0.3);
	--color-secondary-alpha-40: rgba(56, 45, 31, 0.4);
	--color-secondary-button: #382d1f;
	--color-shadow: rgba(0, 0, 0, 0.6);

	/* text: warm off-whites */
	--color-text: #efe6d5;
	--color-text-dark: #f7f0e3;
	--color-text-light: #cfc3ab;
	--color-text-light-1: #b8ab90;
	--color-text-light-2: #a3937a;
	--color-text-light-3: #8d7e66;

	/* accents */
	--color-accent: rgba(244, 200, 79, 0.3);
	--color-label-bg: #382d1f;
	--color-label-text: #efe6d5;

	/* Tier 1: high-traffic vars the base theme still leaves cold (steel).
	 * Forgejo 16 consumes these directly; without overrides they render blue-gray. */
	--color-input-text: #efe6d5;
	--color-label-hover-bg: #45371f;
	--color-button: #241c15;
	--color-code-bg: #211a13;
	--color-timeline: #382d1f;
	--color-grey: #a3937a;
	--color-markup-code-block: #1c1611;
	--color-markup-code-inline: #241c15;

	/* Tier 2: warm the full secondary ramp (button borders, segment hovers,
	 * dropdowns). Base leaves secondary-dark-1..13 / -light-1..4 on steel;
	 * this ladder reuses the butterforge text ramp at the light end. */
	--color-secondary-dark-1: #3d3120;
	--color-secondary-dark-2: #4a3c26;
	--color-secondary-dark-3: #57482f;
	--color-secondary-dark-4: #66552f;
	--color-secondary-dark-5: #776532;
	--color-secondary-dark-6: #8d7e66;
	--color-secondary-dark-7: #a3937a;
	--color-secondary-dark-8: #b8ab90;
	--color-secondary-dark-9: #cfc3ab;
	--color-secondary-dark-10: #efe6d5;
	--color-secondary-dark-11: #efe6d5;
	--color-secondary-dark-12: #efe6d5;
	--color-secondary-dark-13: #efe6d5;
	--color-secondary-light-1: #2a2118;
	--color-secondary-light-2: #241c15;
	--color-secondary-light-3: #211a13;
	--color-secondary-light-4: #1c1611;
}

