/* =========================================================================
   openAPen — main stylesheet
   Modern editorial design, fully responsive (mobile-first).
   ========================================================================= */

/* ------------------------------ Tokens ---------------------------------- */
:root {
	--oa-bg:        #ffffff;
	--oa-bg-soft:   #fafaf7;
	--oa-bg-muted:  #f4f1eb;
	--oa-ink:       #16161d;
	--oa-text:      #2a2a35;
	--oa-muted:     #6b6b78;
	--oa-line:      #e7e3da;
	--oa-line-soft: #efece5;
	--oa-accent:    #d97706;
	--oa-accent-ink:#7c3a00;
	--oa-accent-bg: #fdf3e1;
	--oa-danger:    #c0392b;
	--oa-success:   #1f7a1f;
	--oa-info:      #1e5fa8;
	--oa-warn:      #b45309;

	--oa-radius:    14px;
	--oa-radius-sm: 8px;
	--oa-radius-lg: 22px;

	--oa-shadow-sm: 0 1px 2px rgba(20, 20, 30, .04);
	--oa-shadow:    0 8px 24px rgba(20, 20, 30, .06);
	--oa-shadow-lg: 0 18px 50px rgba(20, 20, 30, .10);

	--oa-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--oa-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

	--oa-container: 1200px;
	--oa-container-narrow: 760px;
	--oa-gap: 32px;

	--oa-header-h: 76px;
}

/* ------------------------------ Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--oa-font-sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--oa-text);
	background: var(--oa-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--oa-ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--oa-accent); }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--oa-font-serif);
	color: var(--oa-ink);
	margin: 0 0 .6em;
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4.2vw + .6rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2vw + .9rem, 2.25rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }

::selection { background: var(--oa-accent-bg); color: var(--oa-accent-ink); }

.screen-reader-text {
	position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px;
	overflow: hidden; word-wrap: normal !important; white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 9999; padding: 12px 20px;
	background: var(--oa-ink); color: #fff; border-radius: 0 0 var(--oa-radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ----------------------------- Layout ----------------------------------- */
.container { max-width: var(--oa-container); margin: 0 auto; padding: 0 24px; }
.layout-narrow { max-width: var(--oa-container-narrow); padding: 0 24px; margin: 0 auto; }
.layout-full { max-width: 100%; padding: 0 24px; }

.layout-with-sidebar {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	padding-top: 48px;
	padding-bottom: 64px;
}
@media (min-width: 1024px) {
	.layout-with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--oa-gap); }
}

.section { padding: 64px 0; }
@media (max-width: 768px) { .section { padding: 44px 0; } }

