/*
Theme Name: Ryan Felps
Theme URI: https://ryanfelps.com/
Author: Ryan Felps
Author URI: https://ryanfelps.com/
Description: Personal site theme for Ryan Felps. One-page homepage (About, Work, Music, Journal, Connect) edited in Appearance → Customize, with Person schema and name-focused SEO built in. Pairs with the Felps AI Writer plugin.
Version: 1.0.0
Requires at least: 5.6
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: ryan-felps
*/

:root {
	--ink: #16212B;
	--ink-2: #2E3A45;
	--muted: #3B4752;
	--muted-2: #4A5560;
	--ground: #F6F7F5;
	--ground-2: #ECEEEA;
	--line: #DDE1DC;
	--accent: #A63A0B;
	--accent-dark: #7A2A06;
	--accent-on-dark: #F0A27A;
	--on-dark: #D7DDE2;
	--display: 'Archivo', system-ui, sans-serif;
	--body: 'IBM Plex Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.dark .eyebrow { color: var(--accent-on-dark); }
.section-title { margin: 0 0 16px; font-weight: 800; font-size: clamp(34px, 4.5vw, 44px); line-height: 1.05; }
.lede { margin: 0 0 48px; max-width: 640px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 6px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--ink-2); color: #fff; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 28px; }
.nav a { display: block; padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* Hero */
.hero .wrap { padding-top: 88px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.hero h1 { margin: 0 0 24px; font-weight: 800; font-size: clamp(48px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.03em; }
.hero p.intro { margin: 0 0 32px; font-size: 22px; line-height: 1.45; color: var(--ink-2); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { flex: 1 1 320px; min-width: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.photo-placeholder { aspect-ratio: 4 / 5; background: #E3E6E1; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted-2); font-size: 15px; }

/* Dark bands */
.dark { background: var(--ink); color: var(--ground); }
.about .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; }
.about-head { flex: 1 1 280px; min-width: 0; }
.about-head h2 { margin: 0; font-weight: 800; font-size: 44px; line-height: 1.05; }
.about-body { flex: 999 1 520px; min-width: 0; font-size: 18px; line-height: 1.7; color: var(--on-dark); }
.about-body p { margin: 0 0 20px; }
.about-body p:last-child { margin-bottom: 0; }

/* Work */
.work .wrap, .journal .wrap { padding-top: 96px; padding-bottom: 80px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.card .role { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.card h3 { margin: 0; font-weight: 700; font-size: 28px; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }

/* Music */
.music { background: var(--ground-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.music .wrap { padding-top: 96px; padding-bottom: 80px; }
.music-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.music-head > div { min-width: 0; max-width: 640px; }
.music-head p { margin: 0; color: var(--muted); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.video { margin: 0; }
.video .embed { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: 8px; overflow: hidden; }
.video .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { margin-top: 12px; font-weight: 600; }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.post-teaser { border-top: 2px solid var(--ink); padding-top: 20px; }
.post-teaser time { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted-2); }
.post-teaser h3 { margin: 0 0 10px; font-weight: 700; font-size: 22px; line-height: 1.2; }
.post-teaser h3 a { color: var(--ink); text-decoration: none; }
.post-teaser h3 a:hover { color: var(--accent); }
.post-teaser p { margin: 0; color: var(--muted); font-size: 16px; }
.journal .all { margin-top: 40px; }

/* Connect / footer */
.connect .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.connect-text { flex: 1 1 360px; min-width: 0; }
.connect-text p { margin: 0; color: var(--on-dark); max-width: 440px; }
.connect-links { flex: 1 1 360px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.connect-links a { color: var(--ground); min-height: 44px; display: flex; align-items: center; }
.connect-links a:hover { color: var(--accent-on-dark); }
.colophon { border-top: 1px solid var(--ink-2); }
.colophon p { margin: 0; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: #AEB8C1; }

/* Blog: index, single, page */
.content-area .wrap { padding-top: 72px; padding-bottom: 88px; }
.narrow { max-width: 720px; }
.archive-title { margin: 0 0 40px; font-weight: 800; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.entry-header h1 { margin: 0 0 12px; font-weight: 800; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
.entry-meta { margin: 0 0 32px; font-size: 15px; color: var(--muted-2); }
.entry-meta a { color: var(--muted-2); }
.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content h2 { font-size: 30px; line-height: 1.2; margin: 48px 0 12px; }
.entry-content h3 { font-size: 23px; margin: 36px 0 8px; }
.entry-content img, .entry-content figure { border-radius: 8px; margin: 32px 0; }
.entry-content blockquote { margin: 32px 0; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.entry-content iframe { max-width: 100%; }
.author-box { margin-top: 56px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-box p { margin: 0; color: var(--muted); font-size: 16px; }
.author-box strong { color: var(--ink); }
.pagination { margin-top: 48px; display: flex; gap: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-nav { margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-weight: 600; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted-2); }

@media (max-width: 600px) {
	body { font-size: 16px; }
	.hero .wrap { padding-top: 56px; }
	.hero p.intro { font-size: 19px; }
	.card { padding: 28px; }
	.connect-links { grid-template-columns: minmax(0, 1fr); }
}
