/* Mastros Luthier – component styles */
:root {
  --m-line: rgba(40, 30, 20, 0.12);
  --m-ink: var(--wp--preset--color--ink);
  --m-amber: var(--wp--preset--color--amber);
  --m-muted: var(--wp--preset--color--muted);
}

::selection { background: var(--m-amber); color: #fff; }

.mastros-label {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--m-muted);
}
.mastros-muted { color: var(--m-muted); }
.mastros-step { font-family: var(--wp--preset--font-family--mono); color: var(--m-amber); font-size: 0.85rem; margin-bottom: 0; }
.mastros-fact { font-family: var(--wp--preset--font-family--display); font-size: 1.5rem; margin-top: 0.25rem; }
.mastros-topline { border-top: 1px solid var(--m-line); padding-top: 1.5rem; }

/* Header */
.mastros-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--m-line);
  padding-top: 1.4rem; padding-bottom: 1.4rem;
}
.admin-bar .mastros-header { top: 32px; }
.mastros-header .wp-block-site-title a { text-decoration: none; }
.mastros-header .wp-block-navigation a { text-decoration: none; color: var(--m-muted); transition: color .3s; }
.mastros-header .wp-block-navigation a:hover,
.mastros-header .wp-block-navigation .current-menu-item > a { color: var(--m-ink); }
.mastros-header .wp-block-navigation .current-menu-item > a { box-shadow: 0 1px 0 var(--m-amber); }

.mastros-footer { border-top: 1px solid var(--m-line); margin-top: 8rem; padding-top: 4rem; padding-bottom: 4rem; font-size: 0.875rem; }
.mastros-footer .wp-block-site-title a { text-decoration: none; }

/* Layout spacing */
.mastros-main { padding-top: clamp(3rem, 7vw, 6rem); }
.mastros-hero { gap: clamp(2rem, 5vw, 5rem) !important; align-items: flex-end; }
.mastros-section { margin-top: clamp(5rem, 10vw, 8rem) !important; }
.mastros-intro { max-width: 680px; margin-bottom: 3rem; }
.mastros-row { padding: 4rem 0; border-top: 1px solid var(--m-line); gap: clamp(2rem, 5vw, 4rem) !important; align-items: center; }
@media (min-width: 782px) { .mastros-row.is-flipped { flex-direction: row-reverse; } }
.mastros-cards { gap: 2.5rem !important; }
.mastros-facts { border-top: 1px solid var(--m-line); padding-top: 1.5rem; margin: 2.5rem 0; }

/* Images */
.wp-block-image img { width: 100%; height: auto; object-fit: cover; background: var(--wp--preset--color--sand); transition: transform .7s ease; }
.wp-block-image { overflow: hidden; border-radius: 16px; }
.wp-block-image:hover img { transform: scale(1.03); }
.mastros-ratio-3-2 img { aspect-ratio: 3/2; }
.mastros-ratio-2-3 img { aspect-ratio: 2/3; }
.mastros-ratio-3-4 img { aspect-ratio: 3/4; }
.mastros-ratio-4-3 img { aspect-ratio: 4/3; }
.mastros-row .mastros-ratio-2-3 { max-width: 440px; }

/* Buttons */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--m-ink); border: 1px solid var(--m-ink); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--m-ink); color: var(--wp--preset--color--paper); }

/* Lists */
.mastros-steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.mastros-steps li { counter-increment: s; padding: 1.1rem 0; border-bottom: 1px solid var(--m-line); font-family: var(--wp--preset--font-family--display); font-size: 1.15rem; display: flex; gap: 2rem; align-items: baseline; }
.mastros-steps li::before { content: "0" counter(s); font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; color: var(--m-amber); }
.mastros-specs { list-style: none; padding: 0; max-width: 520px; font-size: 0.9rem; }
.mastros-specs li { display: flex; gap: 1.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--m-line); }
.mastros-specs strong { font-family: var(--wp--preset--font-family--mono); font-weight: 400; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--m-muted); width: 5.5rem; flex-shrink: 0; padding-top: 0.2rem; }

/* Posts */
.mastros-post-grid { gap: 3rem 2.5rem !important; }
.mastros-post-grid .wp-block-post-title a { text-decoration: none; }
.mastros-post-grid > li { border-top: 1px solid var(--m-ink); padding-top: 1.5rem; }
.mastros-single .wp-block-post-title { margin-top: 0.5rem; }

