/* =========================================================
   Ryan Gooding — design tokens (v2)
   Direction: clean, friendly, credibility-first personal-brand
   site in the style of neilpatel.com — warm orange accent,
   white/soft-gray section bands, rounded geometric type,
   pill buttons, soft-shadow cards. No hard borders, no
   brutalist offsets — that was v1.
   ========================================================= */
:root {
	--bg: #FFFFFF;
	--bg-alt: #F6F5F1;
	--ink: #23252A;
	--muted: #6B6F76;
	--orange: #E8623B;
	--orange-dark: #C94F2C;
	--line: #E6E3DC;
	--white: #FFFFFF;

	--font-display: 'Poppins', 'Inter', sans-serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

	--max: 1180px;
	--gap: clamp(1.25rem, 3vw, 2.5rem);
	--radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute; left: -9999px; }

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

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- layout helpers ---------- */
.rg-section__inner, .rg-page__inner, .rg-header__inner, .rg-footer__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gap);
}
.rg-page__inner--narrow { max-width: 760px; }

.rg-eyebrow {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	font-weight: 600;
	color: var(--orange-dark);
	margin: 0 0 0.75em;
}

.rg-btn {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 0.95em 1.9em;
	border-radius: 999px;
	border: 2px solid transparent;
	text-decoration: none;
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.rg-btn--red { background: var(--orange); color: var(--white); box-shadow: 0 8px 20px rgba(232, 98, 59, 0.28); }
.rg-btn--red:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232, 98, 59, 0.35); }
.rg-btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.rg-btn--outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

/* =========================================================
   Header
   ========================================================= */
.rg-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.rg-header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.rg-header__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.rg-header__logo span { color: var(--orange); }

.rg-nav { display: flex; align-items: center; gap: 2rem; }
.rg-nav__list { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.rg-nav__list a { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.rg-nav__list a:hover { color: var(--orange-dark); }
.rg-nav__cta { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; background: var(--orange); color: var(--white); padding: 0.6em 1.3em; border-radius: 999px; text-decoration: none; }
.rg-nav__cta:hover { background: var(--orange-dark); }

.rg-nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.rg-nav__toggle span { width: 26px; height: 2px; background: var(--ink); display: block; border-radius: 2px; }

@media (max-width: 780px) {
	.rg-nav__toggle { display: flex; }
	.rg-nav { position: absolute; top: 80px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: var(--gap); gap: 1.25rem; display: none; }
	.rg-nav.is-open { display: flex; }
	.rg-nav__list { flex-direction: column; gap: 1.1rem; }
}

/* =========================================================
   Hero — soft radial backdrop behind the headline, like NP's
   faint wave texture, kept subtle.
   ========================================================= */
.rg-hero {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(3.5rem, 9vw, 7rem) var(--gap) clamp(3rem, 7vw, 5rem);
	position: relative;
	text-align: center;
	background:
		radial-gradient(circle at 15% 20%, rgba(232,98,59,0.08) 0%, transparent 45%),
		radial-gradient(circle at 85% 10%, rgba(232,98,59,0.06) 0%, transparent 40%);
}
.rg-hero__title {
	font-size: clamp(2.4rem, 6vw, 4.2rem);
	max-width: 18em;
	margin: 0 auto 0.3em;
}
.rg-hero__title .rg-underline {
	position: relative;
	white-space: nowrap;
}
.rg-hero__title .rg-underline::after {
	content: "";
	position: absolute;
	left: -2%; right: -2%; bottom: 0.06em;
	height: 0.22em;
	background: var(--orange);
	z-index: -1;
	border-radius: 3px;
}
.rg-hero__title--sub { font-weight: 600; color: var(--muted); font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 22em; margin: 0 auto; }
.rg-hero__subhead { font-size: 1.1rem; color: var(--muted); max-width: 34em; margin: 1.5rem auto 0; }
.rg-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }

/* =========================================================
   Sections
   ========================================================= */
.rg-section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.rg-section--alt { background: var(--bg-alt); }
.rg-section--orange { background: var(--orange); color: var(--white); }
.rg-section--footer-band { background: var(--orange); color: var(--white); }
.rg-section--centered { text-align: center; }

.rg-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.rg-split--reverse { direction: rtl; }
.rg-split--reverse > * { direction: ltr; }
.rg-split--top { align-items: start; padding-top: clamp(1rem, 3vw, 2rem); }

.rg-split__media img { border-radius: var(--radius); box-shadow: 0 24px 48px rgba(35,37,42,0.14); }
.rg-split__media--headshot { text-align: center; }
.rg-avatar {
	width: 300px;
	height: 300px;
	margin: 0 auto;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(35,37,42,0.12);
}
.rg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; box-shadow: none; }
.rg-split__media--icon {
	background: var(--white);
	width: 220px;
	height: 220px;
	margin: 0 auto;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 24px 48px rgba(35,37,42,0.1);
}
.rg-podcast__mark { color: var(--orange); font-size: 4.5rem; }

.rg-section__title { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 0.5em; }
.rg-section__title--light { color: var(--white); }
.rg-section__lede { font-size: 1.15rem; font-weight: 600; color: var(--muted); margin-bottom: 0.75em; }
.rg-section__lede--light { color: rgba(255,255,255,0.88); font-weight: 500; }
.rg-section__body { max-width: 42em; color: var(--muted); font-size: 1.02rem; }
.rg-section__body--large { font-size: 1.15rem; }
.rg-section__note { font-style: italic; color: var(--muted); }

.rg-listen-links { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.4rem 0; }
.rg-listen-links a { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; padding: 0.5em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); }
.rg-listen-links a:hover { border-color: var(--orange); color: var(--orange-dark); }

