/*
Theme Name: Axolote
Theme URI: https://ajoloteart.com
Author: 5 Star Designs
Description: "Cut & paste" block theme for collage artist Edgar Aguilar. Artwork post type with Zelle buy box, no cart.
Version: 2.0.1
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: axolote
*/

:root {
	--paper: var(--wp--preset--color--paper);
	--card: var(--wp--preset--color--card);
	--ink: var(--wp--preset--color--ink);
	--muted: var(--wp--preset--color--muted);
	--blue: var(--wp--preset--color--blue);
	--blue-deep: var(--wp--preset--color--blue-deep);
	--orange: var(--wp--preset--color--orange);
	--display: var(--wp--preset--font-family--display);
	--serif: var(--wp--preset--font-family--serif);
	--gutter: clamp(16px, 4vw, 48px);
	--shadow: 0 1px 2px rgb(20 33 61 / .12), 0 12px 28px -10px rgb(20 33 61 / .35);
	/* Jagged bottom edge, like paper torn by hand. */
	--torn-bottom: polygon(0 0, 100% 0, 100% calc(100% - 14px), 97% 100%, 93% calc(100% - 9px), 88% calc(100% - 2px), 84% calc(100% - 12px), 79% calc(100% - 4px), 74% 100%, 70% calc(100% - 10px), 65% calc(100% - 3px), 60% calc(100% - 13px), 55% calc(100% - 5px), 50% 100%, 46% calc(100% - 11px), 41% calc(100% - 2px), 36% calc(100% - 9px), 31% calc(100% - 1px), 26% calc(100% - 12px), 21% calc(100% - 4px), 16% 100%, 11% calc(100% - 10px), 6% calc(100% - 3px), 2% calc(100% - 12px), 0 calc(100% - 5px));
	--torn-top: polygon(0 5px, 3% 13px, 8% 3px, 13% 11px, 18% 1px, 24% 10px, 29% 2px, 35% 12px, 40% 4px, 46% 11px, 51% 0, 57% 9px, 62% 2px, 68% 12px, 73% 3px, 79% 10px, 84% 1px, 90% 11px, 95% 4px, 100% 12px, 100% 100%, 0 100%);
}

body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.axo-main > * + * { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Header ---------- */
.axo-header { padding: 14px var(--gutter); gap: 24px; position: relative; z-index: 20; }
.axo-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.axo-mark { width: 60px; height: 40px; flex: none; }
.axo-logo:hover .axo-mark { transform: rotate(-8deg); }
.axo-logo__word { font-family: var(--display); font-size: 1.55rem; text-transform: uppercase; line-height: 1; letter-spacing: .02em; }
.axo-logo__word small { display: block; font-family: var(--serif); font-style: italic; text-transform: none; font-size: .8rem; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.axo-nav { font-weight: 600; font-size: .98rem; }
.axo-nav .wp-block-navigation-item__content { padding: 10px 4px; color: var(--ink); text-decoration: none; }
.axo-nav .wp-block-navigation-item__content:hover { color: var(--blue); text-decoration: underline 2px; text-underline-offset: 6px; }
.axo-nav .axo-nav__cta .wp-block-navigation-item__content { background: var(--ink); color: var(--card); border-radius: 999px; padding: 10px 18px; }
.axo-nav .axo-nav__cta .wp-block-navigation-item__content:hover { background: var(--blue); color: #fff; text-decoration: none; }
.axo-nav .wp-block-navigation__responsive-container-open svg,
.axo-nav .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
.axo-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--blue) !important; color: #fff !important; padding: 24px var(--gutter); }
.axo-nav .is-menu-open .wp-block-navigation-item__content { color: #fff; font-family: var(--display); font-size: 2.2rem; text-transform: uppercase; font-weight: 400; }
.axo-nav .is-menu-open .axo-nav__cta .wp-block-navigation-item__content { background: var(--orange); color: var(--ink); font-size: 1.4rem; margin-top: 12px; }

/* ---------- Shared pieces ---------- */
.axo-eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.axo-lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.55; }
.axo-pagehead .axo-lead, .axo-band .axo-lead { max-width: 62ch; }
.axo-small { font-size: .9rem; color: var(--muted); }
.axo-section { padding-block: clamp(56px, 8vw, 104px); }
/* Color bands run edge to edge, so side gutters live on each section instead of the page. */
.axo-section, .axo-page, .axo-404, .axo-main.is-layout-constrained { padding-inline: var(--gutter); }
.axo-section__head { margin-bottom: 28px; }
.axo-section__head h2 { margin: 0; }
.axo-section__head p { margin: 0; font-weight: 600; }

.wp-element-button, .axo-btn { min-height: 48px; transition: background-color .15s, color .15s, transform .15s; }
.axo-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font: 700 1rem/1 var(--wp--preset--font-family--body); padding: .85em 1.6em; border-radius: 999px; background: var(--orange); color: var(--ink); text-decoration: none; }
.axo-btn:hover, .wp-element-button:hover { transform: translateY(-2px); }
.axo-btn:hover { background: var(--ink); color: var(--card); }
.is-style-outline .wp-element-button { background: transparent; color: currentColor; border: 2px solid currentColor; }
.is-style-outline .wp-element-button:hover { background: var(--ink); color: var(--card); border-color: var(--ink); }
.is-style-ink .wp-element-button { background: var(--ink); color: var(--card); }
.is-style-ink .wp-element-button:hover { background: var(--card); color: var(--ink); }

/* Masking tape on anything "pasted" to the page. */
.axo-taped, .axo-card__frame, .axo-piece__frame { position: relative; }
.axo-taped::before, .axo-card__frame::before, .axo-piece__frame::before {
	content: ""; position: absolute; z-index: 2; top: -12px; left: 50%; width: 92px; height: 26px; translate: -50% 0; rotate: -3deg;
	background: rgb(240 228 200 / .82); box-shadow: 0 1px 2px rgb(0 0 0 / .12);
	clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 45%);
}
.axo-taped img { display: block; box-shadow: var(--shadow); border: 10px solid var(--card); rotate: -1.5deg; }

