:root {
	--oma-forest: #173d31;
	--oma-forest-deep: #0c2921;
	--oma-moss: #64775a;
	--oma-mist: #f3f1e9;
	--oma-paper: #fbfaf5;
	--oma-sand: #d9cdb7;
	--oma-ember: #b9784a;
	--oma-ink: #26322c;
	--oma-light: #fffdf6;
	--oma-serif: Georgia, "Times New Roman", serif;
	--oma-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--oma-shell: min(1120px, calc(100% - 40px));
	--oma-radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--oma-paper); color: var(--oma-ink); font-family: var(--oma-sans); line-height: 1.7; }
body.admin-bar .oma-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--oma-serif); font-weight: 400; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 8vw, 7.6rem); margin: 0 0 .25em; }
h2 { font-size: clamp(2.4rem, 5vw, 5.4rem); margin: 0 0 .35em; }
p { text-wrap: pretty; }
.screen-reader-text, .oma-skip-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.oma-skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 99999; width: auto; height: auto; clip: auto; padding: 12px 18px; background: var(--oma-light); color: var(--oma-forest-deep); }

.oma-header { position: absolute; inset: 0 0 auto; z-index: 30; color: var(--oma-light); }
body:not(.home):not(.page-template-page-kylakauppa) .oma-header { color: var(--oma-forest-deep); }
.oma-header__inner { width: var(--oma-shell); margin: auto; display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.oma-brand { display: inline-flex; align-items: baseline; gap: .4rem; text-decoration: none; letter-spacing: .12em; font-family: var(--oma-serif); font-size: 1.45rem; }
.oma-brand small { font-family: var(--oma-sans); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.oma-brand .custom-logo { max-height: 64px; width: auto; }
.oma-menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); margin: 0; padding: 0; list-style: none; }
.oma-menu a { text-decoration: none; font-size: .9rem; letter-spacing: .03em; }
.oma-menu a:hover, .oma-menu a:focus-visible { text-decoration: underline; }
.oma-menu-toggle { display: none; color: inherit; background: none; border: 0; padding: 12px; }
.oma-menu-toggle span[aria-hidden] { display: block; width: 25px; border-top: 1px solid currentColor; margin: 7px 0; }