/* ------------------------------ Buttons --------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .94rem;
	border: 1px solid transparent; transition: all .18s ease; cursor: pointer;
	white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--oa-ink); color: #fff; }
.btn-primary:hover { background: var(--oa-accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--oa-ink); border-color: var(--oa-line); }
.btn-ghost:hover { background: var(--oa-bg-soft); color: var(--oa-ink); border-color: var(--oa-ink); }
.btn-outline { background: transparent; color: var(--oa-ink); border-color: var(--oa-ink); }
.btn-outline:hover { background: var(--oa-ink); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: .86rem; }
.btn:focus-visible { outline: 3px solid var(--oa-accent-bg); outline-offset: 2px; }

/* ------------------------------ Header ---------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--oa-line-soft);
}
.site-header__top {
	display: flex; align-items: center; gap: 12px; min-height: var(--oa-header-h);
	flex-wrap: wrap;
}
.site-branding { margin-right: auto; }
.site-branding a { display: inline-flex; align-items: center; gap: 12px; }
.site-logo-mark {
	display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
	background: var(--oa-ink); color: #fff; border-radius: 12px;
}
.site-title { font-family: var(--oa-font-serif); font-weight: 700; font-size: 1.4rem; line-height: 1; color: var(--oa-ink); display: block; }
.site-description { font-size: .8rem; color: var(--oa-muted); display: block; }
.site-title-text { display: inline-flex; flex-direction: column; gap: 2px; }
.custom-logo-link img { max-height: 48px; width: auto; }

.main-navigation { display: none; }
.main-navigation .menu, .main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 28px; align-items: center; }
.main-navigation a { font-weight: 500; color: var(--oa-text); position: relative; padding: 8px 0; }
.main-navigation a:hover, .main-navigation .current-menu-item > a { color: var(--oa-ink); }
.main-navigation .current-menu-item > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--oa-accent); border-radius: 2px; }
.main-navigation li.menu-item-has-children > a::after { content: ' ▾'; font-size: .65em; color: var(--oa-muted); }

@media (min-width: 1024px) {
	.main-navigation { display: block; flex: 1; }
	.main-navigation .menu { justify-content: center; }
}

.site-header__actions { display: flex; align-items: center; gap: 8px; }
.search-toggle { width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--oa-text); transition: background .18s ease; }
.search-toggle:hover { background: var(--oa-bg-soft); }

.menu-toggle {
	width: 44px; height: 44px; border-radius: 12px; display: inline-flex;
	align-items: center; justify-content: center; transition: background .18s ease;
}
.menu-toggle:hover { background: var(--oa-bg-soft); }
.menu-toggle__bars { width: 22px; height: 16px; position: relative; display: block; }
.menu-toggle__bars span { position: absolute; left: 0; right: 0; height: 2px; background: var(--oa-ink); border-radius: 2px; transition: transform .25s ease, top .25s ease, opacity .15s ease; }
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 7px; }
.menu-toggle__bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile slide-down */
@media (max-width: 1023px) {
	.main-navigation {
		flex-basis: 100%; order: 99; display: none; padding: 12px 0 18px;
		border-top: 1px solid var(--oa-line-soft); margin-top: 8px;
	}
	.main-navigation.is-open { display: block; }
	.main-navigation .menu { flex-direction: column; gap: 4px; align-items: stretch; }
	.main-navigation a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--oa-line-soft); }
}

.site-search-panel { border-top: 1px solid var(--oa-line-soft); padding: 18px 0; background: var(--oa-bg-soft); }
.site-search-panel[hidden] { display: none; }

.site-header__actions .btn { padding: 10px 18px; font-size: .9rem; }
@media (max-width: 540px) { .site-header__actions .btn { display: none; } }

/* ------------------------------ Hero ------------------------------------ */
.hero { position: relative; padding: 76px 0 60px; overflow: hidden; }
.hero__bg {
	position: absolute; inset: 0; pointer-events: none; z-index: 0;
	background:
		radial-gradient(60% 60% at 80% 0%, var(--oa-accent-bg) 0%, transparent 60%),
		radial-gradient(50% 50% at 10% 90%, #f3eada 0%, transparent 60%),
		linear-gradient(180deg, var(--oa-bg) 0%, var(--oa-bg-soft) 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: end; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1fr 1fr; gap: 64px; } }

.hero__eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--oa-accent-ink); background: var(--oa-accent-bg); padding: 6px 12px; border-radius: 999px; }
.hero__title { font-size: clamp(2.2rem, 5vw + .5rem, 4.2rem); margin: 18px 0 14px; }
.hero__brand { color: var(--oa-accent); font-style: italic; }
.hero__subtitle { font-size: 1.08rem; color: var(--oa-muted); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px; background: rgba(255, 255, 255, .65); border: 1px solid var(--oa-line-soft); border-radius: var(--oa-radius); backdrop-filter: blur(6px); }
.hero__stat-num { display: block; font-family: var(--oa-font-serif); font-size: 1.85rem; font-weight: 700; color: var(--oa-ink); }
.hero__stat-label { display: block; font-size: .8rem; color: var(--oa-muted); text-transform: uppercase; letter-spacing: .1em; }

/* ------------------------------ Sections -------------------------------- */
.section__header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section__eyebrow { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oa-muted); margin-bottom: 8px; }
.section__title { margin: 0; }
.section__link { font-weight: 600; color: var(--oa-accent); }
.section__link:hover { color: var(--oa-accent-ink); }

/* ------------------------------ Featured -------------------------------- */
.featured-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .featured-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; } .featured-card--lead { grid-column: span 2; grid-row: span 2; } }

