/* OMA Koti v0.8 */

html { scroll-behavior: smooth; }

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: #d9c7a4;
	color: #2f2f2b;
}

.oma-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 244, 238, .78);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(47,47,43,.06);
}

.oma-logo {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .08rem;
	color: #2f2f2b;
	text-decoration: none;
	line-height: .86;
}

.oma-logo-main {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.78rem, 2.8vw, 2.72rem);
	letter-spacing: .12em;
	font-weight: 500;
}

.oma-logo-sub {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(.9rem, 1.5vw, 1.18rem);
	font-style: italic;
	letter-spacing: .05em;
	color: #817b70;
	margin-left: .17rem;
}

.oma-hero {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
}

.oma-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(247,244,238,.72), rgba(247,244,238,.34) 50%, rgba(247,244,238,.72)),
		linear-gradient(180deg, rgba(247,244,238,.28), rgba(247,244,238,.54)),
		url("../images/oma-saaristo-hero.png");
	background-size: cover;
	background-position: center center;
	z-index: 0;
	transform: scale(1.012);
}

.oma-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 35%, rgba(255,253,248,.58), transparent 35%),
		linear-gradient(180deg, transparent 65%, rgba(247,244,238,.54));
	z-index: 0;
}

.oma-hero > * {
	position: relative;
	z-index: 1;
}

.oma-hero-content {
	animation: oma-arrive 1.45s ease both;
}

@keyframes oma-arrive {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

.oma-eyebrow,
.oma-thought-label {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-size: .75rem;
	color: #536b55;
}

.oma-hero h1 {
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
}

.oma-hero-lead {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.oma-muted { color: #817b70; }

.oma-section {
	padding-top: clamp(5rem, 12vw, 10rem);
	padding-bottom: clamp(5rem, 12vw, 10rem);
}

.oma-section-tight {
	padding-top: clamp(3.5rem, 8vw, 6.5rem);
	padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.oma-breath {
	min-height: clamp(4rem, 13vh, 9rem);
}

.oma-breath-small {
	min-height: clamp(2.5rem, 8vh, 5rem);
}

.oma-letter,
.oma-first-message {
	position: relative;
}

.oma-letter::before,
.oma-first-message::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 50%;
	width: min(820px, 92vw);
	transform: translateX(-50%);
	background: rgba(255,253,248,.66);
	border: 1px solid rgba(47,47,43,.08);
	border-radius: 2rem;
	z-index: -1;
	box-shadow: 0 24px 70px rgba(49,70,56,.055);
}

.oma-card,
.oma-thought-card,
.oma-quote-card,
.oma-image-card,
.oma-quiet-panel {
	border: 1px solid rgba(47,47,43,.12);
	border-radius: 1.45rem;
	background: rgba(255,253,248,.72);
	box-shadow: 0 18px 50px rgba(49,70,56,.045);
	overflow: hidden;
}

.oma-thought-card {
	min-height: 16rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.oma-quote-card {
	position: relative;
	overflow: hidden;
}

.oma-quote-card::before {
	content: "“";
	position: absolute;
	top: -2.4rem;
	left: 1.6rem;
	font-size: 10rem;
	line-height: 1;
	color: rgba(83,107,85,.10);
	font-family: Georgia, serif;
}

.oma-quote-text {
	font-size: clamp(1.45rem, 3vw, 2.8rem);
	line-height: 1.18;
}

.oma-button-soft .wp-block-button__link {
	background: transparent !important;
	border: 1px solid currentColor;
	color: inherit !important;
}

.wp-block-button__link {
	transition: transform .18s ease, opacity .18s ease, background-color .18s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	opacity: .92;
}

.oma-manifest-panel {
	border-radius: 2rem;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(49,70,56,.10);
}

.oma-manifest-panel,
.oma-manifest-panel h1,
.oma-manifest-panel h2,
.oma-manifest-panel h3,
.oma-manifest-panel p,
.oma-manifest-panel .oma-eyebrow {
	color: #FFFDF8 !important;
}

.oma-manifest-panel .oma-eyebrow {
	opacity: .72;
}

.oma-manifest-panel .wp-block-button__link {
	color: #FFFDF8 !important;
}

.oma-footer-note {
	font-style: italic;
	color: #817b70;
}

.oma-footer-signature {
	font-size: .96rem;
	color: #817b70;
}

.oma-photo-block {
	width: 100%;
	height: 22rem;
	border-radius: 1.5rem;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: 0 24px 60px rgba(49,70,56,.10);
}

.oma-photo-usva {
	background-image: url("../images/oma-metsa-usva.png");
}

.oma-photo-caption {
	font-size: .95rem;
	color: #817b70;
}

.oma-quiet-panel {
	background:
		radial-gradient(circle at 50% 10%, rgba(255,253,248,.64), rgba(255,253,248,.22) 42%, rgba(217,199,164,.14)),
		rgba(255,253,248,.72);
}

@media (max-width: 900px) {
	.oma-section {
		padding-top: clamp(4rem, 10vw, 7rem);
		padding-bottom: clamp(4rem, 10vw, 7rem);
	}
}

@media (max-width: 720px) {
	.oma-site-header {
		position: relative;
	}

	.oma-hero {
		min-height: 88vh;
	}

	.oma-logo-main {
		font-size: 1.8rem;
	}

	.wp-block-navigation__container {
		gap: 1rem !important;
	}

	.oma-thought-card {
		min-height: auto;
	}

	.oma-letter::before,
	.oma-first-message::before {
		width: calc(100vw - 2rem);
	}

	.oma-photo-block {
		height: 15rem;
	}
}


/* OMA Koti v0.9 Sisältö */

.oma-sinkkuus-hero,
.oma-sinkkuus-callout {
	position: relative;
	overflow: hidden;
	border-radius: 2.2rem;
	background:
		radial-gradient(circle at 48% 0%, rgba(255,253,248,.72), rgba(255,253,248,.25) 42%, rgba(217,199,164,.12)),
		linear-gradient(135deg, rgba(247,244,238,.94), rgba(231,225,214,.82));
	border: 1px solid rgba(47,47,43,.10);
	box-shadow: 0 24px 80px rgba(49,70,56,.07);
}

.oma-sinkkuus-hero::before,
.oma-sinkkuus-callout::before {
	content: "";
	position: absolute;
	inset: auto 8% 8% auto;
	width: clamp(8rem, 18vw, 18rem);
	height: clamp(8rem, 18vw, 18rem);
	border: 1px solid rgba(83,107,85,.18);
	border-radius: 50%;
	background: rgba(255,253,248,.18);
}

.oma-manifest-text p {
	margin-bottom: 1.55em;
}

.oma-manifest-text strong {
	font-weight: 500;
	color: #314638;
}

.oma-sinkkuus-line {
	font-size: clamp(1.7rem, 3.4vw, 3.15rem);
	line-height: 1.12;
}

.oma-category-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.oma-category-item {
	padding: 1.4rem;
	border-radius: 1.25rem;
	background: rgba(255,253,248,.70);
	border: 1px solid rgba(47,47,43,.10);
	box-shadow: 0 12px 34px rgba(49,70,56,.04);
}

.oma-category-item h3 {
	margin-top: 0;
}

@media (max-width: 900px) {
	.oma-category-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.oma-category-list {
		grid-template-columns: 1fr;
	}
}
