/*
Theme Name: Wynage
Theme URI: https://wordpress.org/themes/
Author: Sarah Lazri
Description: One-page block theme for Wynage — low-energy AI, hardware and software for science and healthcare. Includes the Wynage wave logo, self-hosted Sora font, a founder section, a built-in contact form (messages are emailed and kept under Messages in the dashboard) and a legal notice page.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.2
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: wynage
Tags: one-column, block-patterns, full-site-editing, custom-colors, editor-style
*/

/* ---------- Base ---------- */

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

body .wp-site-blocks > *,
body .wy-main > * {
	margin-block: 0;
}

a {
	text-underline-offset: 4px;
}

:where(a, button, input, textarea):focus-visible {
	outline: 2px solid #15171B;
	outline-offset: 3px;
}

.wy-band :where(a, button):focus-visible {
	outline-color: #F3F4F6;
}

/* Children of layout containers: spacing comes from `gap`, not margins. */
body :is(
	.wy-header-inner, .wy-hero, .wy-focus, .wy-section-head, .wy-section-title,
	.wy-cards, .wy-card, .wy-band-inner, .wy-band-title, .wy-steps, .wy-step,
	.wy-founder, .wy-founder-text, .wy-contact-inner, .wy-contact-text,
	.wy-footer-inner, .wy-notfound
) > * {
	margin-block: 0;
}

.wy-eyebrow {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.6;
	color: #5A6068;
}

body .wy-h2 {
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

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

body .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	box-sizing: border-box;
	padding: 0 28px;
	border: 1px solid #15171B;
	border-radius: 999px;
	background: #15171B;
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

body .wp-block-button .wp-block-button__link:hover {
	background: #2A2E35;
	border-color: #2A2E35;
}

body .wp-block-button.wy-btn-ghost .wp-block-button__link {
	background: transparent;
	border-color: #8E949B;
	color: #15171B;
}

body .wp-block-button.wy-btn-ghost .wp-block-button__link:hover {
	background: #F3F4F6;
	border-color: #15171B;
}

/* ---------- Header ---------- */

.wy-site-header {
	border-bottom: 1px solid #ECEEF0;
}

.wy-header-inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 16px 24px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
}

.wy-logo {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.wy-logo svg {
	display: block;
}

.wy-nav {
	font-size: 15px;
}

body .wy-nav .wp-block-navigation__container {
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 28px;
}

body .wy-nav .wp-block-navigation-item__content {
	display: inline-block;
	padding: 12px 0;
	color: #3A4048;
	text-decoration: none;
}

body .wy-nav .wp-block-navigation-item__content:hover {
	color: #15171B;
	text-decoration: underline;
}

body .wy-nav .wy-nav-cta .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0 22px;
	border-radius: 999px;
	background: #15171B;
	color: #FFFFFF;
	font-weight: 500;
	text-decoration: none;
}

body .wy-nav .wy-nav-cta .wp-block-navigation-item__content:hover {
	background: #2A2E35;
	color: #FFFFFF;
}

/* ---------- Hero ---------- */

.wy-hero {
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(56px, 8vw, 120px) 24px 32px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
}