.featured-card { display: flex; flex-direction: column; border-radius: var(--oa-radius); overflow: hidden; background: var(--oa-bg); border: 1px solid var(--oa-line-soft); transition: transform .25s ease, box-shadow .25s ease; }
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--oa-shadow-lg); }
.featured-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--oa-bg-muted); }
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.featured-card:hover .featured-card__media img { transform: scale(1.04); }
.featured-card__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--oa-muted); }
.featured-card__placeholder::after { content: ''; width: 60px; height: 60px; border-radius: 50%; background: var(--oa-bg-muted); }
.featured-card--lead .featured-card__media { aspect-ratio: 16 / 9; }
.featured-card__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.featured-card__title { font-size: 1.35rem; margin: 0; }
.featured-card--lead .featured-card__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.featured-card__title a { color: var(--oa-ink); }
.featured-card__title a:hover { color: var(--oa-accent); }
.featured-card__excerpt { color: var(--oa-muted); margin: 0; font-size: .98rem; }

/* ------------------------------ Post grid ------------------------------- */
.post-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
.post-grid--three { grid-template-columns: 1fr; }
@media (min-width: 768px) { .post-grid--three { grid-template-columns: repeat(3, 1fr); } }

.post-card { display: flex; flex-direction: column; border-radius: var(--oa-radius); overflow: hidden; background: var(--oa-bg); border: 1px solid var(--oa-line-soft); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--oa-shadow); border-color: var(--oa-line); }
.post-card__media { aspect-ratio: 16 / 10; background: var(--oa-bg-muted); display: block; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--oa-bg-muted) 0%, var(--oa-bg-soft) 100%); color: var(--oa-muted); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title { font-size: 1.25rem; margin: 0; line-height: 1.3; }
.post-card__title a { color: var(--oa-ink); }
.post-card__title a:hover { color: var(--oa-accent); }
.post-card__excerpt { color: var(--oa-muted); margin: 0; font-size: .95rem; flex: 1; }

/* ------------------------------ Meta / categories ----------------------- */
.post-category { display: inline-block; padding: 4px 10px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oa-accent-ink); background: var(--oa-accent-bg); border-radius: 999px; font-weight: 600; }
.post-category--lg { font-size: .78rem; padding: 6px 14px; margin-bottom: 18px; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--oa-muted); }
.post-meta__sep { opacity: .55; }
.post-meta a { color: inherit; }
.post-meta a:hover { color: var(--oa-accent); }

/* ------------------------------ Archive header -------------------------- */
.archive-header { text-align: center; margin-bottom: 36px; padding: 24px 0 12px; }
.archive-eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oa-accent-ink); background: var(--oa-accent-bg); padding: 6px 14px; border-radius: 999px; }
.archive-title { margin: 14px 0 8px; }
.archive-description { color: var(--oa-muted); max-width: 640px; margin: 0 auto; }

/* ------------------------------ Single post ----------------------------- */
.single-post { padding-top: 56px; }
.single-post .entry-header { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.entry-title { font-size: clamp(1.9rem, 4vw + .4rem, 3.2rem); margin: 12px 0 16px; }
.entry-subtitle { color: var(--oa-muted); font-size: 1.15rem; max-width: 640px; margin: 0 auto 24px; }
.entry-meta { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--oa-line-soft); border-bottom: 1px solid var(--oa-line-soft); margin-top: 18px; }
.entry-meta__author { display: flex; align-items: center; gap: 12px; text-align: left; }
.entry-meta__avatar { border-radius: 50%; }
.entry-meta__byline { display: block; font-weight: 600; color: var(--oa-ink); }
.entry-meta__details { display: block; font-size: .85rem; color: var(--oa-muted); }
.entry-meta__actions { display: flex; align-items: center; gap: 8px; }

.entry-featured { margin: 36px 0; border-radius: var(--oa-radius); overflow: hidden; max-width: 1080px; margin-left: auto; margin-right: auto; }
.entry-featured img { width: 100%; max-height: 580px; object-fit: cover; }
.entry-featured figcaption { font-size: .85rem; color: var(--oa-muted); margin-top: 10px; text-align: center; }