.rg-episode-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.rg-episode-list li { border-bottom: 1px solid var(--line); }
.rg-episode-list li:first-child { border-top: 1px solid var(--line); }
.rg-episode-list a { display: flex; gap: 1rem; align-items: baseline; padding: 1em 0.25em; text-decoration: none; color: var(--ink); border-radius: 10px; }
.rg-episode-list a:hover { color: var(--orange-dark); }
.rg-episode-list__num { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--orange-dark); flex-shrink: 0; }
.rg-episode-list__title { flex: 1; font-weight: 600; }
.rg-episode-list__date { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); }

/* ---------- resource / link cards (the "orange band" pattern) ---------- */
.rg-resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; margin-top: 3rem; }
.rg-resource-card { border-top: 1px solid rgba(255,255,255,0.35); padding-top: 1.25rem; }
.rg-resource-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rg-resource-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--white); }
.rg-resource-card__arrow { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.6); color: var(--white); flex-shrink: 0; font-size: 1rem; }
.rg-resource-card__body { color: rgba(255,255,255,0.85); margin-top: 0.6em; font-size: 0.98rem; }
.rg-resource-card a.rg-resource-card__link { display: block; }
.rg-resource-card a.rg-resource-card__link:hover .rg-resource-card__title { text-decoration: underline; }

/* ---------- post grid / cards ---------- */
.rg-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2rem; }
.rg-post-grid--wide { margin-top: 1.5rem; }
.rg-post-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(35,37,42,0.08); overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.rg-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(35,37,42,0.14); }
.rg-post-card__media { display: block; overflow: hidden; aspect-ratio: 4/3; }
.rg-post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.rg-post-card__date { font-size: 0.78rem; color: var(--muted); padding: 1em 1.1em 0; }
.rg-post-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 0.4em 1.1em 0.6em; line-height: 1.25; }
.rg-post-card__excerpt { font-size: 0.92rem; color: var(--muted); padding: 0 1.1em 1.2em; }

@media (max-width: 900px) {
	.rg-split, .rg-split--top { grid-template-columns: 1fr; text-align: center; }
	.rg-split .rg-split__content { text-align: left; }
	.rg-post-grid { grid-template-columns: 1fr 1fr; }
	.rg-resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.rg-post-grid { grid-template-columns: 1fr; }
}

/* ---------- newsletter form ---------- */
.rg-newsletter-form { margin-top: 1.75rem; }
.rg-newsletter-form__form { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; background: var(--white); padding: 0.4rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(35,37,42,0.08); max-width: 480px; margin: 0 auto; }
.rg-newsletter-form__form input[type="email"] { flex: 1; font-family: var(--font-body); font-size: 1rem; padding: 0.75em 1.2em; border: none; background: transparent; color: var(--ink); min-width: 180px; }
.rg-newsletter-form__form input[type="email"]:focus { outline: none; }
.rg-newsletter-form__form input[type="email"]::placeholder { color: var(--muted); }
.rg-newsletter-form__form button { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; padding: 0.75em 1.5em; background: var(--orange); color: var(--white); border: none; border-radius: 999px; cursor: pointer; }
.rg-newsletter-form__form button:hover { background: var(--orange-dark); }
.rg-newsletter-form__message { font-family: var(--font-display); font-weight: 600; }
.rg-newsletter-form__message--error { color: #FFE1D6; }

/* =========================================================
   Generic page templates
   ========================================================= */
.rg-page { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 8vw, 6rem); }
.rg-page__header { margin-bottom: 1.75rem; }
.rg-page__title { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.35em; }
.rg-page__lede { font-size: 1.15rem; font-weight: 500; color: var(--muted); max-width: 42em; }

.rg-prose { max-width: 720px; color: var(--ink); }
.rg-prose p { margin-bottom: 1.2em; font-size: 1.05rem; }
.rg-prose h2 { font-size: 1.5rem; margin: 1.5em 0 0.6em; font-weight: 700; }
.rg-prose a { text-decoration: underline; text-decoration-thickness: 2px; }

.rg-resource-cta { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.rg-contact-email { margin: 1.5rem 0; }
.rg-contact-social { display: flex; gap: 1rem; flex-wrap: wrap; }
.rg-contact-social a { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; padding: 0.55em 1.2em; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); }
.rg-contact-social a:hover { border-color: var(--orange); color: var(--orange-dark); }

.rg-episode-player { margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden; }
.rg-episode-player iframe { width: 100%; border: none; }

.rg-single__media { margin: 1.75rem 0; }
.rg-single__media img { border-radius: var(--radius); box-shadow: 0 20px 40px rgba(35,37,42,0.1); }
.rg-single__footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.rg-pagination { margin-top: 2.5rem; }
.rg-pagination .page-numbers { display: inline-flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.rg-pagination a.page-numbers, .rg-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4em; padding: 0.5em; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.rg-pagination span.page-numbers.current { background: var(--orange); border-color: var(--orange); color: var(--white); }
.rg-pagination a.page-numbers:hover { border-color: var(--orange); color: var(--orange-dark); }

/* =========================================================
   Footer — solid orange band, like neilpatel.com's
   ========================================================= */
.rg-footer { background: var(--orange); color: var(--white); }
.rg-footer__inner { padding: 3rem var(--gap); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.rg-footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white); text-decoration: none; }
.rg-footer__social { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.rg-footer__social ul { display: contents; }
.rg-footer__social li { display: contents; }
.rg-footer__social a { color: var(--white); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.rg-footer__social a:hover { color: rgba(255,255,255,0.75); }
.rg-footer__copy { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin: 0; width: 100%; text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.25); }
