/*
Theme Name: AwaleLabs Studio
Template: twentytwentyfive
Version: 1.1.1
Author: Sagar Awale
Description: Product studio theme for the AwaleLabs catalogue.
Text Domain: awalelabs-studio
*/

:root {
	--ink: #172031;
	--muted: #4e5c70;
	--blue: #244bd9;
	--line: #d6dce5;
	--paper: #fafbfc;
	--gutter: clamp(1rem, 5vw, 5rem);
}
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.55; font-weight: 440; letter-spacing: 0; }
*, *::before, *::after { box-sizing: border-box; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .studio-main > *, .studio-main .wp-block-post-content > :first-child { margin-block-start: 0; }
.wrap { width: min(100% - var(--gutter) * 2, 79rem); margin-inline: auto; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { color: var(--ink); font-family: inherit; text-wrap: balance; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: #112f9d; }
a:focus-visible { outline: 3px solid #254bdf; outline-offset: 4px; border-radius: 3px; }
.topbar { border-bottom: 1px solid var(--line); background: #fff; }
.head-inner,.footer-inner,.product-id,.store-actions,nav,.wordmark { display: flex; align-items: center; }
.head-inner { min-height: 4.65rem; justify-content: space-between; gap: 1rem; }
.wordmark { gap: .54rem; font-size: 1.4rem; line-height: 1; font-weight: 540; letter-spacing: -.065em; color: var(--ink); text-decoration: none; }
.wordmark strong { font-weight: 825; }
.wordmark svg { width: 2rem; height: 2rem; flex: none; }
nav { gap: clamp(.8rem,2.4vw,2.2rem); flex-wrap: wrap; }
nav a,.detail-link,.back-link { font-size: .94rem; font-weight: 620; }
nav a { color: var(--ink); text-decoration: none; padding-block: .55rem; }
nav a:hover,.detail-link:hover { text-decoration: underline; }
.nav-github { border-left: 1px solid var(--line); padding-left: clamp(.8rem,2.4vw,2.2rem); }
.hero { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) minmax(13rem, 29%); gap: 3%; padding-block: clamp(2.4rem,3.5vw,3.5rem) clamp(1.9rem,2.7vw,2.6rem); }
.hero h1,.listing h1,.detail h1,.text-page h1 { font-weight: 690; font-size: clamp(3rem, 5.3vw, 5.1rem); letter-spacing: -.06em; line-height: 1.025; }
.hero h1 { max-width: 19ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blue); white-space: nowrap; }
.hero p,.listing > p,.lead { font-size: clamp(1.05rem, 1.45vw, 1.25rem); color: var(--muted); line-height: 1.5; }
.hero p { max-width: 36rem; margin-top: 1.1rem; }
.studio-art { width: 100%; height: auto; display: block; }
.collection { padding-bottom: clamp(3rem,5vw,5.2rem); }
.collection > h2 { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.1rem; font-size: 1.12rem; font-weight: 740; letter-spacing: -.025em; }
.collection > h2::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1rem,2vw,1.7rem); }
.project { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; overflow: hidden; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 3px 10px #16294206; }
.project-copy { padding: clamp(1.1rem,2vw,1.7rem); display: flex; flex-direction: column; align-items: flex-start; }
.product-id { gap: .9rem; }
.product-id img { flex: none; border-radius: 23%; }
.platform { display: block; color: var(--muted); font-size: .88rem; font-weight: 590; line-height: 1.3; }
.product-id h2 { font-size: clamp(1.8rem,2.8vw,2.65rem); letter-spacing: -.05em; font-weight: 720; line-height: 1.12; }
.product-id h2 a { text-decoration: none; color: inherit; }
.product-id h2 a:hover { color: var(--blue); }
.project-copy p { margin: 1rem 0 1.2rem; font-size: 1.03rem; color: var(--muted); max-width: 48ch; }
.store-actions { gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.store-actions a { display: inline-flex; align-items: center; min-height: 2.7rem; padding: .55rem .85rem; background: var(--blue); color: white; font-size: .91rem; font-weight: 650; border: 1px solid transparent; border-radius: .5rem; text-decoration: none; line-height: 1.25; }
.store-actions a + a { color: var(--blue); border-color: #bbcaf1; background: #f5f8ff; }
.store-actions a:hover { background: #1538b2; color: #fff; }
.preview { padding: clamp(1rem,2.1vw,2.1rem); border-block: 1px solid #0000000c; }
.preview-safari { background-color: #d8e9e2; background-image: radial-gradient(#65897860 .8px,transparent .8px); background-size: 9px 9px; }
.preview-code { background-color: #e2e8fb; background-image: linear-gradient(#7085bf26 1px,transparent 1px),linear-gradient(90deg,#7085bf26 1px,transparent 1px); background-size: 16px 16px; }
.preview img { display: block; width: 100%; height: auto; border-radius: .45rem; box-shadow: 0 5px 16px #192a3c24,0 0 0 1px #17253722; }
.detail-link { display: block; padding: .9rem clamp(1.1rem,2vw,1.7rem); color: var(--blue); text-decoration: none; }
.listing,.text-page,.detail { padding-block: clamp(2.5rem,5vw,5rem); }
.listing > p { margin: 1rem 0 2rem; }
.listing .project { grid-row: span 4; }
.card-requires { margin: 0; padding: 1.1rem 1.7rem 0; color: var(--muted); font-size: .95rem; }
.detail { max-width: 66rem; }
.back-link { display: inline-block; margin-bottom: 1.8rem; }
.product-intro > .product-id { gap: 1.15rem; }
.product-intro .platform { margin-bottom: .25rem; }
.product-intro .lead { max-width: 45rem; margin-block: 1.3rem; }
.requirements { font-size: .96rem; color: var(--muted); margin-top: .9rem; }
.product-intro .preview { max-width: 60rem; margin: 2rem 0; border-radius: .8rem; }
.preview a { display: block; }
.reading, .text-page { max-width: 47rem; }
.reading { margin-block-start: 2.4rem; }
.reading p,.reading li { line-height: 1.7; }
.reading h2 { font-size: clamp(1.55rem,2.5vw,2.1rem); line-height: 1.17; font-weight: 700; letter-spacing: -.045em; }
.reading .wp-block-post-content > * { margin-block: 1rem; }
.reading .wp-block-post-content > h2 { margin-block: 2.1rem .7rem; }
.reading li+li { margin-block-start: .55rem; }
.text-page .reading .has-background { background-color: #edf2fa !important; color: var(--ink) !important; border-radius: .7rem; }
.safari-gallery { margin-block: 2rem; }
.safari-gallery >div { display: flex; align-items: center; gap: 2%; }
.safari-gallery img { width: 76%; height: auto; border-radius: .65rem; }
.safari-gallery img + img { width: 22%; }
figcaption { font-size: .9rem; margin-top: .7rem; color: var(--muted); }
.studio-footer { border-top: 1px solid var(--line); background: #f0f3f8; }
.footer-inner { justify-content: space-between; gap: 1.5rem; padding-block: 2.2rem; align-items: flex-start; }
.footer-inner p { font-size: .93rem; color: var(--muted); margin-top: .85rem; }
.footer-inner nav { gap: .75rem 1.6rem; }
@media (max-width: 800px) {
	.catalog { grid-template-columns: 1fr; gap: 1.1rem; }
	.project,.listing .project { display: flex; flex-direction: column; }
	.hero { grid-template-columns: minmax(0,1fr) 23%; gap: 0; }
	.hero h1 { font-size: clamp(2.7rem,7vw,3.8rem); }
	.hero p { max-width: 33rem; }
	.footer-inner { flex-wrap: wrap; }
}
@media (max-width: 580px) {
	.hero { display: block; padding-block: 2.15rem 2rem; }
	.studio-art { display: none; }
	.head-inner { min-height: 3.8rem; flex-wrap: wrap; gap: .45rem .75rem; padding-block: .5rem; }
	.wordmark { font-size: 1.15rem; gap: .35rem; }
	.wordmark svg { width: 1.7rem; height: 1.7rem; }
	nav { gap: .7rem; }
	.head-inner nav a { font-size: .9rem; }
	.nav-github { padding-left: .65rem; }
	.project-copy { padding: 1.1rem; }
	.product-id img { width: 2.8rem; height: 2.8rem; }
	.store-actions a { min-height: 2.75rem; }
	.detail .product-id { flex-wrap: wrap; }
	.footer-inner nav { align-items: flex-start; }
	.safari-gallery >div { flex-wrap: wrap; justify-content: center; gap: 1rem; }
	.safari-gallery img { width: 100%; }
	.safari-gallery img + img { width: 56%; }
}
@media (prefers-reduced-motion: no-preference) { .store-actions a,nav a { transition: color 120ms ease, background-color 120ms ease; } }
@media (max-width: 580px) {
	:root { --gutter: clamp(14px,4vw,22px); }
	.hero h1,.detail h1,.text-page h1 { overflow-wrap: anywhere; }
	.hero h1 em { white-space: normal; }
	.product-id { gap: .5rem; flex-wrap: wrap; }
	.product-id h2,.store-actions a,.detail-link,.reading { overflow-wrap: anywhere; }
	.project-copy,.store-actions,.product-id,.product-id > div { max-width: 100%; }
	.project-copy { padding-inline: clamp(15px,4vw,22px); }
	.store-actions a { max-width: 100%; }
}
@media (max-width: 580px) {
	.studio-main,.studio-footer { overflow-wrap: anywhere; }
	.listing h1,.text-page h1,.detail h1 { font-size: clamp(2.1rem,10vw,3rem); }
}

.footer-inner nav { margin-block-start: 0; }
.footer-inner .visit-count {
	display: flex;
	align-items: baseline;
	gap: .45em;
	margin: .5rem 0 0;
	color: var(--muted);
	font-size: .8125rem;
	line-height: 1.5;
}
.visit-count .visit-total { font-variant-numeric: tabular-nums; font-weight: 600; }
