/*
Theme Name: Omol
Theme URI: https://omol.me/
Author: Omol
Description: Omol's editorial WordPress theme for tutorials, courses, and video learning.
Version: 0.3.2
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: omol
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Serif:wght@400;500;600&display=swap');

:root {
	--omol-blue: #2563eb;
	--omol-blue-dark: #1d4ed8;
	--omol-ink: #0f172a;
	--omol-dark: #334155;
	--omol-muted: #64748b;
	--omol-line: #e2e8f0;
	--omol-light: #f8fafc;
	--omol-white: #fff;
	--omol-radius: 1rem;
	--omol-sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
	--omol-serif: 'Noto Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--omol-white); color: var(--omol-dark); font-family: var(--omol-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 999; top: 1rem; left: 1rem; width: auto; height: auto; margin: 0; padding: .75rem 1rem; clip: auto; background: var(--omol-white); color: var(--omol-ink); }
/* ShareMyPost can leave an empty universal trigger on every public template. */
a.sharemypost-share-button.sharemypost-network-universal { display: none !important; }

.omol-container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.omol-container--wide { max-width: 1448px; padding-right: 10%; padding-left: 10%; }
.omol-container--narrow { max-width: 1100px; }
.omol-wordmark { display: inline-flex; align-items: center; color: var(--omol-ink); font-size: 1.65rem; font-weight: 700; letter-spacing: -.08em; line-height: 1; }
.omol-wordmark__dot { width: .42rem; height: .42rem; margin: .8rem 0 0 .18rem; border-radius: 50%; background: var(--omol-blue); }

