/* =========================================================
   style.css — Gwendolyn Asani portfolio
   Standalone stylesheet (no Carrd dependencies).
   ========================================================= */

:root {
	--cream: #F2F4E6;
	--ink: #2C2D33;
	--ink-nav: #33343C;
	--icon: #171012;
	--text: #F9FAF5;
	--muted: rgba(249, 250, 245, 0.72);
	--panel: rgba(18, 18, 17, 0.902);
	--line: rgba(242, 244, 230, 0.18);
	--shadow: 0.23rem 0.098rem 1rem 0rem rgba(242, 244, 230, 0.231);
	--accent: #F79675; /* peach rose from the background */
	--radius: 0.75rem;
	--panel-radius: 0.625rem;
	--font: 'Urbanist', sans-serif;
}

/* ---------- Base ---------- */

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

html.site-root {
	font-size: 11pt;
}

body {
	margin: 0;
	min-width: 320px;
	overflow-x: hidden;
	background-color: #000;
	color: var(--text);
	font-family: var(--font);
	line-height: 1;
	word-wrap: break-word;
	-webkit-text-size-adjust: none;
}

h1, h2, h3, p, ul, figure {
	margin: 0;
}

ul {
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
}

code {
	margin: 0 0.25em;
	padding: 0.25em 0.5em;
	background-color: rgba(144, 144, 144, 0.25);
	border-radius: 0.25em;
	font-family: 'Lucida Console', 'Courier New', monospace;
	font-size: 0.9em;
	font-weight: normal;
}

/* ---------- Background ---------- */

body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: url('images/bg.jpg') center / cover no-repeat;
}

.page {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	text-align: center;
}

/* Header + content + footer always fill exactly one window.
   dvh = the *visible* height on phones (excludes the browser's address bar),
   which fixes the old "doesn't fit the window" issue on mobile. */
main {
	display: flex;
	flex: 1;
	flex-direction: column;
}


.site-footer {
	margin-top: auto;
}

/* ---------- Header ---------- */

.site-header {
	background-color: var(--cream);
}

.bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	max-width: 84rem;
	margin: 0 auto;
	padding: 0.375rem 1.5rem;
}

.bar--mobile {
	display: none;
}

.logo {
	display: block;
	line-height: 0;
}

/* Logo image is trimmed to the lettering, so it scales without clipping */
.logo img {
	display: block;
	width: 20.375rem;
	max-width: 100%;
	height: auto;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nav a {
	display: inline-block;
	min-width: 6.5rem;
	height: 2.75rem;
	line-height: 2.75rem;
	padding: 0 0.9rem 0 calc(0.9rem + 0.25rem);
	color: var(--ink-nav);
	font-size: 1em;
	font-weight: 500;
	letter-spacing: 0.25rem;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: transform 0.25s ease;
}

.nav a:hover {
	transform: scale(1.1125);
}

/* Round icon buttons (menu / close) */

.icon-btn {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2em;
	height: 2em;
	border-radius: 100%;
	font-size: 1.5em;
	transition: transform 0.25s ease;
}

.icon-btn svg {
	width: 60%;
	height: 60%;
	fill: var(--icon);
}

.icon-btn:hover {
	transform: scale(1.1125);
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
	display: block;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-block;
	height: 2.75rem;
	line-height: 2.75rem;
	padding: 0 1.5rem 0 calc(1.5rem + 0.25rem);
	font-family: var(--font);
	font-size: 1em;
	font-weight: 500;
	letter-spacing: 0.25rem;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: transform 0.25s ease;
}

.btn:hover {
	transform: scale(1.1125);
}

.btn--solid {
	background-color: var(--cream);
	color: var(--ink);
}

.btn--ghost {
	border: 1px solid rgba(242, 244, 230, 0.6);
	background-color: transparent;
	color: var(--cream);
	line-height: calc(2.75rem - 2px);
}

.btn--small {
	height: 2.5rem;
	line-height: 2.5rem;
	padding: 0 1.25rem 0 calc(1.25rem + 0.2rem);
	font-size: 0.8em;
	letter-spacing: 0.2rem;
}

.btn--small.btn--ghost {
	line-height: calc(2.5rem - 2px);
}

/* "BACK ←" button (same style as the original Intro back button) */

.back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 12.75rem;
	height: 2.75rem;
	margin-top: 2.75rem;
	white-space: nowrap;
	padding: 0 0.5rem 0 calc(0.25rem + 0.5rem);
	color: var(--text);
	font-size: 1em;
	font-weight: 500;
	letter-spacing: 0.25rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 0.25s ease;
}

