/*
Theme Name:   Zebida
Theme URI:    https://zebida.com/
Description:  Blocksy child theme for zebida.com, the personal portfolio of Hesham Zebida. Adds an editorial portfolio front page (hero, intro band, selected work, about, contact), a "Project" post type for the work grid, and a light/dark switch.
Author:       Hesham Zebida
Author URI:   https://zebida.com/
Template:     blocksy
Version:      1.3.0
Requires at least: 6.2
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  zebida
*/

/* Design tokens (shared by the front page sections and the theme switch). */
:root{--zb-paper:#f6f7f4;--zb-ink:#17211f;--zb-muted:#68716e;--zb-line:#dfe4de;--zb-green:#386e5c;--zb-green-light:#d6e9dc;--zb-lime:#b8d7a4;--zb-white:#fff;--zb-display:"Manrope","DM Sans",sans-serif;--zb-body:"DM Sans",sans-serif}
:root[data-theme=dark]{--zb-paper:#151a18;--zb-ink:#edf2ee;--zb-muted:#aab4ad;--zb-line:#36403a;--zb-green:#a3d1b4;--zb-green-light:#26362d;--zb-lime:#d0e2b8;--zb-white:#202723}

/* Light/dark switch. Floating on the front page, or anywhere via the [zebida_theme_toggle] shortcode. */
.zb-theme-toggle{width:39px;height:39px;display:grid;place-items:center;margin-left:17px;padding:0;border:1px solid var(--zb-line);border-radius:50%;background:transparent;color:var(--zb-ink);font:400 20px/1 Arial,sans-serif;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.zb-theme-toggle:hover{background:var(--zb-green-light);color:var(--zb-green);border-color:var(--zb-green)}
.zb-theme-toggle:focus-visible{outline:2px solid var(--zb-green);outline-offset:3px}
@media(max-width:640px){.zb-theme-toggle{width:42px;height:42px;margin-left:8px}}
.zb-theme-toggle--floating{position:fixed;bottom:24px;right:24px;z-index:50;margin:0;background:var(--zb-paper);box-shadow:0 5px 18px #17211f18}
@media(max-width:640px){.zb-theme-toggle--floating{bottom:16px;right:16px}}
.zb-theme-toggle{min-height:0;box-shadow:none;line-height:1}
.zb-theme-toggle--floating{box-shadow:0 5px 18px #17211f18}
.admin-bar .zb-theme-toggle--floating{z-index:99}

/* Switch inside Blocksy's header menu and mobile (off-canvas) menu. */
.zb-menu-toggle{display:flex;align-items:center;margin-inline-start:14px;list-style:none}
.zb-menu-toggle .zb-theme-toggle{width:34px;height:34px;margin:0;font-size:17px}
#offcanvas .zb-menu-toggle{margin:18px 0 0}
#offcanvas .zb-theme-toggle{width:42px;height:42px;color:#fff;border-color:rgba(255,255,255,.3)}
#offcanvas .zb-theme-toggle:hover{background:rgba(255,255,255,.1);color:#fff;border-color:#fff}

/* Dark mode for the rest of the site: remap Blocksy's palette so the header, footer,
   blog and other pages follow the switch. Light mode keeps the palette set in the Customizer. */
:root[data-theme=dark]{
	color-scheme:dark;
	--theme-palette-color-1:#a3d1b4;
	--theme-palette-color-2:#c4e3cf;
	--theme-palette-color-3:#aab4ad;
	--theme-palette-color-4:#edf2ee;
	--theme-palette-color-5:#36403a;
	--theme-palette-color-6:#1c221f;
	--theme-palette-color-7:#151a18;
	--theme-palette-color-8:#171c19;
	--theme-button-text-initial-color:#1c2a21;
	--theme-button-text-hover-color:#1c2a21;
	--theme-selection-text-color:#151a18;
}

/* Icons: moon in light mode, sun in dark mode. */
.zb-theme-toggle svg{display:block;pointer-events:none}
.zb-theme-toggle .zb-icon-sun,:root[data-theme=dark] .zb-theme-toggle .zb-icon-moon{display:none}
:root[data-theme=dark] .zb-theme-toggle .zb-icon-sun{display:block}

/* Icons: moon in light mode, sun in dark mode. */
.zb-theme-toggle svg{display:block;pointer-events:none}
.zb-theme-toggle .zb-icon-sun,:root[data-theme=dark] .zb-theme-toggle .zb-icon-moon{display:none}
:root[data-theme=dark] .zb-theme-toggle .zb-icon-sun{display:block}

/* Brand palette for Blocksy (light mode): green links and active menu items, warm paper background,
   soft green footer. html:root outranks Blocksy's own :root palette; dark mode (above) outranks this. */
html:root{
	--theme-palette-color-1:#386e5c;
	--theme-palette-color-2:#2b5848;
	--theme-palette-color-3:#5e6965;
	--theme-palette-color-4:#17211f;
	--theme-palette-color-5:#dfe4de;
	--theme-palette-color-6:#e8eee7;
	--theme-palette-color-7:#f6f7f4;
	--theme-palette-color-8:#ffffff;
	--theme-font-family:"DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
