/*
Theme Name: BrandUreka
Theme URI: https://brandureka.com
Author: BrandUreka
Description: Website theme for BrandUreka, a design and print bureau in Bangalore. Home page introduces the studio and lists the full product range for the digital colour press and the large-format printer.
Version: 1.0.0
Requires at least: 6.0
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: brandureka
*/

/* ------------------------------------------------------------------
   Tokens
   Paper white, indigo ink, and the four process colours (used only
   in the press-sheet motif and as one accent).
------------------------------------------------------------------ */
:root {
	--paper: #fbfbf9;
	--tint: #edeff5;
	--ink: #1d2340;
	--muted: #4b5170;
	--rule: rgba(29, 35, 64, 0.16);
	--accent: #c8006a;
	--accent-dark: #a30056;

	--process-c: #00aeef;
	--process-m: #ec008c;
	--process-y: #fff200;
	--process-k: #231f20;

	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

	--wrap: 76rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		transition: none !important;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-underline-offset: 0.18em;
}

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

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--ink);
	color: #fff;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.25rem;
}

.brand {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	line-height: 1.1;
}

.brand-name {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.brand-tag {
	font-size: 0.8rem;
	color: var(--muted);
}

.custom-logo-link img {
	display: block;
	max-height: 3rem;
	width: auto;
}

.site-nav {
	margin-left: auto;
}

.nav-list,
.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: inline-block;
	padding: 0.35rem 0;
	font-weight: 500;
	font-size: 0.98rem;
	text-decoration: none;
}

