/* Shared frontend and block-preview foundation. */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body) { margin: 0; background: var(--volco-surface-page); color: var(--volco-text-primary); font: 500 var(--volco-size-body)/1.555555556 var(--volco-font-body); }
:where(img, video) { display: block; max-width: 100%; height: auto; }
:where(button, input, select, textarea) { font: inherit; }
:where(body, .editor-styles-wrapper) { font-synthesis: none; }
:where(strong, b) { font-weight: 600; }
:where(button, input, select, textarea, .volco-button) { border-radius: var(--volco-radius-square); }
:where(h1, h2, h3, h4, h5, h6, p, figure, blockquote) { margin: 0; }
:where(h1, h2, h3, h4, h5, h6) { font-family: var(--volco-font-heading); overflow-wrap: break-word; }
:where(h1), .volco-h1 { font-size: var(--volco-size-h1); line-height: 1.083333333; font-weight: 300; letter-spacing: -2.5px; }
:where(h2), .volco-h2 { font-size: var(--volco-size-h2); line-height: 1.107142857; font-weight: 300; letter-spacing: -2px; }
:where(h3), .volco-h3 { font-size: var(--volco-size-h3); line-height: 1.1875; font-weight: 500; letter-spacing: -1px; }
/* H4-H6 extend the supplied scale for semantic completeness. */
:where(h4) { font-size: 24px; line-height: 1.416666667; font-weight: 500; letter-spacing: -.3px; }
:where(h5) { font-size: 20px; line-height: 1.4; font-weight: 500; }
:where(h6) { font-size: 18px; line-height: 1.555555556; font-weight: 500; }
.volco-display { font: 300 var(--volco-size-display)/1.045454545 var(--volco-font-heading); letter-spacing: -3px; }
.volco-lead { font-size: var(--volco-size-lead); line-height: 1.416666667; letter-spacing: -.3px; }
.volco-small { font-size: var(--volco-size-small); line-height: 1.571428571; }
.volco-label { font-size: var(--volco-size-label); line-height: 1.5; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; }
.volco-muted { color: var(--volco-text-secondary); }
.volco-container { width: calc(100% - var(--volco-gutter) * 2); margin-inline: auto; }
.volco-section { padding-block: var(--volco-section-space); }
.volco-stack > * + * { margin-block-start: var(--volco-space-24); }
.volco-prose { max-width: 65ch; }
.volco-prose > * + * { margin-block-start: var(--volco-space-24); }
.volco-prose :where(ul, ol) { padding-inline-start: 1.4em; }
.volco-prose :where(li + li) { margin-block-start: var(--volco-space-8); }
.volco-prose :where(blockquote) { border-inline-start: 2px solid var(--volco-surface-accent); padding-inline-start: var(--volco-space-24); }
:where(a) { color: var(--volco-text-accent); text-underline-offset: .2em; }
:where(a:hover) { color: var(--volco-cobalt-deep); }
:where(:focus-visible) { outline: 3px solid var(--volco-cobalt); outline-offset: 4px; }
.volco-surface--white { background: var(--volco-surface-white); }
.volco-surface--subtle { background: var(--volco-surface-subtle); }
.volco-surface--soft { background: var(--volco-surface-accent-soft); }
.volco-surface--dark { background: var(--volco-surface-dark); color: var(--volco-text-inverse); }
.volco-surface--dark :where(a) { color: var(--volco-text-inverse); }
.volco-surface--dark :where(:focus-visible) { outline-color: var(--volco-white); }
.volco-surface--dark .volco-muted { color: var(--volco-steel); }
.volco-divider { border: 0; border-block-start: 1px solid var(--volco-border-default); margin-block: var(--volco-space-32); }
.volco-button, .wp-element-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; width: fit-content; max-width: min(100%, 342px); min-height: 56px; padding: 16px 24px; border: 0; box-shadow: inset 0 0 0 1px transparent; background: var(--volco-surface-accent); color: var(--volco-text-inverse); font: 500 14px/20px var(--volco-font-body); text-decoration: none; cursor: pointer; transition: background-color var(--volco-duration-fast), color var(--volco-duration-fast); }
.volco-button > span:first-child { max-width: 254px; min-width: 0; overflow-wrap: anywhere; }
.volco-button__arrow { flex: 0 0 24px; width: 24px; height: 24px; background: currentColor; mask: url('../icons/arrow-white.svg') center / 24px 24px no-repeat; transition: transform var(--volco-duration-fast) var(--volco-ease); }
.volco-button:hover, .wp-element-button:hover { color: var(--volco-text-inverse); background: var(--volco-surface-accent-hover); }
.volco-button:hover .volco-button__arrow { transform: translateX(6px); }
.volco-button--secondary { background: transparent; box-shadow: inset 0 0 0 1px currentColor; color: var(--volco-text-primary); }
.volco-button--secondary:hover { background: var(--volco-surface-dark); border-color: var(--volco-surface-dark); }
.volco-button--text { padding-inline: 0; background: transparent; color: var(--volco-text-primary); }
.volco-button--text:hover { background: transparent; color: var(--volco-text-accent); }
.volco-surface--dark .volco-button--secondary { color: var(--volco-text-inverse); }
.volco-surface--dark .volco-button--secondary:hover { background: var(--volco-surface-white); color: var(--volco-text-primary); }
.volco-surface--dark .volco-button--text:hover { color: var(--volco-steel); }
.volco-button:disabled, .volco-button[aria-disabled="true"], .wp-element-button:disabled { background: var(--volco-action-disabled); color: var(--volco-text-secondary); border-color: transparent; cursor: not-allowed; }
.volco-button:disabled .volco-button__arrow, .volco-button[aria-disabled="true"] .volco-button__arrow { transform: none; }
.volco-field { display: grid; gap: 8px; }
.volco-field__label { font-size: 14px; line-height: 22px; font-weight: 500; }
.volco-input, .volco-select, .volco-textarea { width: 100%; min-height: 56px; border: 1px solid var(--volco-border-dark); padding: 16px; background: var(--volco-surface-white); color: var(--volco-text-primary); font: 500 16px/24px var(--volco-font-body); }
.volco-textarea { min-height: 160px; resize: vertical; }
.volco-input::placeholder, .volco-textarea::placeholder { color: var(--volco-text-secondary); opacity: 1; }
:is(.volco-input, .volco-select, .volco-textarea):focus { border-color: var(--volco-surface-accent); }
:is(.volco-input, .volco-select, .volco-textarea)[aria-invalid="true"] { border-color: var(--volco-status-error); }
.volco-field__error { color: var(--volco-status-error); font-size: 14px; line-height: 22px; }
:is(.volco-input, .volco-select, .volco-textarea):disabled { background: var(--volco-action-disabled); color: var(--volco-text-secondary); cursor: not-allowed; }
.volco-check { inline-size: 20px; block-size: 20px; accent-color: var(--volco-cobalt); }
/* A real transparent cut: never paint a white triangle over an image. */
.volco-image-cut { overflow: hidden; clip-path: polygon(0 0, calc(100% - var(--volco-image-cut)) 0, 100% var(--volco-image-cut), 100% 100%, 0 100%); }
.volco-image-cut img { width: 100%; height: 100%; object-fit: cover; }
.volco-image-cut--interactive img { transition: transform var(--volco-duration-reveal) var(--volco-ease); }
@media (hover: hover) { .volco-image-cut--interactive:hover img { transform: scale(1.04); } }
.volco-skip-link { position: absolute; z-index: 100000; inset-block-start: 8px; inset-inline-start: 8px; padding: 12px 24px; background: var(--volco-surface-white); transform: translateY(-200%); }
.volco-skip-link:focus { transform: none; }
@media (max-width: 767px) {
    :where(h1), .volco-h1, .volco-display { line-height: 1.1; letter-spacing: -1.4px; }
    :where(h2), .volco-h2 { line-height: 1.111111111; letter-spacing: -1.2px; }
    :where(h3), .volco-h3 { line-height: 1.214285714; letter-spacing: -.8px; }
}
@media (prefers-reduced-motion: reduce) {
    :where(.volco-button, .volco-button__arrow, .volco-image-cut img, .wp-element-button) { transition: none; }
    .volco-button:hover .volco-button__arrow, .volco-image-cut--interactive:hover img { transform: none; }
}
