/* blue-ish theme palette */
:root {
	--color-primary: #2563eb;
	--color-primary-contrast: #ffffff;
	--color-primary-dark-1: #2563eb;
	--color-primary-dark-2: #1d4ed8;
	--color-primary-dark-3: #1d4ed8;
	--color-primary-dark-4: #1e40af;
	--color-primary-dark-5: #1e3a8a;
	--color-primary-dark-6: #172554;
	--color-primary-dark-7: #0b1220;
	--color-primary-light-1: #3b82f6;
	--color-primary-light-2: #60a5fa;
	--color-primary-light-3: #93c5fd;
	--color-primary-light-4: #bfdbfe;
	--color-primary-light-5: #dbeafe;
	--color-primary-light-6: #eff6ff;
	--color-primary-light-7: #f8fbff;
	--color-primary-hover: #1d4ed8;
	--color-primary-active: #1e40af;
	--color-primary-alpha-10: #2563eb1a;
	--color-primary-alpha-20: #2563eb33;
	--color-primary-alpha-30: #2563eb4d;
	--color-primary-alpha-40: #2563eb66;
	--color-primary-alpha-50: #2563eb80;
	--color-primary-alpha-60: #2563eb99;
	--color-primary-alpha-70: #2563ebb3;
	--color-primary-alpha-80: #2563ebcc;
	--color-primary-alpha-90: #2563ebe6;
	--color-body: #f4f8ff;
	--color-box-body: #f8fbff;
	--color-box-body-highlight: #e8f1ff;
	--color-nav-bg: #e6efff;
	--color-footer: #e6efff;
	--color-secondary: #c9d9f2;
	--color-secondary-bg: #eef4ff;
	--color-secondary-nav-bg: var(--color-body);
	--color-menu: #f2f7ff;
	--color-card: #f8fbff;
	--color-active: #dbe7fa;
	--color-hover: #dbe7fa99;
	--color-input-background: #ffffff;
	--color-input-border: #c9d9f2;
	--color-input-border-hover: #93b4e6;
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="forgejo-light"]):not([data-theme="gitea-light"]) {
		--color-primary: #60a5fa;
		--color-primary-contrast: #0b1220;
		--color-primary-dark-1: #93c5fd;
		--color-primary-dark-2: #93c5fd;
		--color-primary-dark-3: #bfdbfe;
		--color-primary-dark-4: #bfdbfe;
		--color-primary-dark-5: #dbeafe;
		--color-primary-dark-6: #eff6ff;
		--color-primary-dark-7: #f8fbff;
		--color-primary-light-1: #3b82f6;
		--color-primary-light-2: #2563eb;
		--color-primary-light-3: #1d4ed8;
		--color-primary-light-4: #1e40af;
		--color-primary-light-5: #1e3a8a;
		--color-primary-light-6: #172554;
		--color-primary-light-7: #0b1220;
		--color-primary-hover: #93c5fd;
		--color-primary-active: #bfdbfe;
		--color-primary-alpha-10: #60a5fa1a;
		--color-primary-alpha-20: #60a5fa33;
		--color-primary-alpha-30: #60a5fa4d;
		--color-primary-alpha-40: #60a5fa66;
		--color-primary-alpha-50: #60a5fa80;
		--color-primary-alpha-60: #60a5fa99;
		--color-primary-alpha-70: #60a5fab3;
		--color-primary-alpha-80: #60a5facc;
		--color-primary-alpha-90: #60a5fae6;
		--color-body: #0b1220;
		--color-box-body: #111a2e;
		--color-box-body-highlight: #16233d;
		--color-nav-bg: #0f1a30;
		--color-footer: #0f1a30;
		--color-secondary: #24344f;
		--color-secondary-bg: #0f1a30;
		--color-secondary-nav-bg: var(--color-body);
		--color-menu: #111a2e;
		--color-card: #111a2e;
		--color-active: #1c2c4a;
		--color-hover: #1a294499;
		--color-input-background: #0f1a30;
		--color-input-border: #24344f;
		--color-input-border-hover: #3b5a8a;
	}
}

html[data-theme="forgejo-dark"],
html[data-theme="gitea-dark"] {
	--color-primary: #60a5fa;
	--color-primary-contrast: #0b1220;
	--color-primary-dark-1: #93c5fd;
	--color-primary-dark-2: #93c5fd;
	--color-primary-dark-3: #bfdbfe;
	--color-primary-dark-4: #bfdbfe;
	--color-primary-dark-5: #dbeafe;
	--color-primary-dark-6: #eff6ff;
	--color-primary-dark-7: #f8fbff;
	--color-primary-light-1: #3b82f6;
	--color-primary-light-2: #2563eb;
	--color-primary-light-3: #1d4ed8;
	--color-primary-light-4: #1e40af;
	--color-primary-light-5: #1e3a8a;
	--color-primary-light-6: #172554;
	--color-primary-light-7: #0b1220;
	--color-primary-hover: #93c5fd;
	--color-primary-active: #bfdbfe;
	--color-primary-alpha-10: #60a5fa1a;
	--color-primary-alpha-20: #60a5fa33;
	--color-primary-alpha-30: #60a5fa4d;
	--color-primary-alpha-40: #60a5fa66;
	--color-primary-alpha-50: #60a5fa80;
	--color-primary-alpha-60: #60a5fa99;
	--color-primary-alpha-70: #60a5fab3;
	--color-primary-alpha-80: #60a5facc;
	--color-primary-alpha-90: #60a5fae6;
	--color-body: #0b1220;
	--color-box-body: #111a2e;
	--color-box-body-highlight: #16233d;
	--color-nav-bg: #0f1a30;
	--color-footer: #0f1a30;
	--color-secondary: #24344f;
	--color-secondary-bg: #0f1a30;
	--color-secondary-nav-bg: var(--color-body);
	--color-menu: #111a2e;
	--color-card: #111a2e;
	--color-active: #1c2c4a;
	--color-hover: #1a294499;
	--color-input-background: #0f1a30;
	--color-input-border: #24344f;
	--color-input-border-hover: #3b5a8a;
}

/* adachi's git :3c — background + homepage art */

body {
	background-image: url("/assets/img/wallpaper.webp") !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: cover !important;
	background-attachment: fixed !important;
}

/* Let the banner show through the main surfaces/categories. */
#navbar,
.page-footer {
	background-color: color-mix(in srgb, var(--color-nav-bg, var(--color-body)) 78%, transparent) !important;
	backdrop-filter: blur(4px);
}

.ui.segment,
.ui.card,
.ui.table,
.ui.menu,
.ui.list > .item,
.dashboard .feeds .card,
.repository .header {
	background-color: color-mix(in srgb, var(--color-box-body, var(--color-body)) 82%, transparent) !important;
}

/* goog image on the home / dashboard pages */
img.adachi-goog {
	display: block;
	width: min(420px, 82vw);
	height: auto;
	margin: 24px auto 8px;
	border-radius: 16px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

@media (max-width: 767px) {
	body {
		background-attachment: scroll !important;
	}
}