.back-btn svg {
	flex-shrink: 0;
	width: 1.25em;
	min-width: 18px;
	height: 100%;
	margin-left: 0.5em;
	fill: var(--text);
}

.back-btn:hover {
	transform: scale(1.1125);
}

/* ---------- Home ---------- */

/* Home fills the space between header and footer, text centered in it. */
.main--home {
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero {
	max-width: 84rem;
	padding: 2rem 4.5rem;
	animation: bounce-right 2s both;
}

.hero-title {
	color: var(--cream);
	/* Shrinks on short windows (laptops, phones in landscape) so it never overflows. */
	font-size: min(3.875em, 9vh);
	font-weight: 300;
	line-height: 1.25;
}

@keyframes bounce-right {
	0%   { opacity: 0; transform: translateX(-0.45rem); }
	33%  { opacity: 1; transform: translateX(0.45rem); }
	90%  { opacity: 1; transform: translateX(-0.1125rem); }
	100% { opacity: 1; transform: translateX(0); }
}

/* ---------- Mobile menu (dropdown under the header) ---------- */

.menu {
	display: none;
}

.menu a {
	display: block;
	width: 100%;
	max-width: 32rem;
	height: 2.75rem;
	line-height: 2.75rem;
	padding: 0 0.5rem 0 calc(0.25rem + 0.5rem);
	color: var(--ink);
	font-weight: 500;
	letter-spacing: 0.25rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 0.25s ease;
}

.menu a:hover {
	transform: scale(1.1125);
}

/* ---------- Intro ---------- */

.about {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 3.75rem 0;
	padding: 9.25rem 4.5rem;
	background-color: var(--panel);
	-webkit-backdrop-filter: blur(0.225rem);
	backdrop-filter: blur(0.225rem);
	border-radius: var(--panel-radius);
}

.avatar {
	width: 7.625rem;
	height: 7.625rem;
	overflow: hidden;
	border-radius: 100%;
	line-height: 0;
}

.avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-touch-callout: none;
	user-select: none;
}

.about-name {
	margin-top: 1.5rem;
	color: var(--text);
	font-size: 7em;
	font-weight: 100;
	line-height: 1.125;
	letter-spacing: -0.075rem;
}

.about-bio {
	margin: 3.5rem 0;
	color: var(--text);
	font-size: 1.5em;
	font-weight: 200;
	line-height: 1.375;
}

.about-bio p + p {
	margin-top: 1.125rem;
}

/* ---------- Systems / Apps / Art ---------- */

.work {
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	padding: 4.75rem 1.5rem;
	text-align: left;
}

.work > .back-btn {
	display: flex;
	margin: 3.75rem auto 0;
}

.work-title {
	color: var(--text);
	font-size: 7em;
	font-weight: 100;
	line-height: 1.125;
	letter-spacing: -0.075rem;
	text-align: center;
}

.work-intro {
	max-width: 40rem;
	margin: 1.5rem auto 3.75rem;
	color: var(--muted);
	font-size: 1.5em;
	font-weight: 200;
	line-height: 1.375;
	text-align: center;
}

/* Cards */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
	gap: 2.5rem;
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: var(--panel);
	-webkit-backdrop-filter: blur(0.225rem);
	backdrop-filter: blur(0.225rem);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.card-media {
	display: block;
	overflow: hidden;
}

.card-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top left;
	-webkit-touch-callout: none;
	user-select: none;
	transition: transform 0.375s ease;
}

.card-media:hover img {
	transform: scale(1.05);
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.75rem;
}

.card-title {
	font-size: 1.75em;
	font-weight: 300;
	line-height: 1.2;
}

.card-summary {
	color: var(--muted);
	font-size: 1.125em;
	font-weight: 200;
	line-height: 1.5;
}

.card-meta {
	font-size: 0.95em;
	font-weight: 300;
	line-height: 1.5;
}

.card-meta span {
	margin-right: 0.5rem;
	color: var(--muted);
	font-size: 0.8em;
	font-weight: 500;
	letter-spacing: 0.15rem;
	text-transform: uppercase;
}

.card-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.75rem;
}

/* Art grid */

.art-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 1.5rem;
}

.art-item {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: zoom-in;
}

