/* Luetti – block styles and small layout helpers. Colours and type live in theme.json. */

:root { --luetti-radius: 14px; --luetti-stitch: 1.5px dashed var(--wp--preset--color--stone-dark); }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--wp--preset--color--olive); outline-offset: 3px; border-radius: 4px; }
.has-olive-background-color :where(a, button, input, select, textarea, summary):focus-visible { outline-color: var(--wp--preset--color--pink); }
img { height: auto; }

/* Eyebrow: small label above a heading */
.is-style-eyebrow { font-size: 0.8125rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--olive); display: flex; align-items: center; gap: 0.6rem; }
.is-style-eyebrow::before { content: ""; width: 28px; border-top: 2px dashed var(--wp--preset--color--pink); flex: none; }
.has-olive-background-color .is-style-eyebrow, .is-style-eyebrow.has-pink-color { color: var(--wp--preset--color--pink); }
.has-text-align-center.is-style-eyebrow { justify-content: center; }

/* Lead paragraph */
.is-style-lead { font-size: var(--wp--preset--font-size--large) !important; color: var(--wp--preset--color--muted); max-width: 34em; }

/* Tag: small pink pill */
.is-style-tag { display: inline-block; background: var(--wp--preset--color--pink); color: var(--wp--preset--color--ink); font-size: 0.8125rem !important; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; }

/* Card: cream panel with a stitched edge */
.wp-block-group.is-style-card { background: var(--wp--preset--color--cream); border-radius: var(--luetti-radius); padding: 1.75rem; outline: var(--luetti-stitch); outline-offset: -9px; height: 100%; box-sizing: border-box; }
.wp-block-group.is-style-card > .wp-block-image:first-child { margin: -0.75rem -0.75rem 0.25rem; }
.wp-block-group.is-style-card > .wp-block-image:first-child img { border-radius: 8px; }
.wp-block-group.is-style-card > .wp-block-image:first-child ~ :last-child { margin-top: auto; }

/* Panel: rounded olive box (contact section) */
.wp-block-group.is-style-panel { border-radius: 22px; }

/* Images */
.wp-block-image.is-style-rounded img, .wp-block-image.is-style-rounded-soft img { border-radius: var(--luetti-radius); }
.wp-block-image.is-style-arch img { border-radius: 999px 999px 16px 16px; }
.wp-block-image.is-style-mounted { background: #fff; padding: 12px; border-radius: 6px; box-shadow: 0 18px 40px rgba(31, 25, 21, 0.12); box-sizing: border-box; }
.wp-block-image.is-style-mounted img { border-radius: 2px; display: block; }

/* Hero artwork composition – two mounted pieces and a tag */
.luetti-hero-art { position: relative; aspect-ratio: 1 / 0.92; margin-block-start: 0 !important; }
.luetti-hero-art::before { content: ""; position: absolute; left: 0; top: 0; width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--wp--preset--color--stone); }
.luetti-hero-art > * { margin: 0 !important; }
.luetti-hero-art > .wp-block-image:nth-of-type(1) { position: absolute; right: 0; top: 4%; width: 74%; transform: rotate(1.5deg); }
.luetti-hero-art > .wp-block-image:nth-of-type(2) { position: absolute; left: 4%; bottom: 0; width: 46%; transform: rotate(-3deg); }
.luetti-hero-art > .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.luetti-hero-art > p { position: absolute; right: 6%; bottom: 6%; transform: rotate(-2deg); }
.block-editor-block-list__layout .luetti-hero-art > .wp-block-image { max-width: none; }

/* Materials strip */
.is-style-materials { color: var(--wp--preset--color--cream); font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 300; font-size: var(--wp--preset--font-size--large) !important; letter-spacing: 0.01em; word-spacing: 0.25em; }

/* Stitched separator */
.wp-block-separator.is-style-stitch { border: 0; border-top: var(--luetti-stitch); background: none !important; height: 0; opacity: 1; }
.has-olive-background-color .wp-block-separator.is-style-stitch { border-top-color: rgba(255, 253, 245, 0.45); }

/* Pills list (values) */
.wp-block-list.is-style-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wp-block-list.is-style-pills li { font-size: 0.875rem; font-weight: 500; padding: 0.45rem 1rem; border-radius: 999px; border: 1.5px dashed currentColor; color: var(--wp--preset--color--olive); margin: 0; }

