/* Prism14 — theme styles. Colors come from theme.json presets so Site Editor › Styles changes flow through. */

:root {
	--p14-ground: var(--wp--preset--color--ground, #F6F6F3);
	--p14-surface: var(--wp--preset--color--surface, #FFFFFF);
	--p14-ink: var(--wp--preset--color--ink, #0B1426);
	--p14-muted: var(--wp--preset--color--muted, #4B5567);
	--p14-line: var(--wp--preset--color--line, #DADDE3);
	--p14-accent: var(--wp--preset--color--accent, #2F45C8);
	--p14-tint: var(--wp--preset--color--tint, #EDEEF6);
	--p14-night: var(--wp--preset--color--night, #101A30);
	--p14-night-line: var(--wp--preset--color--night-line, #2A3550);
	--p14-night-muted: var(--wp--preset--color--night-muted, #A9B1C2);
	--p14-signal: var(--wp--preset--color--signal, #9FB0FF);
	--p14-spectrum: var(--wp--preset--gradient--spectrum, linear-gradient(90deg,#5B6CFF,#3A8DFF,#2BB3C9,#3DBE7A,#E6B93A,#E0763A,#D9475B));
	--p14-sans: var(--wp--preset--font-family--sora, 'Sora', system-ui, sans-serif);
	--p14-serif: var(--wp--preset--font-family--newsreader, 'Newsreader', Georgia, serif);
	--p14-mono: var(--wp--preset--font-family--mono, 'IBM Plex Mono', monospace);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
[id] { scroll-margin-top: 24px; }

/* ---------- Type helpers ---------- */
.p14-eyebrow,
.p14-label,
.p14-ticker,
.p14-num,
.p14-meta,
.p14-meta a {
	font-family: var(--p14-mono);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 13px;
	line-height: 1.5;
	color: var(--p14-muted);
}
.p14-eyebrow { letter-spacing: 0.12em; margin: 0; }
.p14-kicker { color: var(--p14-accent); }
.p14-label { font-size: 12px; letter-spacing: 0.08em; }
.p14-num { color: var(--p14-accent); letter-spacing: 0.04em; }
.p14-muted { color: var(--p14-muted); }
.p14-lede { font-size: 22px; line-height: 1.5; color: var(--p14-muted); max-width: 580px; }
.p14-small { font-size: 17px; }
.p14-cred { font-size: 16px; color: var(--p14-muted); max-width: 580px; padding-top: 12px; border-top: 1px solid var(--p14-line); }
.p14-intro { color: var(--p14-muted); max-width: 460px; }

/* ---------- Sections ---------- */
.p14-section { padding-top: 112px; padding-bottom: 104px; }
.p14-section.is-white { background: var(--p14-surface); border-top: 1px solid var(--p14-line); border-bottom: 1px solid var(--p14-line); }
.p14-section.is-dark { background: var(--p14-ink); color: var(--p14-ground); }
.p14-section.is-tight-top { padding-top: 0; }
.p14-section-head { margin-bottom: 56px !important; align-items: flex-end !important; }
.p14-section-head h2 { margin: 16px 0 0; }

/* ---------- Header ---------- */
.p14-header { border-bottom: 1px solid var(--p14-line); padding-top: 20px; padding-bottom: 20px; background: var(--p14-ground); }
.p14-brand { gap: 10px !important; }
.p14-brand .wp-block-site-title { margin: 0; font-family: var(--p14-sans); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.p14-brand .wp-block-site-title a { text-decoration: none; color: var(--p14-ink); }
.p14-nav { font-family: var(--p14-sans); font-size: 15px; gap: 8px 28px; }
.p14-nav a { text-decoration: none; }
.p14-nav .wp-block-navigation-item__content { padding: 10px 0; }
.p14-btn-sm .wp-block-button__link { padding: 12px 20px; font-size: 15px; }
.p14-header-actions { gap: 16px 28px !important; }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1px solid currentColor;
	color: var(--p14-ink);
	background: transparent;
	padding: 15px 27px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--p14-ink); color: #fff; }
.wp-block-button__link { text-decoration: none; transition: background-color .2s ease, color .2s ease; }

/* ---------- Hero ---------- */
.p14-hero { padding-top: 96px; padding-bottom: 72px; }
.p14-hero-copy > * + * { margin-top: 28px; }
.p14-hero h1 { margin: 0; }
.p14-prism svg { width: 100%; height: auto; display: block; }
@keyframes p14shimmer { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.p14ray { animation: p14shimmer 5s ease-in-out infinite; }
.p14ray:nth-child(2) { animation-delay: .4s; } .p14ray:nth-child(3) { animation-delay: .8s; }
.p14ray:nth-child(4) { animation-delay: 1.2s; } .p14ray:nth-child(5) { animation-delay: 1.6s; }
.p14ray:nth-child(6) { animation-delay: 2s; } .p14ray:nth-child(7) { animation-delay: 2.4s; }
@media (prefers-reduced-motion: reduce) { .p14ray { animation: none; } }

/* ---------- Spectrum ---------- */
hr.wp-block-separator.is-style-spectrum {
	border: 0;
	height: 2px;
	width: 100% !important;
	max-width: none !important;
	margin: 0;
	opacity: 1;
	background: var(--p14-spectrum);
}
.p14-section.is-dark hr.wp-block-separator.is-style-spectrum { opacity: .8; margin: 0 0 40px; }
.p14-tickerbar { border-bottom: 1px solid var(--p14-line); padding-top: 22px; padding-bottom: 22px; }
.p14-ticker { margin: 0; word-spacing: 0.3em; }

/* ---------- Hairline grids & cards ---------- */
.p14-grid-hairline {
	gap: 1px !important;
	background: var(--p14-line);
	border: 1px solid var(--p14-line);
}
.p14-card { background: var(--p14-surface); padding: 40px 36px 44px; gap: 16px !important; height: 100%; box-sizing: border-box; }
.p14-card.is-ground { background: var(--p14-ground); padding: 32px; gap: 12px !important; }
.p14-card > * { margin: 0 !important; }
.p14-card h3 { margin: 0; }
.p14-card.is-ground h3 { font-size: 22px; }
.p14-card-foot { margin-top: auto !important; padding-top: 16px; border-top: 1px solid var(--p14-line); font-size: 15px; }
.p14-card-foot.p14-label { font-size: 13px; letter-spacing: 0.04em; text-transform: none; }
.p14-card-foot .p14-label { display: inline-block; margin-bottom: 4px; }
.p14-icon svg { width: 44px; height: 44px; display: block; }

/* ---------- Offers ---------- */
.p14-offers { gap: 20px !important; }
.p14-offer { border: 1px solid var(--p14-line); border-radius: 6px; padding: 32px; background: var(--p14-surface); gap: 14px !important; height: 100%; box-sizing: border-box; }
.p14-offer > * { margin: 0 !important; }
.p14-offer h3 { font-size: 22px; }
.p14-offer .p14-card-foot { padding-top: 18px; font-family: var(--p14-sans); font-size: 17px; font-weight: 500; }
.p14-offer .p14-card-foot a { text-decoration: none; }
.p14-offer.is-featured { background: var(--p14-ink); border-color: var(--p14-ink); color: var(--p14-ground); }
.p14-offer.is-featured .p14-label { color: var(--p14-night-muted); }
.p14-offer.is-featured .p14-muted { color: #C9CFDA; }
.p14-offer.is-featured .p14-card-foot { border-color: var(--p14-night-line); }

/* ---------- House rules ---------- */
.p14-rules { background: var(--p14-tint); border-radius: 6px; padding: clamp(40px, 6vw, 88px); }
.p14-rules > * + * { margin-top: 24px; }
.p14-quote { font-family: var(--p14-serif); font-style: italic; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.15; letter-spacing: -0.015em; max-width: 980px; margin: 0; }
.p14-rules-foot { padding-top: 20px; border-top: 1px solid #C9CCE0; font-size: 18px; color: var(--p14-muted); max-width: 720px; }

/* ---------- Studios ---------- */
.p14-studios { border-top: 1px solid var(--p14-ink); }
.p14-studios > * { margin: 0 !important; }
.p14-studio-row { padding: 36px 0; border-bottom: 1px solid var(--p14-line); gap: 12px 40px !important; align-items: baseline !important; }
.p14-studio-row > * { margin: 0; }
.p14-studio-name { flex: 0 0 280px; font-family: var(--p14-sans); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.p14-studio-desc { flex: 1 1 380px; min-width: 0; color: var(--p14-muted); }
.p14-studio-link { font-family: var(--p14-sans); font-size: 15px; font-weight: 500; }
.p14-studio-link a { text-decoration: none; padding: 12px 0; }

/* ---------- Dark (Signals) ---------- */
.p14-section.is-dark a { color: var(--p14-ground); }
.p14-section.is-dark .p14-eyebrow { color: var(--p14-signal); }
.p14-section.is-dark .p14-muted { color: var(--p14-night-muted); }
.p14-post-card { background: var(--p14-night); border: 1px solid var(--p14-night-line); border-radius: 6px; padding: 32px; gap: 14px !important; height: 100%; box-sizing: border-box; }
.p14-post-card > * { margin: 0 !important; }
.p14-post-card .p14-meta, .p14-post-card .p14-meta a { color: var(--p14-signal); font-size: 12px; text-decoration: none; }
.p14-post-card .wp-block-post-title { font-family: var(--p14-sans); font-size: 22px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.p14-post-card .wp-block-post-title a { text-decoration: none; }
.p14-post-card .wp-block-post-excerpt { font-size: 17px; color: var(--p14-night-muted); }
.p14-post-card .wp-block-post-excerpt__excerpt { margin: 0; }
.p14-all-posts { font-family: var(--p14-sans); font-size: 16px; font-weight: 500; margin-top: 32px !important; }
.p14-all-posts a { text-decoration: none; }

/* Light post cards (blog index) */
.p14-post-card.is-light { background: var(--p14-surface); border-color: var(--p14-line); }
.p14-post-card.is-light .p14-meta, .p14-post-card.is-light .p14-meta a { color: var(--p14-accent); }
.p14-post-card.is-light .wp-block-post-title a { color: var(--p14-ink); }
.p14-post-card.is-light .wp-block-post-excerpt { color: var(--p14-muted); }

/* ---------- Newsletter ---------- */
.p14-newsletter { display: flex; flex-direction: column; gap: 10px; }
.p14-newsletter label { font-family: var(--p14-sans); font-size: 14px; color: #C9CFDA; }
.p14-newsletter-row { display: flex; flex-wrap: wrap; gap: 10px; }
.p14-newsletter input {
	flex: 1 1 220px; min-width: 0; height: 52px; box-sizing: border-box; padding: 0 18px;
	border-radius: 999px; border: 1px solid #3A4562; background: #121C33; color: var(--p14-ground);
	font-family: var(--p14-sans); font-size: 16px;
}
.p14-newsletter button, .p14-newsletter-cta {
	height: 52px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--p14-ground); color: var(--p14-ink) !important;
	font-family: var(--p14-sans); font-size: 16px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; align-self: flex-start;
}
.p14-fineprint { margin: 0; font-size: 14px; color: var(--p14-night-muted); }
.p14-admin-note { margin: 4px 0 0; font-family: var(--p14-mono); font-size: 12px; color: #F2C94C; }

/* ---------- FAQ ---------- */
.p14-faq-list { border-top: 1px solid var(--p14-ink); }
.p14-faq-list > * { margin: 0 !important; }
.wp-block-details.p14-faq { border-bottom: 1px solid var(--p14-line); padding: 24px 0; }
.wp-block-details.p14-faq summary {
	font-family: var(--p14-sans); font-size: 20px; font-weight: 500; line-height: 1.35; cursor: pointer;
	list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.wp-block-details.p14-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.p14-faq summary::after { content: "+"; font-weight: 300; }
.wp-block-details.p14-faq[open] summary::after { content: "–"; }
.wp-block-details.p14-faq > p { margin: 14px 0 0; color: var(--p14-muted); }

/* ---------- Contact form ---------- */
.p14-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.p14-field { display: flex; flex-direction: column; gap: 8px; }
.p14-field.is-full { grid-column: 1 / -1; }
.p14-field label { font-family: var(--p14-sans); font-size: 14px; font-weight: 500; }
.p14-field input, .p14-field textarea {
	box-sizing: border-box; border: 1px solid #B9BFCA; border-radius: 6px; background: var(--p14-ground);
	color: var(--p14-ink); font-size: 16px; width: 100%;
}
.p14-field input { height: 52px; padding: 0 16px; font-family: var(--p14-sans); }
.p14-field textarea { padding: 14px 16px; font-family: var(--p14-serif); font-size: 18px; resize: vertical; }
.p14-field input:focus, .p14-field textarea:focus, .p14-newsletter input:focus { outline: 2px solid var(--p14-accent); outline-offset: 2px; }
.p14-field button {
	height: 54px; padding: 0 32px; border-radius: 999px; border: 0; background: var(--p14-accent); color: #fff;
	font-family: var(--p14-sans); font-size: 16px; font-weight: 500; cursor: pointer; justify-self: start; align-self: flex-start;
}
.p14-field button:hover { background: var(--p14-ink); }
.p14-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p14-notice { font-family: var(--p14-sans); font-size: 16px; padding: 14px 18px; border-radius: 6px; background: var(--p14-tint); margin: 0 0 18px; }
.p14-notice.is-error { background: #FBE9E9; color: #8A1C1C; }

/* ---------- Footer ---------- */
.p14-footer { background: var(--p14-ink); color: var(--p14-ground); padding-top: 80px; padding-bottom: 48px; border-top: 2px solid transparent; border-image: var(--p14-spectrum) 1; }
.p14-footer a { color: #C9CFDA; text-decoration: none; }
.p14-footer a:hover { color: #fff; }
.p14-footer-sign { font-family: var(--p14-sans); font-weight: 300; font-size: clamp(26px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.p14-footer .p14-muted { color: var(--p14-night-muted); }
.p14-footer-nav { font-family: var(--p14-sans); font-size: 15px; gap: 8px 32px; }
.p14-footer-nav .wp-block-navigation-item__content { padding: 10px 0; }
.p14-footer-legal { margin-top: 56px !important; padding-top: 24px; border-top: 1px solid var(--p14-night-line); font-family: var(--p14-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--p14-night-muted); }

/* ---------- Single posts ---------- */
.p14-article { padding-top: 96px; padding-bottom: 96px; }
.p14-article .wp-block-post-title { font-size: clamp(34px, 4.6vw, 60px); }
.p14-article .wp-block-post-content a { color: var(--p14-accent); }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.p14-section { padding-top: 80px; padding-bottom: 72px; }
	.p14-hero { padding-top: 56px; }
	.p14-studio-name { flex-basis: 100%; }
}
