/*
Theme Name: WebWithWP Pro
Theme URI: https://webwithwordpress.com/
Author: pirajki
Author URI: https://yogiraj.co.in/
Description: A portfolio-grade light theme for Web With WordPress. Live-coding hero that builds a WordPress block in real time, services, process, selected work (Projects post type), writing and contact sections, a refined article layout with copyable code blocks, SEO-plugin breadcrumbs, a full-width template for page builders, and WooCommerce support.
Version: 2.0.0
Requires at least: 6.3
Tested up to: 6.8
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: webwithwp
Tags: blog, portfolio, light, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, e-commerce
*/

/* ================= Tokens ================= */
:root {
	--white: #FFFFFF;
	--mist: #F5F7FA;
	--ink: #12151C;
	--text: #383E4C;
	--slate: #5B6272;
	--line: #E4E7EE;
	--line-2: #CDD2DC;
	--blue: #3858E9;
	--blue-ink: #2440C4;
	--blue-soft: #EEF1FE;
	--blue-tint: #DCE3FD;

	/* syntax */
	--syn-key: #7A3EC8;
	--syn-fn: #3858E9;
	--syn-str: #0B7A52;
	--syn-num: #B5470B;
	--syn-com: #8A90A0;
	--syn-var: #C0336B;

	--f-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
	--f-ui: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-code: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--wrap: 1240px;
	--wrap-mid: 1040px;
	--measure: 700px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	background: var(--white); color: var(--text);
	font-family: var(--f-ui); font-size: 1rem; line-height: 1.6;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.site-content { flex: 1; overflow-x: clip; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: var(--f-ui); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
::selection { background: var(--blue-tint); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; left: 12px; top: 12px; z-index: 1000; padding: 10px 16px; background: var(--white); color: var(--ink); border-radius: 8px; box-shadow: 0 0 0 2px var(--blue); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-mid { width: min(100% - 40px, var(--wrap-mid)); margin-inline: auto; }
.measure { width: min(100% - 40px, var(--measure)); margin-inline: auto; }
.measure-page { width: min(100% - 40px, 820px); margin-inline: auto; }
.end-space { height: 96px; }
.pad-bottom { padding-bottom: 96px; }

/* ================= Buttons & forms ================= */
.btn, button, input[type="submit"], input[type="button"], .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
	background: var(--ink); color: #fff;
	font-family: var(--f-ui); font-size: .95rem; font-weight: 500; line-height: 1.2; letter-spacing: -.005em;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover, button:hover, input[type="submit"]:hover, .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--blue); color: #fff; }
.btn:active, button:active { transform: translateY(1px); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], textarea, select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px;
	background: var(--white); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
textarea { min-height: 140px; resize: vertical; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-submit { padding-inline: 18px; }

/* ================= Header ================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.86);
	-webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.custom-logo { display: block; max-height: 42px; width: auto; }
.site-title { margin: 0; font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; }
.site-title a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--f-code); font-size: .8rem; font-weight: 500; letter-spacing: -.04em; }

.primary-nav { display: flex; align-items: center; gap: 20px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.menu li { position: relative; }
.menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); font-size: .95rem; font-weight: 500; text-decoration: none; transition: background-color .15s, color .15s; }
.menu a:hover { color: var(--ink); background: var(--mist); }
.menu .current-menu-item > a, .menu .current_page_item > a, .menu .current-menu-ancestor > a { color: var(--ink); background: var(--mist); }
.menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub-menu { list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; margin: 0; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 48px -20px rgba(18,21,28,.25); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.sub-menu::before { content: ""; position: absolute; inset: -8px 0 auto; height: 8px; }
.sub-menu .sub-menu { top: -7px; left: 100%; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { border-radius: 8px; padding: 9px 12px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; width: 44px; height: 44px; padding: 0; background: var(--mist); border: 1px solid var(--line); color: var(--ink); }
	.nav-toggle:hover { background: var(--mist); color: var(--ink); }
	.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .2s, background-color .2s; }
	.nav-toggle-bars { position: relative; }
	.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
	.nav-open .nav-toggle-bars { background: transparent; }
	.nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
	.primary-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 20px; background: var(--white); overflow-y: auto; border-top: 1px solid var(--line); }
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .primary-nav { display: flex; }
	.nav-open { overflow: hidden; }
	.menu { flex-direction: column; align-items: stretch; }
	.menu a { padding: 14px 12px; font-size: 1.15rem; border-radius: 10px; }
	.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.menu .menu-item-has-children > a::after { display: none; }
	.header-cta { width: 100%; }
}

/* ================= Showcase: hero ================= */
.sc-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); }
.sc-hero::before {
	content: ""; position: absolute; inset: 0 0 30% 0; z-index: -1;
	background: radial-gradient(60% 70% at 85% 0%, var(--blue-soft), transparent 70%);
}
.sc-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 40px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sc-title {
	margin: 0; max-width: 13ch;
	font-family: var(--f-display); font-weight: 700;
	font-size: clamp(2.8rem, 7.4vw, 6.4rem); line-height: .94; letter-spacing: -.045em;
	font-variation-settings: "opsz" 96;
}
.sc-intro { margin: 0 0 24px; font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--slate); line-height: 1.55; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-avail { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: .9rem; color: var(--text); }
.sc-avail i { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
@media (max-width: 860px) { .sc-hero-top { grid-template-columns: 1fr; align-items: start; } }

/* Live editor */
.studio {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
	box-shadow: 0 1px 0 rgba(18,21,28,.04), 0 40px 80px -48px rgba(24,40,120,.35);
}
.studio-code { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); background: #FCFCFD; }
.studio-tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: var(--mist); overflow-x: auto; scrollbar-width: none; }
.studio-tab { display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-family: var(--f-code); font-size: .8rem; color: var(--slate); border-right: 1px solid var(--line); white-space: nowrap; transition: background-color .2s, color .2s; }
.studio-tab .ext { width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); }
.studio-tab[data-lang="php"] .ext { background: #7A86E8; }
.studio-tab[data-lang="css"] .ext { background: #E86FA6; }
.studio-tab.is-active { background: #FCFCFD; color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); }
.studio-editor { position: relative; flex: 1; min-height: 330px; padding: 20px 0; font-family: var(--f-code); font-size: .86rem; line-height: 1.75; color: var(--ink); overflow: hidden; }
.studio-line { display: grid; grid-template-columns: 48px 1fr; white-space: pre; }
.studio-line .ln { padding-right: 16px; text-align: right; color: #B4B9C5; user-select: none; }
.studio-line.is-new { background: linear-gradient(90deg, var(--blue-soft), transparent 80%); }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tk-key { color: var(--syn-key); } .tk-fn { color: var(--syn-fn); } .tk-str { color: var(--syn-str); }
.tk-num { color: var(--syn-num); } .tk-com { color: var(--syn-com); font-style: italic; } .tk-var { color: var(--syn-var); }
.studio-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--slate); background: var(--mist); }
.studio-status-msg { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.studio-status-msg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.studio.is-done .studio-status-msg::before { background: #16A34A; }
.studio-replay { padding: 6px 12px; font-size: .8rem; background: var(--white); color: var(--ink); border: 1px solid var(--line-2); }
.studio-replay:hover { background: var(--white); color: var(--blue); border-color: var(--blue); }

.studio-view { display: flex; flex-direction: column; min-width: 0; background: var(--mist); }
.studio-urlbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.studio-url { flex: 1; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .8rem; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-url b { color: var(--ink); font-weight: 500; }
.studio-device { font-size: .78rem; color: var(--slate); white-space: nowrap; }
.studio-stage { flex: 1; display: grid; place-items: center; padding: 24px; min-height: 330px; }

/* Preview page inside the stage */
.pv {
	--pv-w: 100%;
	width: var(--pv-w); max-width: 100%; border-radius: 12px; overflow: hidden;
	background: var(--white); border: 1px solid var(--line);
	box-shadow: 0 18px 40px -28px rgba(18,21,28,.4);
	transition: width .7s var(--ease), border-radius .7s var(--ease);
}
.pv-nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pv-logo { width: 72px; height: 10px; border-radius: 4px; background: var(--ink); }
.pv-links { display: flex; gap: 8px; } .pv-links i { width: 28px; height: 6px; border-radius: 3px; background: var(--line-2); }
.pv-block { margin: 14px; border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 18px; min-height: 170px; position: relative; transition: background-color .6s var(--ease), padding .6s var(--ease), border-color .6s, border-style .6s; }
.pv-block::after { content: attr(data-label); position: absolute; top: -10px; left: 12px; padding: 0 6px; font-family: var(--f-code); font-size: .68rem; color: var(--slate); background: var(--white); transition: opacity .4s; }
.pv-h, .pv-p, .pv-btn { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .5s, border-radius .5s; }
.pv-h { margin: 0 0 8px; font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.pv-p { margin: 0 0 16px; font-size: .82rem; color: var(--slate); line-height: 1.5; max-width: 34ch; }
.pv-btn { display: inline-block; padding: 9px 16px; font-size: .78rem; font-weight: 500; color: #fff; background: var(--slate); border-radius: 4px; }
.pv-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 0 14px 14px; opacity: .55; }
.pv-row i { height: 34px; border-radius: 6px; background: var(--mist); border: 1px solid var(--line); }

.pv[data-step="1"] .pv-block, .pv[data-step="2"] .pv-block, .pv[data-step="3"] .pv-block, .pv[data-step="4"] .pv-block, .pv[data-step="5"] .pv-block { border-color: var(--blue); }
.pv[data-step="2"] .pv-block, .pv[data-step="3"] .pv-block, .pv[data-step="4"] .pv-block, .pv[data-step="5"] .pv-block { background: var(--blue-soft); border-style: solid; border-color: transparent; padding: 26px 22px; }
.pv[data-step="2"] .pv-block::after, .pv[data-step="3"] .pv-block::after, .pv[data-step="4"] .pv-block::after, .pv[data-step="5"] .pv-block::after { opacity: 0; }
.pv[data-step="3"] .pv-h, .pv[data-step="3"] .pv-p, .pv[data-step="4"] .pv-h, .pv[data-step="4"] .pv-p, .pv[data-step="5"] .pv-h, .pv[data-step="5"] .pv-p { opacity: 1; transform: none; }
.pv[data-step="3"] .pv-btn { opacity: 1; transform: none; }
.pv[data-step="4"] .pv-btn, .pv[data-step="5"] .pv-btn { opacity: 1; transform: none; background: var(--blue); border-radius: 999px; }
.pv[data-step="5"] { --pv-w: 230px; border-radius: 22px; }
.pv[data-step="5"] .pv-block { text-align: center; }
.pv[data-step="5"] .pv-p { margin-inline: auto; }
.pv[data-step="5"] .pv-links { display: none; }
.pv[data-step="5"] .pv-row { grid-template-columns: 1fr; }
.pv[data-step="5"] .pv-row i:nth-child(n+2) { display: none; }

@media (max-width: 900px) {
	.studio { grid-template-columns: 1fr; }
	.studio-code { border-right: 0; border-bottom: 1px solid var(--line); }
	.studio-editor { min-height: 0; height: 250px; font-size: .78rem; }
	.studio-stage { min-height: 300px; }
}

/* ================= Showcase: sections ================= */
.sc-section { padding: clamp(72px, 9vw, 128px) 0; }
.sc-section.is-mist { background: var(--mist); }
.sc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sc-h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.04em; max-width: 16ch; }
.sc-lede { margin: 0; color: var(--slate); font-size: 1.08rem; }
@media (max-width: 860px) { .sc-head { grid-template-columns: 1fr; } }

/* Clients */
.sc-clients { padding: 0 0 clamp(56px, 6vw, 88px); }
.sc-clients-label { margin: 0 0 18px; font-size: .9rem; color: var(--slate); }
.sc-clients-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; }
.sc-clients-list li { font-family: var(--f-display); font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -.03em; color: #8E94A3; }

/* Services: editorial rows */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; }
.svc-name { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; letter-spacing: -.03em; display: flex; gap: 16px; align-items: flex-start; }
.svc-icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); margin-top: -4px; }
.svc-icon svg { width: 20px; height: 20px; }
.svc-desc { margin: 0; color: var(--text); font-size: 1.02rem; }
.svc-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; color: var(--text); background: var(--white); }
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; gap: 14px; } }