/* Sound player */
.mastros-player { display: flex; align-items: center; gap: 1rem; max-width: 520px; padding: 1rem 1.25rem; border: 1px solid var(--m-line); border-radius: 16px; background: rgba(255,255,255,0.6); }
.mastros-play { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--m-ink); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.mastros-play:hover { background: var(--m-ink); }
.mastros-play:hover .mastros-icon { border-left-color: #fff; }
.mastros-icon { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--m-ink); }
.mastros-player.is-playing .mastros-play { background: var(--m-amber); border-color: var(--m-amber); }
.mastros-player.is-playing .mastros-icon { margin: 0; width: 12px; height: 14px; border: 0; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.mastros-meta { flex: 1; min-width: 0; }
.mastros-sample { display: block; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mastros-bar { display: block; height: 1px; background: var(--m-line); margin-top: 0.6rem; position: relative; }
.mastros-bar span { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--m-amber); }
.mastros-time { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; color: var(--m-muted); font-variant-numeric: tabular-nums; }

.mastros-now { position: fixed; left: 0; right: 0; bottom: 1.5rem; z-index: 100; display: flex; justify-content: center; padding: 0 1rem; pointer-events: none; }
.mastros-now-pill { pointer-events: auto; max-width: 100%; display: flex; align-items: center; gap: 1rem; background: var(--m-ink); color: var(--wp--preset--color--paper); border-radius: 999px; padding: 0.5rem 0.5rem 0.5rem 1.5rem; box-shadow: 0 20px 40px rgba(0,0,0,.25); animation: mastros-up .5s ease both; }
.mastros-now-name { min-width: 0; font-family: var(--wp--preset--font-family--display); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mastros-now-stop { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); cursor: pointer; display: grid; place-items: center; }
.mastros-now-stop::after { content: ""; width: 10px; height: 10px; background: #fff; }
.mastros-eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.mastros-eq i { width: 3px; height: 100%; background: var(--m-amber); transform-origin: bottom; animation: mastros-eq .8s ease-in-out infinite; }
.mastros-eq i:nth-child(2) { animation-delay: .15s; } .mastros-eq i:nth-child(3) { animation-delay: .3s; } .mastros-eq i:nth-child(4) { animation-delay: .45s; }
@keyframes mastros-eq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes mastros-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* String sampler */
.mastros-sampler { border: 1px solid var(--m-line); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); background: rgba(255,255,255,0.6); }
.mastros-sampler-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; gap: 1rem; }
.mastros-strum { background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font: inherit; font-size: 0.875rem; color: var(--m-ink); }
.mastros-strum:hover { color: var(--m-amber); }
.mastros-string { display: flex; align-items: center; gap: 1.5rem; width: 100%; padding: 0.8rem 0; background: none; border: 0; cursor: pointer; }
.mastros-string span { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; width: 2rem; text-align: left; color: var(--m-muted); }
.mastros-string i { flex: 1; height: 1px; background: var(--m-ink); }
.mastros-string:nth-of-type(2) i { height: 1.6px; } .mastros-string:nth-of-type(3) i { height: 2.2px; } .mastros-string:nth-of-type(4) i { height: 2.8px; }
.mastros-string:hover span { color: var(--m-amber); }
.mastros-string.is-hit i { background: var(--m-amber); animation: mastros-vib .4s linear; }
@keyframes mastros-vib { 20% { transform: translateY(-2px); } 40% { transform: translateY(2px); } 60% { transform: translateY(-1px); } 80% { transform: translateY(1px); } }

/* Contact form */
.mastros-form { display: grid; gap: 1.75rem; }
.mastros-form label { display: block; }
.mastros-form input, .mastros-form select, .mastros-form textarea {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.6rem 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--m-line); font: inherit; color: inherit; outline: none; transition: border-color .3s; resize: none;
}
.mastros-form input:focus, .mastros-form select:focus, .mastros-form textarea:focus { border-color: var(--m-amber); }
.mastros-form button { justify-self: start; cursor: pointer; border: 0; }
.mastros-hp { position: absolute !important; left: -9999px; }
.mastros-notice { padding: 1rem 1.25rem; border-radius: 12px; margin: 0; font-size: 0.9rem; }
.mastros-notice-ok { background: #EEF1E8; color: #3F4A35; }
.mastros-notice-err { background: #F6E7E1; color: #8A3A1E; }