.site-nav a:hover {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.header-cta {
	white-space: nowrap;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	padding: 0.5rem 1rem;
	border: 2px solid var(--ink);
	border-radius: 0.25rem;
}

.header-cta:hover {
	background: var(--ink);
	color: #fff;
}

@media (max-width: 52rem) {
	.site-header {
		position: static;
	}
	.header-inner {
		flex-wrap: wrap;
		padding-block: 0.75rem;
	}
	.site-nav {
		order: 3;
		width: 100%;
		margin-left: 0;
	}
}

@media (max-width: 30rem) {
	.header-cta {
		display: none;
	}
}

/* ------------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.btn {
	display: inline-block;
	padding: 0.8rem 1.4rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid var(--ink);
	border-radius: 0.25rem;
	transition: background-color 0.15s, color 0.15s;
}

.btn-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.btn-primary:hover {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
}

.btn-outline:hover {
	background: var(--ink);
	color: #fff;
}

.btn-light {
	border-color: #fff;
	color: #fff;
}

.btn-light:hover {
	background: #fff;
	color: var(--ink);
}

/* ------------------------------------------------------------------
   Hero: a press sheet. Crop marks sit outside the trim edge and the
   colour bar runs along the bottom slug, as on a real printed sheet.
------------------------------------------------------------------ */
.hero {
	padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}

.hero-trim {
	position: relative;
	padding-block: clamp(1.5rem, 4vw, 3rem);
}

.hero h1 {
	font-size: clamp(2.9rem, 8.4vw, 6.6rem);
	max-width: 15ch;
}

.hero-lede {
	max-width: 38rem;
	margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.6;
	color: var(--muted);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.crop {
	position: absolute;
	width: 30px;
	height: 30px;
	pointer-events: none;
}

.crop::before,
.crop::after {
	content: "";
	position: absolute;
	background: var(--ink);
}

.crop::before {
	width: 22px;
	height: 1px;
}

.crop::after {
	width: 1px;
	height: 22px;
}

.crop-tl { top: -30px; left: -30px; }
.crop-tl::before { left: 0; top: 30px; }
.crop-tl::after { top: 0; left: 30px; }

.crop-tr { top: -30px; right: -30px; }
.crop-tr::before { right: 0; top: 30px; }
.crop-tr::after { top: 0; left: 0; }

.crop-bl { bottom: -30px; left: -30px; }
.crop-bl::before { left: 0; bottom: 30px; }
.crop-bl::after { bottom: 0; left: 30px; }

.crop-br { bottom: -30px; right: -30px; }
.crop-br::before { right: 0; bottom: 30px; }
.crop-br::after { bottom: 0; left: 0; }

@media (max-width: 60rem) {
	.crop {
		display: none;
	}
}

.colour-bar {
	display: flex;
	align-items: center;
	gap: 0;
	margin-top: clamp(2rem, 4vw, 3rem);
	height: 1.1rem;
}

.colour-bar span {
	flex: 1 1 0;
	height: 100%;
}

.colour-bar .reg {
	flex: 0 0 auto;
	width: 1.6rem;
	height: 1.6rem;
	margin-left: 1rem;
}

.cb-c { background: var(--process-c); }
.cb-m { background: var(--process-m); }
.cb-y { background: var(--process-y); }
.cb-k { background: var(--process-k); }
.cb-r { background: #ed1c24; }
.cb-g { background: #00a651; }
.cb-b { background: #2e3192; }
.cb-t1 { background: rgba(35, 31, 32, 0.7); }
.cb-t2 { background: rgba(35, 31, 32, 0.5); }
.cb-t3 { background: rgba(35, 31, 32, 0.3); }
.cb-t4 { background: rgba(35, 31, 32, 0.15); }

@media (max-width: 40rem) {
	.colour-bar span:nth-child(n + 9) {
		display: none;
	}
}

/* ------------------------------------------------------------------
   Product range sections
------------------------------------------------------------------ */
.range {
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.range-tint {
	background: var(--tint);
}

.range-grid {
	display: grid;
	gap: clamp(2rem, 5vw, 4.5rem);
	grid-template-columns: 1fr;
}

@media (min-width: 62rem) {
	.range-grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
	}
	.range-intro {
		position: sticky;
		top: 6rem;
	}
}

.range-intro h2 {
	font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.range-intro p {
	margin: 1.25rem 0 0;
	max-width: 32rem;
	color: var(--muted);
}

.range-intro .machine {
	margin-top: 1rem;
	font-size: 0.95rem;
}

.range-body h3 {
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	margin-bottom: 0.75rem;
}

.products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 2rem;
	margin: 0 0 3rem;
	padding: 0;
	list-style: none;
}

@media (min-width: 36rem) {
	.products {
		grid-template-columns: 1fr 1fr;
	}
}

.products li {
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--rule);
	font-weight: 500;
}

.specs {
	margin: 0;
}

.specs > div {
	display: grid;
	gap: 0.15rem 1.5rem;
	padding: 1rem 0;
	border-top: 1px solid var(--rule);
}

.specs > div:last-child {
	border-bottom: 1px solid var(--rule);
}

@media (min-width: 40rem) {
	.specs > div {
		grid-template-columns: 11rem 1fr;
	}
}

.specs dt {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
}

.specs dd {
	margin: 0;
	color: var(--muted);
}

/* ------------------------------------------------------------------
   Contact
------------------------------------------------------------------ */
.contact {
	background: var(--ink);
	color: #fff;
	padding-block: clamp(3.5rem, 8vw, 6rem);
}

.contact-grid {
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 52rem) {
	.contact-grid {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
		align-items: end;
	}
}

.contact h2 {
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	max-width: 14ch;
}

.contact p {
	margin: 1.25rem 0 0;
	max-width: 30rem;
	color: rgba(255, 255, 255, 0.82);
}

.contact-details {
	font-style: normal;
	font-size: 1.15rem;
	line-height: 1.7;
}

.contact-details a {
	text-decoration-thickness: 1px;
}

.contact-details .line {
	display: block;
}

.contact-details .line + .line {
	margin-top: 0.75rem;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-block: 1.5rem;
}

.site-footer a {
	color: inherit;
}

/* ------------------------------------------------------------------
   Generic pages, posts and 404
------------------------------------------------------------------ */
.page-wrap {
	padding-block: clamp(3rem, 7vw, 5rem);
}

.page-wrap .entry {
	max-width: 44rem;
}

.entry-title {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	margin-bottom: 1.5rem;
}

.entry-title a {
	text-decoration: none;
}

.entry-content > * + * {
	margin-top: 1.1em;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.8em;
	line-height: 1.1;
}

.entry-content h2 { font-size: 1.9rem; }
.entry-content h3 { font-size: 1.4rem; }

.entry-content img {
	border-radius: 0.25rem;
}

.entry-meta {
	color: var(--muted);
	font-size: 0.9rem;
	margin: -1rem 0 1.5rem;
}

.post-list .entry + .entry {
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--rule);
}

.alignwide {
	max-width: var(--wrap);
}

.wp-block-image figcaption {
	color: var(--muted);
	font-size: 0.9rem;
}
