/*
	Shared by both worlds (garage + studio). Colors come from variables each theme sets on <body>.
	Loaded after the template's main.css.
*/

@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Big+Shoulders+Display:wght@500;700;800;900&family=Comfortaa:wght@700&family=Caveat:wght@600;700&display=swap");

body {
	--ground: #262626;
	--ground-deep: #1b1b1d;
	--ink: #efe3c4;
	--ink-dim: rgba(239, 227, 196, 0.68);
	--accent: #f08a24;
	--accent-hot: #ffc861;
	--line: rgba(239, 227, 196, 0.14);
	--panel: #1e1e20;
	background: var(--ground);
	color: var(--ink);
}

body, input, select, textarea, button, .button { font-family: "Barlow", sans-serif; font-weight: 400; }
body { font-size: 15pt; line-height: 1.65; }
@media screen and (max-width: 1680px) { body, input, select, textarea { font-size: 13pt; } }
@media screen and (max-width: 736px) { body, input, select, textarea { font-size: 12pt; } }

h1, h2, h3, h4, h5, h6 {
	font-family: "Big Shoulders Display", sans-serif;
	font-weight: 800;
	color: inherit;
	letter-spacing: 0.01em;
	line-height: 1;
}

strong, b { color: inherit; font-weight: 700; }
a { color: var(--accent); }
a:hover { color: var(--accent-hot); }
p { color: inherit; }

:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; }

/* ---------- Template chrome, recolored ---------- */

#header {
	background: rgba(24, 24, 26, 0.92);
	color: var(--ink);
	box-shadow: 0 1px 0 var(--line);
	backdrop-filter: blur(8px);
}

#header h1 a { display: inline-flex; align-items: center; gap: 0.55em; color: var(--ink); text-decoration: none; }
#header h1 img { height: 2.1em; width: auto; }
#header h1 span { font-family: "Comfortaa", sans-serif; font-weight: 700; letter-spacing: 0.12em; font-size: 0.95em; }
#header nav ul li a { color: var(--ink-dim); font-weight: 600; }
#header nav ul li a:hover, #header nav ul li a[aria-current] { color: var(--ink); }
#header nav ul li a.pill {
	color: #1b1b1d; background: var(--accent); border-radius: 2em;
	height: 2.1em; line-height: 2.1em; margin-top: 0.45em; padding: 0 1.1em;
}
#header nav ul li a.pill:hover { background: var(--accent-hot); color: #1b1b1d; }

input[type="button"], input[type="submit"], input[type="reset"], .button, button {
	background-color: var(--accent);
	color: #1b1b1d !important;
	font-weight: 700;
	letter-spacing: 0.02em;
}
input[type="button"]:hover, input[type="submit"]:hover, .button:hover, button:hover { background-color: var(--accent-hot); }
input[type="submit"]:active, .button:active, button:active { background-color: var(--accent); }

.button.style2, button.style2 { background-color: transparent; border-color: var(--line); color: var(--ink) !important; }
.button.style2:hover, button.style2:hover { background-color: rgba(239, 227, 196, 0.08); }
.main.dark .button.style2 { border-color: rgba(239, 227, 196, 0.7); }
.button.small { height: 2.8em; line-height: 2.8em; padding: 0 1.5em; font-size: 0.85em; }

/* The template's sliding boxes: dark slabs with a hot top edge */
.box, .box.style2 {
	background: var(--panel);
	color: var(--ink);
	border: 0;
	border-top: 3px solid var(--accent);
	border-radius: 0;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.main.style2 .content.box { padding: 2.6em 2.8em 2.4em 2.8em; width: 36em; max-width: calc(100% - 2em); }
.button { white-space: nowrap; }
@media screen and (max-width: 736px) { .main.style2 .content.box { padding: 2em 1.6em 1.8em 1.6em; } }
.box h2 { font-size: 4em; margin-bottom: 0.35em; }
.box p { color: var(--ink-dim); }
.box .actions { margin: 1.6em 0 0 0; }

.main.style3.primary { background: var(--ground); color: var(--ink); }
.main.style3.secondary { background: var(--ground-deep); color: var(--ink); }
.main.style3 .content > header h2 { font-size: 3.6em; margin-bottom: 0.25em; }
.main.style3 .content > header p { color: var(--ink-dim); }

#footer { background: #131314; color: rgba(239, 227, 196, 0.45); }
#footer a { color: rgba(239, 227, 196, 0.7); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
	background: rgba(0, 0, 0, 0.25);
	border-color: var(--line);
	color: var(--ink);
	border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent) !important; box-shadow: none; }