/* Steps (How a session works) */
.luetti-step { border-top: 1.5px dashed rgba(255, 253, 245, 0.45); padding-top: 1.5rem; }
.luetti-step__number { font-family: var(--wp--preset--font-family--display); font-weight: 300; font-size: 2.5rem; line-height: 1; color: var(--wp--preset--color--pink); }

/* Testimonial */
.wp-block-quote.is-style-testimonial { text-align: center; padding: 0; margin-inline: auto; max-width: 820px; font-style: normal; color: var(--wp--preset--color--ink); }
.wp-block-quote.is-style-testimonial::before { content: "\201C"; display: block; font-family: var(--wp--preset--font-family--display); font-size: 4.5rem; line-height: 0.6; color: var(--wp--preset--color--olive); margin-bottom: 1rem; }
.wp-block-quote.is-style-testimonial p { font-size: var(--wp--preset--font-size--xx-large); font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.35; }
.wp-block-quote.is-style-testimonial cite { font-family: var(--wp--preset--font-family--body); font-style: normal; font-size: var(--wp--preset--font-size--small); font-weight: 500; color: var(--wp--preset--color--muted); }
.wp-block-quote:not(.is-style-testimonial) { border-left: 0; padding-left: 0; }
.wp-block-quote cite { font-family: var(--wp--preset--font-family--body); font-style: normal; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }

/* Gallery */
.wp-block-gallery.is-style-studio { gap: 1.25rem !important; }
.wp-block-gallery.is-style-studio .wp-block-image img { border-radius: var(--luetti-radius); }

/* Post cards in query loops */
.wp-block-post-featured-image img { border-radius: var(--luetti-radius); }
.wp-block-post-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Details / FAQ */
.wp-block-details { border-top: var(--luetti-stitch); padding-block: 1.1rem; }
.wp-block-details:last-of-type { border-bottom: var(--luetti-stitch); }
.wp-block-details summary { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--large); font-weight: 500; color: var(--wp--preset--color--ink); cursor: pointer; }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }

/* Header */
.luetti-header { border-bottom: 1px solid #E6E0D4; }
.luetti-header .wp-block-site-logo img { width: auto; }
@media (max-width: 600px) { .luetti-header .luetti-header__cta { display: none; } }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--cream) !important; }

/* Footer */
.luetti-footer a { text-decoration: none; }
.luetti-footer a:hover { text-decoration: underline; }
.luetti-credit { display: inline-flex; align-items: center; gap: 0.5rem; }
.luetti-credit img { height: 34px; width: auto; display: block; }

/* Text on olive */
.has-olive-background-color { --luetti-on-dark: #D9DBCF; }
.has-olive-background-color p:not(.is-style-eyebrow):not(.is-style-materials):not(.luetti-step__number):not([class*="-color"]):not([class*="luetti-form"]) { color: var(--luetti-on-dark); }
.has-olive-background-color h1, .has-olive-background-color h2, .has-olive-background-color h3, .has-olive-background-color h4 { color: var(--wp--preset--color--cream); }
.has-olive-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--cream); }

/* Post content */
.single .wp-block-post-content > .wp-block-image img { border-radius: var(--luetti-radius); }

