/*
Theme Name: Juno
Theme URI: https://onlyjuno.com
Description: "Only Juno" editorial theme — monochrome, DM Serif Display + Inter. Matches the Only Juno app design. Pairs with the Juno Dating plugin.
Version: 2.0.0
Author: Juno
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: juno
*/

:root {
	/* Editorial light — from the Only Juno app */
	--bg: #fafafa;
	--fg: #141414;
	--card: #ffffff;
	--primary: #1f1f1f;
	--muted: #f0f0f0;
	--muted-fg: #737373;
	--border: #e5e5e5;
	--ember: #b8633d;
	--radius: 10px;
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, .08);
	--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, .25);
	--serif: 'DM Serif Display', Georgia, serif;
	--sans: 'Inter', system-ui, -apple-system, sans-serif;

	/* Tokens consumed by the Juno Dating plugin */
	--juno-ink: #141414;
	--juno-plum: #141414;
	--juno-rose: #1f1f1f;
	--juno-rose-dk: #000000;
	--juno-blush: #f0f0f0;
	--juno-cream: #fafafa;
	--juno-line: #e5e5e5;
	--juno-muted: #737373;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; color: var(--fg); }
em { font-style: italic; }
a { color: var(--fg); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1400px, 100% - 64px); margin-inline: auto; }
.wrap--narrow { width: min(768px, 100% - 48px); }
.muted { color: var(--muted-fg); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 36px; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: .875rem; font-weight: 500; text-decoration: none; border: 1px solid var(--fg); transition: background .2s, opacity .2s; line-height: 1; }
.btn:hover { background: rgba(20, 20, 20, .9); color: var(--bg); }
.btn--small { height: 36px; padding: 0 20px; font-size: .85rem; }
.btn--lg { height: 52px; padding: 0 40px; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { background: #ededed; color: var(--fg); }
.btn--light { background: #fff; color: var(--fg); border-color: #fff; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250, 250, 250, .8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(229, 229, 229, .6); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; width: min(1100px, 100% - 48px); }
.brand { font-family: var(--serif); font-size: 1.25rem; color: var(--fg); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand__logo { max-height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; flex: 1; justify-content: space-between; margin-left: 48px; }
.site-nav__center { display: flex; gap: 40px; margin: 0 auto; }
.site-nav__right { display: flex; align-items: center; gap: 16px; }
.site-nav a:not(.btn) { color: var(--muted-fg); text-decoration: none; font-size: .875rem; font-weight: 500; letter-spacing: .01em; transition: color .2s; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--fg); }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--fg); color: #fff; font-size: .7rem; font-weight: 600; vertical-align: 1px; }
.nav-badge[hidden] { display: none; }
.nav-burger { display: none; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--fg); transition: transform .2s; }
.nav-burger span:first-child { top: 16px; }
.nav-burger span:last-child { top: 23px; }

/* Main */
.site-main { min-height: 60vh; padding-top: 64px; }
.app-wrap { padding: 48px 0 96px; }
.page-hero { padding: 96px 0 32px; text-align: center; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin: 0; }
.prose { padding-bottom: 96px; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; }
.prose p, .prose li { color: #3d3d3d; }
.post-teaser { padding: 24px 0; border-bottom: 1px solid var(--border); }
.post-teaser h2 { margin: 0 0 4px; }
.post-teaser h2 a { text-decoration: none; color: inherit; }

/* Star field */
.starfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.starfield i { position: absolute; border-radius: 50%; background: #141414; animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .08; } }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 48px 0 80px; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; width: min(1400px, 100% - 64px); }
.hero__copy { padding-left: clamp(0px, 6vw, 96px); }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .75rem; font-weight: 500; color: var(--muted-fg); margin: 0 0 32px; }
.hero h1 { font-size: clamp(3rem, 9vw, 8rem); line-height: .95; margin: 0 0 32px; }
.lead { font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--muted-fg); max-width: 32rem; margin: 0 0 48px; line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__art { position: relative; width: 100%; }
.diptych { position: relative; aspect-ratio: 4 / 5; max-width: 640px; margin-left: auto; }
.diptych figure { position: absolute; margin: 0; overflow: hidden; border-radius: 2px; box-shadow: var(--shadow-2xl); background: #e9e9e9; animation: rise 1.2s cubic-bezier(.25, .46, .45, .94) both; }
.diptych img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diptych__dark { top: 0; right: 0; width: 62%; aspect-ratio: 1; background: #111 !important; transform: rotate(2deg); animation-delay: .4s !important; }
.diptych__light { bottom: 0; left: 0; width: 68%; aspect-ratio: 4 / 3; transform: rotate(-2deg); outline: 1px solid var(--border); animation-delay: .6s !important; }
@keyframes rise { from { opacity: 0; translate: 0 20px; } }
.hero__down { position: absolute; bottom: 40px; left: 50%; translate: -50% 0; color: rgba(115, 115, 115, .4); animation: bob 2.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* Sections */
.rule { width: 320px; max-width: 60%; margin: 0 auto; border-top: 1px solid var(--border); }
.section { padding: 144px 0; }
.section__head { text-align: center; max-width: 672px; margin: 0 auto 64px; }
.section__head .eyebrow { margin-bottom: 16px; letter-spacing: .2em; }
.section__head h2 { font-size: clamp(2.25rem, 4.5vw, 3rem); margin: 0 0 24px; }
.section__head h2 em, .section--cta h2 em { color: var(--muted-fg); }
.section__head p.muted { max-width: 28rem; margin: 0 auto; }

.tri { max-width: 896px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 16px; overflow: hidden; }
.tri__cell { background: var(--card); padding: 40px; text-align: center; }
.tri__icon { width: 28px; height: 28px; color: rgba(20, 20, 20, .2); margin-bottom: 20px; }
.tri h3 { font-size: 1.25rem; margin: 0 0 12px; }
.tri p { font-size: .875rem; color: var(--muted-fg); margin: 0; line-height: 1.6; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.steps li { display: flex; gap: 32px; align-items: flex-start; }
.steps__n { font-family: var(--sans); font-size: 2.25rem; font-weight: 300; color: rgba(20, 20, 20, .1); width: 48px; flex: none; line-height: 1; }
.steps h3 { font-size: 1.5rem; margin: 4px 0 8px; }
.steps p { font-size: .875rem; color: var(--muted-fg); margin: 0; max-width: 28rem; }

.features { max-width: 896px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.feature svg { width: 20px; height: 20px; color: rgba(20, 20, 20, .25); flex: none; margin-top: 2px; }
.feature p { margin: 0; font-size: .8rem; color: var(--muted-fg); line-height: 1.6; }
.feature .feature__t { font-size: .875rem; font-weight: 500; color: var(--fg); margin-bottom: 4px; }

.section--cta { padding: 160px 0; text-align: center; }
.section--cta h2 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.1; margin: 0 0 24px; }
.section--cta p { max-width: 28rem; margin: 0 auto 48px; }

/* 404 */
.notfound { text-align: center; padding: 140px 0; }
.notfound__heart { font-size: 48px; color: rgba(20, 20, 20, .15); }
.notfound h1 { font-size: 3rem; margin: 10px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 56px 0 28px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; width: min(1100px, 100% - 48px); }
.site-footer__inner p { color: var(--muted-fg); margin: 8px 0 0; font-size: .875rem; }
.footer-nav, .footer-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav a { color: var(--muted-fg); text-decoration: none; font-size: .875rem; }
.footer-nav a:hover { color: var(--fg); }
.site-footer__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted-fg); font-size: .8rem; width: min(1100px, 100% - 48px); }

/* WordPress core */
.alignwide { width: min(1100px, 100vw - 48px); margin-inline: calc(50% - min(550px, 50vw - 24px)); }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.wp-block-button__link { background: var(--fg); border-radius: 999px; }

/* Responsive */
@media (max-width: 1023px) {
	.hero { min-height: 0; padding: 40px 0 80px; }
	.hero__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
	.hero__copy { padding-left: 0; order: 2; }
	.hero__art { order: 1; max-width: 448px; margin: 0 auto; }
	.diptych { aspect-ratio: 5 / 4; margin: 0 auto; }
	.lead { margin-inline: auto; }
	.hero__cta { justify-content: center; }
	.hero__down { display: none; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.nav-burger { display: block; }
	.site-nav { position: absolute; top: 64px; left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 20px; display: none; }
	.site-nav__center, .site-nav__right { flex-direction: column; gap: 0; margin: 0; align-items: stretch; }
	.site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); }
	.site-nav .btn { margin-top: 16px; }
	.nav-toggle:checked ~ .site-nav { display: flex; }
	.nav-toggle:checked + .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
	.nav-toggle:checked + .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
	.section { padding: 96px 0; }
	.tri, .features { grid-template-columns: 1fr; }
	.hero__cta .btn { width: 100%; }
	.app-wrap { padding: 28px 0 56px; }
	.wrap { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
	*, .starfield i { animation: none !important; transition: none !important; }
}