.art-item img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	-webkit-touch-callout: none;
	user-select: none;
	transition: transform 0.375s ease;
}

.art-item:hover img {
	transform: scale(1.04);
}

.art-title {
	font-family: var(--font);
	font-size: 1em;
	font-weight: 300;
}

/* Lightbox */

.lightbox {
	max-width: min(92vw, 80rem);
	max-height: 94vh;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.lightbox::backdrop {
	background: rgba(10, 10, 10, 0.9);
}

.lightbox img {
	display: block;
	max-width: 100%;
	max-height: 85vh;
	margin: 0 auto;
	border-radius: var(--radius);
	-webkit-touch-callout: none;
	user-select: none;
}

.lightbox-caption {
	margin-top: 1rem;
	color: var(--text);
	font-family: var(--font);
	font-weight: 300;
	text-align: center;
}

.lightbox-close {
	position: fixed;
	top: 1rem;
	right: 1.25rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 100%;
	background: var(--cream);
	color: var(--icon);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

/* ---------- Contact ---------- */

.main--contact {
	justify-content: center;
}

/* Same dark panel as the Intro page */
.contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 1.5rem 0;
	padding: 4.75rem 4.5rem;
	background-color: var(--panel);
	-webkit-backdrop-filter: blur(0.225rem);
	backdrop-filter: blur(0.225rem);
	border-radius: var(--panel-radius);
	color: var(--text);
	text-align: center;
}

.contact-title {
	font-size: min(7em, 14vh);
	font-weight: 100;
	line-height: 1.125;
	letter-spacing: -0.075rem;
}

.contact-text code {
	background-color: rgba(242, 244, 230, 0.12);
	color: var(--text);
}

.contact-text {
	text-wrap: balance;
	margin: 2.125rem 0 0;
	font-size: 1.5em;
	font-weight: 200;
	line-height: 1.5;
}

.contact-icons {
	display: flex;
	gap: 1.75rem;
	margin-top: 2.625rem;
	font-size: 2.5em;
}

.contact-icons a {
	display: flex;
	width: 1em;
	height: 1em;
	transition: transform 0.25s ease;
}

.contact-icons svg {
	width: 100%;
	height: 100%;
	fill: var(--text);
	transition: fill 0.25s ease;
}

.contact-icons a:hover {
	transform: scale(1.1125);
}

.contact-icons a:hover svg {
	fill: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
	background-color: var(--cream);
	color: #000;
}

.footer-inner {
	max-width: 84rem;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: center;
	padding: 0 5.5rem;
}

.footer-logo {
	display: flex;
	justify-content: center;
	line-height: 0;
}

.footer-logo img {
	width: 18rem;
	max-width: 100%;
	height: auto;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem;
}

.footer-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 10.25rem;
	height: 3.25rem;
	padding: 0 0.5rem 0 calc(0.25rem + 0.5rem);
	font-size: 0.75em;
	font-weight: 400;
	letter-spacing: 0.25rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 0.25s ease;
}

.footer-links svg {
	flex-shrink: 0;
	width: 2.5em;
	min-width: 18px;
	height: 100%;
	margin-left: -0.125em;
	margin-right: calc(0.5em + 0.25rem);
	fill: #000;
}

.footer-links a:hover {
	transform: scale(1.1125);
}

.footer-copy {
	font-size: 0.875em;
	font-weight: 400;
	line-height: 1.625;
}

/* ---------- Focus states ---------- */

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--cream);
	outline-offset: 3px;
}

.site-header a:focus-visible,
.menu a:focus-visible,
.site-footer a:focus-visible {
	outline-color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	html.site-root {
		font-size: 9pt;
	}
}

