/*
Theme Name: CoreyMW
Theme URI: https://coreymw.com
Author: Corey MW
Description: Black and metallic-blue portfolio theme. Split home page with an "At a glance" panel, and a Monolith-style Career page with filterable project work, skills and certifications. Edit content under Appearance › Customize and the Projects menu.
Version: 1.6.0
Requires at least: 6.0
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: coreymw
*/

:root {
	--bg: #000;
	--bg-alt: #07090C;
	--panel: #05080B;
	--panel-2: #090C10;
	--line: #16202B;
	--line-2: #141C26;
	--border: #2C4560;
	--text: #C9D6E3;
	--text-soft: #A9B8C8;
	--muted: #8FA3B8;
	--faint: #7F93A8;
	--head: #F2F6FA;
	--accent: #6E9CCF;
	--accent-2: #4A7BB7;
	--link: #9FC3E8;
	--link-hover: #D4E6F8;
	--chip: #BFD5EC;
	--label: #8FA9C4;
	--metal: linear-gradient(145deg, #B9D4F0, #2E5C92 45%, #0F1D2C 75%, #7FA8D6);
	--font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Space Grotesk", Inter, system-ui, sans-serif;
}

*, *::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-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.cmw-career-page { background: var(--bg-alt); }
a { color: var(--link); }
a:hover, a:focus { color: var(--link-hover); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--head); line-height: 1.15; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 12px 16px; background: var(--panel); color: var(--head); border-radius: 6px;
}

.site { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--narrow { max-width: 1120px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
	padding-top: 20px; padding-bottom: 20px;
	display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); }
