/*
Theme Name: IZ Portfolio
Theme URI: https://isabellezhang.design
Author: Isabelle Zhang
Description: A minimal, image-first portfolio theme for a product designer. Project post type with role/team/timeline fields, case study template, and screenshot frame styles (browser, laptop, phone, soft shadow, tinted backdrop) available from the Image block's Styles menu.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: iz-portfolio
*/

:root {
	--bg: #ffffff;
	--text: #111214;
	--muted: #6b6f76;
	--line: #e7e7ea;
	--tint: #f3f3f1;
	--accent: #2f5d50;
	--read: 680px;
	--wide: 1240px;
	--gutter: clamp(20px, 4vw, 48px);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
	--display: var(--font);
	--body: #2b2d31;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--text);
	color: #fff;
	padding: 10px 16px;
	z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap {
	width: 100%;
	max-width: var(--wide);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

/* Header */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: var(--wide);
	margin: 0 auto;
	padding: 28px var(--gutter);
}
.site-title {
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
	letter-spacing: -0.01em;
}
.nav-list {
	display: flex;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 15px;
}
.nav-list a { text-decoration: none; color: var(--muted); }
.nav-list a:hover,
.nav-list .current-menu-item > a { color: var(--text); }

/* Home hero */
.hero { padding-top: clamp(40px, 8vw, 110px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.hero-title {
	margin: 0 0 20px;
	font-size: clamp(36px, 6vw, 68px);
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: -0.03em;
	max-width: 16ch;
}
.hero-intro {
	margin: 0;
	max-width: 36em;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.5;
	color: var(--muted);
}

/* Project grid */
.work { padding-bottom: clamp(60px, 9vw, 120px); }
.project-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 64px 32px;
}
.layout-list .project-grid { grid-template-columns: minmax(0, 1fr); gap: 88px; }

/* Grid layout: first project is a full-width feature */
.layout-grid .project-grid > .card:first-child { grid-column: 1 / -1; }
.layout-grid .project-grid > .card:first-child .card-media { aspect-ratio: 2 / 1; }
.layout-grid .project-grid > .card:first-child .card-title { font-size: 30px; }

.card a { display: block; text-decoration: none; }
.card-media {
	aspect-ratio: 16 / 10;
	background: var(--tint);
	border-radius: 6px;
	overflow: hidden;
}
.layout-list .card-media { aspect-ratio: 2 / 1; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding-top: 18px; }
.card-company {
	min-height: 1.5em;
	margin: 0 0 4px;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.card-title { margin: 0 0 6px; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.card a:hover .card-title { text-decoration: underline; text-underline-offset: 5px; }
.card-summary { margin: 0; color: var(--muted); max-width: 34em; }
.empty { color: var(--muted); }

/* Single project */
.project-header { padding-top: clamp(24px, 5vw, 64px); padding-bottom: 40px; }
.project-company {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}
.project-title {
	margin: 0 0 18px;
	font-size: clamp(34px, 5.5vw, 60px);
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.03em;
	max-width: 18ch;
}
.project-summary {
	margin: 0;
	max-width: 34em;
	font-size: clamp(19px, 2.2vw, 24px);
	line-height: 1.45;
	color: var(--muted);
}
.project-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 24px 32px;
	margin: 48px 0 0;
	padding: 24px 0 0;
	border-top: 1px solid var(--line);
}
.project-facts dt {
	margin: 0 0 4px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.project-facts dd { margin: 0; font-size: 16px; line-height: 1.45; }

/* Content (case studies and pages) */
.entry-content { padding-bottom: 40px; }
.entry-content > * {
	max-width: var(--read);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.entry-content > .alignwide,
.entry-content > .wp-block-image,
.entry-content > .wp-block-gallery,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-video { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }

.entry-content h2 {
	margin-top: clamp(56px, 8vw, 96px);
	margin-bottom: 16px;
	font-size: clamp(26px, 3.2vw, 34px);
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.entry-content h3 { margin-top: 40px; margin-bottom: 8px; font-size: 20px; font-weight: 600; }
.entry-content p, .entry-content li { color: var(--body); }
.entry-content p { margin-top: 0; margin-bottom: 1.1em; }
.entry-content figure { margin-top: clamp(32px, 5vw, 64px); margin-bottom: clamp(32px, 5vw, 64px); }
.entry-content figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* Next project */
.next-project {
	width: calc(100% - 2 * var(--gutter));
	max-width: calc(var(--wide) - 2 * var(--gutter));
	border-top: 1px solid var(--line);
	margin-top: 40px;
	padding: 40px 0 clamp(60px, 9vw, 110px);
}
.next-project a { display: inline-block; text-decoration: none; }
.next-label { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.next-title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.next-project a:hover .next-title { text-decoration: underline; text-underline-offset: 5px; }

/* About page */
.about { padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(60px, 9vw, 110px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-photo img { width: 100%; border-radius: 6px; }
.about-title { margin: 0 0 20px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }
.about-body p { max-width: 34em; }
.about-body > *:last-child { margin-bottom: 0; }
.about-links { margin-top: 28px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
	max-width: var(--wide);
	margin: 0 auto;
	padding: 32px var(--gutter) 48px;
	display: flex;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
	font-size: 15px;
	color: var(--muted);
}
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); }

/* Generic pages */
.page-header { padding-top: clamp(24px, 5vw, 64px); padding-bottom: 24px; }
.page-title { margin: 0; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; font-weight: 600; letter-spacing: -0.025em; }

/* Small screens */
@media (max-width: 760px) {
	body { font-size: 16px; }
	.site-header { padding-top: 20px; padding-bottom: 20px; }
	.nav-list { gap: 20px; font-size: 14px; }
	.project-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	.layout-list .card-media,
	.layout-grid .project-grid > .card:first-child .card-media { aspect-ratio: 16 / 10; }
	.layout-grid .project-grid > .card:first-child .card-title { font-size: 24px; }
	.about { grid-template-columns: minmax(0, 1fr); }
	.about-photo { max-width: 320px; }
}

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

/* Display font hook (each look sets --display) */
.site-title, .hero-title, .card-title, .project-title, .page-title, .about-title,
.next-title, .footer-cta-title, .entry-content h2, .entry-content h3 { font-family: var(--display); }

/* Uploaded logo (Customize > Site Identity) */
.custom-logo-link { display: block; }
.custom-logo { height: 36px; width: auto; max-width: none; }

/* Footer contact call-to-action (shown when an email is set) */
.footer-cta {
	width: calc(100% - 2 * var(--gutter));
	max-width: calc(var(--wide) - 2 * var(--gutter));
	padding: clamp(48px, 8vw, 100px) 0 clamp(32px, 6vw, 72px);
	border-top: 1px solid var(--line);
}
.footer-cta-title { margin: 0 0 12px; font-size: clamp(40px, 7vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.footer-cta-link { font-size: clamp(18px, 2.4vw, 28px); }
.footer-cta + .site-footer { border-top: 0; }