.oma-image-section { --oma-image: linear-gradient(135deg, #456355, #142f27); position: relative; min-height: 82svh; display: grid; place-items: center; isolation: isolate; overflow: hidden; color: var(--oma-light); background-image: var(--oma-image); background-size: cover; background-position: center; }
.oma-image-section__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,22,17,.25), rgba(5,22,17,.7)); }
.oma-image-section__content { width: min(760px, calc(100% - 40px)); text-align: center; padding: 140px 0 100px; }
.oma-image-section__content > p:not(.oma-eyebrow):not(.oma-leave-response):not(.oma-bench-message) { max-width: 650px; margin: 0 auto 2rem; font-family: var(--oma-serif); font-size: clamp(1.2rem, 2vw, 1.65rem); }
.oma-arrival { min-height: 100svh; }
.oma-arrival .oma-image-section__shade { background: linear-gradient(180deg, rgba(6,24,18,.3), rgba(6,24,18,.58)); }
.oma-place--forest { --oma-image: linear-gradient(145deg, #6d8065, #183c2d); }
.oma-place--fire { --oma-image: linear-gradient(145deg, #3c291f, #7e4930); }
.oma-place--bench { --oma-image: linear-gradient(145deg, #718477, #304a3c); }
.oma-place--house { --oma-image: linear-gradient(145deg, #455540, #172d25); }
.oma-farewell { --oma-image: linear-gradient(180deg, #334b43, #081c18); min-height: 92svh; }
.oma-farewell .oma-image-section__content p { font-family: var(--oma-serif); font-size: clamp(2.7rem, 6vw, 6.5rem); }
.oma-eyebrow { margin: 0 0 1rem; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 650; }

.oma-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .75rem 1.25rem; border: 1px solid var(--oma-forest); border-radius: 999px; background: var(--oma-forest); color: var(--oma-light); text-decoration: none; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.oma-button:hover, .oma-button:focus-visible { background: var(--oma-forest-deep); }
.oma-button--light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); backdrop-filter: blur(8px); }
.oma-button--light:hover, .oma-button--light:focus-visible { background: var(--oma-light); color: var(--oma-forest-deep); }

.oma-leave-form { width: min(550px, 100%); margin: 2rem auto 0; text-align: left; }
.oma-leave-form label { display: block; margin-bottom: .6rem; }
.oma-leave-form textarea { width: 100%; padding: 1rem; border: 1px solid rgba(255,255,255,.4); border-radius: 14px; background: rgba(255,255,255,.08); color: white; resize: vertical; backdrop-filter: blur(10px); }
.oma-leave-form .oma-button { margin-top: .8rem; }
.oma-leave-response { min-height: 1.7em; text-align: center; font-family: var(--oma-serif); }

.oma-bench-ritual { min-height: 180px; display: grid; justify-items: center; align-content: center; }
.oma-cup { display: none; position: relative; width: 74px; height: 54px; border: 2px solid rgba(255,255,255,.85); border-radius: 8px 8px 22px 22px; margin: 1rem auto; }
.oma-cup::after { content: ""; position: absolute; right: -22px; top: 10px; width: 24px; height: 25px; border: 2px solid rgba(255,255,255,.85); border-left: 0; border-radius: 0 18px 18px 0; }
.oma-cup span, .oma-cup span::before { content: ""; position: absolute; left: 25px; bottom: 58px; width: 16px; height: 44px; border-left: 2px solid rgba(255,255,255,.55); border-radius: 50%; animation: oma-steam 4s ease-in-out infinite; }
.oma-cup span::before { left: 15px; bottom: -2px; animation-delay: 1.3s; }
.is-resting .oma-cup { display: block; }
.oma-bench-message { min-height: 1.8em; font-family: var(--oma-serif); font-size: 1.35rem; }
@keyframes oma-steam { 0%,100% { opacity: 0; transform: translateY(8px) rotate(2deg); } 45% { opacity: .75; } 80% { opacity: 0; transform: translateY(-18px) rotate(-5deg); } }

.oma-content { min-height: 75vh; padding: 160px 0 100px; }
.oma-prose { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.oma-prose h1 { font-size: clamp(3rem, 7vw, 6rem); }
.oma-prose h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin-top: 1.6em; }
.oma-prose p, .oma-prose li { font-size: 1.08rem; }
.oma-featured { margin: 2.5rem 0; }
.oma-featured img { border-radius: var(--oma-radius); }
.oma-center { text-align: center; }
.oma-journal article { padding: 2.5rem 0; border-top: 1px solid rgba(23,61,49,.18); }
.oma-journal h2 { margin: .2em 0; }
.oma-journal h2 a { text-decoration: none; }

.oma-shop-hero { --oma-image: linear-gradient(145deg, #57705e, #18392d); min-height: 75svh; }
.oma-shop-story, .oma-shop-thanks { padding: clamp(90px, 12vw, 160px) 0; }
.oma-shop-shelf { padding: clamp(90px, 12vw, 150px) 0; background: #ece7dc; }
.oma-shell { width: var(--oma-shell); margin: auto; }
.oma-coming-grid, .oma-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 52px); }
.oma-coming-item { min-height: 360px; padding: clamp(28px, 5vw, 55px); display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--oma-radius); background: linear-gradient(145deg, rgba(255,255,255,.75), rgba(219,211,194,.72)); box-shadow: inset 0 0 0 1px rgba(23,61,49,.08); }
.oma-coming-item > span { flex: 1; background: radial-gradient(ellipse at center, rgba(23,61,49,.11), transparent 62%); }
.oma-coming-item h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: .8rem 0 .2rem; }
.oma-coming-item p { margin: 0; }
.oma-coming-item small { margin-top: 1.5rem; color: var(--oma-moss); letter-spacing: .07em; text-transform: uppercase; }

.oma-products { list-style: none; margin: 2rem 0 0; padding: 0; }
.oma-products .product { list-style: none; position: relative; padding: 24px; border-radius: var(--oma-radius); background: rgba(255,255,255,.72); }
.oma-products .woocommerce-loop-product__link { text-decoration: none; }
.oma-products img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: calc(var(--oma-radius) - 8px); }
.oma-products h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: .7em 0 .2em; }
.oma-products .price { display: block; margin-bottom: 1rem; color: var(--oma-forest); }
.oma-products .button { display: inline-flex; padding: .7rem 1rem; border: 1px solid var(--oma-forest); border-radius: 999px; background: transparent; text-decoration: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { width: var(--oma-shell); margin: 120px auto 30px; padding: 18px 22px; border: 1px solid rgba(23,61,49,.2); border-radius: 12px; background: var(--oma-mist); list-style: none; }
.woocommerce div.product, .woocommerce-cart-form, .cart-collaterals, .woocommerce-checkout { width: var(--oma-shell); margin: 140px auto 80px; }
.woocommerce table { width: 100%; border-collapse: collapse; }
.woocommerce th, .woocommerce td { padding: 14px; border-bottom: 1px solid rgba(23,61,49,.15); text-align: left; }
.woocommerce input, .woocommerce select, .woocommerce textarea { max-width: 100%; padding: .7rem; border: 1px solid rgba(23,61,49,.3); border-radius: 8px; background: white; }

.oma-footer { background: var(--oma-forest-deep); color: var(--oma-light); }
.oma-footer__inner { width: var(--oma-shell); margin: auto; padding: 70px 0; text-align: center; }
.oma-footer__inner > p { font-family: var(--oma-serif); font-size: clamp(1.4rem, 3vw, 2.2rem); }
.oma-footer-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin: 30px 0; padding: 0; list-style: none; }

.oma-reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.2s ease, transform 1.2s ease; }
.oma-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
	body.admin-bar .oma-header { top: 46px; }
	.oma-menu-toggle { display: block; }
	.oma-navigation { display: none; position: absolute; top: 78px; left: 20px; right: 20px; padding: 22px; border-radius: 18px; background: rgba(9,35,27,.96); }
	.oma-navigation.is-open { display: block; }
	.oma-menu { align-items: stretch; flex-direction: column; gap: 0; }
	.oma-menu a { display: block; padding: 10px; }
	.oma-coming-grid, .oma-products { grid-template-columns: 1fr; }
	.oma-image-section { min-height: 76svh; }
	.oma-arrival { min-height: 100svh; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.oma-reveal { opacity: 1; transform: none; }
}


/* OMA 5.0.2: kuvat tulevat PHP:n sisäisistä oletuksista.
   Liukuväri jää turvalliseksi varataustaksi vain kuvan latausvirheessä. */
.oma-image-section {
	background-color: #173d31;
	background-repeat: no-repeat;
}