.brand:hover { color: var(--head); }
.brand__mark {
	width: 36px; height: 36px; border-radius: 8px;
	background: linear-gradient(135deg, #B9D4F0, #3C6BA3 55%, #1E3A5F);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-head); font-weight: 700; color: #000; flex: none;
}
.brand__logo img { max-height: 40px; width: auto; display: block; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 18px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.main-nav a {
	display: block; padding: 12px 18px; border-radius: 6px;
	color: #9FB2C6; text-decoration: none; font-size: 15px;
}
.main-nav a:hover { color: var(--head); background: #0B121B; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav a[aria-current="page"] { background: #0E1722; color: #E8F0F8; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 26px; border-radius: 6px;
	font-weight: 600; text-decoration: none; font-size: 16px; line-height: 1.2;
}
.btn--primary { background: var(--accent-2); color: #000; }
.btn--primary:hover, .btn--primary:focus { background: #6E9CCF; color: #000; }
.btn--ghost { border: 1px solid var(--border); color: var(--link-hover); font-weight: 500; }
.btn--ghost:hover, .btn--ghost:focus { border-color: var(--accent); color: var(--head); }
.btn--metal { background: linear-gradient(180deg, #7FA8D6, #3C6BA3); color: #07090C; padding: 0 28px; }
.btn--metal:hover, .btn--metal:focus { color: #07090C; filter: brightness(1.1); }

.pill {
	display: inline-block; padding: 8px 12px; border-radius: 999px;
	border: 1px solid var(--border); font-size: 13px; line-height: 1.2; color: var(--chip);
}
.pill--sm { padding: 6px 12px; }

/* Home: Split */
.home-split {
	padding-top: 88px; padding-bottom: 88px;
	display: flex; flex-wrap: wrap; gap: 64px; align-items: center; flex: 1;
}
.home-split__copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.home-split__title { margin: 0; font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
.home-split__intro { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text-soft); max-width: 560px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.glance { flex: 1 1 360px; min-width: 0; border-radius: 14px; padding: 2px; background: var(--metal); }
.glance__inner { border-radius: 12px; background: var(--panel); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.glance__title {
	margin: 0; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label);
}
.glance__list { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.glance__row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.glance__row:last-child { padding-bottom: 0; border-bottom: 0; }
.glance__row dt { color: var(--muted); }
.glance__row dd { margin: 0; color: var(--head); text-align: right; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.home-content { padding-bottom: 88px; }

/* Career: Monolith */
.career-header { border-bottom: 0; }
.chrome-text {
	background: linear-gradient(120deg, #D4E6F8 0%, #6E9CCF 38%, #2E5C92 62%, #A9C9EC 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.career { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 96px; }
.career__hero { display: flex; flex-direction: column; gap: 24px; }
.eyebrow { margin: 0; font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); }
.career__title { margin: 0; font-weight: 700; font-size: clamp(44px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.02em; }
.career__intro { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--text-soft); }
.career__intro p { margin: 0 0 1em; }
.career__intro p:last-child { margin-bottom: 0; }

.c-section { display: flex; flex-direction: column; gap: 32px; }
.c-section__head { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; }
.c-section__title { margin: 0; font-size: clamp(28px, 4vw, 36px); }
.rule { height: 1px; background: linear-gradient(90deg, var(--accent), #1B2A3B 70%); }
.label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
	min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid var(--border); background: transparent; color: var(--chip);
	font: 500 14px var(--font-body); cursor: pointer;
}
.filter-chip:hover { border-color: var(--accent); }
.filter-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--bg-alt); font-weight: 600; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.project { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line-2); border-radius: 12px; background: linear-gradient(180deg, #0B1118, #080B10); transition: border-color .2s; }
.project:hover { border-color: #2C4560; }
.project[hidden] { display: none; }
.project__meta { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.project__meta .label { flex: 1 1 auto; min-width: 0; }
.project__when { flex: none; margin-left: auto; white-space: nowrap; font-size: 14px; line-height: 1.5; color: var(--muted); }
.project__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.project__title { margin: 0; font-size: 21px; line-height: 1.25; }
.project__title a { color: inherit; text-decoration: none; }
.project__title a:hover { color: var(--link-hover); }
.project__summary { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.project__summary br { display: none; }
.project__summary p { margin: 0 0 .75em; }
.project__summary p:last-child { margin-bottom: 0; }
.project__result { margin: 0; font-size: 15px; line-height: 1.55; color: var(--link-hover); }
.project__result span { color: var(--accent); }
.project__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.projects__empty, .projects .admin-hint { grid-column: 1 / -1; padding: 36px 0; color: var(--muted); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.skill-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 18px; color: var(--head); }
.cred { display: flex; flex-direction: column; gap: 14px; }
.cred__item { font-family: var(--font-head); font-size: 22px; color: var(--head); line-height: 1.3; }
.cred__note { font-size: 15px; color: var(--muted); }
.cred__link { font-size: 15px; padding: 12px 0; }

.cta { border-radius: 12px; padding: 2px; background: linear-gradient(135deg, #B9D4F0, #2E5C92 45%, #0F1D2C 75%, #7FA8D6); }
.cta__inner {
	border-radius: 10px; background: var(--panel-2); padding: 48px;
	display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
}
.cta__text { display: flex; flex-direction: column; gap: 8px; }
.cta__title { margin: 0; font-size: 30px; }
.cta__text p { margin: 0; color: var(--text-soft); }

.admin-hint {
	padding: 20px 24px; border: 1px dashed var(--border); border-radius: 10px; color: var(--muted); font-size: 15px;
}

/* Generic pages / posts */
.page-main { padding-top: 72px; padding-bottom: 96px; flex: 1; }
.entry { max-width: 760px; }
.entry + .entry { margin-top: 72px; }
.entry__title { margin: 0 0 24px; font-size: clamp(36px, 5vw, 52px); }
.entry__title a { color: inherit; text-decoration: none; }
.entry__meta { margin: -12px 0 24px; color: var(--muted); font-size: 14px; }
.entry__content { font-size: 17px; line-height: 1.75; color: var(--text); }
.entry__content h2 { font-size: 30px; margin: 48px 0 16px; }
.entry__content h3 { font-size: 22px; margin: 36px 0 12px; }
.entry__content blockquote { margin: 24px 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--text-soft); }
.entry__content pre, .entry__content code { background: var(--panel-2); border-radius: 6px; }
.entry__content pre { padding: 16px; overflow-x: auto; }
.entry__content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry__content th, .entry__content td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.alignwide { max-width: 1120px; }
.alignfull { max-width: none; }
.wp-block-button__link { background: var(--accent-2); color: #000; border-radius: 6px; }
.pagination { margin-top: 56px; display: flex; gap: 16px; }
.pagination .page-numbers { padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; }
.pagination .current { background: #0E1722; color: var(--head); }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); padding: 28px 24px; text-align: center; font-size: 14px; color: var(--faint); }
.cmw-career-page .site-footer { border-top-color: var(--line-2); }
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--link-hover); }
.footer-nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }

@media (max-width: 640px) {
	.home-split { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
	.glance__inner { padding: 24px; }
	.career { padding-top: 48px; gap: 72px; }
	.cta__inner { padding: 28px; }

	.main-nav a { padding: 12px 14px; }
}

/* Contact page */
.contact { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; flex: 1; }
.contact__copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact__panel { flex: 999 1 520px; }
.cform { display: flex; flex-direction: column; gap: 20px; }
.cform__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.cform__field { display: flex; flex-direction: column; gap: 8px; }
.cform label { font-size: 14px; color: var(--chip); font-weight: 500; }
.cform__opt { color: var(--muted); font-weight: 400; }
.cform input, .cform select, .cform textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 6px;
	border: 1px solid var(--border); background: #0A1017; color: var(--head);
	font: 16px/1.4 var(--font-body);
}
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(159, 195, 232, .25); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform .btn { border: 0; cursor: pointer; font-family: var(--font-body); }
.form-note { margin: 0; padding: 14px 16px; border-radius: 8px; font-size: 15px; }
.form-note--ok { background: #0E1A26; border: 1px solid var(--accent); color: var(--link-hover); }
.form-note--err { background: #1F1012; border: 1px solid #C46A72; color: #F2C4C8; }

/* Project grid breakpoints */
@media (max-width: 960px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .projects { grid-template-columns: 1fr; } }

/* Project carousel */
[hidden] { display: none !important; }
.projects.is-carousel { display: block; }
.carousel__viewport { overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; gap: 20px; transition: transform 520ms cubic-bezier(.22, .61, .36, 1); }
.carousel__track.no-anim, .carousel__track.no-anim > * { transition: none !important; }
.carousel__slide {
	flex: 0 0 100%; min-width: 0; display: grid; gap: 20px;
	transition: opacity 520ms ease; opacity: .25;
}
.carousel__slide.is-current { opacity: 1; }
.carousel-controls { display: flex; align-items: center; gap: 16px; }
.carousel-count { font-size: 14px; color: var(--muted); }
.carousel-arrows { display: flex; gap: 10px; }
.arrow {
	width: 48px; height: 48px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--accent); color: var(--link-hover); cursor: pointer; padding: 0;
}
.arrow:hover { background: #0E1722; }
.arrow[aria-disabled="true"] { border-color: #1B2A3B; color: #5D7188; cursor: default; background: transparent; }
.carousel-dots { display: flex; justify-content: center; gap: 4px; }
.carousel-dot { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.carousel-dot span { display: block; width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width .3s ease, background .3s ease; }
.carousel-dot[aria-current="true"] span { width: 28px; background: var(--accent); }
@media (prefers-reduced-motion: reduce) {
	.carousel__track, .carousel__slide, .carousel-dot span { transition: none !important; }
}