body .wy-hero-title {
	max-width: 16ch;
	font-size: clamp(2.6rem, 7vw, 5.5rem);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.wy-lead {
	max-width: 36rem;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.6;
	color: #4A5058;
}

body .wy-actions {
	gap: 12px;
	margin-top: 8px !important;
}

.wy-signal {
	display: block;
	width: 100%;
	height: 180px;
}

/* ---------- Sections ---------- */

.wy-section {
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(64px, 8vw, 112px) 24px;
	box-sizing: border-box;
}

.wy-focus {
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.wy-section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px 64px;
}

.wy-section-title {
	flex: 1 1 420px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wy-section-intro {
	flex: 1 1 320px;
	max-width: 30rem;
	font-size: 1.05rem;
	line-height: 1.6;
	color: #4A5058;
}

/* Focus cards */

.wy-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 32px;
}

.wy-card {
	--wy-accent: #B3B6BE;
	flex: 1 1 240px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.wy-card::before {
	content: "";
	width: 40px;
	height: 4px;
	border-radius: 2px;
	background: var(--wy-accent);
}

.wy-card.wy-accent-pink { --wy-accent: #F2A9C8; }
.wy-card.wy-accent-yellow { --wy-accent: #F7D98B; }
.wy-card.wy-accent-blue { --wy-accent: #96C6F0; }

.wy-num {
	font-size: 13px;
	color: #5A6068;
}

body .wy-card h3 {
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
}

.wy-card p:not(.wy-num) {
	font-size: 1rem;
	line-height: 1.6;
	color: #4A5058;
}

/* Approach (dark band) */

.wy-band {
	background: #15171B;
	color: #F3F4F6;
}

.wy-band-inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(64px, 8vw, 112px) 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 56px;
}

.wy-band .wy-eyebrow {
	color: #A9AFB6;
}

.wy-band-title {
	max-width: 44rem;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wy-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 32px;
}

.wy-step {
	flex: 1 1 280px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: 20px;
	border-top: 1px solid #2E3238;
}

.wy-step-num {
	font-size: 2.5rem;
	line-height: 1;
}

.wy-step-num.wy-c-pink { color: #F2A9C8; }
.wy-step-num.wy-c-yellow { color: #F7D98B; }
.wy-step-num.wy-c-blue { color: #96C6F0; }

body .wy-step h3 {
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
}

.wy-step p:not(.wy-step-num) {
	font-size: 1rem;
	line-height: 1.6;
	color: #B9BEC4;
}

/* Founder */

.wy-founder {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px 72px;
}

body .wy-portrait {
	flex: 0 1 380px;
	aspect-ratio: 4 / 5;
	margin: 0;
	border-radius: 24px;
	overflow: hidden;
	background: #F3F4F6;
}

body .wy-portrait img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	border-radius: inherit;
	filter: grayscale(1);
}

.wy-founder-text {
	flex: 1 1 360px;
	max-width: 36rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.wy-bio-lead {
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: #15171B;
}

.wy-bio {
	font-size: 1.15rem;
	line-height: 1.65;
	color: #4A5058;
}

.wy-text-link a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #15171B;
	font-size: 16px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Contact */

.wy-contact {
	background: #F6F7F8;
}

.wy-contact-inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: clamp(64px, 8vw, 112px) 24px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px 72px;
}

.wy-contact-text {
	flex: 1 1 340px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.wy-contact-text .wy-section-intro {
	flex: none;
	max-width: 28rem;
}

.wy-email a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #15171B;
	font-size: 18px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 4px;
	overflow-wrap: anywhere;
}

.wy-form-wrap {
	flex: 1 1 420px;
	min-width: 0;
}

.wy-form {
	box-sizing: border-box;
	background: #FFFFFF;
	border: 1px solid #E6E8EB;
	border-radius: 24px;
	padding: clamp(24px, 3vw, 40px);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wy-form > * {
	margin: 0;
}

.wy-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wy-field label {
	font-size: 14px;
	font-weight: 500;
}

.wy-optional {
	font-weight: 400;
	color: #5A6068;
}

.wy-field input,
.wy-field textarea {
	width: 100%;
	height: 48px;
	box-sizing: border-box;
	padding: 0 14px;
	border: 1px solid #8E949B;
	border-radius: 12px;
	background: #FFFFFF;
	color: #15171B;
	font-family: inherit;
	font-size: 16px;
}

.wy-field textarea {
	height: auto;
	min-height: 140px;
	padding: 12px 14px;
	line-height: 1.5;
	resize: vertical;
}

.wy-field input:focus,
.wy-field textarea:focus {
	border-color: #15171B;
	outline: 2px solid #15171B;
	outline-offset: 1px;
}

.wy-form-note {
	font-size: 13px;
	line-height: 1.5;
	color: #5A6068;
}

.wy-form-note a {
	color: inherit;
}

.wy-submit {
	align-self: flex-start;
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: #15171B;
	color: #FFFFFF;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.wy-submit:hover {
	background: #2A2E35;
}

.wy-form-status {
	padding: 12px 16px;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.5;
}

.wy-form-status.is-sent {
	background: #EAF5EC;
	color: #1D4A2A;
}

.wy-form-status.is-invalid,
.wy-form-status.is-error {
	background: #FBEFF3;
	color: #7A1F3D;
}

.wy-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Footer ---------- */

.wy-site-footer {
	border-top: 1px solid #E6E8EB;
}

.wy-footer-inner {
	max-width: 1200px;
	margin-inline: auto;
	padding: 28px 24px;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	font-size: 14px;
	color: #5A6068;
}

.wy-footer-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 28px;
}

.wy-footer-links a {
	display: inline-block;
	padding: 12px 0;
	color: #4A5058;
	text-decoration: none;
}

.wy-footer-links a:hover {
	color: #15171B;
	text-decoration: underline;
}

/* ---------- Pages, posts, 404 ---------- */

.wy-page {
	max-width: 760px;
	margin-inline: auto;
	padding: clamp(48px, 7vw, 96px) 24px;
	box-sizing: border-box;
}

body .wy-page .wp-block-post-title {
	margin: 0 0 32px;
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.wy-page .wp-block-post-content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #3A4048;
}

body .wy-page .wp-block-post-content h2 {
	margin-top: 2em;
	font-size: 1.4rem;
	font-weight: 500;
	letter-spacing: 0;
	color: #15171B;
}

.wy-page .wp-block-post-date {
	font-size: 14px;
	color: #5A6068;
}

.wy-posts .wp-block-post {
	padding-block: 28px;
	border-bottom: 1px solid #ECEEF0;
}

body .wy-posts .wp-block-post-title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: 0;
}

.wy-posts .wp-block-post-title a {
	text-decoration: none;
}

.wy-notfound {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
	body .wy-nav .wp-block-navigation__container {
		justify-content: flex-start;
		gap: 4px 18px;
	}

	body .wy-nav .wy-nav-cta .wp-block-navigation-item__content {
		padding: 0 16px;
	}

	body .wy-nav {
		justify-content: flex-start;
	}

	.wy-signal {
		height: 110px;
	}

	body .wy-portrait {
		flex-basis: 100%;
	}
}

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