/*
Theme Name: Ruth Limkin
Theme URI: https://ruthlimkin.com
Author: Ruth Limkin
Description: A warm, professional block theme for Ruth Limkin: founder, business leader and non-executive director. Navy and honey palette, Newsreader headings and Hanken Grotesk body text. Every section of the home page is editable in the WordPress Site Editor.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ruth-limkin
*/

:root {
	--rl-paper: var(--wp--preset--color--paper);
	--rl-paper-2: var(--wp--preset--color--paper-2);
	--rl-ink: var(--wp--preset--color--ink);
	--rl-muted: var(--wp--preset--color--muted);
	--rl-line: var(--wp--preset--color--line);
	--rl-navy: var(--wp--preset--color--navy);
	--rl-navy-2: var(--wp--preset--color--navy-2);
	--rl-honey: var(--wp--preset--color--honey);
	--rl-honey-ink: var(--wp--preset--color--honey-ink);
	--rl-on-navy: var(--wp--preset--color--on-navy);
	--rl-on-navy-muted: var(--wp--preset--color--on-navy-muted);
	--rl-serif: var(--wp--preset--font-family--serif);
	--rl-r: 14px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; animation: none !important; }
}
body { -webkit-font-smoothing: antialiased; }
:where(h1, h2, h3) { text-wrap: balance; }
[id] { scroll-margin-top: 80px; }
a:focus-visible, .wp-block-button__link:focus-visible { outline: 3px solid var(--rl-honey); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.rl-header-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .rl-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .rl-header-part { top: 0; position: relative; } }
.rl-header {
	background: color-mix(in srgb, var(--rl-paper) 90%, transparent);
	backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--rl-line);
	padding-top: 14px; padding-bottom: 14px;
}
.rl-nav { gap: 24px; }
.rl-brand { margin: 0; white-space: nowrap; font-family: var(--rl-serif); font-weight: 500; font-size: 25px; letter-spacing: -0.01em; line-height: 1.2; }
.rl-brand a { text-decoration: none; color: var(--rl-ink); }
.rl-brand a::after { content: "."; color: var(--rl-honey-ink); }
.rl-menu { font-size: 15px; font-weight: 500; gap: 26px; margin-left: auto; }
.rl-menu a { text-decoration: none; color: var(--rl-muted); }
.rl-menu a:hover { color: var(--rl-ink); }
.rl-btn-sm .wp-block-button__link { padding: 11px 16px; font-size: 14px; }
@media (max-width: 600px) { .rl-nav .rl-nav-cta { display: none !important; } }

/* ---------- Shared ---------- */
.rl-main { padding-top: 0; }
.rl-main > * { margin-block-start: 0 !important; }
.rl-section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.rl-tint { background: var(--rl-paper-2); }
.rl-eyebrow { font-size: 13px !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rl-honey-ink); margin-bottom: 0; }
.rl-muted { color: var(--rl-muted); }
.rl-lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--rl-muted); max-width: 34em; }
.rl-sec-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.rl-sec-head > * + * { margin-top: 14px; }
.rl-sec-head .rl-muted { font-size: 18px; }
.rl-h2-sm { font-size: clamp(28px, 3.4vw, 40px) !important; }

/* Buttons */
.wp-block-button__link { transition: transform .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: var(--rl-ink); padding: 13.5px 20.5px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: transparent; color: var(--rl-honey-ink); }
.rl-btn-honey > .wp-block-button__link { background: var(--rl-honey); color: #1A2233; }
.rl-btn-honey > .wp-block-button__link:hover { background: color-mix(in srgb, var(--rl-honey) 88%, #fff); color: #1A2233; }
.rl-cta-row { gap: 12px; }
.rl-text-link a { font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 4px; border-bottom: 1.5px solid var(--rl-honey); color: var(--rl-ink); }
.rl-text-link a:hover { color: var(--rl-honey-ink); }

/* ---------- Hero ---------- */
.rl-hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.rl-hero-grid { gap: clamp(32px, 5vw, 72px) !important; }
.rl-hero-copy > * + * { margin-top: 24px; }
.rl-hero-title { font-size: clamp(42px, 5.6vw, 70px) !important; letter-spacing: -0.015em; line-height: 1.04 !important; }
.rl-hero-title em { color: var(--rl-honey-ink); position: relative; white-space: nowrap; }
.rl-hero-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .12em; background: var(--rl-honey); opacity: .45; border-radius: 2px; z-index: -1; }
.rl-hero-photo { position: relative; margin: 0; }
.rl-hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 220px 220px var(--rl-r) var(--rl-r); }
.rl-hero-photo figcaption { position: absolute; left: -18px; bottom: 28px; margin: 0; background: var(--rl-paper); border: 1px solid var(--rl-line); border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.4; color: var(--rl-ink); box-shadow: 0 10px 30px rgba(0,0,0,.08); max-width: 250px; text-align: left; }
.rl-hero-photo figcaption strong { display: block; font-family: var(--rl-serif); font-weight: 600; font-size: 19px; line-height: 1.2; }
@media (max-width: 781px) {
	.rl-hero-photo { max-width: 440px; }
	.rl-hero-photo figcaption { left: 12px; }
}

/* ---------- Credentials ribbon ---------- */
.rl-ribbon { background: var(--rl-paper-2); border-top: 1px solid var(--rl-line); border-bottom: 1px solid var(--rl-line); }
.rl-ribbon-list { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px; }
.rl-ribbon-list li { font-size: 14px; color: var(--rl-muted); line-height: 1.4; }
.rl-ribbon-list strong { display: block; font-family: var(--rl-serif); font-weight: 600; font-size: 19px; color: var(--rl-ink); margin-bottom: 2px; }
@media (max-width: 860px) { .rl-ribbon-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .rl-ribbon-list { grid-template-columns: 1fr; } }

/* ---------- Pillars ---------- */
.rl-pillars { gap: clamp(20px, 3vw, 40px) !important; }
.rl-pillar::before { content: ""; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--rl-honey); margin-bottom: 20px; }
.rl-pillar h3 { font-size: 28px; margin: 0 0 14px; }
.rl-pillar p { color: var(--rl-muted); margin: 0; }

