/*
Theme Name: Olga Keller
Theme URI: https://olgakeller.net
Author: Olga Keller
Description: A lightweight block theme for olgakeller.net. It recreates the original Elementor design with standard WordPress blocks, so the site no longer needs a page builder. Fonts are bundled with the theme.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: olgakeller
*/

/* ---------- Basics ---------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

a {
	text-decoration: none;
}

.entry-content a:not(.wp-element-button):not(.wp-block-social-link-anchor) {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Show/hide helpers (same breakpoint the old site used) */
@media (max-width: 767px) {
	.ok-hide-mobile {
		display: none !important;
	}
}
@media (min-width: 768px) {
	.ok-hide-desktop {
		display: none !important;
	}
}

/* ---------- Buttons ---------- */

.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Default: accent red, turns black on hover (READ, COMMENT, REQUEST MANUSCRIPT) */
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link,
.wp-block-button.is-style-ok-arrow .wp-block-button__link {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:hover,
.wp-block-button:not([class*="is-style-"]) .wp-block-button__link:focus,
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:focus,
.wp-block-button.is-style-ok-arrow .wp-block-button__link:hover,
.wp-block-button.is-style-ok-arrow .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

/* Arrow after the label (READ ▸) */
.wp-block-button.is-style-ok-arrow .wp-block-button__link::after,
.wp-block-button.is-style-ok-back .wp-block-button__link::before {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	border-top: 0.35em solid transparent;
	border-bottom: 0.35em solid transparent;
	vertical-align: 0.02em;
}
.wp-block-button.is-style-ok-arrow .wp-block-button__link::after {
	border-left: 0.4em solid currentColor;
	margin-left: 0.6em;
}

/* Black (home page links): pink on hover */
.wp-block-button.is-style-ok-black .wp-block-button__link {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--lato);
	font-weight: 400;
	font-size: 0.9em;
	letter-spacing: 2px;
	padding: 12px 24px;
}
.wp-block-button.is-style-ok-black .wp-block-button__link:hover,
.wp-block-button.is-style-ok-black .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--white);
}

/* Text-only (DOWNLOAD PDF) and Back link (◂ BACK) */
.wp-block-button.is-style-ok-text .wp-block-button__link,
.wp-block-button.is-style-ok-back .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--black);
}
.wp-block-button.is-style-ok-text .wp-block-button__link:hover,
.wp-block-button.is-style-ok-text .wp-block-button__link:focus,
.wp-block-button.is-style-ok-back .wp-block-button__link:hover,
.wp-block-button.is-style-ok-back .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}
.wp-block-button.is-style-ok-back .wp-block-button__link::before {
	border-right: 0.4em solid currentColor;
	margin-right: 0.45em;
}

/* Outlined (celebrancy page) */
.wp-block-button.is-style-ok-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--black);
	border: 1px solid currentColor;
	padding: 8px 9px;
}
.wp-block-button.is-style-ok-outline .wp-block-button__link:hover,
.wp-block-button.is-style-ok-outline .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

@media (max-width: 767px) {
	.wp-block-button.is-style-ok-text .wp-block-button__link {
		font-size: 12px;
		letter-spacing: 1px;
	}
	.wp-block-button.is-style-ok-back .wp-block-button__link {
		font-size: 14px;
	}
}

/* ---------- Top/bottom bar with BACK and DOWNLOAD PDF ---------- */

.ok-bar {
	padding: 30px calc(5% + 10px) 0;
}
.ok-bar .wp-block-buttons {
	margin: 0;
}
@media (max-width: 767px) {
	.ok-bar {
		padding: 10px 0 0;
	}
}

/* ---------- Home ---------- */

.ok-home {
	min-height: 100vh;
}
.ok-home .ok-home__photo {
	background: #000;
	align-self: stretch;
}
.ok-home .ok-home__photo .wp-block-image,
.ok-home .ok-home__photo img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}
.ok-home .ok-home__text {
	padding: 50px;
	box-sizing: border-box;
}
.ok-home .ok-logo img {
	width: 100%;
	max-width: 395px;
	height: auto;
}
@media (max-width: 767px) {
	.ok-home .ok-home__text {
		padding: 50px 30px;
	}
	.ok-home .ok-logo img {
		max-width: 310px;
	}
}

/* Label followed by a thin line (CONNECT ———) */
.ok-line-label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wp--preset--font-family--barlow);
	font-weight: 300;
	font-size: 16px;
	letter-spacing: 3px;
	text-transform: uppercase;
	line-height: 1;
}
.ok-line-label::after {
	content: "";
	flex: 1;
	border-top: 1px solid currentColor;
}
@media (max-width: 767px) {
	.ok-line-label::before {
		content: "";
		flex: 1;
		border-top: 1px solid currentColor;
	}
}