.entry-content { font-size: 1.08rem; line-height: 1.75; max-width: 720px; margin: 0 auto; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote, .entry-content figure, .entry-content pre, .entry-content table { margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content blockquote {
	border-left: 4px solid var(--oa-accent); padding: 14px 24px;
	background: var(--oa-bg-soft); font-family: var(--oa-font-serif); font-style: italic; color: var(--oa-ink);
	font-size: 1.18rem; border-radius: 0 var(--oa-radius-sm) var(--oa-radius-sm) 0;
}
.entry-content a { color: var(--oa-accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.entry-content a:hover { color: var(--oa-accent); }
.entry-content img { border-radius: var(--oa-radius-sm); margin: 1.4em 0; }
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background: var(--oa-bg-muted); padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.entry-content pre { background: var(--oa-ink); color: #f3f3ee; padding: 18px 22px; border-radius: var(--oa-radius-sm); overflow-x: auto; font-size: .92rem; }
.entry-content pre code { background: transparent; color: inherit; padding: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content hr { border: 0; border-top: 1px solid var(--oa-line); margin: 2em 0; }

.alignwide { margin-left: -10%; margin-right: -10%; max-width: none; width: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; width: 100vw; }
.aligncenter { text-align: center; margin: 1.5em auto; }

.entry-footer { max-width: 720px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--oa-line-soft); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.entry-tags__label { font-size: .85rem; color: var(--oa-muted); margin-right: 4px; }
.tag { display: inline-block; padding: 4px 10px; background: var(--oa-bg-soft); color: var(--oa-text); font-size: .85rem; border-radius: 999px; border: 1px solid var(--oa-line-soft); }
.tag:hover { background: var(--oa-accent-bg); color: var(--oa-accent-ink); border-color: transparent; }
.entry-share { display: flex; align-items: center; gap: 12px; }
.entry-share__label { font-size: .85rem; color: var(--oa-muted); }

.share-links { display: inline-flex; gap: 6px; }
.share-link { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; color: var(--oa-muted); border: 1px solid var(--oa-line-soft); transition: all .18s ease; }
.share-link:hover { color: var(--oa-accent); border-color: var(--oa-accent); transform: translateY(-1px); }

.author-bio { display: flex; gap: 20px; padding: 28px; margin: 56px auto 0; max-width: 720px; background: var(--oa-bg-soft); border-radius: var(--oa-radius); border: 1px solid var(--oa-line-soft); }
.author-bio__avatar { border-radius: 50%; flex-shrink: 0; }
.author-bio__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oa-muted); display: block; margin-bottom: 4px; }
.author-bio__name { margin: 0 0 8px; font-size: 1.3rem; }
.author-bio__name a { color: var(--oa-ink); }
.author-bio__desc { color: var(--oa-muted); margin: 0 0 12px; }
.author-bio__more { color: var(--oa-accent); font-weight: 600; }
@media (max-width: 540px) { .author-bio { flex-direction: column; text-align: center; align-items: center; } }

.related-posts { margin: 64px 0 32px; }
.related-posts__title { font-size: 1.5rem; margin-bottom: 24px; }

.post-navigation { margin: 48px auto 0; max-width: 820px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; padding: 18px 22px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); transition: all .18s ease; }
.post-navigation a:hover { border-color: var(--oa-ink); transform: translateY(-2px); box-shadow: var(--oa-shadow-sm); }
.post-navigation .nav-subtitle { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oa-muted); margin-bottom: 6px; }
.post-navigation .nav-title { display: block; font-family: var(--oa-font-serif); font-weight: 700; color: var(--oa-ink); }
.post-navigation .nav-next { text-align: right; }

/* ------------------------------ Pages ----------------------------------- */
.single-page { padding: 56px 0; }
.entry-header--page { text-align: center; margin-bottom: 36px; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

.oa-contact-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 640px) { .oa-contact-grid { grid-template-columns: repeat(2, 1fr); } }
.oa-contact-card { padding: 22px; background: var(--oa-bg-soft); border: 1px solid var(--oa-line-soft); border-radius: var(--oa-radius); }
.oa-contact-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.oa-contact-card p { margin: 0 0 6px; color: var(--oa-muted); }

/* ------------------------------ Forms ----------------------------------- */
.oa-form { margin-top: 32px; padding: 32px; background: var(--oa-bg-soft); border: 1px solid var(--oa-line-soft); border-radius: var(--oa-radius-lg); }
.oa-form__row { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
@media (min-width: 640px) { .oa-form__row { grid-template-columns: 1fr 1fr; } }
.oa-form__field { display: flex; flex-direction: column; margin-bottom: 18px; }
.oa-form__field label { font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--oa-ink); }
.oa-form__field .req { color: var(--oa-danger); }
.oa-form__field small { color: var(--oa-muted); font-size: .8rem; margin-top: 6px; }
.oa-form input[type="text"], .oa-form input[type="email"], .oa-form input[type="url"], .oa-form input[type="search"], .oa-form input[type="file"], .oa-form textarea, .oa-form select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius-sm);
	background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.oa-form input:focus, .oa-form textarea:focus, .oa-form select:focus { outline: none; border-color: var(--oa-ink); box-shadow: 0 0 0 4px var(--oa-accent-bg); }
.oa-form textarea { resize: vertical; min-height: 110px; }
.oa-form__check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: .92rem; color: var(--oa-muted); }
.oa-form__check input { margin-top: 4px; }