/* ---------- Story ---------- */
.rl-story-grid { gap: clamp(32px, 6vw, 88px) !important; }
.rl-story-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--rl-r); display: block; }
@media (min-width: 782px) { .rl-story-photo { position: sticky; top: 100px; } }
.rl-story-copy > * + * { margin-top: 20px; }
.rl-timeline { list-style: none; margin: 4px 0 0; padding: 0; border-left: 2px solid var(--rl-line); }
.rl-timeline li { display: grid; grid-template-columns: 58px 1fr; column-gap: 12px; padding: 10px 0 10px 18px; position: relative; font-size: 15px; color: var(--rl-muted); line-height: 1.5; }
.rl-timeline li::before { content: ""; position: absolute; left: -6px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--rl-honey); }
.rl-timeline strong { grid-row: span 2; font-weight: 700; color: var(--rl-honey-ink); font-variant-numeric: tabular-nums; }
.rl-timeline b { display: block; color: var(--rl-ink); font-weight: 600; }
.rl-survivor { padding: 18px 20px 18px 62px; border-radius: 12px; background: var(--rl-paper); border: 1px solid var(--rl-line); position: relative; }
.rl-survivor::before { content: ""; position: absolute; left: 20px; top: 20px; width: 26px; height: 26px; background: #D9688A; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M16 29c-3-4-7-11-7-16a7 7 0 0 1 14 0c0 5-4 12-7 16z'/%3E%3Cpath d='M11.5 22 20.5 9.5M20.5 22 11.5 9.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M16 29c-3-4-7-11-7-16a7 7 0 0 1 14 0c0 5-4 12-7 16z'/%3E%3Cpath d='M11.5 22 20.5 9.5M20.5 22 11.5 9.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.rl-survivor p { margin: 0; font-size: 15px; color: var(--rl-muted); line-height: 1.55; }
.rl-survivor strong { display: block; color: var(--rl-ink); font-family: var(--rl-serif); font-weight: 600; font-size: 19px; margin-bottom: 2px; }
.rl-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rl-tags li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rl-line); background: var(--rl-paper); color: var(--rl-ink); }

/* ---------- Navy sections ---------- */
.rl-navy { background: var(--rl-navy); color: var(--rl-on-navy); }
.rl-navy :where(h1, h2, h3) { color: var(--rl-on-navy); }
.rl-navy .rl-eyebrow { color: var(--rl-honey); }
.rl-navy .rl-lede, .rl-navy .rl-muted { color: var(--rl-on-navy-muted); }
.rl-navy a:not(.wp-block-button__link) { color: var(--rl-on-navy); }
.rl-navy a:not(.wp-block-button__link):hover { color: var(--rl-honey); }
.rl-navy .is-style-outline > .wp-block-button__link { color: var(--rl-on-navy); border-color: var(--rl-on-navy-muted); }
.rl-navy .is-style-outline > .wp-block-button__link:hover { color: var(--rl-honey); }
.rl-navy .wp-block-column > * + * { margin-top: 22px; }
.rl-news { position: relative; overflow: hidden; }
.rl-news::before { content: ""; position: absolute; right: -10%; bottom: -55%; width: 620px; height: 620px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); pointer-events: none; }
.rl-news-title { font-size: clamp(38px, 5.6vw, 68px) !important; }
.rl-news-title em { color: var(--rl-honey); }
.rl-issue-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--rl-r); padding: 26px; position: relative; }
.rl-issue-card > * + * { margin-top: 14px; }
.rl-byline { gap: 12px; align-items: center; }
.rl-byline p { margin: 0; font-size: 14px; color: var(--rl-on-navy-muted); line-height: 1.4; }
.rl-byline strong { color: var(--rl-on-navy); font-size: 15px; }
.rl-avatar { margin: 0; flex: none; }
.rl-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.rl-issue-card h3 { font-size: 24px; }
.rl-issue-card ul { margin: 0; padding-left: 18px; color: var(--rl-on-navy-muted); font-size: 15px; display: grid; gap: 6px; }