/* Round black social icons */
.ok-social.wp-block-social-links .wp-social-link {
	background-color: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	transition: background-color 0.2s ease;
}
.ok-social.wp-block-social-links .wp-social-link:hover {
	background-color: var(--wp--preset--color--pink);
	transform: none;
}
.ok-social.wp-block-social-links .wp-social-link {
	font-size: 16px;
}
.ok-social.wp-block-social-links .wp-social-link svg {
	width: 16px;
	height: 16px;
}
.ok-social.wp-block-social-links .wp-block-social-link-anchor {
	padding: 8px;
}
@media (max-width: 767px) {
	.ok-social.wp-block-social-links {
		justify-content: center;
	}
}

/* ---------- Writing list ---------- */

.ok-label {
	font-family: var(--wp--preset--font-family--lato);
	font-size: 14px;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.ok-summary {
	font-family: var(--wp--preset--font-family--lato);
	font-size: 14px;
	letter-spacing: 1px;
}

/* ---------- Stories ---------- */

.ok-story {
	text-align: justify;
	hyphens: manual;
}
.ok-story p + p {
	text-indent: 10px;
}
.ok-story--large {
	font-size: 1.2em;
	line-height: 1.5;
}

/* Drop cap like the original: a large letter beside the first lines */
.ok-story p.has-drop-cap:not(:focus)::first-letter {
	font-family: var(--wp--preset--font-family--libre-baskerville);
	font-size: 4.2em;
	line-height: 0.75;
	font-weight: 400;
	float: left;
	margin: 0.08em 20px 0 20px;
	text-transform: none;
}

.ok-scene-break.wp-block-separator {
	margin-block: 2.5rem;
}

/* ---------- 404 ---------- */

.ok-404 {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.ok-404__number {
	font-family: var(--wp--preset--font-family--lato);
	font-weight: 700;
	font-size: clamp(160px, 20vw, 260px);
	line-height: 1;
	color: var(--wp--preset--color--grey-light);
	margin: 0;
}
.ok-404__title {
	margin-top: -0.55em !important;
	position: relative;
}
.ok-404 .wp-block-search__input {
	font-family: var(--wp--preset--font-family--barlow);
	font-size: 16px;
	padding: 12px 14px;
	border: 1px solid var(--wp--preset--color--grey);
}

/* ---------- Royal Jelly ---------- */

.ok-story--plain p + p {
	text-indent: 0;
}
.ok-rule.wp-block-separator {
	border-top: 1px solid currentColor;
	border-bottom: 0;
	width: 100%;
	opacity: 1;
	margin-top: 50px !important;
}

/* ---------- Celebrancy ---------- */

.ok-celebrant-text {
	font-family: var(--wp--preset--font-family--questrial);
	font-size: 16px;
	letter-spacing: 1px;
	line-height: 1.6;
}
.ok-step .ok-step-icon {
	margin: 0 auto;
}
.ok-step .ok-label {
	letter-spacing: 3px;
	font-size: 16px;
}
.ok-step .wp-block-column > * + * {
	margin-block-start: 6px;
}
.wp-block-button.is-style-ok-text .wp-block-button__link[href^="#"] {
	font-family: var(--wp--preset--font-family--questrial);
}
@media (max-width: 767px) {
	.ok-story-title {
		font-size: 36px !important;
	}
	.ok-celebrant-hero {
		min-height: 60vh !important;
	}
}

/* Password form (Celebrancy page while it is private) */
.post-password-form {
	max-width: 500px;
	margin: 20vh auto;
	padding: 0 20px;
	font-family: var(--wp--preset--font-family--barlow);
}
.post-password-form input[type="password"] {
	padding: 10px;
	border: 1px solid var(--wp--preset--color--black);
}
.post-password-form input[type="submit"] {
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
	border: 0;
	padding: 11px 20px;
	letter-spacing: 2px;
	cursor: pointer;
}

/* ---------- Small-screen tweaks ---------- */

@media (max-width: 767px) {
	.ok-writing-list {
		padding-left: 30px !important;
		padding-right: 30px !important;
	}
	.ok-read-row .wp-block-buttons {
		justify-content: flex-end;
	}
	.ok-bar {
		padding: 20px 20px 0;
	}
}
.ok-404 .wp-block-search__inside-wrapper {
	width: 100% !important;
}
