/*
Theme Name: EVERMORE
Theme URI: https://evermore.akucreative.com
Author: AKU Creative
Author URI: https://akucreative.com
Description: A romantic wedding and event planner theme for free Elementor. The home page opens with an invitation envelope: scroll and the wax seal breaks, the flap lifts and a save-the-date card rises out. Highlighted words are written in a foil script that grows into a flowering vine, services sit on folding place cards, real weddings glide past in a film strip and the footer is a "kindly reply" card with a wax-seal send button. Six colour presets with a live "Try colours" switcher, inquiry and reply forms, one-click demo import and a phone-first layout.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evermore
Tags: blog, one-column, grid-layout, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready, wide-blocks
*/

/* ------------------------------------------------------------------ Tokens (Lilac is the main look) */
:root {
	--ev-bg: #f8f4fb;
	--ev-surface: #fefcff;
	--ev-ink: #2b1f38;
	--ev-accent: #7d4fa8;
	--ev-accent-2: #d4b3ee;
	--ev-paper: #e9def4;
	--ev-deep: #3f2856;
	--ev-on-deep: #f5eefb;
	--ev-leaf: #6f8f6a;
	--ev-on-accent: #fff;
	--ev-muted: color-mix(in srgb, var(--ev-ink) 62%, var(--ev-bg));
	--ev-line: color-mix(in srgb, var(--ev-ink) 13%, transparent);
	--ev-tint: color-mix(in srgb, var(--ev-accent) 6%, var(--ev-bg));
	--ev-display: "Cormorant", "Cormorant Garamond", Georgia, serif;
	--ev-text: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--ev-script: "Pinyon Script", cursive;
	--ev-wrap: 1360px;
	--ev-gutter: clamp(20px, 4vw, 56px);
	--ev-radius: 4px;
	--ev-ease: cubic-bezier(.22, .8, .2, 1);
	--ev-fs-hero: clamp(3rem, 1.6rem + 5.4vw, 7rem);
	--ev-fs-h2: clamp(2.4rem, 1.5rem + 3vw, 4.6rem);
	--ev-fs-h3: clamp(1.5rem, 1.2rem + .9vw, 2rem);
	--ev-header: 86px;
}
:root[data-preset="champagne"] { --ev-bg: #fbf7f2; --ev-surface: #fffdf9; --ev-ink: #2e2420; --ev-accent: #b08a4e; --ev-accent-2: #e3c88f; --ev-paper: #ecd3cb; --ev-deep: #4a2e35; --ev-on-deep: #f6ece4; }
:root[data-preset="garden"] { --ev-bg: #f4f5ef; --ev-surface: #fbfcf8; --ev-ink: #1d2b24; --ev-accent: #24493b; --ev-accent-2: #d7c08a; --ev-paper: #d9e3d2; --ev-deep: #24493b; --ev-on-deep: #eef3ea; --ev-leaf: #4f7a5a; }
:root[data-preset="midnight"] { --ev-bg: #13151d; --ev-surface: #1b1e29; --ev-ink: #f1ebe1; --ev-accent: #d4b06a; --ev-accent-2: #f3dca4; --ev-paper: #2a2d3c; --ev-deep: #0b0d13; --ev-on-deep: #f1ebe1; --ev-on-accent: #13151d; --ev-leaf: #8fae8a; color-scheme: dark; }
:root[data-preset="marigold"] { --ev-bg: #fff7ec; --ev-surface: #fffbf4; --ev-ink: #3a1c18; --ev-accent: #9c2232; --ev-accent-2: #f2c45a; --ev-paper: #f7d9b8; --ev-deep: #7e1a26; --ev-on-deep: #fff1df; --ev-leaf: #5f8a4e; }
:root[data-preset="rose"] { --ev-bg: #fbf3f3; --ev-surface: #fffafa; --ev-ink: #3a2226; --ev-accent: #a9535f; --ev-accent-2: #f0c3c9; --ev-paper: #f4dcdc; --ev-deep: #5a2d36; --ev-on-deep: #fbefef; }

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--ev-bg); color: var(--ev-ink); font: 400 clamp(1rem, .97rem + .15vw, 1.0625rem)/1.72 var(--ev-text); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .6s var(--ev-ease), color .6s var(--ev-ease); }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--ev-accent); }
:focus-visible { outline: 2px solid var(--ev-accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--ev-display); font-weight: 300; line-height: 1.04; letter-spacing: -.01em; margin: 0 0 .45em; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ev-accent); color: var(--ev-on-accent); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000; top: 8px; left: 8px; padding: 12px 18px; background: var(--ev-ink); color: var(--ev-bg); }
.ev-wrap { width: 100%; max-width: var(--ev-wrap); margin: 0 auto; padding: 0 var(--ev-gutter); }
.ev-kicker { font: 600 .72rem/1.3 var(--ev-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ev-muted); margin: 0 0 1.2em; }
.ev-lead { font-size: clamp(1.02rem, .98rem + .25vw, 1.14rem); color: var(--ev-muted); max-width: 48ch; }
.ev-icon { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------------ Highlight: signed like a signature, on a loop
   One word per heading. site.js builds: a pen line (outline) that is written left to right by a moving nib,
   then the foil ink fills in, a vine grows with leaves and small blooms, it all rests, fades, and is signed again. */
@property --ev-w { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
:root {
	--ev-leaf-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 18C2 8 8 2 18 2C18 12 12 18 2 18Z'/%3E%3C/svg%3E");
	--ev-flower-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg transform='translate(20 20)'%3E%3Cellipse rx='4.5' ry='10' cy='-9'/%3E%3Cellipse rx='4.5' ry='10' cy='-9' transform='rotate(72)'/%3E%3Cellipse rx='4.5' ry='10' cy='-9' transform='rotate(144)'/%3E%3Cellipse rx='4.5' ry='10' cy='-9' transform='rotate(216)'/%3E%3Cellipse rx='4.5' ry='10' cy='-9' transform='rotate(288)'/%3E%3C/g%3E%3C/svg%3E");
	--ev-sign: 9s;
}
.ev-ink { position: relative; display: inline-block; white-space: nowrap; font-family: var(--ev-script); font-weight: 400; font-size: 1.08em; line-height: .9; letter-spacing: 0; padding: 0 .12em .12em; color: var(--ev-accent); --ev-w: 110%; }
.ev-ink__w { position: relative; display: inline-block; margin-left: -.22em; }
.ev-ink__fill { display: inline-block; padding: 0 .14em 0 .3em;
	background: linear-gradient(100deg, var(--ev-accent) 0%, var(--ev-accent-2) 22%, var(--ev-accent) 38%, color-mix(in srgb, var(--ev-accent) 70%, #000) 55%, var(--ev-accent-2) 72%, var(--ev-accent) 100%); background-size: 250% 100%;
	-webkit-background-clip: text; background-clip: text; color: transparent; animation: ev-foil 5s linear infinite; }
.ev-ink__line { position: absolute; inset: 0; padding: 0 .14em 0 .3em; color: transparent; -webkit-text-stroke: .012em var(--ev-accent); pointer-events: none; opacity: 0; }
@keyframes ev-foil { to { background-position: -250% 0; } }
.ev-nib { position: absolute; display: none; }
.ev-ink .ev-vine { position: absolute; left: 4%; bottom: -.04em; width: 88%; height: .22em; overflow: visible; max-width: none; }
.ev-ink .ev-vine path { fill: none; stroke: color-mix(in srgb, var(--ev-leaf) 70%, var(--ev-bg)); stroke-width: .9; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.ev-ink i { position: absolute; display: block; pointer-events: none; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.ev-ink .ev-leaf { width: .15em; height: .15em; background: color-mix(in srgb, var(--ev-leaf) 75%, var(--ev-bg)); -webkit-mask-image: var(--ev-leaf-svg); mask-image: var(--ev-leaf-svg); transform: rotate(var(--r)); }
.ev-ink .l1 { left: 18%; bottom: .04em; --r: -30deg; } .ev-ink .l2 { left: 46%; bottom: -.12em; --r: 150deg; } .ev-ink .l3 { left: 70%; bottom: .05em; --r: -40deg; }
.ev-ink .ev-bloom { background: var(--ev-accent); -webkit-mask-image: var(--ev-flower-svg); mask-image: var(--ev-flower-svg); }
.ev-ink .b1 { width: .28em; height: .28em; right: -.12em; bottom: -.12em; }
.ev-ink .b2 { width: .17em; height: .17em; right: .16em; bottom: -.17em; background: var(--ev-accent-2); }
.ev-ink .b3 { width: .14em; height: .14em; left: .02em; bottom: -.06em; background: var(--ev-accent-2); }
.ev-ink .ev-petal { width: .08em; height: .12em; top: -.1em; right: 10%; border-radius: 60% 0 60% 0; background: var(--ev-accent-2); opacity: 0; }
.ev-ink .p1 { --d: 3s; --x: -1.2em; } .ev-ink .p2 { --d: 5.4s; right: 40%; --x: -.8em; } .ev-ink .p3 { --d: 7.6s; right: 65%; --x: .6em; }

/* With JavaScript: everything waits, then signs in a loop once the word is on screen. */
.js .ev-ink { --ev-w: 0%; }
.js .ev-ink__w { -webkit-mask-image: linear-gradient(90deg, #000 0 var(--ev-w), transparent calc(var(--ev-w) + 4%)); mask-image: linear-gradient(90deg, #000 0 var(--ev-w), transparent calc(var(--ev-w) + 4%)); }
.js .ev-ink__fill { opacity: 0; }
.js .ev-ink .ev-vine path { stroke-dashoffset: 420; }
.js .ev-ink .ev-leaf { transform: scale(0) rotate(var(--r)); }
.js .ev-ink .ev-bloom { transform: scale(0) rotate(-120deg); }
.js .ev-nib { display: block; left: calc(var(--ev-w) * .9); top: 50%; width: .1em; height: .1em; margin: -.05em 0 0 -.05em; border-radius: 50%; background: var(--ev-accent); box-shadow: 0 0 0 .04em color-mix(in srgb, var(--ev-accent-2) 70%, transparent), 0 0 .3em var(--ev-accent-2); opacity: 0; }
.js .ev-ink.is-written { animation: ev-sign var(--ev-sign) cubic-bezier(.55, .1, .35, 1) infinite; }
.js .ev-ink.is-written .ev-ink__line { animation: ev-sign-line var(--ev-sign) linear infinite; }
.js .ev-ink.is-written .ev-ink__fill { animation: ev-foil 5s linear infinite, ev-sign-fill var(--ev-sign) ease infinite; }
.js .ev-ink.is-written .ev-nib { animation: ev-sign-nib var(--ev-sign) linear infinite, ev-nib-wobble .32s ease-in-out infinite alternate; }
.js .ev-ink.is-written .ev-vine path { animation: ev-sign-vine var(--ev-sign) ease infinite; }
.js .ev-ink.is-written .ev-leaf { animation: ev-sign-leaf var(--ev-sign) cubic-bezier(.3, 1.6, .5, 1) infinite; }
.js .ev-ink.is-written .ev-bloom { animation: ev-sign-bloom var(--ev-sign) cubic-bezier(.3, 1.5, .5, 1) infinite; }
.js .ev-ink.is-written .b1 { animation: ev-sign-bloom var(--ev-sign) cubic-bezier(.3, 1.5, .5, 1) infinite, ev-sway 4.5s ease-in-out infinite; }
.js .ev-ink.is-written .ev-petal { animation: ev-fall 7s var(--d) ease-in infinite; }
@keyframes ev-sign { 0% { --ev-w: 0%; } 34% { --ev-w: 108%; } 100% { --ev-w: 108%; } }
@keyframes ev-sign-line { 0% { opacity: 1; } 40% { opacity: 1; } 52% { opacity: 0; } 100% { opacity: 0; } }
@keyframes ev-sign-fill { 0%, 30% { opacity: 0; } 46% { opacity: 1; } 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes ev-sign-nib { 0% { opacity: 0; } 2% { opacity: 1; } 32% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes ev-nib-wobble { from { transform: translateY(-.16em); } to { transform: translateY(.14em); } }
@keyframes ev-sign-vine { 0%, 36% { stroke-dashoffset: 420; opacity: 1; } 52% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ev-sign-leaf { 0%, 44% { transform: scale(0) rotate(var(--r)); opacity: 1; } 54% { transform: scale(1) rotate(var(--r)); } 86% { transform: scale(1) rotate(var(--r)); opacity: 1; } 96%, 100% { transform: scale(1) rotate(var(--r)); opacity: 0; } }
@keyframes ev-sign-bloom { 0%, 50% { transform: scale(0) rotate(-120deg); opacity: 1; } 62% { transform: scale(1) rotate(0); } 86% { transform: scale(1) rotate(0); opacity: 1; } 96%, 100% { transform: scale(1) rotate(0); opacity: 0; } }
@keyframes ev-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 14deg; } }
@keyframes ev-fall { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: .9; } 80% { opacity: .7; } 100% { opacity: 0; transform: translate(var(--x), 1.6em) rotate(320deg); } }
/* On dark or photo backgrounds the ink turns pale so it reads clearly */
.ev-deep .ev-ink__fill, .ev-on-photo .ev-ink__fill { background-image: linear-gradient(100deg, var(--ev-accent-2) 0%, #fff 25%, var(--ev-accent-2) 50%, #fff 75%, var(--ev-accent-2) 100%); }
.ev-deep .ev-ink__line, .ev-on-photo .ev-ink__line { -webkit-text-stroke-color: var(--ev-accent-2); }
.ev-deep .ev-nib, .ev-on-photo .ev-nib { background: #fff; }
.ev-deep .ev-ink .b1, .ev-on-photo .ev-ink .b1 { background: var(--ev-accent-2); }
:root[data-preset="midnight"] .ev-ink__fill { background-image: linear-gradient(100deg, var(--ev-accent) 0%, var(--ev-accent-2) 25%, var(--ev-accent) 50%, var(--ev-accent-2) 75%, var(--ev-accent) 100%); }

/* ------------------------------------------------------------------ Buttons */
.ev-btn, .ev-btn .elementor-button, .aku-form__submit, .aku-newsletter button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 52px; padding: 0 28px; border-radius: 60px;
	background: var(--ev-ink); color: var(--ev-bg); border: 0;
	font: 600 .74rem/1 var(--ev-text); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: background-color .45s var(--ev-ease), color .45s var(--ev-ease), transform .45s var(--ev-ease), box-shadow .45s;
}
.ev-btn .elementor-button { min-height: 0; padding: 0; background: none; color: inherit; }
.ev-btn:hover, .aku-form__submit:hover, .aku-newsletter button:hover { background: var(--ev-deep); color: var(--ev-on-deep); transform: translateY(-2px); }
.ev-btn:hover .elementor-button { color: var(--ev-on-deep); }
.ev-btn:active { transform: scale(.98); }
.ev-btn--ghost, .ev-btn--ghost .elementor-button { background: transparent; color: var(--ev-ink); }
.ev-btn--ghost, .elementor a.ev-btn--ghost { border: 1px solid var(--ev-ink); }
.elementor-widget-button.ev-btn { width: fit-content; align-self: flex-start; --container-widget-width: fit-content; --container-widget-flex-grow: 0; }
.ev-btn--ghost:hover { background: var(--ev-ink); color: var(--ev-bg); }
.ev-btn--ghost:hover .elementor-button { color: var(--ev-bg); }
.ev-btn--light, .ev-btn--light .elementor-button { background: var(--ev-surface); color: var(--ev-ink); }
.ev-btn--text, .ev-btn--text .elementor-button { background: none; padding: 0; min-height: 0; border-radius: 0; color: var(--ev-ink); }
.ev-btn--text { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.ev-btn--text:hover, .ev-btn--text:hover .elementor-button { background: none; color: var(--ev-accent); transform: none; }

/* ------------------------------------------------------------------ Header */
.ev-header { position: sticky; top: 0; z-index: 50; transition: background-color .5s var(--ev-ease), box-shadow .5s var(--ev-ease), transform .6s var(--ev-ease), color .4s; }
.admin-bar .ev-header { top: 32px; }
.ev-over-photo .ev-header { position: fixed; left: 0; right: 0; color: #fff; }
.ev-header.is-solid { background: color-mix(in srgb, var(--ev-bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--ev-line); color: var(--ev-ink); }
.ev-header.is-hidden { transform: translateY(-110%); }
.ev-header__inner { max-width: var(--ev-wrap); margin: 0 auto; padding: 0 var(--ev-gutter); height: var(--ev-header); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ev-brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.ev-brand:hover { color: inherit; }
.ev-brand__word { font-family: var(--ev-display); font-size: clamp(1.35rem, 1.1rem + .7vw, 1.7rem); letter-spacing: .2em; text-transform: uppercase; }
.ev-brand__tag { font: 500 .6rem var(--ev-text); letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 4px; }
.ev-brand img { max-height: 46px; width: auto; }
.ev-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.2vw, 34px); }
.ev-nav__list a { text-decoration: none; font: 500 .78rem var(--ev-text); letter-spacing: .08em; text-transform: uppercase; position: relative; padding: 8px 0; }
.ev-nav__list a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 1px; background: currentColor; transition: left .45s var(--ev-ease), right .45s var(--ev-ease); }
.ev-nav__list a:hover::after, .ev-nav__list .current-menu-item > a::after { left: 0; right: 0; }
.ev-nav__list a:hover { color: inherit; }
.ev-nav__list .sub-menu { display: none; }
.ev-header__end { display: flex; align-items: center; gap: 10px; }
.ev-header .ev-btn { min-height: 46px; padding: 0 22px; }
.ev-over-photo .ev-header:not(.is-solid) .ev-btn { background: #fff; color: #2b1f38; }
.ev-burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; background: none; padding: 0; cursor: pointer; place-items: center; color: inherit; }
.ev-drawer { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--ev-ink) 45%, transparent); }
.ev-drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(440px, 90vw); background: var(--ev-bg); padding: 18px 28px 34px; display: flex; flex-direction: column; gap: 26px; animation: ev-drawer-in .6s var(--ev-ease); overflow-y: auto; }
@keyframes ev-drawer-in { from { transform: translateX(100%); } }
.ev-drawer__head { display: flex; justify-content: space-between; align-items: center; }
.ev-drawer__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ev-line); background: none; cursor: pointer; display: grid; place-items: center; }
.ev-drawer__list { list-style: none; margin: 0; padding: 0; }
.ev-drawer__list li { border-bottom: 1px solid var(--ev-line); }
.ev-drawer__list a { display: block; padding: 14px 0; text-decoration: none; font-family: var(--ev-display); font-size: 2rem; line-height: 1.1; }
.ev-drawer__note { margin-top: auto; display: flex; align-items: center; gap: 10px; color: var(--ev-muted); font-size: .9rem; }
.ev-drawer__note .ev-icon { color: var(--ev-accent); }
body.ev-locked { overflow: hidden; }
@media (max-width: 1024px) {
	.ev-nav { display: none; }
	.ev-burger { display: inline-grid; }
	.ev-header .ev-btn { display: none; }
	.ev-header__inner { height: 70px; }
	.admin-bar .ev-header { top: 46px; }
}
@media (max-width: 600px) { .admin-bar .ev-header { top: 0; } }

/* ------------------------------------------------------------------ Pages, journal */
.ev-main { min-height: 50vh; }
.ev-page { padding-top: clamp(40px, 6vw, 90px); padding-bottom: clamp(60px, 8vw, 120px); }
.ev-page__head { margin-bottom: clamp(28px, 4vw, 56px); }
.ev-page__title { font-size: var(--ev-fs-h2); }
.ev-page--text .ev-content, .ev-single .ev-content { max-width: 720px; }
.ev-content h2 { font-size: var(--ev-fs-h3); margin-top: 1.6em; }
.ev-content img { margin: 2em 0; border-radius: var(--ev-radius); }
.ev-content blockquote { margin: 2em 0; padding: 0; font-family: var(--ev-display); font-style: italic; font-size: 1.7rem; line-height: 1.3; }
.ev-single { padding-top: clamp(40px, 6vw, 90px); padding-bottom: 96px; }
.ev-single__head { max-width: 880px; margin-bottom: 40px; }
.ev-single__media { margin: 0 0 48px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ev-radius); }
.ev-single__media img { width: 100%; height: 100%; object-fit: cover; }
.ev-single__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--ev-line); font-size: .9rem; }
.ev-meta, .aku-posts__meta { display: flex; gap: 14px; font: 600 .7rem var(--ev-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ev-muted); margin: 0 0 .8em; }
.ev-meta span, .aku-posts__meta span { color: var(--ev-accent); }
.ev-posts, .aku-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.ev-post-card__media, .aku-posts__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 18px; background: var(--ev-tint); border-radius: var(--ev-radius); }
.ev-post-card__media img, .aku-posts__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ev-ease); }
.ev-post-card:hover img, .aku-posts__item:hover img { transform: scale(1.05); }
.ev-post-card__title, .aku-posts__title { font-size: var(--ev-fs-h3); margin: 0 0 .4em; }
.ev-post-card__title a, .aku-posts__title a { text-decoration: none; }
.ev-post-card__excerpt, .aku-posts__excerpt { color: var(--ev-muted); font-size: .95rem; margin: 0; }
.ev-404 { padding: clamp(110px, 16vw, 220px) var(--ev-gutter) clamp(80px, 12vw, 160px); text-align: center; }
.ev-404 .ev-lead { margin: 0 auto 2em; }
.nav-links { display: flex; gap: 8px; margin-top: 48px; }
.nav-links .page-numbers { min-width: 46px; height: 46px; display: inline-grid; place-items: center; border: 1px solid var(--ev-line); border-radius: 50%; text-decoration: none; }
.nav-links .current { background: var(--ev-ink); color: var(--ev-bg); }
@media (max-width: 900px) { .ev-posts, .aku-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ev-posts, .aku-posts { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Forms (stationery style: hairline fields) */
.aku-form { display: grid; gap: 20px; }
.aku-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.aku-field { margin: 0; display: grid; gap: 4px; }
.aku-field label, .aku-pills legend { font: 600 .66rem var(--ev-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ev-muted); }
.aku-field input, .aku-field textarea, .aku-field select, .comment-form input, .comment-form textarea {
	width: 100%; border: 0; border-bottom: 1px solid var(--ev-line); background: transparent; padding: 10px 0; font-family: var(--ev-display); font-size: 1.35rem; border-radius: 0; transition: border-color .3s;
}
.aku-field textarea { font-size: 1.2rem; }
.aku-field input:focus, .aku-field textarea:focus, .aku-field select:focus { outline: none; border-color: var(--ev-accent); }
.aku-pills { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aku-pills legend { margin-bottom: 10px; }
.aku-pills label { position: relative; cursor: pointer; }
.aku-pills input { position: absolute; opacity: 0; }
.aku-pills span { display: inline-block; padding: 9px 18px; border: 1px solid var(--ev-line); border-radius: 40px; font-size: .9rem; transition: all .3s var(--ev-ease); }
.aku-pills input:checked + span { background: var(--ev-accent); color: var(--ev-on-accent); border-color: var(--ev-accent); }
.aku-pills input:focus-visible + span { outline: 2px solid var(--ev-accent); outline-offset: 2px; }
.aku-newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.aku-newsletter input[type="email"] { flex: 1 1 220px; min-height: 52px; border: 1px solid var(--ev-line); background: var(--ev-surface); padding: 0 20px; border-radius: 60px; }
.aku-newsletter__note { flex-basis: 100%; margin: 8px 0 0; font-size: .9rem; }
@media (max-width: 600px) { .aku-form__row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Footer: the "kindly reply" card */
.ev-footer { position: relative; margin-top: clamp(60px, 8vw, 110px); padding: clamp(80px, 10vw, 130px) 0 34px; background: var(--ev-paper); overflow: hidden; isolation: isolate; }
.ev-footer__petals { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ev-footer__petals i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 60% 0 60% 0; background: color-mix(in srgb, var(--ev-accent-2) 80%, #fff); opacity: 0; animation: ev-drift 14s linear infinite; }
.ev-footer__petals i:nth-child(1) { left: 8%; animation-delay: 0s; } .ev-footer__petals i:nth-child(2) { left: 22%; animation-delay: 4s; width: 7px; height: 10px; }
.ev-footer__petals i:nth-child(3) { left: 41%; animation-delay: 8s; } .ev-footer__petals i:nth-child(4) { left: 63%; animation-delay: 2s; width: 8px; height: 11px; }
.ev-footer__petals i:nth-child(5) { left: 79%; animation-delay: 6s; } .ev-footer__petals i:nth-child(6) { left: 92%; animation-delay: 10s; width: 7px; height: 10px; }
@keyframes ev-drift { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: .8; } 90% { opacity: .6; } 100% { opacity: 0; transform: translate(-60px, 900px) rotate(540deg); } }
.ev-reply { position: relative; max-width: 840px; margin: 0 auto; background: var(--ev-surface); padding: clamp(46px, 6vw, 70px) clamp(24px, 6vw, 76px) clamp(40px, 5vw, 58px); text-align: center; border-radius: var(--ev-radius); box-shadow: 0 50px 90px -50px rgba(40, 20, 50, .55); }
.ev-reply::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--ev-line); pointer-events: none; }
.ev-reply__title { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.8rem); }
.ev-reply__text { color: var(--ev-muted); max-width: 46ch; margin: 0 auto 30px; }
.ev-reply__note { display: inline-block; padding: 10px 18px; border-radius: 40px; background: var(--ev-tint); color: var(--ev-accent); margin: 0 0 22px; }
.ev-reply__note--error { color: #a3283b; }
.ev-reply__choice { border: 0; padding: 0; margin: 0 0 26px; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.ev-reply__choice label { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font: italic 400 1.55rem var(--ev-display); }
.ev-reply__choice input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border: 1px solid var(--ev-ink); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ev-reply__choice input::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ev-accent); transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ev-reply__choice input:checked::after { transform: scale(1); }
.ev-reply__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.ev-reply__fields label span { display: block; font: 600 .64rem var(--ev-text); letter-spacing: .1em; text-transform: uppercase; color: var(--ev-muted); }
.ev-reply__fields input { display: block; width: 100%; margin-top: 4px; border: 0; border-bottom: 1px solid var(--ev-line); background: none; padding: 10px 0; font: 400 1.4rem var(--ev-display); color: var(--ev-ink); }
.ev-reply__fields input:focus { outline: none; border-color: var(--ev-accent); }
.ev-reply__fields input::placeholder { color: color-mix(in srgb, var(--ev-ink) 35%, transparent); }
.ev-seal { display: grid; place-content: center; margin: 38px auto 0; width: 118px; height: 118px; border-radius: 50%; border: 0; cursor: pointer; color: var(--ev-on-deep);
	background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--ev-deep) 62%, #fff), var(--ev-deep) 62%);
	box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .45), inset 0 0 0 8px color-mix(in srgb, var(--ev-deep) 76%, #000 12%);
	transition: transform .3s var(--ev-ease); }
.ev-seal span { font: 400 1.6rem/1 var(--ev-script); }
.ev-seal small { font: 600 .54rem var(--ev-text); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.ev-seal:hover { transform: rotate(-8deg) scale(1.04); }
.ev-seal:active { transform: scale(.9); }
.ev-footer__bar { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto; gap: 30px; align-items: start; margin-top: clamp(60px, 8vw, 100px); padding-top: 30px; border-top: 1px solid color-mix(in srgb, var(--ev-ink) 16%, transparent); font-size: .92rem; }
.ev-footer__brand p { margin: 10px 0 0; color: var(--ev-muted); font-size: .85rem; }
.ev-footer__list, .ev-footer__contact, .ev-footer__social { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev-footer__contact li { display: flex; align-items: center; gap: 10px; }
.ev-footer__contact .ev-icon { width: 17px; height: 17px; color: var(--ev-accent); }
.ev-footer__social { display: flex; gap: 18px; }
.ev-footer a { text-decoration: none; }
.ev-footer a:hover { color: var(--ev-accent); }
.ev-footer__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; font-size: .78rem; color: var(--ev-muted); }
.ev-footer__base p { margin: 0; }
@media (max-width: 900px) {
	.ev-footer__bar { grid-template-columns: 1fr 1fr; }
	.ev-reply__fields { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .ev-footer__bar { grid-template-columns: 1fr; } .ev-footer__base { flex-direction: column; } .ev-reply__choice label { font-size: 1.35rem; } }

/* ------------------------------------------------------------------ Colour switcher */
.ev-switcher { position: fixed; right: 18px; bottom: 18px; z-index: 80; font-size: .8rem; }
.ev-switcher__toggle { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border: 1px solid var(--ev-line); background: var(--ev-surface); color: var(--ev-ink); cursor: pointer; letter-spacing: .1em; text-transform: uppercase; font: 600 .7rem var(--ev-text); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); border-radius: 30px; }
.ev-switcher__swatch { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--ev-accent) 0 50%, var(--ev-accent-2) 0 100%); box-shadow: inset 0 0 0 3px var(--ev-surface); animation: ev-spin 9s linear infinite; }
@keyframes ev-spin { to { transform: rotate(1turn); } }
.ev-switcher__list { position: absolute; right: 0; bottom: 58px; display: grid; gap: 4px; padding: 8px; background: var(--ev-surface); border: 1px solid var(--ev-line); min-width: 210px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .45); border-radius: 16px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .35s var(--ev-ease); }
.ev-switcher.is-open .ev-switcher__list { opacity: 1; visibility: visible; transform: none; }
.ev-switcher__list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 10px; color: var(--ev-ink); }
.ev-switcher__list button:hover, .ev-switcher__list button[aria-pressed="true"] { background: var(--ev-tint); }
.ev-switcher__dot { width: 26px; height: 26px; border-radius: 50%; flex: none; background: conic-gradient(var(--s-a) 0 50%, var(--s-b) 0 75%, var(--s-bg) 0 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.ev-switcher__list button[aria-pressed="true"] .ev-switcher__dot { box-shadow: 0 0 0 2px var(--ev-surface), 0 0 0 3px var(--ev-ink); }
@media (max-width: 900px) { .ev-switcher { right: 12px; bottom: 12px; } .ev-switcher__toggle { padding: 0 8px; font-size: 0; gap: 0; } }

/* ------------------------------------------------------------------ Motion */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ev-ease), transform 1.2s var(--ev-ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .ev-rise .ev-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .14em; margin-bottom: -.14em; }
.js .ev-rise .ev-w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ev-ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.js .ev-rise.is-in .ev-w > span { transform: none; }
.js .ev-rise .ev-w:has(.ev-ink) { overflow: visible; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js [data-reveal], .js .ev-rise .ev-w > span { opacity: 1; transform: none; }
	.js .ev-ink, .js .ev-ink.is-written { --ev-w: 110%; animation: none; }
	.js .ev-ink__fill { opacity: 1; animation: none !important; }
	.js .ev-ink__line, .js .ev-nib { display: none; }
	.js .ev-ink .ev-leaf, .js .ev-ink .ev-bloom { transform: none; animation: none !important; }
	.js .ev-ink .ev-vine path { stroke-dashoffset: 0; animation: none !important; }
	.ev-ink .ev-petal, .ev-footer__petals { display: none; }
}
@media (max-width: 782px) { .admin-bar .ev-drawer__panel { padding-top: 64px; } }