/* ---------- Moments ---------- */
.rl-moments { gap: 16px !important; }
.rl-moments .wp-block-image { margin: 0; }
.rl-moments img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--rl-r); display: block; }
.rl-moments figcaption { font-size: 14px; line-height: 1.45; color: var(--rl-muted); margin-top: 10px; text-align: left; }
.rl-pos-right img { object-position: 72% 50%; }
.rl-pos-mid-right img { object-position: 58% 50%; }
@media (max-width: 781px) and (min-width: 480px) {
	.rl-moments { flex-wrap: wrap !important; }
	.rl-moments > .wp-block-column { flex-basis: calc(50% - 8px) !important; }
}

/* ---------- Boards ---------- */
.rl-boards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
.rl-boards li { display: grid; grid-template-columns: 178px 1fr; align-content: start; column-gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rl-line); align-items: baseline; font-family: var(--rl-serif); font-weight: 500; font-size: 21px; line-height: 1.3; }
.rl-boards strong { grid-row: 1 / span 2; align-self: start; font-family: var(--wp--preset--font-family--sans); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rl-honey-ink); line-height: 1.5; }
.rl-boards em { grid-column: 2; display: block; font-style: normal; font-family: var(--wp--preset--font-family--sans); font-weight: 400; font-size: 14px; color: var(--rl-muted); margin-top: 2px; }
.rl-boards a { justify-self: start; text-decoration: none; border-bottom: 1.5px solid var(--rl-honey); }
@media (max-width: 860px) { .rl-boards { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rl-boards li { grid-template-columns: 1fr; } .rl-boards strong, .rl-boards em { grid-column: 1; grid-row: auto; } }

/* ---------- Speaking ---------- */
.rl-speak-grid { gap: clamp(32px, 5vw, 72px) !important; }
.rl-speak-grid .wp-block-column:first-child > * + * { margin-top: 22px; }
.rl-speak-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 50%; border-radius: var(--rl-r); display: block; }
.rl-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rl-topics li { padding: 18px 20px; border: 1px solid var(--rl-line); border-radius: 12px; background: var(--rl-paper); color: var(--rl-muted); font-size: 15px; }
.rl-topics strong { display: block; font-family: var(--rl-serif); font-weight: 500; font-size: 22px; color: var(--rl-ink); line-height: 1.25; margin-bottom: 2px; }
.rl-videos { margin-top: clamp(40px, 6vw, 72px) !important; gap: clamp(20px, 3vw, 36px) !important; }
.rl-videos .wp-block-embed { margin: 0; }
.rl-videos .wp-block-embed__wrapper { border-radius: var(--rl-r); overflow: hidden; background: #0d1420; }
.rl-videos figcaption { text-align: left; margin-top: 14px; font-family: var(--rl-serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; color: var(--rl-ink); line-height: 1.2; }
.rl-videos figcaption strong { display: block; font-family: var(--wp--preset--font-family--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rl-honey-ink); margin-bottom: 4px; }

/* ---------- Instagram ---------- */
.rl-insta-grid { gap: clamp(24px, 4vw, 48px) !important; }
.rl-insta-grid .wp-block-column > * + * { margin-top: 12px; }
.rl-round { margin: 0; }
.rl-round img { width: 180px; height: 180px; object-fit: cover; object-position: 50% 10%; border-radius: 50%; border: 6px solid var(--rl-paper-2); display: block; }
.rl-insta a { color: var(--rl-honey-ink); font-weight: 600; text-decoration: none; }

/* ---------- Connect ---------- */
#connect h2 { font-size: clamp(34px, 5vw, 60px); }
.rl-connect-links { list-style: none; margin: 0; padding: 0; }
.rl-connect-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); text-decoration: none; font-size: 18px; font-weight: 500; }
.rl-connect-links span { color: var(--rl-on-navy-muted); font-size: 14px; font-weight: 400; }

/* ---------- Footer ---------- */
.rl-footer { padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--rl-line); font-size: 14px; color: var(--rl-muted); }
.rl-footer p { margin: 0; }
.rl-footer a { text-decoration: none; }

/* ---------- Inner pages & posts ---------- */
.rl-page { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); }
.rl-page-title { margin-bottom: 32px; }