/* Process: a real sequence */
.proc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.proc li { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.proc li::before { content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 50%; background: var(--white); border: 1px solid var(--line-2); font-family: var(--f-code); font-size: .85rem; color: var(--ink); position: relative; z-index: 1; }
.proc li::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1px; background: var(--line-2); }
.proc li:last-child::after { display: none; }
.proc li:first-child::before { background: var(--ink); color: #fff; border-color: var(--ink); }
.proc h3 { margin: 0 0 8px; font-size: 1.15rem; }
.proc p { margin: 0; color: var(--slate); font-size: .97rem; }
@media (max-width: 860px) {
	.proc { grid-template-columns: 1fr; gap: 0; }
	.proc li { display: grid; grid-template-columns: 52px 1fr; gap: 0 20px; padding: 0 0 32px; }
	.proc li::before { grid-row: span 2; margin: 0; }
	.proc li::after { top: 52px; bottom: 0; left: 26px; right: auto; width: 1px; height: auto; }
}

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 3vw, 40px); }
.work-card { display: block; color: inherit; text-decoration: none; }
.work-card:nth-child(4n+2), .work-card:nth-child(4n+3) { }
.work-frame { border-radius: 16px; border: 1px solid var(--line); background: var(--white); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
a.work-card:hover .work-frame { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(24,40,120,.35); }
.work-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--mist); }
.work-chrome .dots { display: flex; gap: 5px; } .work-chrome .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.work-chrome .url { flex: 1; padding: 4px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .78rem; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.work-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-art { --h: 225; position: relative; height: 100%; padding: 7% 8%; background: hsl(var(--h) 60% 96%); display: grid; grid-template-rows: auto auto 1fr; gap: 6%; }
.work-art .a-nav { display: flex; justify-content: space-between; } .work-art .a-nav i { display: block; height: 8px; border-radius: 4px; background: hsl(var(--h) 30% 30%); width: 22%; } .work-art .a-nav i + i { width: 34%; background: hsl(var(--h) 25% 80%); }
.work-art .a-hero { display: grid; gap: 8px; } .work-art .a-hero b { display: block; height: 18px; width: 70%; border-radius: 5px; background: hsl(var(--h) 40% 18%); } .work-art .a-hero b + b { width: 48%; } .work-art .a-hero span { display: block; width: 26%; height: 22px; margin-top: 6px; border-radius: 999px; background: hsl(var(--h) 75% 52%); }
.work-art .a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; } .work-art .a-grid i { border-radius: 8px; background: #fff; box-shadow: 0 6px 18px -12px hsl(var(--h) 40% 30% / .5); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.work-title { margin: 0; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.025em; }
.work-kind { font-size: .9rem; color: var(--slate); text-align: right; }
.work-sum { margin: 6px 0 0; color: var(--slate); max-width: 52ch; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

/* Writing */
.wr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.wr-item { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.wr-item + .wr-item { padding-left: 28px; border-left: 1px solid var(--line); }
.wr-item .entry-title { margin: 10px 0 12px; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; }
.wr-item .entry-summary { font-size: .95rem; }
@media (max-width: 860px) { .wr-grid { grid-template-columns: 1fr; } .wr-item, .wr-item + .wr-item { padding: 24px 0; border-left: 0; } }

/* Contact block */
.sc-contact { padding: 0 0 clamp(72px, 9vw, 128px); }
.contact-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; padding: clamp(36px, 6vw, 80px); border-radius: 28px; background: var(--blue); color: #fff; }
.contact-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(120deg, transparent 30%, #000); mask-image: linear-gradient(120deg, transparent 30%, #000); }
.contact-card > * { position: relative; }
.contact-card h2 { margin: 0; color: #fff; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: .95; letter-spacing: -.045em; max-width: 12ch; }
.contact-card p { margin: 0 0 24px; color: rgba(255,255,255,.85); font-size: 1.08rem; }
.contact-card .btn { background: #fff; color: var(--ink); }
.contact-card .btn:hover { background: var(--ink); color: #fff; }
.contact-lines { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.contact-lines a, .contact-lines span { color: #fff; text-decoration: none; font-size: 1rem; }
.contact-lines a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; } }

/* ================= Page heads & listings ================= */
.page-head { padding: clamp(48px, 6vw, 88px) 0 32px; }
.page-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.archive-description { max-width: 60ch; margin-top: 14px; color: var(--slate); font-size: 1.08rem; }
.archive-description p:last-child { margin: 0; }
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -.03em; }
.section-link { font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.section-link:hover { color: var(--blue); border-color: var(--blue); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding-bottom: 96px; }
.layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.post-cat { display: inline-block; font-size: .85rem; font-weight: 500; color: var(--blue); text-decoration: none; }
.post-cat:hover { text-decoration: underline; }
.entry-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.entry-title a:hover { color: var(--ink); background-size: 100% 1px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .88rem; color: var(--slate); }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--blue); }
.entry-summary { color: var(--slate); margin-bottom: 14px; }
.entry-summary p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.post-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 8px 0 44px; border-bottom: 1px solid var(--line); }
.post-featured:not(.has-post-thumbnail) { grid-template-columns: 1fr; }
.post-featured .post-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.post-featured .entry-title { margin: .3em 0 .45em; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.post-row:not(.has-post-thumbnail) { grid-template-columns: 1fr; }
.post-row .entry-title { margin: .3em 0 .4em; font-size: 1.32rem; line-height: 1.3; letter-spacing: -.02em; }
.post-row .post-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
@media (max-width: 720px) { .post-featured { grid-template-columns: 1fr; gap: 20px; } .post-row { grid-template-columns: 1fr; gap: 16px; } .post-row .post-thumb { order: -1; } }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--text); font-weight: 500; text-decoration: none; }
a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-numbers.dots { border-color: transparent; }

/* Sidebar */
.widget-area .widget { margin-bottom: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.widget-area .widget:last-child { border-bottom: 0; }
.widget-title, .widget h2, .widget .wp-block-heading { margin: 0 0 14px; font-size: 1rem; letter-spacing: -.01em; }
.widget ul, .widget ol { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; }
.widget li a { color: var(--text); text-decoration: none; }
.widget li a:hover { color: var(--blue); }
.widget .post-date, .widget .wp-block-latest-posts__post-date { display: block; font-size: .84rem; color: var(--slate); }
.tagcloud a, .wp-block-tag-cloud a, .tag-links a { display: inline-block; margin: 0 6px 8px 0; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font-size: .85rem !important; text-decoration: none; }
.tagcloud a:hover, .wp-block-tag-cloud a:hover, .tag-links a:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 960px) { .widget-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; } }

/* ================= Single ================= */
.single-article { padding-top: clamp(40px, 5vw, 72px); }
.breadcrumbs { margin-bottom: 24px; font-size: .88rem; color: var(--slate); }
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.entry-header .entry-title { margin: .3em 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.04em; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.byline img { width: 42px; height: 42px; border-radius: 50%; display: block; }
.byline-name { display: block; font-weight: 600; color: var(--ink); line-height: 1.3; }
.byline-name a { color: inherit; text-decoration: none; }
.byline-sub { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .88rem; color: var(--slate); }
.entry-hero { width: min(100% - 40px, var(--wrap-mid)); margin: 40px auto 0; }
.entry-hero img { display: block; width: 100%; border-radius: 18px; }
.entry-hero.is-flush { margin-top: 0; margin-bottom: 8px; }

.entry-content { padding: 36px 0 8px; font-size: 1.12rem; line-height: 1.78; color: var(--text); }
.entry-content > * { margin-top: 0; margin-bottom: 1.35em; }
.entry-content h2 { margin-top: 2em; font-family: var(--f-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.1; }
.entry-content h3 { margin-top: 1.7em; font-size: 1.35rem; }
.entry-content h4 { margin-top: 1.5em; font-size: 1.12rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--blue); }
.entry-content img { border-radius: 12px; }
.entry-content figcaption, .wp-element-caption { margin-top: 10px; font-size: .88rem; color: var(--slate); text-align: center; }
.entry-content blockquote, .wp-block-quote { margin-left: 0; margin-right: 0; padding: .2em 0 .2em 1.3em; border-left: 3px solid var(--blue); color: var(--ink); font-size: 1.15em; }
.wp-block-quote cite { display: block; margin-top: 8px; font-size: .9rem; font-style: normal; color: var(--slate); }
.wp-block-pullquote { padding: 2em 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }

.entry-content code, .comment-content code { padding: .14em .4em; font-family: var(--f-code); font-size: .84em; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); overflow-wrap: anywhere; }
.entry-content pre, .wp-block-code { margin: 0; padding: 22px 24px; font-family: var(--f-code); font-size: .86rem; line-height: 1.7; background: #FCFCFD; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); overflow-x: auto; white-space: pre; tab-size: 4; }
.entry-content pre code { padding: 0; background: none; border: 0; font-size: inherit; overflow-wrap: normal; }
.entry-content > pre { margin-bottom: 1.35em; }
.code-wrap { position: relative; }
.code-copy { position: absolute; top: 10px; right: 10px; padding: 5px 12px; background: var(--white); border: 1px solid var(--line-2); color: var(--slate); font-size: .78rem; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; }
.code-copy:hover { background: var(--white); color: var(--blue); border-color: var(--blue); }
.code-wrap:hover .code-copy, .code-copy:focus-visible, .code-copy.is-done { opacity: 1; }
@media (hover: none) { .code-copy { opacity: 1; } }

.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td, .entry-content .wp-block-table th, .entry-content .wp-block-table td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--mist); color: var(--ink); font-weight: 600; }
.entry-content .wp-block-table thead { border-bottom: 1px solid var(--line); }

.entry-content .alignwide { width: min(100vw - 40px, var(--wrap-mid)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull img { border-radius: 0; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.entry-content::after { content: ""; display: table; clear: both; }
.page-links { font-size: .95rem; }

.entry-content.is-page { font-size: 1.06rem; line-height: 1.72; }
.entry-content.is-full { width: 100%; padding: 0; font-size: 1rem; line-height: 1.6; }
.entry-content.is-full > * { margin-bottom: 0; }
.entry-content.is-full > *:not(.alignfull):not(.alignwide):not([class*="elementor"]):not(rs-module-wrap):not(.rs-p-wp-fix) { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.entry-content.is-full > p, .entry-content.is-full > h2, .entry-content.is-full > h3, .entry-content.is-full > ul { margin-bottom: 1.2em; }
.entry-content.is-full > :first-child:not([class*="elementor"]) { margin-top: 48px; }

.entry-footer { padding-bottom: 8px; }
.tag-links { margin: 12px 0 32px; font-size: .9rem; }
.author-box { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 28px; background: var(--mist); border-radius: 18px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; display: block; }
.author-box-name { margin: 0 0 4px; font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--slate); font-size: .95rem; }

.post-navigation { margin-top: 48px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .2s; }
.post-navigation a:hover { border-color: var(--ink); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-label { display: block; margin-bottom: 4px; font-size: .84rem; color: var(--slate); }
.nav-title { display: block; color: var(--ink); font-weight: 600; line-height: 1.35; }
@media (max-width: 600px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }

.related { margin-top: 80px; padding-top: 44px; border-top: 1px solid var(--line); }
.related .section-title { margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.related-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.related-item .entry-title { margin: .3em 0 .4em; font-size: 1.1rem; line-height: 1.35; }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }

/* Comments */
.comments-area { margin-top: 64px; padding-bottom: 96px; }
.comments-title, .comment-reply-title { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.03em; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(16px, 4vw, 40px); }
.comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; font-size: .9rem; color: var(--slate); }
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--slate); text-decoration: none; }
.reply a { font-size: .9rem; font-weight: 500; text-decoration: none; }
.comment-respond { margin-top: 32px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.comment-form p { margin: 0 0 16px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; color: var(--slate); }

/* Empty states */
.empty-state { padding: clamp(56px, 8vw, 112px) 0; }
.empty-state .page-title { margin-bottom: 14px; }
.empty-state p { color: var(--slate); font-size: 1.08rem; max-width: 52ch; }
.empty-state .search-form { max-width: 480px; margin: 24px 0 48px; }
.error-code { display: block; margin-bottom: 8px; font-family: var(--f-display); font-size: clamp(5rem, 16vw, 11rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: var(--blue-tint); }

/* ================= Footer ================= */
.site-footer { margin-top: auto; padding-top: 72px; background: var(--mist); border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-col h2, .footer-col .widget-title { margin: 0 0 16px; font-size: .95rem; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 10px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--blue); }
.footer-about p { max-width: 34ch; margin-top: 16px; color: var(--slate); }
.footer-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 3px; color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--slate); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.footer-bottom a { color: var(--slate); text-decoration: none; }
.footer-bottom a:hover { color: var(--blue); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ================= WooCommerce ================= */
.woocommerce-page .site-main { padding: clamp(32px, 4vw, 56px) 0 96px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ink); font-size: 1.02rem; }
.woocommerce ul.products li.product a img { border-radius: 12px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-weight: 600; }
.woocommerce span.onsale { background: var(--blue); min-height: 0; min-width: 0; padding: 4px 10px; line-height: 1.4; border-radius: 999px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--blue); background: var(--mist); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--blue); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order { background: var(--blue); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--blue-ink); }
.woocommerce table.shop_table { border-color: var(--line); border-radius: 12px; }
.svc-link { color: inherit; text-decoration: none; } .svc-link:hover { color: var(--blue); }
.sc-lede .section-link { display: inline-block; margin-top: 12px; }
[hidden] { display: none !important; }