/* Contact form */
.luetti-form { display: grid; gap: 1rem; }
.luetti-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.luetti-form label { display: grid; gap: 0.35rem; font-size: 0.875rem; font-weight: 500; }
.luetti-form input, .luetti-form select, .luetti-form textarea { font: inherit; font-size: 1rem; padding: 0.8rem 0.9rem; border-radius: 10px; border: 1px solid var(--wp--preset--color--stone-dark); background: #fff; color: var(--wp--preset--color--ink); width: 100%; box-sizing: border-box; }
.luetti-form textarea { resize: vertical; min-height: 8rem; }
.luetti-form button { justify-self: start; font: inherit; font-size: var(--wp--preset--font-size--small); font-weight: 600; background: var(--wp--preset--color--olive); color: var(--wp--preset--color--cream); border: 0; padding: 0.95rem 1.9rem; border-radius: 999px; cursor: pointer; }
.luetti-form button:hover { background: var(--wp--preset--color--ink); }
.luetti-form .luetti-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.luetti-form__notice { padding: 0.9rem 1rem; border-radius: 10px; font-weight: 500; margin: 0; }
.luetti-form__notice.is-success { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--ink); }
.luetti-form__notice.is-error { background: var(--wp--preset--color--pink); color: var(--wp--preset--color--ink); }
.has-olive-background-color .luetti-form label { color: var(--wp--preset--color--cream); }
.has-olive-background-color .luetti-form input, .has-olive-background-color .luetti-form select, .has-olive-background-color .luetti-form textarea { background: rgba(255, 253, 245, 0.07); border-color: rgba(255, 253, 245, 0.4); color: var(--wp--preset--color--cream); }
.has-olive-background-color .luetti-form select option { color: var(--wp--preset--color--ink); }
.has-olive-background-color .luetti-form button { background: var(--wp--preset--color--pink); color: var(--wp--preset--color--ink); }
.has-olive-background-color .luetti-form button:hover { background: var(--wp--preset--color--cream); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Outline button */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--olive); border: 1.5px solid currentColor; padding: calc(0.9rem - 1.5px) calc(1.75rem - 1.5px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--olive); color: var(--wp--preset--color--cream); border-color: var(--wp--preset--color--olive); }
.has-olive-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--cream); }

/* Card headings sit a step smaller than section h3s */
.wp-block-group.is-style-card h3 { font-size: clamp(1.3rem, 1.6vw, 1.5rem); }
/* Gallery: even tiles */
.wp-block-gallery.is-style-studio .wp-block-image img { aspect-ratio: 1 / 1; object-fit: cover; height: 100%; }
/* Stitched separator spans its container */
.wp-block-separator.is-style-stitch:not(.is-style-wide):not(.is-style-dots) { width: 100%; }

/* Keep button text readable whatever else is loaded */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-text-color) { color: var(--wp--preset--color--cream); }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:not(.has-text-color):hover { color: var(--wp--preset--color--cream); }

/* Logo lockup: L mark + spaced capitals */
.luetti-brand__link { display: inline-flex; align-items: flex-end; gap: 0.6rem; text-decoration: none !important; color: var(--wp--preset--color--ink) !important; }
.luetti-brand__mark { display: block; height: 44px; width: auto; }
.luetti-brand__name { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.0625rem; line-height: 1; letter-spacing: 0.3em; margin-right: -0.3em; margin-bottom: 2px; text-transform: uppercase; }
.luetti-brand.is-size-footer .luetti-brand__mark { height: 52px; }
.luetti-brand.is-size-footer .luetti-brand__name { font-size: 1.25rem; }

/* Form: optional label, notices and the thank-you state */
.luetti-form__optional { font-weight: 400; opacity: 0.75; }
.luetti-form .luetti-form__notice.is-error, .has-olive-background-color .luetti-form-wrap .luetti-form__notice.is-error { color: var(--wp--preset--color--ink); background: var(--wp--preset--color--pink); }
.luetti-form__success { border: 1.5px dashed var(--wp--preset--color--stone-dark); border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--wp--preset--color--white); }
.luetti-form__success:focus { outline: none; }
.luetti-form__success p { margin: 0; }
.luetti-form-wrap .luetti-form__success-title { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--wp--preset--color--ink); }
.luetti-form-wrap .luetti-form__success-title::before { content: ""; display: block; width: 28px; border-top: 2px dashed var(--wp--preset--color--pink); margin-bottom: 1rem; }
.luetti-form-wrap .luetti-form__success-text { margin-top: 0.75rem; color: var(--wp--preset--color--muted); }
.luetti-form-wrap .luetti-form__success-again { margin-top: 1.25rem; font-size: var(--wp--preset--font-size--small); }
.luetti-form-wrap .luetti-form__success-again a { color: var(--wp--preset--color--olive); }
.has-olive-background-color .luetti-form__success { background: rgba(255, 253, 245, 0.06); border-color: rgba(255, 253, 245, 0.35); }
.has-olive-background-color .luetti-form-wrap .luetti-form__success-title { color: var(--wp--preset--color--cream); }
.has-olive-background-color .luetti-form-wrap .luetti-form__success-text { color: #D9DBCF; }
.has-olive-background-color .luetti-form-wrap .luetti-form__success-again a { color: var(--wp--preset--color--pink); }
.wp-block-group.is-style-card .luetti-form__success { border: 0; padding: 0; background: none; }
