/* diegonmtz Couture: tokens from diegonmtz/system/tokens.json (v1.2.0). */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray: #f4f4f4;
  --pink: #ff0088;
  --orange: #fa8334;
  --gold: #bf9b4e;
  --font-strike: "Cinzel Decorative", serif;
  --font-voice: "Newsreader", serif;
  --font-read: "Cormorant Garamond", serif;
  --font-system: "Space Mono", monospace;
  --motion-ui: 160ms;
  --motion-reveal: 500ms;

  /* On black: secondary text and hairlines. */
  --muted: #9a9a9a;
  --hair: #333333;

  --mini-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-read);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; }

/* Type roles */
.wordmark { font-family: var(--font-strike); font-size: 0.85rem; letter-spacing: 0.24em; }
.strike { font-family: var(--font-strike); font-weight: 400; font-size: clamp(2.1rem, 8vw, 3.6rem); letter-spacing: 0.04em; line-height: 1.08; }
.label { font-family: var(--font-read); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--font-system); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lede { font-family: var(--font-voice); font-style: italic; font-size: 1.1rem; color: var(--muted); }

/* Layout */
.app { min-height: 100dvh; }
.rail { display: none; }
.main { padding: 0 16px calc(var(--mini-h) + var(--safe-b) + 32px); outline: none; }
.top { display: flex; justify-content: space-between; align-items: center; height: 56px; border-bottom: 1px solid var(--hair); margin: 0 -16px; padding: 0 16px; }

/* Controls */
.text-btn { font-family: var(--font-system); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 0; transition: color var(--motion-ui) linear; }
.text-btn:hover, .text-btn[aria-pressed="true"] { color: var(--white); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 22px; height: 22px; }
.sq-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--white); flex: none; transition: background var(--motion-ui) linear, color var(--motion-ui) linear; }
.sq-btn svg { width: 20px; height: 20px; }
.sq-btn:hover, .sq-btn[aria-pressed="true"] { background: var(--white); color: var(--black); }
.sq-btn__one { display: none; position: absolute; right: 3px; bottom: 1px; font-family: var(--font-system); font-size: 9px; }
.sq-btn[data-mode="one"] .sq-btn__one { display: block; }
.play-btn { width: 64px; height: 64px; display: grid; place-items: center; background: var(--orange); color: var(--black); flex: none; transition: background var(--motion-ui) linear; }
.play-btn:hover { background: var(--white); }
.play-btn svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.play-btn--sm { width: 44px; height: 44px; }
.play-btn--sm svg { width: 18px; height: 18px; }
.i-pause, .is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.cta { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; background: var(--orange); color: var(--black); font-family: var(--font-system); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; transition: background var(--motion-ui) linear; }
.cta:hover { background: var(--white); }