::placeholder { color: rgba(239, 227, 196, 0.38) !important; }
select option { background: var(--panel); color: var(--ink); }
label { color: var(--ink); }

#contact .box { border-top-width: 3px; }
.gallery article a { border-radius: 0; }
.poptrox-popup { background: #111; }
.poptrox-popup .caption { color: var(--ink); background: linear-gradient(0deg, rgba(0,0,0,.8), transparent); }

/* Template load overlay: dark, and never in the way of clicks */
body:after { background: var(--ground) !important; }
body:before, body:after { pointer-events: none !important; }

/* Full-screen photo slides, the template's recipe (overlay texture + fixed photo) */
.main.photo {
	background-size: 256px 256px, cover;
	background-attachment: fixed, fixed;
	background-position: top left, center center;
	background-repeat: repeat, no-repeat;
}
.main.photo.side-left, .main.photo.side-right {
	background-size: 256px 256px, auto 100%;
	background-attachment: scroll, scroll;
	background-color: #121213;
}
.main.photo.side-left { background-position: top left, 6% center; }
.main.photo.side-right { background-position: top left, 94% center; }
body.is-touch .main.photo { background-attachment: scroll, scroll; }
@media screen and (max-width: 736px) {
	.main.photo.side-left, .main.photo.side-right { background-size: 256px 256px, cover; background-position: top left, center; }
}

.hidden-field { display: none; }
[hidden] { display: none !important; }
.form-done { text-align: center; font-size: 1.25em; margin: 0; }
.file-label { font-size: 0.85em; color: var(--ink-dim); font-weight: 400; text-align: left; }
cite { display: block; font-style: normal; font-size: 0.8em; color: var(--ink-dim); margin-top: 0.5em; }

/* ---------- Head Honcho: edge tab + slide-in panel ---------- */

.honcho-tab {
	position: fixed;
	z-index: 10001;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 0.7em;
	width: 3.4em;
	height: auto !important;
	line-height: 1 !important;
	padding: 0.5em 0 1em 0 !important;
	border-radius: 2em 0 0 2em !important;
	background: var(--panel) !important;
	border: 1px solid var(--line) !important;
	border-right: 0 !important;
	color: var(--ink) !important;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.35);
	transition: padding-right 0.3s ease;
}
.honcho-tab:hover { padding-right: 0.4em !important; }
.honcho-tab img { width: 2.6em; height: 2.6em; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--accent); }
.honcho-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: "Big Shoulders Display", sans-serif; font-weight: 800; letter-spacing: 0.08em; font-size: 1.05em; }

.honcho-veil { position: fixed; inset: 0; z-index: 10002; background: rgba(8, 8, 9, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
.honcho-panel {
	position: fixed; z-index: 10003; top: 0; right: 0; height: 100%;
	width: 27em; max-width: 100%; overflow-y: auto;
	background: var(--panel); color: var(--ink);
	border-left: 3px solid var(--accent);
	transform: translateX(105%);
	transition: transform 1s ease;
}
body.honcho-open .honcho-veil { opacity: 1; pointer-events: auto; }
body.honcho-open .honcho-panel { transform: none; }
.honcho-panel .portrait { display: block; width: 100%; height: 24em; object-fit: cover; object-position: 50% 16%; }
.honcho-panel .body { padding: 1.8em 2.2em 2.2em 2.2em; }
.honcho-panel h2 { font-size: 3.4em; margin: 0; }
.honcho-panel .title { display: block; color: var(--accent); font-weight: 700; margin: 0.3em 0 1.2em 0; }
.honcho-panel blockquote { border-left: 3px solid var(--accent); font-style: normal; font-size: 1.25em; margin: 0 0 1.4em 0; padding-left: 0.9em; color: var(--ink); }
.honcho-panel .actions { margin: 0; }
.honcho-close {
	position: absolute; top: 0.8em; right: 0.8em; z-index: 2;
	width: 2.6em; height: 2.6em !important; line-height: 2.6em !important; padding: 0 !important;
	border-radius: 50% !important; background: rgba(0, 0, 0, 0.55) !important; color: #fff !important; font-size: 1em;
}
@media screen and (max-width: 736px) {
	.honcho-tab { top: auto; bottom: 1em; transform: none; }
	.honcho-tab span { display: none; }
	.honcho-panel .portrait { height: 18em; }
}
@media (prefers-reduced-motion: reduce) {
	.honcho-panel, .honcho-veil { transition: none; }
}
body:before { display: none !important; }