/* ---------- Page head band (every page) ---------- */
.axo-pagehead { background: var(--blue); color: #fff; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 112px); clip-path: var(--torn-bottom); }
.axo-pagehead h1 { margin: 0; color: #fff; }
.axo-pagehead .axo-lead { margin-top: 16px; color: #fff; }
.axo-page { padding-block: clamp(40px, 6vw, 80px); }
.axo-page > h2 { margin-top: 2.2em; }

/* ---------- Home hero ---------- */
.axo-hero { background: var(--blue); color: #fff; padding: clamp(36px, 6vw, 88px) var(--gutter) clamp(80px, 9vw, 128px); clip-path: var(--torn-bottom); overflow: hidden; }
.axo-hero .axo-eyebrow { color: var(--orange); filter: brightness(1.15); }
.axo-hero__name { color: #fff; margin: 12px 0 18px; line-height: .92; font-size: clamp(3.6rem, 2rem + 7vw, 8rem); }
.axo-hero__name span { display: inline-block; background: var(--orange); color: var(--ink); padding: .02em .14em 0; rotate: -2deg; box-shadow: var(--shadow); }
.axo-hero__line { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); max-width: 34ch; }
.axo-hero .is-style-outline .wp-element-button { color: #fff; }
.axo-hero .is-style-outline .wp-element-button:hover { background: #fff; color: var(--ink); border-color: #fff; }

.axo-stack { position: relative; aspect-ratio: 1 / 1.05; max-width: 520px; margin-inline: auto; }
.axo-stack::before { content: ""; position: absolute; inset: 14% 8% 10% 14%; border-radius: 50%; background: var(--orange); }
.axo-stack__item { position: absolute; width: 56%; background: var(--card); padding: 10px; box-shadow: var(--shadow); transition: rotate .25s, scale .25s; }
.axo-stack__item img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.axo-stack__item.is-1 { left: 22%; top: 8%; rotate: 3deg; z-index: 3; }
.axo-stack__item.is-2 { left: 0; top: 30%; rotate: -8deg; z-index: 2; }
.axo-stack__item.is-3 { right: 0; top: 0; rotate: 9deg; z-index: 1; width: 46%; }
.axo-stack__item:hover { rotate: 0deg; scale: 1.04; z-index: 4; }

.axo-quote { padding: clamp(56px, 8vw, 104px) var(--gutter) 0; text-align: center; }
.axo-quote p:first-child { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.7rem); line-height: 1.25; margin: 0; }
.axo-quote__by { color: var(--muted); font-weight: 600; }

/* ---------- Color bands ---------- */
.axo-band { padding: clamp(64px, 8vw, 104px) var(--gutter); clip-path: var(--torn-top); }
.axo-band.is-blue { background: var(--blue-deep); color: #fff; }
.axo-band.is-blue h2, .axo-band.is-blue a:not(.wp-element-button) { color: #fff; }
.axo-band.is-orange { background: var(--orange); color: var(--ink); }
.axo-band.is-orange h2 { margin: 6px 0 10px; }
.axo-cta { text-align: center; }

/* ---------- Steps ---------- */
.axo-steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 18px; }
.axo-steps > li { counter-increment: step; position: relative; padding: 18px 20px 18px 74px; background: var(--card); color: var(--ink); border-radius: 4px; box-shadow: var(--shadow); }
.axo-steps > li::before { content: counter(step); position: absolute; left: 18px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-family: var(--display); font-size: 1.35rem; border-radius: 50%; }
.axo-steps.is-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-block: 32px; }
.axo-steps.is-row > li { padding: 70px 20px 22px; }
.axo-steps.is-row > li:nth-child(odd) { rotate: -1deg; }
.axo-steps.is-row > li:nth-child(even) { rotate: .8deg; }
.axo-steps a { color: var(--blue); }

/* ---------- Art grid ---------- */
.axo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.axo-card__link { display: block; color: var(--ink); text-decoration: none; }
.axo-card__frame { margin: 0 0 16px; background: var(--card); padding: 12px; box-shadow: var(--shadow); transition: rotate .25s, translate .25s; }
.axo-card:nth-child(3n+1) .axo-card__frame { rotate: -1.2deg; }
.axo-card:nth-child(3n+2) .axo-card__frame { rotate: .9deg; }
.axo-card:nth-child(3n) .axo-card__frame { rotate: -.4deg; }
.axo-card__link:hover .axo-card__frame { rotate: 0deg; translate: 0 -6px; }
.axo-card__frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #efe8da; }
.axo-card__title { font-family: var(--serif); font-style: italic; text-transform: none; font-size: 1.35rem; font-weight: 500; margin: 0; letter-spacing: 0; }
.axo-card__meta { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.axo-card__price { font-weight: 700; margin: 4px 0 0; }
.axo-card.is-sold .axo-card__price, .axo-card.is-reserved .axo-card__price, .axo-card.is-nfs .axo-card__price { color: var(--muted); font-weight: 600; }
.axo-tag { position: absolute; z-index: 3; right: -10px; top: 18px; background: var(--orange); color: var(--ink); font: 700 .78rem/1 var(--wp--preset--font-family--body); letter-spacing: .1em; text-transform: uppercase; padding: 8px 12px; rotate: 6deg; box-shadow: 0 2px 4px rgb(0 0 0 / .2); }
.axo-tag.is-reserved { background: var(--card); }
.axo-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.axo-filter a { padding: 10px 18px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.axo-filter a[aria-current] { background: var(--ink); color: var(--card); }
.axo-empty { color: var(--muted); }

/* ---------- Piece page ---------- */
.axo-piece { padding-block: clamp(32px, 5vw, 72px) 0; gap: clamp(28px, 5vw, 72px) !important; }
.axo-piece__frame { margin: 0; background: var(--card); padding: clamp(12px, 2vw, 24px); box-shadow: var(--shadow); }
.axo-piece__frame img { display: block; width: 100%; height: auto; }
.axo-piece__frame figcaption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }
@media (min-width: 782px) { .axo-piece__media { position: sticky; top: 24px; align-self: flex-start; } }
.axo-back { margin: 0; font-weight: 600; }
.axo-piece__title { font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); margin: 8px 0 6px; }
.axo-piece__details { color: var(--muted); margin: 0; }
.axo-piece__price { font-family: var(--display); font-size: 2rem; margin: 6px 0 0; }
.axo-piece__story { font-size: 1.08rem; }
.axo-piece__story p:first-child { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; }
.axo-buy { margin-top: 32px; padding: clamp(20px, 3vw, 32px); background: var(--card); border-top: 8px solid var(--blue); box-shadow: var(--shadow); }
.axo-buy h2 { font-size: 2rem; margin: 0 0 16px; }
.axo-buy .axo-steps > li { box-shadow: none; border: 1px solid #e6dccb; padding-left: 66px; }
.axo-buy .axo-steps > li::before { width: 34px; height: 34px; font-size: 1.1rem; left: 16px; }

/* ---------- Forms ---------- */
.axo-form-card { background: var(--card); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); border-top: 8px solid var(--orange); margin-block: 40px; }
.axo-form-card h2, .axo-form-card h3 { margin-top: 0; }
.axo-form { margin-top: 20px; }
.axo-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; }
.axo-field { margin: 0 0 16px; }
.axo-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.axo-field input, .axo-field select, .axo-field textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 2px solid #cfc5b3; border-radius: 6px; }
.axo-field input:focus, .axo-field select:focus, .axo-field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(36 89 168 / .25); }
.axo-field.has-error input, .axo-field.has-error textarea { border-color: #b3261e; }
.axo-hp { position: absolute; left: -9999px; }
.axo-notice { padding: 16px 18px; border-radius: 6px; font-weight: 600; margin-bottom: 16px; }
.axo-notice.is-ok { background: #e3f1e4; color: #1d4d24; }
.axo-notice.is-error { background: #fbe4e2; color: #8c1d16; }

/* ---------- About, events, commissions ---------- */
.axo-about, .axo-event, .axo-contact { gap: clamp(28px, 5vw, 72px) !important; }
@media (min-width: 782px) { .axo-sticky { position: sticky; top: 24px; } }
.axo-facts { list-style: none; padding: 0; margin: 28px 0; border-top: 2px solid var(--ink); }
.axo-facts li { padding: 12px 0; border-bottom: 1px solid #d9cfbd; }
.axo-facts strong { display: inline-block; min-width: 9.5em; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.axo-statement { background: var(--blue); color: #fff; padding: clamp(22px, 4vw, 40px); margin-block: 40px; rotate: -.6deg; box-shadow: var(--shadow); }
.axo-statement h2 { color: #fff; margin-top: 0; }
.axo-statement p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.55; }
.axo-cv { list-style: none; padding: 0; }
.axo-cv li { padding: 14px 0; border-bottom: 1px solid #d9cfbd; }
.axo-cv strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin-right: 14px; color: var(--blue); }
.axo-tiers { gap: 24px !important; margin-block: 40px; }
.axo-tier { background: var(--card); padding: 28px; box-shadow: var(--shadow); }
.axo-tier h3 { margin: 0; }
.axo-tier__price { font-family: var(--display); font-size: 2.2rem; margin: 6px 0; color: var(--blue); }
.axo-tier.is-featured { background: var(--blue); color: #fff; rotate: -1deg; }
.axo-tier.is-featured h3, .axo-tier.is-featured .axo-tier__price { color: #fff; }
.axo-faq { border-bottom: 1px solid #d9cfbd; padding: 4px 0; }
.axo-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; min-height: 24px; }
.axo-faq summary:hover { color: var(--blue); }

/* ---------- 404 ---------- */
.axo-404 { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.axo-404 .axo-mark { width: 180px; height: 120px; }
.axo-404 .wp-block-buttons { justify-content: center; }

/* ---------- Footer ---------- */
.axo-footer { position: relative; background: var(--ink); color: #e9e4da; padding: 96px var(--gutter) 32px; margin-top: 40px; clip-path: var(--torn-top); }
.axo-footer a { color: #fff; }
.axo-footer__peek .axo-mark { width: 108px; height: 72px; }
.axo-footer__peek { transition: rotate .3s; transform-origin: bottom center; width: max-content; }
.axo-footer__peek:hover { rotate: -10deg; }
.axo-footer__big { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); line-height: 1; margin: 12px 0; color: #fff; }
.axo-footer__big em { font-family: var(--serif); text-transform: none; color: var(--orange); }
.axo-footer__mail { font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); font-weight: 600; text-underline-offset: 6px; }
.axo-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin-block: 56px 40px; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / .2); }
.axo-footer__cols h2 { font-family: var(--wp--preset--font-family--body); font-size: .78rem; letter-spacing: .14em; color: var(--orange); margin: 0 0 8px; }
.axo-footer__cols p { margin: 0; line-height: 1.8; }
.axo-footer__small { font-size: .82rem; color: #b9b3a6; }

/* ---------- Phones ---------- */
@media (max-width: 781px) {
	.axo-mark { width: 51px; height: 34px; }
	.axo-logo__word { font-size: 1.3rem; }
	.axo-hero .wp-block-columns { gap: 40px; }
	.axo-stack { width: 88%; }
	.axo-band.is-orange .wp-block-buttons { justify-content: flex-start !important; }
	.axo-tier.is-featured, .axo-statement, .axo-steps.is-row > li { rotate: 0deg !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}