/* Ornament: hairline, flat ink, masks so one shape serves every ink. */
.ink-gold { color: var(--gold); }
.ink-white { color: var(--white); }
.ink-black { color: var(--black); }
.orn { display: block; height: 14px; background: currentColor; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-position: left bottom; mask-position: left bottom; }
.orn--greca { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Cpath d='M.5 13.5V.5h16v10h-10v-5h4M0 13.5h20' fill='none' stroke='%23000'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14'%3E%3Cpath d='M.5 13.5V.5h16v10h-10v-5h4M0 13.5h20' fill='none' stroke='%23000'/%3E%3C/svg%3E"); }
.orn--ola { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 13.5C7 13.5 9 10 9 6.5 9 2 14 1 16 4c2 3-2 5-4 2.5M0 13.5h24' fill='none' stroke='%23000'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Cpath d='M0 13.5C7 13.5 9 10 9 6.5 9 2 14 1 16 4c2 3-2 5-4 2.5M0 13.5h24' fill='none' stroke='%23000'/%3E%3C/svg%3E"); }
.band { margin-top: 8px; }
.filete { display: flex; align-items: flex-end; width: 100%; height: 12px; }
.filete::before, .filete::after { content: ""; flex: 1; border-bottom: 1px solid currentColor; }
.filete svg { width: 16px; height: 12px; flex: none; stroke-width: 1; }
.draw { animation: draw var(--motion-reveal) steps(6) both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.reveal { animation: reveal 300ms steps(6) both; }
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Covers */
.cover { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #111; }
.cover--type { container-type: inline-size; display: flex; flex-direction: column; overflow: hidden; }
.cover--couture { background: var(--black); border: 1px solid var(--hair); align-items: center; justify-content: center; text-align: center; padding: 8%; }
.cover--couture > * + * { margin-top: 5cqi; }
.cover--couture .cover__no { font-family: var(--font-read); font-weight: 600; font-size: 6.5cqi; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cover--couture .cover__name { font-family: var(--font-strike); font-size: 14cqi; letter-spacing: 0.06em; line-height: 1.15; }
.cover--couture .filete { width: 55%; height: 7cqi; }
.cover--couture .filete svg { width: 9.5cqi; height: 7cqi; }
.cover--couture .cover__sign { font-family: var(--font-system); font-size: 5cqi; letter-spacing: 0.1em; color: var(--muted); }
.cover--archivo { background: var(--white); color: var(--black); justify-content: flex-end; padding: 12%; }
.cover--archivo .orn { width: 36cqi; height: 9cqi; -webkit-mask-size: 15cqi 9cqi; mask-size: 15cqi 9cqi; }
.cover--archivo .cover__no { font-family: var(--font-system); font-size: 5cqi; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 5cqi; }
.cover--archivo .cover__name { font-family: var(--font-voice); font-size: 15cqi; line-height: 1.1; }
.cover--archivo .cover__desc { font-family: var(--font-voice); font-style: italic; font-size: 7cqi; color: #2f2f2f; }

/* Home */
.hero { padding: 32px 0 24px; }
.hero .strike { margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.card { display: block; }
.card__title { font-family: var(--font-voice); font-size: 1.05rem; line-height: 1.2; margin-top: 10px; }
.card .mono { display: block; margin-top: 4px; }
.card .cover { transition: outline-color var(--motion-ui) linear; outline: 1px solid transparent; outline-offset: -1px; }
.card:hover .cover { outline-color: var(--white); }

/* Album */
.album { display: grid; gap: 24px; padding: 24px 0; }
.album__art { max-width: 420px; }
.album__info .strike { margin: 6px 0 10px; }
.actions { display: flex; gap: 10px; margin-top: 20px; }
.tracks { border-top: 1px solid var(--hair); }
.track { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--hair); text-align: left; }
.tracks--thumbs .track { grid-template-columns: 34px 44px minmax(0, 1fr) auto; align-items: center; padding: 8px 0; }
.track__art { width: 44px; }
.track__art .cover--type { border: 0; }
.track__title { font-family: var(--font-voice); font-size: 1.12rem; line-height: 1.3; transition: color var(--motion-ui) linear; }
.track:hover .track__title { color: var(--muted); }
.track[aria-current="true"] .track__title { color: var(--pink); }

/* Now playing: a sheet on phones, a column on desktop. */
.now { position: fixed; inset: 0; z-index: 20; background: var(--black); display: flex; flex-direction: column; padding: 8px 20px calc(16px + var(--safe-b)); overflow-y: auto; visibility: hidden; }
.now.is-open { visibility: visible; animation: reveal 300ms steps(6) both; }
.now__head { display: flex; justify-content: space-between; align-items: center; margin: 0 -10px; }
.now__stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 0 20px; }
.now__cover { width: min(100%, 52vh); margin: 0 auto; }
.now__band { width: min(100%, 52vh); margin: 0 auto; }
.now__title { font-family: var(--font-voice); font-weight: 400; font-size: 1.7rem; line-height: 1.2; text-align: center; margin-top: 22px; }
.now .filete { width: 60%; margin: 10px auto 8px; }
.now__album { display: block; text-align: center; }
.now__album:hover { color: var(--white); }
.scrub { position: relative; height: 36px; cursor: pointer; touch-action: none; --p: 0; }
.scrub__wave { position: absolute; inset: 0; color: #4a4a4a; }
.scrub__wave--fill { color: var(--pink); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.times { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--font-system); font-size: 0.66rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.now__status { min-height: 1.4em; text-align: center; font-family: var(--font-voice); font-style: italic; font-size: 0.95rem; color: var(--muted); margin: 6px 0; }
.transport { display: flex; justify-content: space-between; align-items: center; }
.now__foot { display: none; align-items: center; margin-top: 18px; min-height: 36px; }
.has-volume .now__foot { display: flex; }
.volume { display: flex; align-items: center; gap: 10px; }
.volume input { width: 120px; accent-color: var(--white); }

/* Mini bar */
.mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--black); border-top: 1px solid var(--hair); display: flex; align-items: center; gap: 6px; padding: 8px 8px calc(8px + var(--safe-b)) 12px; }
.mini__bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; }
.mini__bar i { display: block; height: 1px; background: var(--pink); transform-origin: left; transform: scaleX(var(--p, 0)); }
.mini__open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.mini__cover { width: 44px; flex: none; }
.mini__text { min-width: 0; display: flex; flex-direction: column; }
.mini__title { font-family: var(--font-voice); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__text .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .cover--type { border: 0; }

.toast { position: fixed; left: 50%; bottom: calc(var(--mini-h) + var(--safe-b) + 16px); transform: translateX(-50%); z-index: 30; background: var(--white); color: var(--black); font-family: var(--font-system); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 14px; visibility: hidden; }
.toast.is-on { visibility: visible; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
  .album { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: end; gap: 32px; }
}

@media (min-width: 900px) {
  .app { display: grid; grid-template-columns: 200px minmax(0, 1fr) 380px; height: 100dvh; }
  .rail { display: flex; flex-direction: column; gap: 28px; padding: 20px 18px; border-right: 1px solid var(--hair); overflow-y: auto; }
  .rail__list a { display: block; padding: 6px 0; font-family: var(--font-system); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color var(--motion-ui) linear; }
  .rail__list a:hover, .rail__list a[aria-current="page"] { color: var(--white); }
  .main { overflow-y: auto; padding: 0 32px 48px; }
  .top { margin: 0 -32px; padding: 0 32px; }
  .top .wordmark { visibility: hidden; }
  .now { position: static; visibility: visible; border-left: 1px solid var(--hair); padding: 8px 24px 20px; animation: none; }
  .now__close { visibility: hidden; }
  .now__cover, .now__band { width: 100%; }
  .mini { display: none; }
  .toast { bottom: 24px; }
}

@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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