/*
Theme Name: Vinzant Classic
Theme URI: https://ryanvinzant.com
Author: Ryan C. Vinzant
Description: A classic, professional multi-page theme for a clinical psychology researcher. Every page is built from regular WordPress blocks, so all text and photos can be edited in the page editor, and ready-made sections can be added from Patterns > Vinzant Classic. On activation it creates the Home, About, Research, Projects, Collaborate and Contact pages and the main menu.
Version: 1.1.0
Requires at least: 6.4
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: vinzant-classic
*/

:root {
	--navy: #1b2a44;
	--navy-deep: #121d31;
	--ink: #24272e;
	--muted: #5a606c;
	--paper: #fbf9f5;
	--tint: #f2eee6;
	--line: #e0d9cc;
	--gold: #a37f3e;
	--gold-dark: #876730;
	--gold-light: #d7bd85;
	--white: #ffffff;
	--serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
	--sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
	--wrap: 1140px;
	--radius: 4px;
	--gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 400;
	color: var(--navy);
	line-height: 1.25;
	margin: 0 0 .6em;
	letter-spacing: -0.005em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }

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

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------- Header ---------- */
.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.monogram {
	display: grid; place-items: center;
	width: 48px; height: 48px;
	border: 1px solid var(--navy);
	font-family: var(--serif); font-style: italic; font-size: 1.2rem;
	color: var(--navy);
	outline: 1px solid var(--line); outline-offset: 3px;
}
.brand-logo { width: 52px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); }
.brand-role { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
	display: block; padding: 8px 12px;
	font-size: .92rem; font-weight: 600; letter-spacing: .03em;
	color: var(--ink); text-decoration: none;
	border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--navy); border-bottom-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 46px; height: 46px; border-radius: var(--radius); cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
	content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: var(--navy); transition: transform .2s;
}
.nav-toggle-bar { top: 22px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Title band (pages without their own header) ---------- */
.page-head {
	background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
	color: #fff;
	padding: clamp(56px, 8vw, 96px) 0;
	border-bottom: 4px solid var(--gold);
}
.page-head .eyebrow {
	font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--gold-light); margin: 0 0 .9em;
}
.page-head h1 { color: #fff; max-width: 820px; margin: 0; }

/* ---------- Page content (built from blocks) ---------- */
.vc-content > :not(.alignfull) {
	max-width: min(760px, calc(100% - 2 * var(--gutter)));
	margin-left: auto !important;
	margin-right: auto !important;
}
.vc-content > :not(.alignfull):first-child { margin-top: 48px; }
.vc-content > :not(.alignfull):last-child { margin-bottom: 72px; }
.vc-content > .alignfull { margin-top: 0; margin-bottom: 0; }

.vc-content :where(p, h1, h2, h3, h4, ul, ol, figure, blockquote) { margin-top: 0; margin-bottom: 0; }
.vc-content :where(.is-layout-flow, .is-layout-constrained) > * + * { margin-block-start: 1.1rem; }

/* Sections */
.vc-section { padding: clamp(60px, 8vw, 100px) var(--gutter); }
.vc-tinted { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Narrower text inside a wide section stays lined up on the left edge. */
.vc-section-title { max-width: 720px; }
.vc-content :is(.vc-page-head, .vc-section) > :is(h1, h2, p, .vc-section-title) {
	margin-left: max(0px, calc((100% - 1140px) / 2)) !important;
	margin-right: auto !important;
}
.vc-content .vc-section > :is(h1, h2, p, .vc-section-title) { max-width: min(720px, 100%); }
.vc-content .vc-section-title + *,
.editor-styles-wrapper .vc-section-title + * { margin-block-start: 2.4rem; }

/* Labels */
.vc-eyebrow, .is-style-vc-eyebrow, .vc-label {
	font-family: var(--sans);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gold-dark);
	line-height: 1.5;
}
.vc-label { font-size: .74rem; }
.vc-content .vc-eyebrow + *, .vc-content .is-style-vc-eyebrow + *, .vc-content .vc-label + * { margin-block-start: .5rem; }
.vc-hero .vc-eyebrow, .vc-page-head .vc-eyebrow, .vc-quote-band .vc-eyebrow,
.vc-hero .is-style-vc-eyebrow, .vc-page-head .is-style-vc-eyebrow { color: var(--gold-light); }

.vc-lede, .is-style-vc-lede { font-size: 1.15rem; color: var(--muted); }
.vc-small { font-size: .9rem; color: var(--muted); }
.vc-small strong { color: var(--navy); }

/* Hero (cover block) */
.wp-block-cover.vc-hero {
	padding: clamp(80px, 12vw, 140px) var(--gutter) clamp(70px, 10vw, 120px);
	align-items: center;
	color: #fff;
}
.wp-block-cover.vc-hero::after {
	content: ""; position: absolute; inset: 24px;
	border: 1px solid rgba(215,189,133,.28);
	pointer-events: none; z-index: 2;
}
.vc-hero .wp-block-cover__inner-container { position: relative; z-index: 3; width: 100%; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; }
.vc-hero .wp-block-cover__inner-container > * { max-width: 900px; margin-left: 0 !important; }
.vc-hero h1 { color: #fff; }
.vc-hero-sub {
	font-family: var(--serif); font-style: italic;
	font-size: clamp(1.1rem, 2vw, 1.4rem); color: #e8dfcb;
}
.vc-content .vc-hero-sub + .wp-block-buttons { margin-block-start: 2rem; }

/* Navy page header (group) */
.vc-page-head {
	background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
	color: #fff;
	padding: clamp(56px, 8vw, 96px) var(--gutter);
	border-bottom: 4px solid var(--gold);
}
.vc-page-head h1, .vc-page-head h2 { color: #fff; max-width: 860px; }
.vc-page-head .vc-lede, .vc-page-head p:not(.vc-eyebrow) { color: #e1e5ee; max-width: 720px; }

/* Interest strip */
.vc-strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 22px var(--gutter); }

/* Buttons */
.wp-block-button__link, .wp-element-button {
	font-family: var(--sans);
	font-weight: 600;
	font-size: .95rem;
	letter-spacing: .04em;
	text-decoration: none;
	padding: .85em 1.6em;
	border-radius: var(--radius);
	border: 1px solid transparent;
	background: var(--navy);
	color: #fff;
	transition: background .2s, color .2s, border-color .2s;
}
.wp-block-button__link:hover { background: var(--navy-deep); color: #fff; }
.is-style-vc-gold .wp-block-button__link { background: var(--gold); color: #fff; }
.is-style-vc-gold .wp-block-button__link:hover { background: var(--gold-dark); }
.is-style-vc-navy .wp-block-button__link { background: var(--navy); color: #fff; }
.is-style-vc-outline-light .wp-block-button__link { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.is-style-vc-outline-light .wp-block-button__link:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid var(--navy); color: var(--navy); }

/* "Learn more" style links */
.vc-more a {
	font-weight: 600; font-size: .95rem;
	text-decoration: none;
	border-bottom: 1px solid var(--gold);
	padding-bottom: 2px;
}
.vc-more a::after { content: " \2192"; }

/* Cards */
.vc-cards { gap: 28px; }
.vc-content .vc-cards + .vc-cards { margin-block-start: 28px; }
.vc-card, .is-style-vc-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--navy);
	border-radius: var(--radius);
	padding: 34px 30px 30px;
	display: flex;
	flex-direction: column;
}
.vc-card p:not(.vc-label):not(.vc-num):not(.vc-more):not(.vc-small) { color: var(--muted); }
.vc-card > .vc-more:last-child { margin-top: auto !important; padding-top: 1.1rem; }
.vc-num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.vc-num-lg { font-size: 3.4rem; }

.vc-photo-card { padding: 0 0 28px; overflow: hidden; }
.vc-photo-card > * { padding-left: 26px; padding-right: 26px; }
.vc-photo-card > .vc-card-photo, .vc-photo-card > .wp-block-image:first-child { padding: 0; margin: 0 0 6px !important; }
.vc-card-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Quotes */
.vc-quote-band { background: var(--navy); color: #fff; padding: 72px var(--gutter); text-align: center; }
.vc-quote-band .wp-block-quote { border: 0; margin: 0 auto; padding: 0; }
.vc-quote-band .wp-block-quote p {
	font-family: var(--serif); font-style: italic;
	font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.5; color: #fff;
}
.vc-quote-band cite, .vc-inline-quote cite, .wp-block-quote cite {
	display: block; margin-top: 1rem;
	font-style: normal; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
	color: var(--gold-dark);
}
.vc-quote-band cite { color: var(--gold-light); }
.wp-block-quote:not(.vc-quote-band .wp-block-quote) { border-left: 3px solid var(--gold); padding: 4px 0 4px 26px; margin-left: 0; }
.wp-block-quote:not(.vc-quote-band .wp-block-quote) p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--navy); }
.vc-content .wp-block-quote + * { margin-block-start: 2rem; }
.vc-content * + .wp-block-quote { margin-block-start: 2rem; }

/* Lists */
.vc-tags, .is-style-vc-tags { list-style: none; margin-left: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vc-tags li, .is-style-vc-tags li {
	font-size: .82rem; font-weight: 600; letter-spacing: .02em; line-height: 1.5;
	color: var(--navy);
	border: 1px solid var(--line);
	background: var(--paper);
	padding: 4px 12px;
	border-radius: 999px;
	margin: 0;
}
.vc-center { justify-content: center; }

.vc-check-list, .is-style-vc-check-list { list-style: none; margin-left: 0; padding: 0; }
.vc-check-list li, .is-style-vc-check-list li {
	position: relative; padding: 14px 0 14px 34px; margin: 0;
	border-bottom: 1px solid var(--line);
}
.vc-check-list li::before, .is-style-vc-check-list li::before {
	content: ""; position: absolute; left: 4px; top: 22px;
	width: 12px; height: 7px;
	border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
	transform: rotate(-45deg);
}

.vc-facts { list-style: none; margin-left: 0; padding: 0; }
.vc-facts li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.vc-facts strong {
	font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark);
}

.vc-method-list { list-style: none; margin-left: 0; padding: 0; counter-reset: vcm; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.vc-method-list li {
	counter-increment: vcm; position: relative;
	padding: 24px 0 24px 56px; margin: 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
}
.vc-method-list li::before {
	content: counter(vcm, decimal-leading-zero);
	position: absolute; left: 0; top: 24px;
	font-family: var(--serif); color: var(--gold-dark); font-size: 1.1rem;
}
.vc-method-list strong { display: inline-block; font-family: var(--serif); font-weight: 400; font-size: 1.12rem; color: var(--navy); margin-bottom: .3rem; }

/* Images */
.vc-portrait, .is-style-vc-framed { padding: 10px; background: var(--white); border: 1px solid var(--line); }
.vc-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.is-style-vc-framed img { display: block; width: 100%; }

.vc-dropcap::first-letter {
	font-family: var(--serif); float: left; font-size: 3.6em; line-height: .9;
	padding: 6px 10px 0 0; color: var(--navy);
}

/* Research rows */
.vc-focus-row { padding: 44px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.vc-focus-row:first-child { padding-top: 0; }
.vc-focus-row:last-child { border-bottom: 0; padding-bottom: 0; }
.vc-focus-row p:not(.vc-num):not(.vc-more) { max-width: 760px; }

/* Projects */
.vc-project { padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.vc-content .vc-project + .vc-project { margin-block-start: 44px; }
.vc-project:last-child { border-bottom: 0; padding-bottom: 0; }
.vc-project h2 a { text-decoration: none; }

/* Callout */
.vc-callout {
	background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold);
	padding: 22px 28px; border-radius: var(--radius);
}
.vc-content .vc-callout + * { margin-block-start: 32px; }
.vc-callout-text { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }

/* Columns spacing */
.wp-block-columns.vc-gap-lg { gap: 56px; }

/* Media & text */
.vc-media-text .wp-block-media-text__content { padding: 0 0 0 48px; }
.vc-media-text img { border: 1px solid var(--line); }

/* Contact */
.vc-contact-item { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.vc-content .vc-contact-item + .vc-label { margin-block-start: 20px; }
.vc-form-card, .wp-block-group.vc-form-card {
	background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy);
	padding: 40px; border-radius: var(--radius);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin: 0 0 20px !important; }
.field label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(163,127,62,.18); }
.contact-form .btn {
	display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .04em;
	padding: .85em 1.6em; border: 0; border-radius: var(--radius); cursor: pointer;
	background: var(--navy); color: #fff;
}
.contact-form .btn:hover { background: var(--navy-deep); }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.notice.success { background: #eaf3ec; color: #24543a; border: 1px solid #b9d7c2; }
.notice.error { background: #f8ecea; color: #7a2c22; border: 1px solid #e3bdb6; }

/* Call-to-action band */
.vc-cta-band { background: var(--tint); border-top: 1px solid var(--line); padding: 64px var(--gutter); }
.vc-cta-band p:not(.vc-eyebrow) { color: var(--muted); }

/* Pages written without blocks, posts, archives */
.vc-classic-text { max-width: 760px; margin: 0 auto; }
.vc-classic-text p, .vc-classic-text ul, .vc-classic-text ol { margin: 0 0 1.1em; }
.vc-post { padding: 56px 0 72px; }
.post-image { margin: 0 auto 32px !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c9cfdb; font-size: .95rem; padding: 64px 0 0; }
.site-footer a { color: #fff; text-decoration-color: rgba(215,189,133,.6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-name { font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.footer-head { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .site-footer .menu li { margin-bottom: 6px; }
.footer-menu a, .site-footer .menu a { text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; padding-bottom: 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* WordPress basics */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-element-caption, .wp-caption-text { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 20px;
	}
	.site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom-color: var(--line); color: var(--gold-dark); }
	.header-inner { position: relative; }
}

@media (max-width: 781px) {
	:root { --gutter: 16px; }
	body { font-size: 17px; }
	.wp-block-columns.vc-gap-lg { gap: 32px; }
	.vc-method-list { grid-template-columns: 1fr; }
	.vc-num-lg { font-size: 2.4rem; }
	.vc-focus-row { gap: 6px; }
	.field-row { grid-template-columns: 1fr; gap: 0; }
	.vc-form-card, .wp-block-group.vc-form-card { padding: 26px 20px; }
	.vc-cta-band .wp-block-buttons { justify-content: flex-start !important; }
	.vc-media-text .wp-block-media-text__content { padding: 24px 0 0; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.wp-block-cover.vc-hero::after { inset: 12px; }
	.admin-bar .site-header { top: 0; }
}
