/*
Theme Name: Daydream Home
Description: Block theme for the Daydream Home Mac app.
Version: 1.6.6
Requires at least: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: daydream-home
*/
.wp-site-blocks > header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--wp--preset--color--night) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid #ffffff14; }
.admin-bar .wp-site-blocks > header { top: 32px; }
h1, h2, h3 { text-wrap: balance; }

/* Header: app icon before the site name, App Store button ending the menu */
.wp-site-blocks > header .wp-block-site-logo { line-height: 0; margin: 0 -0.75rem 0 0; }
.wp-block-navigation .wp-block-navigation-item.is-style-app-store .wp-block-navigation-item__content { background: var(--wp--preset--color--ocean); color: var(--wp--preset--color--paper); border-radius: 999px; padding: 0.45rem 1.1rem; font-weight: 800; white-space: nowrap; }
.wp-block-navigation .wp-block-navigation-item.is-style-app-store .wp-block-navigation-item__content:hover { filter: brightness(1.15); }
hr.wp-block-separator.is-style-horizon { border: 0; opacity: 1; height:17px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2717%27%20height%3D%2717%27%3E%3Cpath%20d%3D%27M8.5%200V17%27%20stroke%3D%27%238d99b3%27%20stroke-opacity%3D%27.6%27/%3E%3Cpath%20d%3D%27M3%2014L14%203%27%20stroke%3D%27%23ffab3d%27%20stroke-width%3D%272%27/%3E%3C/svg%3E") left center no-repeat,url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2717%27%20height%3D%2717%27%3E%3Cpath%20d%3D%27M8.5%200V17%27%20stroke%3D%27%238d99b3%27%20stroke-opacity%3D%27.6%27/%3E%3Cpath%20d%3D%27M3%2014L14%203%27%20stroke%3D%27%23ffab3d%27%20stroke-width%3D%272%27/%3E%3C/svg%3E") right center no-repeat,linear-gradient(#8d99b380,#8d99b380) center/calc(100% - 16px) 1px no-repeat; }
.dh-window img { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.dh-window img { border-radius: 14px; width: 100%; }

/* Vertical rhythm */
.entry-content h2.wp-block-heading { margin-block: 0 var(--wp--preset--spacing--40); }
.entry-content h1.wp-block-heading { margin-block: 1rem 0; }
.entry-content h1 + .dh-tagline { margin-block: 1.75rem 0; line-height: 1.1; }
.entry-content .dh-tagline + p { margin-block: 2rem 0; }
.entry-content p + h2.wp-block-heading, .entry-content p + h3.wp-block-heading { margin-top: 3.5rem; }
.entry-content > h3.wp-block-heading { margin-block: 3rem 0; }
.entry-content h3.wp-block-heading + p { margin-top: 0.75rem; }
.entry-content .wp-block-image.dh-window, .entry-content .wp-block-daydream-download-button { margin-block: var(--wp--preset--spacing--40); }
.entry-content .wp-block-columns { row-gap: 4rem; column-gap: 2rem; margin-block: 0; }
.entry-content .wp-block-columns + .wp-block-columns { margin-top: 4rem; }

.entry-content .wp-block-image.dh-night-icon { margin-block: 2.5rem 0; }
.dh-night-icon img { filter: drop-shadow(0 0 1px #ffffff66) drop-shadow(0 0 28px #5b76c466); }

/* Manual (Support page) */
.entry-content :is(ul, ol, figure, pre, .wp-block-table) + h2.wp-block-heading { margin-top: 4.5rem; }
.entry-content p + h2.wp-block-heading { margin-top: 4.5rem; }
.entry-content h2.wp-block-heading[id] { color: var(--wp--preset--color--sun); padding-top: 1.5rem; border-top: 1px solid #ffffff1f; }
ul.dh-manual-toc { list-style: none; padding: 1.25rem 1.5rem; columns: 2; column-gap: 2rem; background: var(--wp--preset--color--dusk); border-radius: 14px; }
ul.dh-manual-toc li { break-inside: avoid; padding-block: 0.2rem; }
ul.dh-manual-toc a { text-decoration: none; }
ul.dh-manual-toc a:hover { text-decoration: underline; }
figure.dh-manual-table { margin-inline: 0; }
.dh-manual-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.dh-manual-table :is(th, td) { border: 0; border-bottom: 1px solid #ffffff1f; padding: 0.6rem 0.75rem 0.6rem 0; text-align: left; vertical-align: top; }
.dh-manual-table thead { border: 0; }
.dh-manual-table th { color: var(--wp--preset--color--mist); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.dh-manual-table td:first-child { width: 38%; }
.entry-content kbd { font: inherit; font-size: 0.875em; font-weight: 600; white-space: nowrap; padding: 0.1em 0.4em; border-radius: 6px; background: #ffffff14; border: 1px solid #ffffff24; }
pre.dh-manual-code { background: var(--wp--preset--color--dusk); border: 1px solid #ffffff1f; border-radius: 12px; padding: 1.1rem 1.25rem; overflow-x: auto; font: 0.8125rem/1.6 ui-monospace, "SF Mono", Menlo, monospace; white-space: pre; tab-size: 4; }
pre.dh-manual-code code { font: inherit; }
figure.dh-manual-shot { margin-inline: 0; }
.dh-manual-shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid #ffffff24; display: block; }
.dh-manual-shot figcaption { color: var(--wp--preset--color--mist); font-size: 0.875rem; text-align: center; margin-top: 0.6rem; }
figure.dh-manual-panel { max-width: 320px; margin-inline: auto; }
.entry-content :is(figure, pre) + h3.wp-block-heading { margin-top: 3rem; }
.entry-content li + li { margin-top: 0.4rem; }
@media (max-width: 600px) { ul.dh-manual-toc { columns: 1; } .dh-manual-table td:first-child { width: 44%; } }

/* Accessibility */
html { scroll-padding-top: 6rem; }
:where(a, button, input, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--butter); outline-offset: 3px; }
ul.wp-block-list.is-style-word-string { list-style: none; padding: 0; text-align: center; }
ul.is-style-word-string li { display: inline; }
ul.is-style-word-string li:not(:last-child)::after { content: " \00b7  "; content: " \00b7  " / ""; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.entry-content .dh-tagline { text-wrap: balance; }

/* Phones */
@media (max-width: 600px) {
	.wp-site-blocks > header > .wp-block-group { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
	.wp-site-blocks > header .wp-block-site-title { font-size: 1.25rem; white-space: nowrap; margin: 0; }
	.wp-site-blocks > header .wp-block-navigation { font-size: 0.875rem; }
	.wp-site-blocks > header .wp-block-navigation__container { gap: 1.25rem; justify-content: center; }
	.wp-site-blocks > header .alignwide { flex-direction: column; justify-content: center; gap: 0.5rem; }
	.wp-site-blocks > header .alignwide > .wp-block-group { justify-content: center; }
	.wp-site-blocks > header .wp-block-daydream-header-download { display: none; }
	.admin-bar .wp-site-blocks > header { top: 46px; }
	html { scroll-padding-top: 6rem; }
	.entry-content h1.wp-block-heading { font-size: min(10vw, 3rem) !important; }
	.entry-content .dh-tagline { font-size: min(6.2vw, 1.75rem) !important; }
	.entry-content .wp-block-columns { row-gap: 3rem; }
	.entry-content .wp-block-columns + .wp-block-columns { margin-top: 3rem; }
}
@media (max-width: 360px) {
	.wp-block-daydream-download-button .dh-download { font-size: 0.9375rem; padding-inline: 1.25rem; }
}

/* Demo clips */
.wp-block-video.dh-clip video { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; box-shadow: 0 18px 40px #0008; }
.dh-loop { position: relative; }
.dh-loop video { display: block; }
.dh-loop-toggle { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; padding: 0; border: 1px solid #fff9; border-radius: 50%; background: #000b; color: #fff; cursor: pointer; display: grid; place-items: center; }
.dh-loop-toggle:hover { background: #000; }
.dh-loop-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 7px #000; }
.dh-loop-toggle .dh-icon-play, .dh-loop-toggle.is-paused .dh-icon-pause { display: none; }
.dh-loop-toggle.is-paused .dh-icon-play { display: inline; }
@media (forced-colors: active) { .dh-loop-toggle { border-color: ButtonText; background: ButtonFace; color: ButtonText; } }
.wp-block-video.dh-clip figcaption { color: var(--wp--preset--color--mist); text-align: center; }
.wp-block-video.dh-clip + .wp-block-video.dh-clip { margin-top: 3.5rem; }

/* No image lightbox on phones: the picture is already full width. */
@media (max-width: 781px), (max-height: 500px) and (pointer: coarse) {
	.wp-lightbox-container img { pointer-events: none; cursor: auto; }
	.wp-lightbox-container .lightbox-trigger { display: none; }
}

/* Home hero: scroll to push in on the dappled wall (assets/hero-zoom.js) */
.dh-zoom-stage { position: sticky; overflow: hidden; border-radius: 14px; -webkit-mask-image: linear-gradient(#000 var(--fade, 78%), transparent); mask-image: linear-gradient(#000 var(--fade, 78%), transparent); }
.dh-zoom-world { position: relative; transform-origin: 0 0; }
.dh-window .dh-zoom-world img { display: block; border-radius: 0; -webkit-mask-image: none; mask-image: none; }
.dh-window .dh-zoom-world img.dh-zoom-close { position: absolute; max-width: none; opacity: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--edge, 8%), #000 calc(100% - var(--edge, 8%)), transparent), linear-gradient(transparent, #000 var(--edge, 8%), #000 calc(100% - var(--edge, 8%)), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 var(--edge, 8%), #000 calc(100% - var(--edge, 8%)), transparent), linear-gradient(transparent, #000 var(--edge, 8%), #000 calc(100% - var(--edge, 8%)), transparent);
	-webkit-mask-composite: source-in; mask-composite: intersect; }