/* WP comment form */
.comment-form { padding: 28px; background: var(--oa-bg-soft); border-radius: var(--oa-radius); border: 1px solid var(--oa-line-soft); margin-top: 28px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius-sm); background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--oa-ink); box-shadow: 0 0 0 4px var(--oa-accent-bg); }

/* Search form */
.search-form__inner { display: flex; align-items: center; gap: 8px; padding: 6px; padding-left: 14px; background: #fff; border: 1px solid var(--oa-line); border-radius: 999px; transition: border-color .15s ease, box-shadow .15s ease; }
.search-form__inner:focus-within { border-color: var(--oa-ink); box-shadow: 0 0 0 4px var(--oa-accent-bg); }
.search-form__icon { color: var(--oa-muted); flex-shrink: 0; }
.search-form .search-field { border: 0; flex: 1; padding: 10px 4px; background: transparent; min-width: 0; }
.search-form .search-field:focus { outline: none; }
.search-form .search-submit { padding: 9px 18px; }

/* Alerts */
.alert { padding: 16px 20px; border-radius: var(--oa-radius-sm); margin: 18px 0; border: 1px solid; }
.alert p { margin: 6px 0 0; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }
.alert-success { background: #f0f8ee; border-color: #c6e6c0; color: #1d4f1d; }
.alert-error { background: #fdecea; border-color: #f5c6c1; color: #842029; }
.alert-info { background: #e9f2fc; border-color: #c6dcf3; color: #0c4a82; }
.alert-warning { background: #fff7e6; border-color: #f9d99a; color: #8a4f00; }

/* ------------------------------ Sidebar / Widgets ----------------------- */
.widget-area { display: flex; flex-direction: column; gap: 28px; }
.widget { padding: 24px; background: var(--oa-bg); border: 1px solid var(--oa-line-soft); border-radius: var(--oa-radius); }
.widget-title { font-size: 1.05rem; letter-spacing: .04em; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--oa-line-soft); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px dashed var(--oa-line-soft); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--oa-text); display: block; }
.widget li a:hover { color: var(--oa-accent); }
.widget_categories li, .widget_archive li { display: flex; justify-content: space-between; align-items: center; }
.widget_categories li a, .widget_archive li a { flex: 1; }

.widget-post-list { display: flex; flex-direction: column; gap: 4px; }
.widget-post-list__link { display: flex; gap: 12px; align-items: center; padding: 8px 0 !important; }
.widget-post-list__thumb { flex-shrink: 0; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; }
.widget-post-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-list__title { font-family: var(--oa-font-serif); font-weight: 600; line-height: 1.3; color: var(--oa-ink); display: block; }
.widget-post-list__meta { font-size: .8rem; color: var(--oa-muted); }

.tagcloud a { display: inline-block; padding: 4px 10px; margin: 0 4px 6px 0; background: var(--oa-bg-soft); border: 1px solid var(--oa-line-soft); border-radius: 999px; font-size: .85rem !important; color: var(--oa-text); }
.tagcloud a:hover { background: var(--oa-accent-bg); color: var(--oa-accent-ink); border-color: transparent; }

/* ------------------------------ Pagination ------------------------------ */
.pagination { margin: 48px 0; display: flex; justify-content: center; }
.pagination .page-numbers { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers li a, .pagination .page-numbers li span {
	display: inline-flex; min-width: 40px; height: 40px; padding: 0 14px; align-items: center; justify-content: center;
	border-radius: 999px; border: 1px solid var(--oa-line); color: var(--oa-text); font-weight: 600; font-size: .9rem;
}
.pagination .page-numbers li a:hover { background: var(--oa-ink); color: #fff; border-color: var(--oa-ink); }
.pagination .page-numbers li .current { background: var(--oa-ink); color: #fff; border-color: var(--oa-ink); }

/* ------------------------------ CTA Band -------------------------------- */
.cta-band { padding: 40px 0; }
.cta-band__inner { background: var(--oa-ink); color: #fff; border-radius: var(--oa-radius-lg); padding: 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; box-shadow: var(--oa-shadow-lg); }
.cta-band__title { color: #fff; margin: 0 0 8px; }
.cta-band__sub { color: #d6d6dc; margin: 0; max-width: 580px; }
.cta-band .btn-primary { background: var(--oa-accent); }
.cta-band .btn-primary:hover { background: #fff; color: var(--oa-ink); }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--oa-ink); color: #cdcdd6; margin-top: 80px; }
.site-footer a { color: #cdcdd6; }
.site-footer a:hover { color: var(--oa-accent); }
.site-footer__top { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 64px 24px 40px; }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: 1.5fr 2fr; } }
.site-footer__logo { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__logo .site-title { color: #fff; }
.site-footer__logo .site-logo-mark { background: var(--oa-accent); color: #fff; width: 36px; height: 36px; border-radius: 10px; }
.site-footer__tagline { color: #9b9ba6; max-width: 320px; margin: 14px 0 18px; }
.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer-widget-area .widget-title { color: #fff; font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 0; padding: 0; margin-bottom: 14px; }
.footer-widget-area ul { list-style: none; padding: 0; margin: 0; }
.footer-widget-area li { padding: 5px 0; border: 0; }
.site-footer__bottom { border-top: 1px solid #2c2c38; padding: 18px 0; }
.site-footer__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-info { margin: 0; color: #8d8d97; font-size: .88rem; }
.footer-menu ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: .88rem; }

.social-menu ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 12px; }
.social-menu a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #2c2c38; }

/* ------------------------------ Back to top ----------------------------- */
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--oa-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--oa-shadow-lg); transition: all .2s ease; z-index: 90; }
.back-to-top:hover { background: var(--oa-accent); transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

/* ------------------------------ Status pills + dashboard ---------------- */
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.status-pill--pending { background: #fff4d6; color: #8a5a00; }
.status-pill--approved { background: #d8f0d6; color: #1f6e1f; }
.status-pill--locked { background: #ebebf3; color: #4f4f5b; }

.dashboard-greeting { display: flex; align-items: center; gap: 18px; padding: 24px; background: var(--oa-bg-soft); border: 1px solid var(--oa-line-soft); border-radius: var(--oa-radius-lg); margin: 24px 0 36px; flex-wrap: wrap; }
.dashboard-greeting img { border-radius: 50%; }
.dashboard-greeting h2 { margin: 0; }
.dashboard-greeting__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .dashboard-greeting__actions { margin-left: 0; width: 100%; } }

.dash-section { margin-bottom: 40px; }
.dash-section__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 1.2rem; padding-bottom: 10px; border-bottom: 1px solid var(--oa-line-soft); }
.dash-section__title .count { color: var(--oa-muted); font-size: .9rem; font-family: var(--oa-font-sans); font-weight: 500; }

.dash-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-list__item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--oa-bg); border: 1px solid var(--oa-line-soft); border-radius: var(--oa-radius); flex-wrap: wrap; }
.dash-list__main { flex: 1; min-width: 0; }
.dash-list__title { display: block; font-family: var(--oa-font-serif); font-weight: 700; color: var(--oa-ink); margin-bottom: 2px; }
.dash-list__meta { font-size: .85rem; color: var(--oa-muted); }
.dash-list__actions { display: flex; gap: 8px; align-items: center; }

.dash-empty { color: var(--oa-muted); padding: 18px 0; }

.dash-help { margin: 48px 0 0; padding: 24px; background: var(--oa-accent-bg); border-radius: var(--oa-radius); border: 1px solid #f3e0bf; }
.dash-help h3 { margin: 0 0 10px; }
.dash-help ol { margin: 0; padding-left: 20px; color: var(--oa-text); }

/* ------------------------------ 404 ------------------------------------- */
.error-404 { padding: 80px 24px; text-align: center; }
.error-404__inner { max-width: 560px; margin: 0 auto; }
.error-404__code { display: inline-block; font-family: var(--oa-font-serif); font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; color: var(--oa-accent); line-height: 1; }
.error-404__title { margin: 14px 0 12px; }
.error-404__sub { color: var(--oa-muted); margin-bottom: 28px; }
.error-404__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ------------------------------ Comments -------------------------------- */
.comments-area { margin: 64px auto 0; max-width: 760px; }
.comments-title { font-size: 1.4rem; margin-bottom: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 18px; }
.comment-list .comment, .comment-list .pingback { padding: 18px; background: var(--oa-bg-soft); border: 1px solid var(--oa-line-soft); border-radius: var(--oa-radius); }
.comment-list .children { list-style: none; padding-left: 28px; margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; color: var(--oa-ink); font-style: normal; }
.comment-metadata { font-size: .82rem; color: var(--oa-muted); }
.comment-reply-link { display: inline-block; margin-top: 8px; font-size: .85rem; color: var(--oa-accent); font-weight: 600; }

/* ------------------------------ No-results ------------------------------ */
.no-results { text-align: center; padding: 60px 24px; background: var(--oa-bg-soft); border-radius: var(--oa-radius-lg); }
.no-results__title { margin: 0 0 10px; }
.no-results__text { color: var(--oa-muted); max-width: 480px; margin: 0 auto 24px; }
.no-results .search-form { max-width: 480px; margin: 0 auto 18px; }

/* ------------------------------ Print / a11y / motion ------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
	html { scroll-behavior: auto; }
}

@media print {
	.site-header, .site-footer, .back-to-top, .entry-share, .related-posts, .post-navigation, .author-bio { display: none !important; }
	body { font-size: 12pt; }
}

/* ------------------------------ WP block fixes -------------------------- */
.wp-block-image figcaption { font-size: .85rem; color: var(--oa-muted); text-align: center; margin-top: 8px; }
.wp-block-quote, .wp-block-pullquote { font-family: var(--oa-font-serif); font-style: italic; font-size: 1.18rem; color: var(--oa-ink); border-left: 4px solid var(--oa-accent); padding: 16px 24px; background: var(--oa-bg-soft); border-radius: 0 var(--oa-radius-sm) var(--oa-radius-sm) 0; margin: 1.5em 0; }
.wp-block-pullquote { border-left: 0; border-top: 2px solid var(--oa-accent); border-bottom: 2px solid var(--oa-accent); border-radius: 0; text-align: center; padding: 28px; }
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--oa-line); padding: 10px 12px; }
.wp-block-table thead { background: var(--oa-bg-soft); }
.wp-block-button__link { background: var(--oa-ink); color: #fff; border-radius: 999px; padding: 11px 22px; font-weight: 600; }
.wp-block-button__link:hover { background: var(--oa-accent); color: #fff; }

/* sticky post indicator */
.post-card.sticky::before, .featured-card.sticky::before { content: '★'; position: absolute; top: 10px; left: 10px; background: var(--oa-accent); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.post-card, .featured-card { position: relative; }
