/*
Theme Name: Haleemah Atobiloye
Author: Haleemah Atobiloye
Description: A quiet, editorial personal site: a side menu, one strong photo, and plenty of white space. Built for haleemahatobiloye.com.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
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: haleemah-atobiloye
*/

/* ---------- Page frame: side menu + content ---------- */

.ha-shell {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 4rem;
	max-width: 1440px;
	margin: 0 auto;
	padding: 72px 72px 96px;
	box-sizing: border-box;
}

.ha-shell > * {
	margin-block-start: 0 !important;
}

.ha-side {
	flex: 1 1 220px;
	max-width: 280px;
}

.ha-main {
	flex: 999 1 560px;
	min-width: 0;
}

/* ---------- Side menu ---------- */

.ha-side .wp-block-site-title a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.ha-side .ha-credentials {
	margin-block-start: 0.875rem;
	font-size: 1.1875rem;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.ha-side .ha-menu {
	margin-block-start: 3rem;
}

.ha-side .ha-menu > * {
	margin-block-start: 0;
}

.ha-side .wp-block-navigation {
	font-size: 1.1875rem;
	line-height: 1.4;
}

.ha-side .wp-block-navigation .wp-block-navigation__container {
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
	width: 100%;
}

.ha-side .wp-block-navigation-item {
	width: 100%;
}

.ha-side .wp-block-navigation .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 8px 0;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}

.ha-side .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--muted);
}

.ha-side .wp-block-navigation .wp-block-navigation-item__content[aria-current="page"],
.ha-side .wp-block-navigation .wp-block-navigation-item__content.ha-current {
	color: var(--wp--preset--color--accent);
	border-bottom: 1.5px dotted var(--wp--preset--color--accent);
}

.ha-side .ha-nav-label {
	margin: 20px 0 4px !important;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.ha-side .ha-nav-contact {
	margin-top: 20px !important;
}

/* ---------- Content ---------- */

.ha-main .wp-block-post-content > * {
	max-width: 820px;
}

.ha-main .wp-block-post-content > .ha-home {
	max-width: none;
}

.ha-main strong {
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

.ha-main a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Small uppercase section labels, e.g. FRAMEWORKS */
.ha-main h2.ha-label,
.ha-main h3.ha-label {
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.5;
	margin-block-start: 3.5rem;
}

/* Small grey kicker, e.g. CASE STUDY 01 */
.ha-main .ha-eyebrow {
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-block-end: -0.75rem;
}

.ha-main .ha-meta {
	font-size: 1rem;
	line-height: 1.6;
}

/* Thin line on the left, for frameworks and grouped items */
.ha-main .ha-indent {
	border-left: 1px solid var(--wp--preset--color--line);
	padding-left: 24px;
}

.ha-main .ha-indent > * + * {
	margin-block-start: 0.25rem;
}

/* Year + item lists (tables) */
.ha-main .wp-block-table.ha-years table {
	border: 0;
	border-collapse: collapse;
	width: 100%;
}

.ha-main .wp-block-table.ha-years td {
	border: 0;
	padding: 7px 0;
	vertical-align: top;
}

.ha-main .wp-block-table.ha-years td:first-child {
	width: 140px;
	padding-right: 24px;
	color: var(--wp--preset--color--muted);
}

.ha-main .wp-block-table.ha-dates td:first-child {
	width: 214px;
}

.ha-main .wp-block-column > .ha-label:first-child {
	margin-block-start: 0;
}

/* Dated entries, e.g. Work History */
.ha-main .ha-entry {
	gap: 2rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.ha-main .ha-entry .ha-date {
	font-size: 1rem;
	padding-top: 3px;
}

.ha-main .ha-entry h2 {
	font-size: 1.375rem;
	line-height: 1.35;
}

.ha-main .ha-entry .wp-block-column > * + * {
	margin-block-start: 0.375rem;
}

.ha-main .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	margin-block: 4.5rem 0;
	opacity: 1;
}

/* Home: photo in the middle, words on the right */
.ha-main .ha-home {
	gap: 4rem;
}

.ha-main .ha-home .wp-block-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.ha-main .ha-home .ha-intro {
	padding-top: 2.5rem;
}

.ha-main .ha-home h1 {
	font-size: 3rem;
	line-height: 1.1;
}

/* Contact: links column */
.ha-main .ha-contact {
	gap: 5rem;
}

.ha-main .ha-form-slot {
	border: 1px dashed #b5b5b5;
	padding: 2.5rem;
	color: var(--wp--preset--color--muted);
}

/* ---------- Phones ---------- */

@media (max-width: 760px) {
	.ha-shell {
		padding: 32px 20px 56px;
		gap: 2.5rem;
	}

	.ha-side {
		max-width: none;
	}

	.ha-side .ha-menu {
		margin-block-start: 1.5rem;
	}

	.ha-side .wp-block-navigation .wp-block-navigation__container {
		flex-direction: row;
		flex-wrap: wrap;
		column-gap: 20px;
	}

	.ha-side .wp-block-navigation-item {
		width: auto;
	}

	.ha-main .ha-home h1 {
		font-size: 2.25rem;
	}

	.ha-main .ha-home .ha-intro {
		padding-top: 0;
	}

	.ha-main .wp-block-table.ha-years td:first-child,
	.ha-main .wp-block-table.ha-dates td:first-child {
		width: 96px;
		padding-right: 16px;
	}
}
