/*
Theme Name: Antonio Festa Studio
Theme URI: https://antoniofesta.xyz
Description: Child theme of Blocksy for the antoniofesta.xyz redesign. Architecture & design studio aesthetic: editorial typography, full-bleed imagery, restrained palette.
Author: Antonio Festa redesign project
Author URI: https://antoniofesta.xyz
Template: blocksy
Version: 0.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: antoniofesta-studio
*/

/* =====================================================================
   DESIGN TOKENS — the redesign starts here.
   These variables are consumed by the Blocksy options and our CSS.
   Palette, type and spacing will be refined once we review the old site.
   ===================================================================== */

:root {
	/* Palette */
	--afa-ink:        #141414;   /* primary text */
	--afa-paper:      #f7f5f1;   /* background (warm off-white) */
	--afa-accent:     #9a6b3f;   /* bronze / terracotta accent */
	--afa-muted:      #6f6a62;   /* secondary text */
	--afa-line:       #e3ded5;   /* hairline borders */

	/* Type */
	--afa-font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	--afa-font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

	/* Spacing rhythm */
	--afa-space-1: 0.5rem;
	--afa-space-2: 1rem;
	--afa-space-3: 2rem;
	--afa-space-4: 4rem;
	--afa-space-5: 8rem;
}

/* Typographic base */
body {
	font-family: var(--afa-font-body);
	color: var(--afa-ink);
	background: var(--afa-paper);
	line-height: 1.7;
	letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--afa-font-display);
	font-weight: 500;
	letter-spacing: -0.01em;
}

/* Editorial detail: fine hairline rules */
.afa-rule {
	border-top: 1px solid var(--afa-line);
}

/* Full-bleed media */
.afa-fullbleed img {
	width: 100%;
	height: auto;
	display: block;
}

/* Project index — used by the studio homepage template */
.afa-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: var(--afa-space-3);
}

.afa-project-card figure {
	margin: 0;
	overflow: hidden;
	background: var(--afa-line);
}

.afa-project-card img {
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.afa-project-card:hover img {
	transform: scale(1.04);
}

/* Small caps kickers */
.afa-kicker {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--afa-accent);
	font-weight: 600;
}

/* Buttons */
.wp-block-button__link,
button, .button {
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
}

/* =====================================================================
   DIRECTION A — EDITORIAL MONOGRAPH
   ===================================================================== */

/* --- Hero --- */
.afa-hero {
	min-height: 92vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--afa-ink);
	color: var(--afa-paper);
	padding: 6vw 7vw 4vw;
	position: relative;
	overflow: hidden;
}

.afa-hero::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 2px;
	background: linear-gradient(90deg, var(--afa-accent), transparent 70%);
}

.afa-hero .afa-kicker {
	color: var(--afa-accent);
}

.afa-hero h1 {
	font-size: clamp(3rem, 9vw, 9rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
	margin: 0.4em 0 0.5em;
	color: var(--afa-paper);
	max-width: 14ch;
}

.afa-hero .afa-manifesto {
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	max-width: 52ch;
	color: rgba(247, 245, 241, 0.85);
	font-weight: 300;
	line-height: 1.75;
}

.afa-hero .afa-hero-foot {
	margin-top: 4rem;
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
	color: rgba(247, 245, 241, 0.5);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
}

/* --- Works grid --- */
.afa-works {
	padding: 6vw 0 2vw;
}

.afa-works .afa-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	border-bottom: 1px solid var(--afa-line);
	padding-bottom: 1rem;
	margin-bottom: 3rem;
}

.afa-works .afa-section-head h2 {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin: 0;
}

.afa-works-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2px;
	background: var(--afa-line);
	border: 1px solid var(--afa-line);
}

@media (max-width: 900px) { .afa-works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .afa-works-grid { grid-template-columns: 1fr; } }

.afa-work {
	position: relative;
	overflow: hidden;
	background: var(--afa-paper);
}

.afa-work img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 4 / 3;
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
	filter: saturate(0.92);
}

.afa-work:hover img {
	transform: scale(1.045);
	filter: saturate(1.05);
}

.afa-work .afa-work-cap {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.2rem;
	background: linear-gradient(180deg, transparent 45%, rgba(20, 20, 20, 0.72));
	opacity: 0;
	transition: opacity 0.4s ease;
}

.afa-work:hover .afa-work-cap { opacity: 1; }

.afa-work .afa-work-cap span {
	color: var(--afa-paper);
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

/* --- Editorial statement band --- */
.afa-statement {
	padding: 8vw 7vw;
	background: var(--afa-paper);
	border-top: 1px solid var(--afa-line);
}

.afa-statement blockquote {
	font-family: var(--afa-font-display);
	font-size: clamp(1.6rem, 3.4vw, 2.8rem);
	line-height: 1.35;
	max-width: 30ch;
	margin: 0 0 2rem;
	border: 0;
	padding: 0;
}

.afa-statement a.afa-link-more {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--afa-accent);
	text-decoration: none;
	border-bottom: 1px solid var(--afa-accent);
	padding-bottom: 2px;
}

/* --- Language toggle in header area --- */
.afa-lang a,
.afa-lang span {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: inherit;
	text-decoration: none;
}

/* --- Editorial sub-pages --- */
.afa-page-head {
	padding: 6vw 7vw 3vw;
	border-bottom: 1px solid var(--afa-line);
}

.afa-page-head h1 {
	font-size: clamp(2.4rem, 5vw, 4.5rem);
	margin: 0;
}

.afa-page-body {
	padding: 4vw 7vw 6vw;
	max-width: 70ch;
}

.afa-page-body p {
	font-size: 1.06rem;
	line-height: 1.85;
	margin-bottom: 1.5em;
}

/* Front page: hide default title (hero provides it) */
.page-id-9999 .entry-title, /* placeholder */
.entry-content > .alignfull { margin-inline: 0; }
