/* awest: the bits theme.json can't express. */

/* ---------- Dark mode: swap the palette ---------- */
@media (prefers-color-scheme: dark) {
	:root:root {
		--wp--preset--color--base: #141318;
		--wp--preset--color--contrast: #f2efe8;
		--wp--preset--color--muted: #a9a6b0;
		--wp--preset--color--line: #2b2930;
		--wp--preset--color--coral: #ff7a5c;
		--wp--preset--color--coral-deep: #ff8f73;
		--wp--preset--color--sunflower: #ffd84d;
		--wp--preset--color--butter: #2e2a1c;
		--wp--preset--color--violet: #8f7bff;
		--wp--preset--color--green: #2fbf8f;
		color-scheme: dark;
	}
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--sunflower); color: #1d1d1f; }

a { text-decoration-thickness: 2px; text-underline-offset: 0.18em; text-decoration-color: var(--wp--preset--color--coral); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--wp--preset--color--violet); outline-offset: 3px; border-radius: 4px; }

/* Highlighter marks: <mark> anywhere */
mark, .awest-intro mark {
	background: linear-gradient(transparent 58%, var(--wp--preset--color--sunflower) 58%);
	color: inherit;
	padding: 0 0.1em;
}
@media (prefers-color-scheme: dark) {
	mark, .awest-intro mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--wp--preset--color--sunflower) 45%, transparent) 58%); }
}

/* ---------- Masthead ---------- */
.awest-mark { position: relative; flex: none; width: 4rem; margin: 0; }
.awest-mark::before {
	content: ""; position: absolute; inset: 0;
	background: var(--wp--preset--color--coral);
	border-radius: 16px;
	transform: rotate(-10deg) translate(-7px, 5px);
	transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.awest-mark a, .awest-mark img { position: relative; display: block; }
.awest-mark img { width: 4rem; height: 4rem; object-fit: cover; border-radius: 16px; transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
.awest-masthead:hover .awest-mark::before { transform: rotate(8deg) translate(4px, 2px) scale(1.04); }
.awest-masthead:hover .awest-mark img { transform: rotate(-3deg); }
.awest-name { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: var(--wp--preset--font-size--x-large); line-height: 1; letter-spacing: -0.03em; }
.awest-name a { text-decoration: none; }

.awest-nav { font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.awest-nav .wp-block-navigation-item__content {
	display: inline-block;
	padding: 0.1rem 0.65rem;
	border-radius: 999px;
	background: var(--wp--preset--color--butter);
	text-decoration: none;
	transition: background 0.15s;
}
.awest-nav .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--sunflower); color: #1d1d1f; }
.awest-nav .current-menu-item > .wp-block-navigation-item__content,
.awest-nav [aria-current="page"] { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* ---------- Home intro ---------- */
.awest-intro { font-family: var(--wp--preset--font-family--display); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: var(--wp--preset--spacing--50) !important; }

/* ---------- Post list ---------- */
.awest-post-list { list-style: none; padding: 0; margin: 0; }
.awest-post-list > li { margin: 0; padding: var(--wp--preset--spacing--50) 0; border-top: 2px solid var(--wp--preset--color--line); }
.awest-post-list > li:first-child { border-top: 0; padding-top: 0; }
.awest-card-content > * + * { margin-top: 1.1em; }
.awest-card-content img { border-radius: 10px; height: auto; }
.awest-card-content figure figcaption { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.awest-card-image, .awest-entry-image { margin: 0 0 0.6rem; }
.awest-card-image img, .awest-entry-image img {
	display: block; width: auto; max-width: 100%; height: auto; max-height: 34rem;
	border-radius: 14px;
}
.awest-card-image a { width: fit-content; max-width: 100%; }
.awest-card-image a { display: block; }
.awest-card-image a img { transition: transform 0.25s ease; }
.awest-card-image a:hover img { transform: translateY(-2px); }
.awest-entry-image { margin: var(--wp--preset--spacing--40) 0; }
.awest-card .wp-block-post-title { margin: 0; }
.awest-card .wp-block-post-title a:hover { color: var(--wp--preset--color--coral-deep); }
.awest-card .wp-block-post-excerpt { margin: 0; }
.awest-card .wp-block-post-excerpt__excerpt { margin: 0; }
.awest-card .wp-block-post-excerpt__more-text { margin: 0.35rem 0 0; }
.awest-card .wp-block-post-excerpt__more-link { font-weight: 700; }
.awest-meta { margin: 0; }
.awest-meta .wp-block-post-date { margin: 0; }

/* ---------- Kind labels (categories) ---------- */
.awest-kind { margin: 0; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.awest-kind .wp-block-post-terms__separator { display: none; }
.awest-kind a {
	display: inline-block;
	padding: 0.05rem 0.5rem;
	margin-right: 0.3rem;
	border-radius: 4px;
	color: #fff;
	background: var(--wp--preset--color--muted);
	text-decoration: none;
}
.awest-kind a[href*="/category/reviews/"] { background: #5b3df5; }
.awest-kind a[href*="/category/tech/"]    { background: #08765a; }
.awest-kind a[href*="/category/life/"]    { background: #c7381a; }
.awest-kind a[href*="/category/links/"]   { background: #1d1d1f; }
.awest-kind a[href*="/category/uncategorized/"] { display: none; }
.awest-kind a:hover { filter: brightness(1.15); }

.awest-tags { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin-top: var(--wp--preset--spacing--50) !important; }

.awest-pagination, .awest-postnav { font-weight: 700; margin-top: var(--wp--preset--spacing--50); }

.awest-archive-title { font-size: var(--wp--preset--font-size--x-large); margin-bottom: var(--wp--preset--spacing--50); }

/* ---------- Entries ---------- */
.awest-entry .wp-block-post-title { margin-top: 0.4rem; }
.awest-entry .wp-block-post-content > * + * { margin-top: 1.1em; }
.awest-entry img { border-radius: 10px; height: auto; }
.awest-entry figure figcaption { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.awest-entry hr { border: 0; height: 2px; background: var(--wp--preset--color--line); }

/* ---------- Footer ---------- */
.awest-footer { border-top: 2px solid var(--wp--preset--color--line); color: var(--wp--preset--color--muted); }
.awest-footer-links a { margin-right: 1rem; font-weight: 600; color: var(--wp--preset--color--contrast); }
.awest-footer-note { margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* Meta sits under the title */
.awest-card .wp-block-post-title + .awest-meta { margin-top: 0.35rem; margin-bottom: 0.6rem; }
.awest-entry .wp-block-post-title + .awest-meta { margin-top: 0.6rem; }