@media (max-width: 736px) {
	.bar--desktop,
	.desktop-only {
		display: none !important;
	}

	.bar--mobile {
		display: flex;
		padding: 1rem 2rem;
	}

	.bar--mobile .logo img {
		width: 16.75rem;
		max-width: 60vw;
	}

	.hero {
		padding: 2rem 1rem;
	}

	.hero-title {
		font-size: min(3.5em, 8vh, 11vw);
	}

	.menu:not([hidden]) {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.5rem;
		padding: 0.5rem 2rem 1.5rem;
		border-top: 1px solid rgba(44, 45, 51, 0.12);
	}

	.about {
		margin: 2.625rem 0;
		padding: 3.5rem 2rem;
	}

	.avatar {
		width: 6.5rem;
		height: 6.875rem;
	}

	.about-name {
		font-size: 3.5em;
		letter-spacing: -0.065rem;
	}

	.about-bio {
		margin: 2.625rem 0;
	}

	.work {
		padding: 2.75rem 1rem;
	}

	.work-title {
		font-size: 3.5em;
		letter-spacing: -0.065rem;
	}

	.work-intro {
		margin-bottom: 2.5rem;
		font-size: 1.25em;
	}

	.cards {
		gap: 1.75rem;
	}

	.contact {
		margin: 1.5rem 0;
		padding: 3.5rem 2rem;
	}

	.contact-title {
		font-size: 3.5em;
	}

	.contact-icons {
		margin-top: 1.96875rem;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		padding: 0 2rem;
	}

	.footer-logo img {
		width: 20rem;
		max-width: 80vw;
	}
}

@media (max-width: 480px) {

	.avatar {
		height: 5.5rem;
	}

	.back-btn {
		width: 100%;
		max-width: 32rem;
	}

	.footer-links {
		flex-direction: column;
		align-items: center;
	}

	.footer-links a {
		width: 100%;
		max-width: 32rem;
	}

}

@media (max-width: 360px) {
	.bar--mobile {
		padding: 0.75rem 1.5rem;
	}


	.hero {
		padding: 1.5rem 0.75rem;
	}

	.about {
		padding: 2.625rem 1.5rem;
	}

	.avatar {
		height: 4.8125rem;
	}

	.contact {
		padding: 2.625rem 1.5rem;
	}

	.footer-inner {
		padding: 0 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero {
		animation: none;
	}
}

/* =========================================================
   Case-study pages (systems/<project>/)
   ========================================================= */

.main--case {
	align-items: center;
	padding-bottom: 3.75rem;
}

.case {
	width: calc(100% - 3rem);
	max-width: 50rem;
	margin: 3.75rem auto 0;
	padding: 4.5rem;
	background: var(--panel);
	-webkit-backdrop-filter: blur(0.225rem);
	backdrop-filter: blur(0.225rem);
	border-radius: var(--panel-radius);
	text-align: left;
	line-height: 1.6;
}

.case h1 {
	font-size: 3.5em;
	font-weight: 200;
	line-height: 1.15;
}

.case-summary {
	margin-top: 1rem;
	color: var(--muted);
	font-size: 1.5em;
	font-weight: 200;
	line-height: 1.5;
}

.case-meta {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 2rem;
	padding: 1.25rem 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	font-size: 1.1em;
	font-weight: 300;
}

.case-meta span {
	margin-right: 0.5rem;
	color: var(--muted);
	font-size: 0.75em;
	font-weight: 500;
	letter-spacing: 0.15rem;
	text-transform: uppercase;
}

.case h2 {
	margin: 3rem 0 1rem;
	font-size: 1.05em;
	font-weight: 500;
	letter-spacing: 0.25rem;
	text-transform: uppercase;
}

.case p,
.case li {
	font-size: 1.25em;
	font-weight: 300;
}

.case-meta li {
	font-size: 1em;
}

.case strong {
	font-weight: 500;
}

.case ul.case-list {
	padding-left: 1.25rem;
	list-style: disc;
}

.case-list li + li {
	margin-top: 0.5rem;
}

.case-figure {
	margin-top: 3rem;
}

.case-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.case-figure--narrow img {
	max-width: 18rem;
	margin: 0 auto;
}

.case-figure figcaption {
	margin-top: 0.75rem;
	color: var(--muted);
	font-size: 1em;
	font-weight: 300;
	text-align: center;
}

.case-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 3rem;
}

.card-note {
	color: var(--muted);
	font-size: 0.85em;
	font-weight: 300;
	font-style: italic;
	line-height: 1.5;
}

.case-links:empty {
	display: none;
}

.main--case > .back-btn {
	margin-top: 3.75rem;
}

@media (max-width: 736px) {
	.main--case {
		padding-bottom: 2.625rem;
	}

	.case {
		width: calc(100% - 2rem);
		margin-top: 2.625rem;
		padding: 2.5rem 1.5rem;
	}

	.case h1 {
		font-size: 2.75em;
	}

	.case p,
	.case li {
		font-size: 1.375em;
	}

	.case-meta li {
		font-size: 1.1em;
	}

	.main--case > .back-btn {
		margin-top: 2.625rem;
	}
}
