/*
Theme Name: Money and Blues
Theme URI: https://moneyandblues.com/
Author: Michael Mitsakos
Description: Minimal one-page theme for moneyandblues.com. Proportions follow the golden ratio: 61.8 / 38.2 columns, a Fibonacci spacing scale (8, 13, 21, 34, 55, 89, 144) and a type scale stepped by the square root of phi.
Version: 1.0.2
Requires at least: 4.9
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moneyandblues
*/

/* Fonts, self-hosted (no requests to Google). Both are SIL Open Font License 1.1. */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("assets/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Design tokens. Change a value here and it changes everywhere. */
:root {
	--accent: #2366e3;      /* the logo's blue */
	--accent-dark: #1a4fb4;
	--ink: #14171a;
	--ink-soft: #4a5560;
	--line: #e3e6e9;
	--line-strong: #c9ced3;
	--ground: #ffffff;
	--ground-soft: #f6f7f8;

	/* Fibonacci spacing scale */
	--s-8: 0.5rem;
	--s-13: 0.8125rem;
	--s-21: 1.3125rem;
	--s-34: 2.125rem;
	--s-55: 3.4375rem;
	--s-89: 5.5625rem;

	/* Fluid values: first number at 390px wide, last at 1140px and up */
	--pad-x: clamp(1.3125rem, 0.89rem + 1.73vw, 2.125rem);      /* 21 to 34 */
	--pad-section: clamp(5.5625rem, 3.77rem + 7.33vw, 9rem);    /* 89 to 144 */
	--fs-body: clamp(1.0625rem, 1.03rem + 0.14vw, 1.125rem);    /* 17 to 18 */
	--fs-lead: clamp(1.3125rem, 1.25rem + 0.27vw, 1.4375rem);   /* 21 to 23 */
	--fs-h3: clamp(1.3125rem, 1.25rem + 0.27vw, 1.4375rem);     /* 21 to 23 */
	--fs-h2: clamp(1.6875rem, 1.36rem + 1.35vw, 2.3125rem);     /* 27 to 37 */
	--fs-h1: clamp(2.3125rem, 1.6rem + 3vw, 3.75rem);           /* 37 to 60 */

	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
	--wrap: 71.25rem; /* 1140px */
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.618;
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 600; }
h1 { font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.soft { color: var(--ink-soft); }
.stack > * + * { margin-top: var(--s-21); }

.skip-link { position: absolute; left: -999rem; top: 0; background: var(--ink); color: #fff; padding: var(--s-13) var(--s-21); z-index: 10; }
.skip-link:focus { left: 0; color: #fff; }

/* Buttons: 55px tall, full width on phones */
.btn {
	display: flex; align-items: center; justify-content: center;
	min-height: var(--s-55); padding: 0 var(--s-34);
	background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 2px;
	font-size: 1.0625rem; font-weight: 600; text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn-row { display: flex; padding-top: var(--s-13); }
.btn-row .btn { flex: 1 1 auto; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-21); padding-top: var(--s-13); padding-bottom: var(--s-13); }
.site-logo { display: flex; }
.site-logo img { width: 2.75rem; height: 2.75rem; }
.header-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1rem; font-weight: 500; text-decoration: none; }

/* Hero. Phone order: headline, lead, photo, text, button. */
.hero { padding-top: var(--s-55); padding-bottom: var(--pad-section); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-21); }
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; }
.hero__photo { margin: var(--s-13) 0; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 15%; } /* square on phones */
.hero__cta { display: flex; padding-top: var(--s-13); }
.hero__cta .btn { flex: 1 1 auto; }

/* Sections */
.section { padding-top: var(--pad-section); padding-bottom: var(--pad-section); }
.section--line { border-top: 1px solid var(--line); }
.section--soft { background: var(--ground-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-34); }

/* Services */
.services { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-34); margin-top: var(--s-34); }
.service { border-top: 1px solid var(--line-strong); padding-top: var(--s-21); }
.service__num { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.service h3 { margin-top: var(--s-8); }
.service p { margin-top: var(--s-8); color: var(--ink-soft); }

/* Profile */
.figure { margin: 0; }
.figure figcaption { margin-top: var(--s-13); font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-8) var(--s-34); padding-top: var(--s-34); padding-bottom: var(--s-34); }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .footer-home { color: var(--ink); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-34); }

/* Inner pages (Imprint, Disclaimer) */
.page-content { max-width: 44rem; padding-top: var(--s-55); padding-bottom: var(--pad-section); }
.page-content h1 { font-size: var(--fs-h2); margin-bottom: var(--s-34); }
.page-content h2 { font-size: var(--fs-h3); margin: var(--s-34) 0 var(--s-13); }
.page-content h3 { font-size: var(--fs-body); margin: var(--s-21) 0 var(--s-8); }
.page-content p, .page-content ul, .page-content ol { margin: 0 0 var(--s-21); }
.page-content { overflow-wrap: break-word; }

/* Tablet and desktop: golden-ratio columns */
@media (min-width: 50rem) {
	.site-header .wrap { padding-top: var(--s-21); padding-bottom: var(--s-21); }
	.site-logo img { width: var(--s-55); height: var(--s-55); }

	.btn { display: inline-flex; }
	.btn-row .btn, .hero__cta .btn { flex: 0 0 auto; }

	.hero { padding-top: var(--s-89); }
	.hero .wrap {
		grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr);
		grid-template-rows: auto auto auto auto;
		column-gap: var(--s-89); row-gap: var(--s-34);
		position: relative;
	}
	.hero h1 { grid-column: 1; grid-row: 1; }
	.hero__lead { grid-column: 1; grid-row: 2; }
	.hero__body { grid-column: 1; grid-row: 3; }
	.hero__cta { grid-column: 1; grid-row: 4; padding-top: 0; }
	/* Photo fills its grid area exactly: top of the headline to the bottom of the button. */
	.hero__photo { grid-column: 2; grid-row: 1 / 5; position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; object-fit: cover; object-position: center 20%; }

	.split { column-gap: var(--s-89); align-items: start; }
	.split--intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); }
	.split--profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); align-items: center; }

	.services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-55) var(--s-89); margin-top: var(--s-55); }
	.service h3, .service p { margin-top: var(--s-13); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}

@media print {
	.site-header .header-link, .btn { display: none; }
	.section, .hero { padding-top: 2rem; padding-bottom: 2rem; }
}