.omol-site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--omol-line); background: rgba(255,255,255,.96); }
.omol-site-header__inner { display: flex; min-height: 80px; align-items: center; gap: 1.25rem; }
.omol-header-search { display: flex; flex: 1; min-width: 10rem; max-width: 35rem; border: 1px solid var(--omol-line); border-radius: .45rem; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.omol-header-search:focus-within { border-color: var(--omol-ink); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.omol-header-search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: .78rem 1rem; color: var(--omol-ink); }
.omol-header-search button { display: grid; place-items: center; width: 3.1rem; flex: 0 0 3.1rem; border: 0; background: var(--omol-blue); color: var(--omol-white); }
.omol-header-search svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.omol-primary-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.omol-primary-nav__list { display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.omol-primary-nav__list a, .omol-nav-link { display: inline-block; padding: .7rem .6rem; color: var(--omol-ink); font-size: .9rem; font-weight: 600; }
.omol-primary-nav__list a:hover, .omol-nav-link:hover { color: var(--omol-blue); }
.omol-nav-join { padding: .65rem 1rem; border: 1px solid var(--omol-blue); border-radius: .45rem; color: var(--omol-blue); font-size: .9rem; font-weight: 600; }
.omol-nav-join:hover { background: var(--omol-blue); color: var(--omol-white); }
.omol-menu-toggle { display: none; width: 2.65rem; height: 2.65rem; padding: .65rem; border: 0; background: transparent; }
.omol-menu-toggle span { display: block; height: 1.5px; margin: .3rem 0; background: var(--omol-ink); }
.omol-mobile-menu { border-top: 1px solid var(--omol-line); background: var(--omol-white); }
.omol-mobile-menu .omol-container { display: grid; gap: .25rem; padding-top: .8rem; padding-bottom: 1rem; }
.omol-mobile-menu a { padding: .7rem 0; color: var(--omol-ink); font-weight: 600; }
.omol-mobile-menu__list { display: grid; margin: 0; padding: 0; list-style: none; }

.omol-eyebrow { margin: 0 0 .8rem; color: var(--omol-blue); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.omol-eyebrow--light { color: #bfdbfe; }
.omol-video-category { display: inline-flex; margin: 1.25rem 0 1.25rem; }
.omol-video-category a { display: inline-flex; align-items: center; min-height: 2rem; padding: .45rem .8rem; border: 1px solid #bfdbfe; border-radius: 999px; background: #eff6ff; color: var(--omol-blue-dark); font-size: .8rem; letter-spacing: .12em; line-height: 1; transition: border-color .2s, background-color .2s, color .2s, transform .2s; }
.omol-video-category a:hover, .omol-video-category a:focus-visible { border-color: var(--omol-blue); background: #dbeafe; color: #1e40af; transform: translateY(-1px); }
.omol-video-category a:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 3px; }
.omol-home-hero { display: flex; min-height: 570px; align-items: center; background: radial-gradient(circle at 80% 20%, rgba(37,99,235,.38), transparent 32%), linear-gradient(120deg, #0f172a 0%, #172554 65%, #1e3a8a 100%); color: var(--omol-white); }
.omol-home-hero__content { max-width: 760px; padding: 6.5rem 0; }
.omol-home-hero h1, .omol-home-cta h2, .omol-archive-hero h1, .omol-video-intro h1 { margin: 0; color: inherit; font-family: var(--omol-serif); font-weight: 400; letter-spacing: -.055em; line-height: 1.05; }
.omol-home-hero h1 { max-width: 760px; font-size: clamp(3.5rem, 8vw, 6.5rem); }
.omol-home-hero p:not(.omol-eyebrow) { max-width: 570px; margin: 1.6rem 0 0; color: rgba(255,255,255,.8); font-size: 1.15rem; line-height: 1.7; }
.omol-home-search { display: flex; max-width: 650px; margin-top: 2rem; overflow: hidden; border-radius: .5rem; background: var(--omol-white); }
.omol-home-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 1rem 1.2rem; color: var(--omol-ink); }
.omol-home-search button { border: 0; padding: 0 1.4rem; background: var(--omol-blue); color: var(--omol-white); font-weight: 700; }
.omol-home-search button:hover { background: var(--omol-blue-dark); }
.omol-home-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.25rem; color: rgba(255,255,255,.65); font-size: .85rem; }
.omol-home-hero__chips a { padding: .45rem .8rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: var(--omol-white); }
.omol-home-hero__chips a:hover { border-color: var(--omol-white); background: rgba(255,255,255,.1); }

.omol-category-section, .omol-featured-section { padding: 5.5rem 0; }
.omol-category-section { border-bottom: 1px solid var(--omol-line); background: var(--omol-white); }
.omol-featured-section { background: var(--omol-light); }
.omol-section-heading { margin-bottom: 2rem; }
.omol-section-heading--row { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.omol-section-heading h2 { margin: 0; color: var(--omol-ink); font-family: var(--omol-serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -.04em; }
.omol-text-link { color: var(--omol-blue); font-size: .9rem; font-weight: 700; }
.omol-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.omol-category-card { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; border: 1px solid var(--omol-line); border-radius: var(--omol-radius); background: var(--omol-white); color: var(--omol-ink); text-align: center; font-weight: 600; transition: transform .2s, border-color .2s, box-shadow .2s; }
.omol-category-card:hover { transform: translateY(-3px); border-color: #bfdbfe; box-shadow: 0 12px 28px rgba(15,23,42,.08); }
.omol-category-card__icon { display: grid; width: 3.5rem; height: 3.5rem; place-items: center; border-radius: 1rem; background: #eff6ff; color: var(--omol-blue); font-size: 1.7rem; }

.omol-video-grid, .omol-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.omol-article-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--omol-line); border-radius: var(--omol-radius); background: var(--omol-white); transition: transform .2s, box-shadow .2s, border-color .2s; }
.omol-article-card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: 0 16px 32px rgba(15,23,42,.1); }
.omol-article-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--omol-light); }
.omol-article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.omol-archive-description { margin-top: 1rem; color: var(--omol-muted); line-height: 1.7; }
.omol-standard-page, .omol-not-found { padding: 6rem 0; }
.omol-standard-entry h1, .omol-not-found h1 { margin: 0; color: var(--omol-ink); font-family: var(--omol-serif); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; letter-spacing: -.05em; line-height: 1.05; }
.omol-standard-entry .omol-prose { margin-top: 2rem; }
.omol-not-found { min-height: 55vh; background: var(--omol-light); }
.omol-not-found > .omol-container > p:not(.omol-eyebrow) { max-width: 32rem; margin-top: 1.25rem; color: var(--omol-muted); font-size: 1.1rem; line-height: 1.7; }
.omol-video-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--omol-line); border-radius: var(--omol-radius); background: var(--omol-white); transition: transform .2s, box-shadow .2s, border-color .2s; }
.omol-video-card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: 0 16px 32px rgba(15,23,42,.1); }
.omol-video-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #172033; }
.omol-video-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.omol-video-card:hover .omol-video-card__media img { transform: scale(1.04); }
.omol-video-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: linear-gradient(135deg, #1e3a8a, #0f172a); color: rgba(255,255,255,.75); font-size: 2rem; }
.omol-video-card__play { position: absolute; right: 1rem; bottom: 1rem; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; background: var(--omol-blue); color: var(--omol-white); font-size: .8rem; box-shadow: 0 4px 12px rgba(15,23,42,.3); }
.omol-video-card__body { display: flex; min-height: 160px; flex: 1; flex-direction: column; padding: 1.25rem; }
.omol-video-card__body h2, .omol-video-card__body h3 { margin: .4rem 0 0; color: var(--omol-ink); font-size: 1.15rem; line-height: 1.3; }
.omol-video-card__body p { margin: .65rem 0 0; color: var(--omol-muted); font-size: .9rem; line-height: 1.6; }
.omol-card-category { color: var(--omol-blue); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.omol-empty-state { padding: 3rem; border: 1px dashed #bfdbfe; border-radius: var(--omol-radius); background: #eff6ff; text-align: center; }
.omol-empty-state h2 { margin: 0; color: var(--omol-ink); font-family: var(--omol-serif); font-weight: 400; }
.omol-empty-state p { color: var(--omol-muted); }
.omol-home-cta { padding: 7rem 0; background: var(--omol-ink); color: var(--omol-white); text-align: center; }
.omol-home-cta h2 { max-width: 720px; margin: auto; font-size: clamp(2.5rem, 6vw, 5rem); }
.omol-button { display: inline-block; margin-top: 2rem; padding: .85rem 1.4rem; border-radius: .45rem; background: var(--omol-blue); color: var(--omol-white); font-weight: 700; }
.omol-button:hover { background: var(--omol-blue-dark); }
.omol-button--light { background: var(--omol-white); color: var(--omol-ink); }

.omol-archive-hero { padding: 6rem 0; background: var(--omol-light); border-bottom: 1px solid var(--omol-line); }
.omol-archive-hero h1 { max-width: 760px; color: var(--omol-ink); font-size: clamp(2.8rem, 6vw, 5rem); }
.omol-archive-hero .omol-content-title { max-width: 800px; margin-right: auto; margin-left: auto; font-size: 3.5rem; text-align: center; }
.omol-content-excerpt--tutorial { max-width: 680px; margin: 1.25rem auto 0; color: var(--omol-muted); font-size: 1.15rem; line-height: 1.7; text-align: center; }
.omol-content-featured-image { width: min(100%, 900px); margin: 2rem auto 0; overflow: hidden; border: 1px solid var(--omol-line); border-radius: var(--omol-radius); background: var(--omol-white); box-shadow: 0 12px 36px rgba(15,23,42,.12); }
.omol-content-featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.omol-content-hero--tutorial > .omol-container {
	display: flex;
	width: 100%;
	max-width: none;
	flex-direction: column;
	align-items: center;
	margin-right: 0;
	margin-left: 0;
	padding-right: 1.5rem;
	padding-left: 1.5rem;
	text-align: center;
}
.omol-content-hero--tutorial .omol-content-parent { text-align: center; }
.omol-archive-hero p:not(.omol-eyebrow) { max-width: 650px; margin: 1.25rem 0 0; color: var(--omol-muted); font-size: 1.1rem; line-height: 1.7; }
.omol-archive-content { padding: 5rem 0; }
.omol-pagination { margin-top: 2.5rem; }
.omol-pagination .nav-links { display: flex; gap: .5rem; }
.omol-pagination a, .omol-pagination span { padding: .65rem .9rem; border: 1px solid var(--omol-line); border-radius: .35rem; color: var(--omol-ink); }
.omol-pagination .current, .omol-pagination a:hover { border-color: var(--omol-blue); background: var(--omol-blue); color: var(--omol-white); }

.omol-video-intro { padding: 5.5rem 0 4rem; border-bottom: 1px solid var(--omol-line); }
.omol-back-link { display: inline-flex; gap: .45rem; color: var(--omol-muted); font-size: .9rem; font-weight: 600; }
.omol-back-link:hover { color: var(--omol-blue); }
.omol-video-intro h1 { max-width: 820px; margin-right: auto; margin-left: auto; color: var(--omol-ink); font-size: 3rem; text-align: center; }
.omol-video-intro__excerpt { max-width: 700px; margin: 1.4rem auto 0; color: var(--omol-muted); font-size: 1.15rem; line-height: 1.7; text-align: center; }
.omol-video-player-section { padding: 3.5rem 0; background: var(--omol-light); }
.omol-video-player { overflow: hidden; border: 1px solid var(--omol-line); border-radius: var(--omol-radius); background: #000; box-shadow: 0 18px 40px rgba(15,23,42,.12); }
.omol-video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.omol-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.omol-video-poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.omol-video-empty { display: grid; min-height: 420px; place-items: center; color: rgba(255,255,255,.65); }
.omol-video-body, .omol-content-body { padding: 4rem 0 6rem; }
.omol-content-body { background: var(--omol-white); }
.omol-prose { color: var(--omol-dark); font-size: 1.05rem; line-height: 1.8; }
.omol-video-content-cta, .omol-content-video-cta { margin: 3rem 0 0; padding: 2rem; border: 1px solid #bfdbfe; border-radius: var(--omol-radius); background: #eff6ff; }
.omol-content-video-cta { margin-top: 3.5rem; }
.omol-content-video-cta__body { min-width: 0; }
.omol-video-content-cta h2, .omol-content-video-cta h2 { margin: 0; color: var(--omol-ink); font-family: var(--omol-serif); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 400; letter-spacing: -.04em; }
.omol-video-content-cta p:not(.omol-eyebrow), .omol-content-video-cta p:not(.omol-eyebrow) { max-width: 38rem; margin: .75rem 0 0; color: var(--omol-muted); line-height: 1.7; }
.omol-content-parent { margin: 0 0 1.25rem; color: var(--omol-muted); font-size: .9rem; }
.omol-content-parent a { color: var(--omol-blue); font-weight: 700; }
.omol-content-parent a:hover { color: var(--omol-blue-dark); }
.omol-content-tutorials { margin-top: 3.5rem; padding: 2rem; border: 1px solid var(--omol-line); border-radius: var(--omol-radius); background: var(--omol-light); }
.omol-content-tutorials h2 { margin: 0; color: var(--omol-ink); font-family: var(--omol-serif); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 400; letter-spacing: -.04em; }
.omol-content-tutorials ol { display: grid; gap: .75rem; margin: 1.25rem 0 0; padding-left: 1.4rem; }
.omol-content-tutorials li { padding-left: .35rem; color: var(--omol-muted); }
.omol-content-tutorials a { color: var(--omol-blue); font-weight: 600; }
.omol-content-tutorials a:hover { color: var(--omol-blue-dark); }

.omol-prose h2, .omol-prose h3 { color: var(--omol-ink); font-family: var(--omol-serif); font-weight: 400; }
.omol-prose a { color: var(--omol-blue); text-decoration: underline; }
.omol-prose blockquote {
	position: relative;
	margin: 2.5rem 0;
	overflow: hidden;
	border-left: 3px solid #93c5fd;
	border-radius: .25rem;
	padding: 1rem 2rem 1rem 4.5rem;
	background: var(--omol-light);
	color: var(--omol-dark);
	font-family: var(--omol-serif);
	font-size: 1.06em;
	font-style: italic;
	line-height: 1.7;
}
.omol-prose blockquote::before {
	content: "“";
	position: absolute;
	top: -.2rem;
	left: 1rem;
	color: rgba(37,99,235,.18);
	font-family: Georgia, serif;
	font-size: 5rem;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}
.omol-prose blockquote p { position: relative; margin: 0; }
.omol-prose blockquote strong:first-child {
	display: inline-block;
	margin-right: .35rem;
	color: var(--omol-blue-dark);
	font-family: var(--omol-sans);
	font-size: .72em;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.4;
	text-transform: uppercase;
	vertical-align: .12em;
}
.omol-prose blockquote:has(strong:first-child) {
	border: 1px solid #bfdbfe;
	border-left: 6px solid var(--omol-blue);
	border-radius: 0 1rem 1rem 0;
	padding: 1.5rem 1.75rem 1.5rem 2rem;
	background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
	box-shadow: 0 12px 30px rgba(37,99,235,.08);
	color: #1e3a8a;
	font-size: 1.12em;
	font-style: normal;
}
.omol-prose blockquote:has(strong:first-child)::before {
	content: none;
}

.omol-site-footer { border-top: 1px solid var(--omol-line); background: var(--omol-white); }
.omol-site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 3rem; padding: 4.5rem 0; }
.omol-site-footer__brand p { max-width: 250px; margin: 1.25rem 0 1.5rem; color: var(--omol-muted); font-size: .9rem; line-height: 1.6; }
.omol-social-links { display: flex; gap: .5rem; }
.omol-social-links a { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid var(--omol-line); border-radius: 50%; color: var(--omol-muted); font-size: .75rem; font-weight: 700; }
.omol-social-links a:hover { border-color: var(--omol-blue); color: var(--omol-blue); }
.omol-footer-column { display: flex; flex-direction: column; gap: .65rem; }
.omol-footer-column h2 { margin: 0 0 .5rem; color: var(--omol-dark); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.omol-footer-column a { color: var(--omol-muted); font-size: .9rem; }
.omol-footer-column a:hover { color: var(--omol-blue); }
.omol-site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--omol-line); color: var(--omol-muted); font-size: .8rem; }
.omol-site-footer__bottom p { margin: 0; }

@media (min-width: 1101px) {
	.omol-content-body > .omol-container { max-width: none; padding-right: 15%; padding-left: 15%; }
}

@media (max-width: 1100px) {
	.omol-primary-nav { display: none; }
	.omol-menu-toggle { display: block; }
	.omol-site-header__inner .omol-header-search { margin-left: auto; }
	.omol-category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
	.omol-container { padding-right: 1rem; padding-left: 1rem; }
	.omol-site-header__inner { min-height: 68px; gap: .75rem; }
	.omol-header-search { display: none; }
	.omol-nav-join { margin-left: auto; padding: .55rem .75rem; }
	.omol-home-hero__content { padding: 5rem 0; }
	.omol-category-section, .omol-featured-section, .omol-archive-content { padding: 3.5rem 0; }
	.omol-category-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
	.omol-category-card { min-height: 125px; font-size: .9rem; }
	.omol-video-grid, .omol-post-grid { grid-template-columns: 1fr; }
	.omol-section-heading--row { align-items: start; flex-direction: column; }
	.omol-video-intro { padding: 3.5rem 0 2.75rem; }
	.omol-video-intro__excerpt { margin-right: auto; margin-left: auto; }
	.omol-video-player-section { padding: 1.5rem 0; }
	.omol-video-body, .omol-content-body { padding: 3rem 0 4rem; }
	.omol-content-video-cta { padding: 1.25rem; }
	.omol-prose blockquote { padding-left: 3.25rem; }
	.omol-site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; padding: 3rem 0; }
	.omol-site-footer__brand { grid-column: 1 / -1; }
	.omol-site-footer__bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
